More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 13 from a total of 13 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Redeem | 15962884 | 664 days ago | IN | 0 ETH | 0.00063324 | ||||
Exchange Rate | 15962873 | 664 days ago | IN | 0 ETH | 0.00049597 | ||||
Approve | 13346927 | 1070 days ago | IN | 0 ETH | 0.00187679 | ||||
Approve | 12844113 | 1148 days ago | IN | 0 ETH | 0.00070112 | ||||
Approve | 12523048 | 1198 days ago | IN | 0 ETH | 0.00222873 | ||||
Approve | 12390473 | 1219 days ago | IN | 0 ETH | 0.002043 | ||||
Approve | 12385992 | 1219 days ago | IN | 0 ETH | 0.00246089 | ||||
Approve | 12383246 | 1220 days ago | IN | 0 ETH | 0.00241446 | ||||
_set Safety Marg... | 12367068 | 1222 days ago | IN | 0 ETH | 0.00147053 | ||||
Approve | 12364920 | 1222 days ago | IN | 0 ETH | 0.00208944 | ||||
Approve | 12364292 | 1223 days ago | IN | 0 ETH | 0.0036217 | ||||
Approve | 12355789 | 1224 days ago | IN | 0 ETH | 0.00301808 | ||||
_set Safety Marg... | 11942290 | 1288 days ago | IN | 0 ETH | 0.00321284 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
11941707 | 1288 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
Collateral
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity =0.5.16; import "./PoolToken.sol"; import "./CStorage.sol"; import "./CSetter.sol"; import "./interfaces/IBorrowable.sol"; import "./interfaces/ICollateral.sol"; import "./interfaces/IFactory.sol"; import "./interfaces/ISimpleUniswapOracle.sol"; import "./interfaces/IImpermaxCallee.sol"; import "./interfaces/IUniswapV2Pair.sol"; import "./libraries/UQ112x112.sol"; import "./libraries/Math.sol"; contract Collateral is ICollateral, PoolToken, CStorage, CSetter { using UQ112x112 for uint224; constructor() public {} /*** Collateralization Model ***/ // returns the prices of borrowable0's and borrowable1's underlyings with collateral's underlying as denom function getPrices() public returns (uint price0, uint price1) { (uint224 twapPrice112x112,) = ISimpleUniswapOracle(simpleUniswapOracle).getResult(underlying); (uint112 reserve0, uint112 reserve1,) = IUniswapV2Pair(underlying).getReserves(); uint256 collateralTotalSupply = IUniswapV2Pair(underlying).totalSupply(); uint224 currentPrice112x112 = UQ112x112.encode(reserve1).uqdiv(reserve0); uint256 adjustmentSquared = uint256(twapPrice112x112).mul(2**32).div(currentPrice112x112); uint256 adjustment = Math.sqrt(adjustmentSquared.mul(2**32)); uint256 currentBorrowable0Price = uint256(collateralTotalSupply).mul(1e18).div(reserve0*2); uint256 currentBorrowable1Price = uint256(collateralTotalSupply).mul(1e18).div(reserve1*2); price0 = currentBorrowable0Price.mul(adjustment).div(2**32); price1 = currentBorrowable1Price.mul(2**32).div(adjustment); /* * Price calculation errors may happen in some edge pairs where * reserve0 / reserve1 is close to 2**112 or 1/2**112 * We're going to prevent users from using pairs at risk from the UI */ require(price0 > 100, "Impermax: PRICE_CALCULATION_ERROR"); require(price1 > 100, "Impermax: PRICE_CALCULATION_ERROR"); } // returns liquidity in collateral's underlying function _calculateLiquidity(uint amountCollateral, uint amount0, uint amount1) internal returns (uint liquidity, uint shortfall) { uint _safetyMarginSqrt = safetyMarginSqrt; (uint price0, uint price1) = getPrices(); uint a = amount0.mul(price0).div(1e18); uint b = amount1.mul(price1).div(1e18); if(a < b) (a, b) = (b, a); a = a.mul(_safetyMarginSqrt).div(1e18); b = b.mul(1e18).div(_safetyMarginSqrt); uint collateralNeeded = a.add(b).mul(liquidationIncentive).div(1e18); if(amountCollateral >= collateralNeeded){ return (amountCollateral - collateralNeeded, 0); } else { return (0, collateralNeeded - amountCollateral); } } /*** ERC20 ***/ function _transfer(address from, address to, uint value) internal { require(tokensUnlocked(from, value), "Impermax: INSUFFICIENT_LIQUIDITY"); super._transfer(from, to, value); } function tokensUnlocked(address from, uint value) public returns (bool) { uint _balance = balanceOf[from]; if (value > _balance) return false; uint finalBalance = _balance - value; uint amountCollateral = finalBalance.mul(exchangeRate()).div(1e18); uint amount0 = IBorrowable(borrowable0).borrowBalance(from); uint amount1 = IBorrowable(borrowable1).borrowBalance(from); (, uint shortfall) = _calculateLiquidity(amountCollateral, amount0, amount1); return shortfall == 0; } /*** Collateral ***/ function accountLiquidityAmounts(address borrower, uint amount0, uint amount1) public returns (uint liquidity, uint shortfall) { if (amount0 == uint(-1)) amount0 = IBorrowable(borrowable0).borrowBalance(borrower); if (amount1 == uint(-1)) amount1 = IBorrowable(borrowable1).borrowBalance(borrower); uint amountCollateral = balanceOf[borrower].mul(exchangeRate()).div(1e18); return _calculateLiquidity(amountCollateral, amount0, amount1); } function accountLiquidity(address borrower) public returns (uint liquidity, uint shortfall) { return accountLiquidityAmounts(borrower, uint(-1), uint(-1)); } function canBorrow(address borrower, address borrowable, uint accountBorrows) public returns (bool) { address _borrowable0 = borrowable0; address _borrowable1 = borrowable1; require(borrowable == _borrowable0 || borrowable == _borrowable1, "Impermax: INVALID_BORROWABLE" ); uint amount0 = borrowable == _borrowable0 ? accountBorrows : uint(-1); uint amount1 = borrowable == _borrowable1 ? accountBorrows : uint(-1); (, uint shortfall) = accountLiquidityAmounts(borrower, amount0, amount1); return shortfall == 0; } // this function must be called from borrowable0 or borrowable1 function seize(address liquidator, address borrower, uint repayAmount) external returns (uint seizeTokens) { require(msg.sender == borrowable0 || msg.sender == borrowable1, "Impermax: UNAUTHORIZED"); (, uint shortfall) = accountLiquidity(borrower); require(shortfall > 0, "Impermax: INSUFFICIENT_SHORTFALL"); uint price; if (msg.sender == borrowable0) (price, ) = getPrices(); else (, price) = getPrices(); seizeTokens = repayAmount.mul(liquidationIncentive).div(1e18).mul(price).div( exchangeRate() ); balanceOf[borrower] = balanceOf[borrower].sub(seizeTokens, "Impermax: LIQUIDATING_TOO_MUCH"); balanceOf[liquidator] = balanceOf[liquidator].add(seizeTokens); emit Transfer(borrower, liquidator, seizeTokens); } // this low-level function should be called from another contract function flashRedeem(address redeemer, uint redeemAmount, bytes calldata data) external nonReentrant update { require(redeemAmount <= totalBalance, "Impermax: INSUFFICIENT_CASH"); // optimistically transfer funds _safeTransfer(redeemer, redeemAmount); if (data.length > 0) IImpermaxCallee(redeemer).impermaxRedeem(msg.sender, redeemAmount, data); uint redeemTokens = balanceOf[address(this)]; uint declaredRedeemTokens = redeemAmount.mul(1e18).div( exchangeRate() ).add(1); // rounded up require(redeemTokens >= declaredRedeemTokens, "Impermax: INSUFFICIENT_REDEEM_TOKENS"); _burn(address(this), redeemTokens); emit Redeem(msg.sender, redeemer, redeemAmount, redeemTokens); } }
pragma solidity =0.5.16; import "./CStorage.sol"; import "./PoolToken.sol"; import "./interfaces/IFactory.sol"; import "./interfaces/ISimpleUniswapOracle.sol"; contract CSetter is PoolToken, CStorage { uint public constant SAFETY_MARGIN_SQRT_MIN = 1.00e18; //safetyMargin: 100% uint public constant SAFETY_MARGIN_SQRT_MAX = 1.58113884e18; //safetyMargin: 250% uint public constant LIQUIDATION_INCENTIVE_MIN = 1.00e18; //100% uint public constant LIQUIDATION_INCENTIVE_MAX = 1.05e18; //105% event NewSafetyMargin(uint newSafetyMarginSqrt); event NewLiquidationIncentive(uint newLiquidationIncentive); // called once by the factory at the time of deployment function _initialize ( string calldata _name, string calldata _symbol, address _underlying, address _borrowable0, address _borrowable1 ) external { require(msg.sender == factory, "Impermax: UNAUTHORIZED"); // sufficient check _setName(_name, _symbol); underlying = _underlying; borrowable0 = _borrowable0; borrowable1 = _borrowable1; simpleUniswapOracle = IFactory(factory).simpleUniswapOracle(); } function _setSafetyMarginSqrt(uint newSafetyMarginSqrt) external nonReentrant { _checkSetting(newSafetyMarginSqrt, SAFETY_MARGIN_SQRT_MIN, SAFETY_MARGIN_SQRT_MAX); safetyMarginSqrt = newSafetyMarginSqrt; emit NewSafetyMargin(newSafetyMarginSqrt); } function _setLiquidationIncentive(uint newLiquidationIncentive) external nonReentrant { _checkSetting(newLiquidationIncentive, LIQUIDATION_INCENTIVE_MIN, LIQUIDATION_INCENTIVE_MAX); liquidationIncentive = newLiquidationIncentive; emit NewLiquidationIncentive(newLiquidationIncentive); } function _checkSetting(uint parameter, uint min, uint max) internal view { _checkAdmin(); require(parameter >= min, "Impermax: INVALID_SETTING"); require(parameter <= max, "Impermax: INVALID_SETTING"); } function _checkAdmin() internal view { require(msg.sender == IFactory(factory).admin(), "Impermax: UNAUTHORIZED"); } }
pragma solidity =0.5.16; contract CStorage { address public borrowable0; address public borrowable1; address public simpleUniswapOracle; uint public safetyMarginSqrt = 1.58113883e18; //safetyMargin: 250% uint public liquidationIncentive = 1.04e18; //4% }
pragma solidity =0.5.16; import "./libraries/SafeMath.sol"; // This contract is basically UniswapV2ERC20 with small modifications // src: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol contract ImpermaxERC20 { using SafeMath for uint; string public name; string public symbol; uint8 public decimals = 18; uint public totalSupply; mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) public allowance; bytes32 public DOMAIN_SEPARATOR; mapping(address => uint) public nonces; event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); constructor() public {} function _setName(string memory _name, string memory _symbol) internal { name = _name; symbol = _symbol; uint chainId; assembly { chainId := chainid } DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(_name)), keccak256(bytes("1")), chainId, address(this) ) ); } function _mint(address to, uint value) internal { totalSupply = totalSupply.add(value); balanceOf[to] = balanceOf[to].add(value); emit Transfer(address(0), to, value); } function _burn(address from, uint value) internal { balanceOf[from] = balanceOf[from].sub(value); totalSupply = totalSupply.sub(value); emit Transfer(from, address(0), value); } function _approve(address owner, address spender, uint value) private { allowance[owner][spender] = value; emit Approval(owner, spender, value); } function _transfer(address from, address to, uint value) internal { balanceOf[from] = balanceOf[from].sub(value, "Impermax: TRANSFER_TOO_HIGH"); balanceOf[to] = balanceOf[to].add(value); emit Transfer(from, to, value); } function approve(address spender, uint value) external returns (bool) { _approve(msg.sender, spender, value); return true; } function transfer(address to, uint value) external returns (bool) { _transfer(msg.sender, to, value); return true; } function transferFrom(address from, address to, uint value) external returns (bool) { if (allowance[from][msg.sender] != uint(-1)) { allowance[from][msg.sender] = allowance[from][msg.sender].sub(value, "Impermax: TRANSFER_NOT_ALLOWED"); } _transfer(from, to, value); return true; } function _checkSignature(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s, bytes32 typehash) internal { require(deadline >= block.timestamp, "Impermax: EXPIRED"); bytes32 digest = keccak256( abi.encodePacked( '\x19\x01', DOMAIN_SEPARATOR, keccak256(abi.encode(typehash, owner, spender, value, nonces[owner]++, deadline)) ) ); address recoveredAddress = ecrecover(digest, v, r, s); require(recoveredAddress != address(0) && recoveredAddress == owner, "Impermax: INVALID_SIGNATURE"); } // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external { _checkSignature(owner, spender, value, deadline, v, r, s, PERMIT_TYPEHASH); _approve(owner, spender, value); } }
pragma solidity =0.5.16; import "./ImpermaxERC20.sol"; import "./interfaces/IERC20.sol"; import "./interfaces/IPoolToken.sol"; import "./libraries/SafeMath.sol"; contract PoolToken is IPoolToken, ImpermaxERC20 { uint internal constant initialExchangeRate = 1e18; address public underlying; address public factory; uint public totalBalance; uint public constant MINIMUM_LIQUIDITY = 1000; event Mint(address indexed sender, address indexed minter, uint mintAmount, uint mintTokens); event Redeem(address indexed sender, address indexed redeemer, uint redeemAmount, uint redeemTokens); event Sync(uint totalBalance); /*** Initialize ***/ // called once by the factory function _setFactory() external { require(factory == address(0), "Impermax: FACTORY_ALREADY_SET"); factory = msg.sender; } /*** PoolToken ***/ function _update() internal { totalBalance = IERC20(underlying).balanceOf(address(this)); emit Sync(totalBalance); } function exchangeRate() public returns (uint) { uint _totalSupply = totalSupply; // gas savings uint _totalBalance = totalBalance; // gas savings if (_totalSupply == 0 || _totalBalance == 0) return initialExchangeRate; return _totalBalance.mul(1e18).div(_totalSupply); } // this low-level function should be called from another contract function mint(address minter) external nonReentrant update returns (uint mintTokens) { uint balance = IERC20(underlying).balanceOf(address(this)); uint mintAmount = balance.sub(totalBalance); mintTokens = mintAmount.mul(1e18).div(exchangeRate()); if(totalSupply == 0) { // permanently lock the first MINIMUM_LIQUIDITY tokens mintTokens = mintTokens.sub(MINIMUM_LIQUIDITY); _mint(address(0), MINIMUM_LIQUIDITY); } require(mintTokens > 0, "Impermax: MINT_AMOUNT_ZERO"); _mint(minter, mintTokens); emit Mint(msg.sender, minter, mintAmount, mintTokens); } // this low-level function should be called from another contract function redeem(address redeemer) external nonReentrant update returns (uint redeemAmount) { uint redeemTokens = balanceOf[address(this)]; redeemAmount = redeemTokens.mul(exchangeRate()).div(1e18); require(redeemAmount > 0, "Impermax: REDEEM_AMOUNT_ZERO"); require(redeemAmount <= totalBalance, "Impermax: INSUFFICIENT_CASH"); _burn(address(this), redeemTokens); _safeTransfer(redeemer, redeemAmount); emit Redeem(msg.sender, redeemer, redeemAmount, redeemTokens); } // force real balance to match totalBalance function skim(address to) external nonReentrant { _safeTransfer(to, IERC20(underlying).balanceOf(address(this)).sub(totalBalance)); } // force totalBalance to match real balance function sync() external nonReentrant update {} /*** Utilities ***/ // same safe transfer function used by UniSwapV2 (with fixed underlying) bytes4 private constant SELECTOR = bytes4(keccak256(bytes("transfer(address,uint256)"))); function _safeTransfer(address to, uint amount) internal { (bool success, bytes memory data) = underlying.call(abi.encodeWithSelector(SELECTOR, to, amount)); require(success && (data.length == 0 || abi.decode(data, (bool))), "Impermax: TRANSFER_FAILED"); } // prevents a contract from calling itself, directly or indirectly. bool internal _notEntered = true; modifier nonReentrant() { require(_notEntered, "Impermax: REENTERED"); _notEntered = false; _; _notEntered = true; } // update totalBalance with current balance modifier update() { _; _update(); } }
pragma solidity >=0.5.0; interface IBorrowable { /*** Impermax ERC20 ***/ event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; /*** Pool Token ***/ event Mint(address indexed sender, address indexed minter, uint mintAmount, uint mintTokens); event Redeem(address indexed sender, address indexed redeemer, uint redeemAmount, uint redeemTokens); event Sync(uint totalBalance); function underlying() external view returns (address); function factory() external view returns (address); function totalBalance() external view returns (uint); function MINIMUM_LIQUIDITY() external pure returns (uint); function exchangeRate() external returns (uint); function mint(address minter) external returns (uint mintTokens); function redeem(address redeemer) external returns (uint redeemAmount); function skim(address to) external; function sync() external; function _setFactory() external; /*** Borrowable ***/ event BorrowApproval(address indexed owner, address indexed spender, uint value); event Borrow(address indexed sender, address indexed borrower, address indexed receiver, uint borrowAmount, uint repayAmount, uint accountBorrowsPrior, uint accountBorrows, uint totalBorrows); event Liquidate(address indexed sender, address indexed borrower, address indexed liquidator, uint seizeTokens, uint repayAmount, uint accountBorrowsPrior, uint accountBorrows, uint totalBorrows); function BORROW_FEE() external pure returns (uint); function collateral() external view returns (address); function reserveFactor() external view returns (uint); function exchangeRateLast() external view returns (uint); function borrowIndex() external view returns (uint); function totalBorrows() external view returns (uint); function borrowAllowance(address owner, address spender) external view returns (uint); function borrowBalance(address borrower) external view returns (uint); function borrowTracker() external view returns (address); function BORROW_PERMIT_TYPEHASH() external pure returns (bytes32); function borrowApprove(address spender, uint256 value) external returns (bool); function borrowPermit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; function borrow(address borrower, address receiver, uint borrowAmount, bytes calldata data) external; function liquidate(address borrower, address liquidator) external returns (uint seizeTokens); function trackBorrow(address borrower) external; /*** Borrowable Interest Rate Model ***/ event AccrueInterest(uint interestAccumulated, uint borrowIndex, uint totalBorrows); event CalculateKink(uint kinkRate); event CalculateBorrowRate(uint borrowRate); function KINK_BORROW_RATE_MAX() external pure returns (uint); function KINK_BORROW_RATE_MIN() external pure returns (uint); function KINK_MULTIPLIER() external pure returns (uint); function borrowRate() external view returns (uint); function kinkBorrowRate() external view returns (uint); function kinkUtilizationRate() external view returns (uint); function adjustSpeed() external view returns (uint); function rateUpdateTimestamp() external view returns (uint32); function accrualTimestamp() external view returns (uint32); function accrueInterest() external; /*** Borrowable Setter ***/ event NewReserveFactor(uint newReserveFactor); event NewKinkUtilizationRate(uint newKinkUtilizationRate); event NewAdjustSpeed(uint newAdjustSpeed); event NewBorrowTracker(address newBorrowTracker); function RESERVE_FACTOR_MAX() external pure returns (uint); function KINK_UR_MIN() external pure returns (uint); function KINK_UR_MAX() external pure returns (uint); function ADJUST_SPEED_MIN() external pure returns (uint); function ADJUST_SPEED_MAX() external pure returns (uint); function _initialize ( string calldata _name, string calldata _symbol, address _underlying, address _collateral ) external; function _setReserveFactor(uint newReserveFactor) external; function _setKinkUtilizationRate(uint newKinkUtilizationRate) external; function _setAdjustSpeed(uint newAdjustSpeed) external; function _setBorrowTracker(address newBorrowTracker) external; }
pragma solidity >=0.5.0; interface ICollateral { /*** Impermax ERC20 ***/ event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; /*** Pool Token ***/ event Mint(address indexed sender, address indexed minter, uint mintAmount, uint mintTokens); event Redeem(address indexed sender, address indexed redeemer, uint redeemAmount, uint redeemTokens); event Sync(uint totalBalance); function underlying() external view returns (address); function factory() external view returns (address); function totalBalance() external view returns (uint); function MINIMUM_LIQUIDITY() external pure returns (uint); function exchangeRate() external returns (uint); function mint(address minter) external returns (uint mintTokens); function redeem(address redeemer) external returns (uint redeemAmount); function skim(address to) external; function sync() external; function _setFactory() external; /*** Collateral ***/ function borrowable0() external view returns (address); function borrowable1() external view returns (address); function simpleUniswapOracle() external view returns (address); function safetyMarginSqrt() external view returns (uint); function liquidationIncentive() external view returns (uint); function getPrices() external returns (uint price0, uint price1); function tokensUnlocked(address from, uint value) external returns (bool); function accountLiquidityAmounts(address account, uint amount0, uint amount1) external returns (uint liquidity, uint shortfall); function accountLiquidity(address account) external returns (uint liquidity, uint shortfall); function canBorrow(address account, address borrowable, uint accountBorrows) external returns (bool); function seize(address liquidator, address borrower, uint repayAmount) external returns (uint seizeTokens); function flashRedeem(address redeemer, uint redeemAmount, bytes calldata data) external; /*** Collateral Setter ***/ event NewSafetyMargin(uint newSafetyMarginSqrt); event NewLiquidationIncentive(uint newLiquidationIncentive); function SAFETY_MARGIN_SQRT_MIN() external pure returns (uint); function SAFETY_MARGIN_SQRT_MAX() external pure returns (uint); function LIQUIDATION_INCENTIVE_MIN() external pure returns (uint); function LIQUIDATION_INCENTIVE_MAX() external pure returns (uint); function _initialize ( string calldata _name, string calldata _symbol, address _underlying, address _borrowable0, address _borrowable1 ) external; function _setSafetyMarginSqrt(uint newSafetyMarginSqrt) external; function _setLiquidationIncentive(uint newLiquidationIncentive) external; }
pragma solidity >=0.5.0; interface IERC20 { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); }
pragma solidity >=0.5.0; interface IFactory { event LendingPoolInitialized(address indexed uniswapV2Pair, address indexed token0, address indexed token1, address collateral, address borrowable0, address borrowable1, uint lendingPoolId); event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin); event NewAdmin(address oldAdmin, address newAdmin); event NewReservesPendingAdmin(address oldReservesPendingAdmin, address newReservesPendingAdmin); event NewReservesAdmin(address oldReservesAdmin, address newReservesAdmin); event NewReservesManager(address oldReservesManager, address newReservesManager); function admin() external view returns (address); function pendingAdmin() external view returns (address); function reservesAdmin() external view returns (address); function reservesPendingAdmin() external view returns (address); function reservesManager() external view returns (address); function getLendingPool(address uniswapV2Pair) external view returns ( bool initialized, uint24 lendingPoolId, address collateral, address borrowable0, address borrowable1 ); function allLendingPools(uint) external view returns (address uniswapV2Pair); function allLendingPoolsLength() external view returns (uint); function bDeployer() external view returns (address); function cDeployer() external view returns (address); function uniswapV2Factory() external view returns (address); function simpleUniswapOracle() external view returns (address); function createCollateral(address uniswapV2Pair) external returns (address collateral); function createBorrowable0(address uniswapV2Pair) external returns (address borrowable0); function createBorrowable1(address uniswapV2Pair) external returns (address borrowable1); function initializeLendingPool(address uniswapV2Pair) external; function _setPendingAdmin(address newPendingAdmin) external; function _acceptAdmin() external; function _setReservesPendingAdmin(address newPendingAdmin) external; function _acceptReservesAdmin() external; function _setReservesManager(address newReservesManager) external; }
pragma solidity >=0.5.0; interface IImpermaxCallee { function impermaxBorrow(address sender, address borrower, uint borrowAmount, bytes calldata data) external; function impermaxRedeem(address sender, uint redeemAmount, bytes calldata data) external; }
pragma solidity >=0.5.0; interface IPoolToken { /*** Impermax ERC20 ***/ event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; /*** Pool Token ***/ event Mint(address indexed sender, address indexed minter, uint mintAmount, uint mintTokens); event Redeem(address indexed sender, address indexed redeemer, uint redeemAmount, uint redeemTokens); event Sync(uint totalBalance); function underlying() external view returns (address); function factory() external view returns (address); function totalBalance() external view returns (uint); function MINIMUM_LIQUIDITY() external pure returns (uint); function exchangeRate() external returns (uint); function mint(address minter) external returns (uint mintTokens); function redeem(address redeemer) external returns (uint redeemAmount); function skim(address to) external; function sync() external; function _setFactory() external; }
pragma solidity >=0.5.0; interface ISimpleUniswapOracle { event PriceUpdate(address indexed pair, uint256 priceCumulative, uint32 blockTimestamp, bool lastIsA); function MIN_T() external pure returns (uint32); function getBlockTimestamp() external view returns (uint32); function getPair(address uniswapV2Pair) external view returns ( uint256 priceCumulativeA, uint256 priceCumulativeB, uint32 updateA, uint32 updateB, bool lastIsA, bool initialized ); function initialize(address uniswapV2Pair) external; function getResult(address uniswapV2Pair) external returns (uint224 price, uint32 T); }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); }
pragma solidity =0.5.16; // a library for performing various math operations // forked from: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/libraries/Math.sol library Math { function min(uint x, uint y) internal pure returns (uint z) { z = x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint y) internal pure returns (uint z) { if (y > 3) { z = y; uint x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } }
pragma solidity =0.5.16; // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol // Subject to the MIT license. /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the addition of two unsigned integers, reverting with custom message on overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, errorMessage); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on underflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot underflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction underflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot underflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, errorMessage); return c; } /** * @dev Returns the integer division of two unsigned integers. * Reverts on division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. * Reverts with custom message on division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
pragma solidity =0.5.16; // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) // src: https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/libraries/UQ112x112.sol // range: [0, 2**112 - 1] // resolution: 1 / 2**112 library UQ112x112 { uint224 constant Q112 = 2**112; // encode a uint112 as a UQ112x112 function encode(uint112 y) internal pure returns (uint224 z) { z = uint224(y) * Q112; // never overflows } // divide a UQ112x112 by a uint112, returning a UQ112x112 function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) { z = x / uint224(y); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintTokens","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newLiquidationIncentive","type":"uint256"}],"name":"NewLiquidationIncentive","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newSafetyMarginSqrt","type":"uint256"}],"name":"NewSafetyMargin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"redeemAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalBalance","type":"uint256"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LIQUIDATION_INCENTIVE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LIQUIDATION_INCENTIVE_MIN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_LIQUIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"SAFETY_MARGIN_SQRT_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"SAFETY_MARGIN_SQRT_MIN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_underlying","type":"address"},{"internalType":"address","name":"_borrowable0","type":"address"},{"internalType":"address","name":"_borrowable1","type":"address"}],"name":"_initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"_setFactory","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newLiquidationIncentive","type":"uint256"}],"name":"_setLiquidationIncentive","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newSafetyMarginSqrt","type":"uint256"}],"name":"_setSafetyMarginSqrt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"}],"name":"accountLiquidity","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"shortfall","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"accountLiquidityAmounts","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"shortfall","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowable0","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowable1","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"address","name":"borrowable","type":"address"},{"internalType":"uint256","name":"accountBorrows","type":"uint256"}],"name":"canBorrow","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exchangeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"redeemer","type":"address"},{"internalType":"uint256","name":"redeemAmount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashRedeem","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getPrices","outputs":[{"internalType":"uint256","name":"price0","type":"uint256"},{"internalType":"uint256","name":"price1","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"liquidationIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"mintTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"redeemer","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"redeemAmount","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"safetyMarginSqrt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"liquidator","type":"address"},{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"seize","outputs":[{"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"simpleUniswapOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"sync","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"tokensUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526002805460ff19908116601217909155600b805490911660011790556715f155637eba0c00600e55670e6ed27d66680000600f5534801561004457600080fd5b50613bb2806100546000396000f3fe608060405234801561001057600080fd5b50600436106102de5760003560e01c80637ecebe0011610186578063bb6ff386116100e3578063c548e3c511610097578063daf8881811610071578063daf8881814610971578063dd62ed3e14610979578063fff6cae9146109b4576102de565b8063c548e3c514610821578063d490e7e01461090b578063d505accf14610913576102de565b8063bc9bd12a116100c8578063bc9bd12a146103ad578063bd9a548b14610811578063c45a015514610819576102de565b8063bb6ff386146107c1578063bc25cf77146107de576102de565b8063a9059cbb1161013a578063afc8276c1161011f578063afc8276c1461076e578063b2a02ff114610776578063ba9a7a56146107b9576102de565b8063a9059cbb1461072d578063ad7a672f14610766576102de565b806395a2251f1161016b57806395a2251f146106af57806395d89b41146106e25780639aac2c53146106ea576102de565b80637ecebe00146106745780638c765e94146106a7576102de565b80633644e5151161023f5780636a627842116101f35780636f307dc3116101cd5780636f307dc31461063157806370a08231146106395780637c6674b51461066c576102de565b80636a627842146105865780636e01be10146105b95780636f13cb83146105f2576102de565b80634a5d316c116102245780634a5d316c146105155780634fd42e171461051d5780635a0f03c61461053a576102de565b80633644e515146105055780633ba0b9a91461050d576102de565b806323b872dd1161029657806330adf81f1161027b57806330adf81f146104d7578063313ce567146104df578063356c571f146104fd576102de565b806323b872dd146104635780632fa5ae1b146104a6576102de565b80630fb60fef116102c75780630fb60fef146103ad57806318160ddd146103c757806319f3400d146103cf576102de565b806306fdde03146102e3578063095ea7b314610360575b600080fd5b6102eb6109bc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032557818101518382015260200161030d565b50505050905090810190601f1680156103525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103996004803603604081101561037657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a68565b604080519115158252519081900360200190f35b6103b5610a7f565b60408051918252519081900360200190f35b6103b5610a8b565b610461600480360360608110156103e557600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359181019060608101604082013564010000000081111561042257600080fd5b82018360208201111561043457600080fd5b8035906020019184600183028401116401000000008311171561045657600080fd5b509092509050610a91565b005b6103996004803603606081101561047957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610db7565b6104ae610ecb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103b5610eec565b6104e7610f10565b6040805160ff9092168252519081900360200190f35b6103b5610f19565b6103b5610f1f565b6103b5610f25565b610461610f75565b6104616004803603602081101561053357600080fd5b5035611026565b61056d6004803603602081101561055057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611140565b6040805192835260208301919091528051918290030190f35b6103b56004803603602081101561059c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611177565b610399600480360360408110156105cf57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611425565b61056d6004803603606081101561060857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135611618565b6104ae61181b565b6103b56004803603602081101561064f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611837565b6104ae611849565b6103b56004803603602081101561068a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611865565b6103b5611877565b6103b5600480360360208110156106c557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661187d565b6102eb611aa1565b6103996004803603606081101561070057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611b19565b6103996004803603604081101561074357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611cb3565b6103b5611cc0565b6103b5611cc6565b6103b56004803603606081101561078c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611cd2565b6103b5611fb9565b610461600480360360208110156107d757600080fd5b5035611fbf565b610461600480360360208110156107f457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166120d9565b61056d61225c565b6104ae612637565b610461600480360360a081101561083757600080fd5b81019060208101813564010000000081111561085257600080fd5b82018360208201111561086457600080fd5b8035906020019184600183028401116401000000008311171561088657600080fd5b9193909290916020810190356401000000008111156108a457600080fd5b8201836020820111156108b657600080fd5b803590602001918460018302840111640100000000831117156108d857600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160409091013516612653565b6103b561289f565b610461600480360360e081101561092957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356128ab565b6104ae6128ef565b6103b56004803603604081101561098f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661290b565b610461612928565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f81018490048402820184019092528181529291830182828015610a605780601f10610a3557610100808354040283529160200191610a60565b820191906000526020600020905b815481529060010190602001808311610a4357829003601f168201915b505050505081565b6000610a753384846129f6565b5060015b92915050565b670de0b6b3a764000081565b60035481565b600b5460ff16610b0257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54831115610b9b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e53554646494349454e545f434153480000000000604482015290519081900360640190fd5b610ba58484612a65565b8015610c71576040517facb86cbb0000000000000000000000000000000000000000000000000000000081523360048201818152602483018690526060604484019081526064840185905273ffffffffffffffffffffffffffffffffffffffff88169363acb86cbb93928892889288929190608401848480828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015610c5857600080fd5b505af1158015610c6c573d6000803e3d6000fd5b505050505b3060009081526004602052604081205490610cc26001610cb6610c92610f25565b610caa89670de0b6b3a764000063ffffffff612c7116565b9063ffffffff612ceb16565b9063ffffffff612d2d16565b905080821015610d1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613ac66024913960400191505060405180910390fd5b610d273083612da1565b6040805186815260208101849052815173ffffffffffffffffffffffffffffffffffffffff89169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a35050610d86612e65565b5050600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610eb657604080518082018252601e81527f496d7065726d61783a205452414e534645525f4e4f545f414c4c4f574544000060208083019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600582528381203382529091529190912054610e8491849063ffffffff612f3b16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610ec1848484612fec565b5060019392505050565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b600e5481565b60065481565b600354600a5460009190811580610f3a575080155b15610f5157670de0b6b3a764000092505050610f72565b610f6d82610caa83670de0b6b3a764000063ffffffff612c7116565b925050505b90565b60095473ffffffffffffffffffffffffffffffffffffffff1615610ffa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496d7065726d61783a20464143544f52595f414c52454144595f534554000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055565b600b5460ff1661109757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556110da81670de0b6b3a7640000670e92596fd6290000613071565b600f8190556040805182815290517f8a9bb9067f9ecb13a322b548e6df3dd1bd10a54698834dac43ed8f0e765bf94d9181900360200190a150600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008061116e837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80611618565b91509150915091565b600b5460009060ff166111eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561128457600080fd5b505afa158015611298573d6000803e3d6000fd5b505050506040513d60208110156112ae57600080fd5b5051600a549091506000906112ca90839063ffffffff61315716565b90506112ef6112d7610f25565b610caa83670de0b6b3a764000063ffffffff612c7116565b92506003546000141561131d5761130e836103e863ffffffff61315716565b925061131d60006103e8613199565b6000831161138c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f496d7065726d61783a204d494e545f414d4f554e545f5a45524f000000000000604482015290519081900360640190fd5b6113968484613199565b6040805182815260208101859052815173ffffffffffffffffffffffffffffffffffffffff87169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a350506113f5612e65565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055919050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120548083111561145d576000915050610a79565b8281036000611486670de0b6b3a7640000610caa611479610f25565b859063ffffffff612c7116565b90506000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634d73e9ba886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561152957600080fd5b505afa15801561153d573d6000803e3d6000fd5b505050506040513d602081101561155357600080fd5b5051600c54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015291519394506000939190921691634d73e9ba916024808301926020929190829003018186803b1580156115ce57600080fd5b505afa1580156115e2573d6000803e3d6000fd5b505050506040513d60208110156115f857600080fd5b50519050600061160984848461324a565b159a9950505050505050505050565b6000807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8414156116eb57600b54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152915161010090930490911691634d73e9ba91602480820192602092909190829003018186803b1580156116bc57600080fd5b505afa1580156116d0573d6000803e3d6000fd5b505050506040513d60208110156116e657600080fd5b505193505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8314156117b557600c54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015291519190921691634d73e9ba916024808301926020929190829003018186803b15801561178657600080fd5b505afa15801561179a573d6000803e3d6000fd5b505050506040513d60208110156117b057600080fd5b505192505b6000611800670de0b6b3a7640000610caa6117ce610f25565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600460205260409020549063ffffffff612c7116565b905061180d81868661324a565b92509250505b935093915050565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b60076020526000908152604090205481565b600f5481565b600b5460009060ff166118f157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690553060009081526004602052604090205461194d670de0b6b3a7640000610caa611940610f25565b849063ffffffff612c7116565b9150600082116119be57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496d7065726d61783a2052454445454d5f414d4f554e545f5a45524f00000000604482015290519081900360640190fd5b600a54821115611a2f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e53554646494349454e545f434153480000000000604482015290519081900360640190fd5b611a393082612da1565b611a438383612a65565b6040805183815260208101839052815173ffffffffffffffffffffffffffffffffffffffff86169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a3506113f5612e65565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f81018490048402820184019092528181529291830182828015610a605780601f10610a3557610100808354040283529160200191610a60565b600b54600c5460009173ffffffffffffffffffffffffffffffffffffffff6101009091048116918116908516821480611b7d57508073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b611be857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496d7065726d61783a20494e56414c49445f424f52524f5741424c4500000000604482015290519081900360640190fd5b60008273ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614611c43577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611c45565b845b905060008273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614611ca2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611ca4565b855b90506000611609898484611618565b6000610a75338484612fec565b600a5481565b670e92596fd629000081565b600b54600090610100900473ffffffffffffffffffffffffffffffffffffffff16331480611d175750600c5473ffffffffffffffffffffffffffffffffffffffff1633145b611d8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b6000611d8d84611140565b91505060008111611dff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f496d7065726d61783a20494e53554646494349454e545f53484f525446414c4c604482015290519081900360640190fd5b600b54600090610100900473ffffffffffffffffffffffffffffffffffffffff16331415611e3757611e2f61225c565b509050611e43565b611e3f61225c565b9150505b611e7f611e4e610f25565b610caa83611e73670de0b6b3a7640000610caa600f548b612c7190919063ffffffff16565b9063ffffffff612c7116565b9250611f0a836040518060400160405280601e81526020017f496d7065726d61783a204c49515549444154494e475f544f4f5f4d5543480000815250600460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f3b9092919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600460205260408082209390935590881681522054611f4c908463ffffffff612d2d16565b73ffffffffffffffffffffffffffffffffffffffff80881660008181526004602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350509392505050565b6103e881565b600b5460ff1661203057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905561207381670de0b6b3a76400006715f15565d2c5f000613071565b600e8190556040805182815290517fdff9a61839be6f6ce5ea77311cc351786a39a9f337c507ff35e7b358fd39c0439181900360200190a150600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b5460ff1661214a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161222e93859361222993919273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b1580156121f157600080fd5b505afa158015612205573d6000803e3d6000fd5b505050506040513d602081101561221b57600080fd5b50519063ffffffff61315716565b612a65565b50600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600d54600854604080517f446a37e000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015281516000948594859491169263446a37e0926024808301939282900301818787803b1580156122d457600080fd5b505af11580156122e8573d6000803e3d6000fd5b505050506040513d60408110156122fe57600080fd5b5051600854604080517f0902f1ac0000000000000000000000000000000000000000000000000000000081529051929350600092839273ffffffffffffffffffffffffffffffffffffffff1691630902f1ac916004808301926060929190829003018186803b15801561237057600080fd5b505afa158015612384573d6000803e3d6000fd5b505050506040513d606081101561239a57600080fd5b508051602091820151600854604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905193965091945060009373ffffffffffffffffffffffffffffffffffffffff909116926318160ddd926004808201939291829003018186803b15801561241357600080fd5b505afa158015612427573d6000803e3d6000fd5b505050506040513d602081101561243d57600080fd5b50519050600061247a846124508561333e565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff61336216565b905060006124b97bffffffffffffffffffffffffffffffffffffffffffffffffffffffff80841690610caa90891664010000000063ffffffff612c7116565b905060006124da6124d58364010000000063ffffffff612c7116565b6133a3565b9050600061250d6dffffffffffffffffffffffffffff6002890216610caa87670de0b6b3a764000063ffffffff612c7116565b905060006125406dffffffffffffffffffffffffffff6002890216610caa88670de0b6b3a764000063ffffffff612c7116565b905061255b640100000000610caa848663ffffffff612c7116565b9a5061257683610caa8364010000000063ffffffff612c7116565b995060648b116125d1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613aea6021913960400191505060405180910390fd5b60648a1161262a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613aea6021913960400191505060405180910390fd5b5050505050505050509091565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b60095473ffffffffffffffffffffffffffffffffffffffff1633146126d957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b61274c87878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b0181900481028201810190925289815292508991508890819084018382808284376000920191909152506133f592505050565b600880547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff86811691909117909255600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010086851602179055600c8054909116838316179055600954604080517f7c6674b500000000000000000000000000000000000000000000000000000000815290519190921691637c6674b5916004808301926020929190829003018186803b15801561282657600080fd5b505afa15801561283a573d6000803e3d6000fd5b505050506040513d602081101561285057600080fd5b5051600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905550505050505050565b6715f15565d2c5f00081565b6128db878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96134d9565b6128e68787876129f6565b50505050505050565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b600560209081526000928352604080842090915290825290205481565b600b5460ff1661299957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556129c9612e65565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff86811660248301526044808301879052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009560609594169382918083835b60208310612b6b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612b2e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612bcd576040519150601f19603f3d011682016040523d82523d6000602084013e612bd2565b606091505b5091509150818015612c00575080511580612c005750808060200190516020811015612bfd57600080fd5b50515b612c6b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b600082612c8057506000610a79565b82820282848281612c8d57fe5b0414612ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613b5d6021913960400191505060405180910390fd5b9392505050565b6000612ce483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061377c565b600082820183811015612ce457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054612dd7908263ffffffff61315716565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040902055600354612e10908263ffffffff61315716565b60035560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015612ed657600080fd5b505afa158015612eea573d6000803e3d6000fd5b505050506040513d6020811015612f0057600080fd5b5051600a81905560408051918252517f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf49181900360200190a1565b60008184841115612fe4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612fa9578181015183820152602001612f91565b50505050905090810190601f168015612fd65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b612ff68382611425565b61306157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f496d7065726d61783a20494e53554646494349454e545f4c4951554944495459604482015290519081900360640190fd5b61306c8383836137fb565b505050565b613079613914565b818310156130e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a20494e56414c49445f53455454494e4700000000000000604482015290519081900360640190fd5b8083111561306c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a20494e56414c49445f53455454494e4700000000000000604482015290519081900360640190fd5b6000612ce483836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612f3b565b6003546131ac908263ffffffff612d2d16565b60035573ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260409020546131e5908263ffffffff612d2d16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600e546000908190818061325c61225c565b9092509050600061327f670de0b6b3a7640000610caa8a8663ffffffff612c7116565b9050600061329f670de0b6b3a7640000610caa8a8663ffffffff612c7116565b9050808210156132ab57905b6132c7670de0b6b3a7640000610caa848863ffffffff612c7116565b91506132e585610caa83670de0b6b3a764000063ffffffff612c7116565b9050600061330e670de0b6b3a7640000610caa600f54611e738688612d2d90919063ffffffff16565b9050808b1061332a578a03965060009550611813945050505050565b600097508a90039550611813945050505050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff84168161339b57fe5b049392505050565b600060038211156133e6575080600160028204015b818110156133e0578091506002818285816133cf57fe5b0401816133d857fe5b0490506133b8565b506133f0565b81156133f0575060015b919050565b8151613408906000906020850190613a2d565b50805161341c906001906020840190613a2d565b506040514690806052613b0b82396040805191829003605201822086516020978801208383018352600184527f310000000000000000000000000000000000000000000000000000000000000093880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b4285101561354857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2045585049524544000000000000000000000000000000604482015290519081900360640190fd5b60065473ffffffffffffffffffffffffffffffffffffffff808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa15801561368a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061370557508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61377057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b50505050505050505050565b600081836137e5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315612fa9578181015183820152602001612f91565b5060008385816137f157fe5b0495945050505050565b604080518082018252601b81527f496d7065726d61783a205452414e534645525f544f4f5f48494748000000000060208083019190915273ffffffffffffffffffffffffffffffffffffffff861660009081526004909152919091205461386991839063ffffffff612f3b16565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602052604080822093909355908416815220546138ab908263ffffffff612d2d16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b15801561397c57600080fd5b505afa158015613990573d6000803e3d6000fd5b505050506040513d60208110156139a657600080fd5b505173ffffffffffffffffffffffffffffffffffffffff163314613a2b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613a6e57805160ff1916838001178555613a9b565b82800160010185558215613a9b579182015b82811115613a9b578251825591602001919060010190613a80565b50613aa7929150613aab565b5090565b610f7291905b80821115613aa75760008155600101613ab156fe496d7065726d61783a20494e53554646494349454e545f52454445454d5f544f4b454e53496d7065726d61783a2050524943455f43414c43554c4154494f4e5f4552524f52454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72315820924b31b8ae4eaf7fcf65d8d260420e2ea80db1aa56292003758c667e9b0aa01d64736f6c63430005100032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102de5760003560e01c80637ecebe0011610186578063bb6ff386116100e3578063c548e3c511610097578063daf8881811610071578063daf8881814610971578063dd62ed3e14610979578063fff6cae9146109b4576102de565b8063c548e3c514610821578063d490e7e01461090b578063d505accf14610913576102de565b8063bc9bd12a116100c8578063bc9bd12a146103ad578063bd9a548b14610811578063c45a015514610819576102de565b8063bb6ff386146107c1578063bc25cf77146107de576102de565b8063a9059cbb1161013a578063afc8276c1161011f578063afc8276c1461076e578063b2a02ff114610776578063ba9a7a56146107b9576102de565b8063a9059cbb1461072d578063ad7a672f14610766576102de565b806395a2251f1161016b57806395a2251f146106af57806395d89b41146106e25780639aac2c53146106ea576102de565b80637ecebe00146106745780638c765e94146106a7576102de565b80633644e5151161023f5780636a627842116101f35780636f307dc3116101cd5780636f307dc31461063157806370a08231146106395780637c6674b51461066c576102de565b80636a627842146105865780636e01be10146105b95780636f13cb83146105f2576102de565b80634a5d316c116102245780634a5d316c146105155780634fd42e171461051d5780635a0f03c61461053a576102de565b80633644e515146105055780633ba0b9a91461050d576102de565b806323b872dd1161029657806330adf81f1161027b57806330adf81f146104d7578063313ce567146104df578063356c571f146104fd576102de565b806323b872dd146104635780632fa5ae1b146104a6576102de565b80630fb60fef116102c75780630fb60fef146103ad57806318160ddd146103c757806319f3400d146103cf576102de565b806306fdde03146102e3578063095ea7b314610360575b600080fd5b6102eb6109bc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032557818101518382015260200161030d565b50505050905090810190601f1680156103525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103996004803603604081101561037657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a68565b604080519115158252519081900360200190f35b6103b5610a7f565b60408051918252519081900360200190f35b6103b5610a8b565b610461600480360360608110156103e557600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359181019060608101604082013564010000000081111561042257600080fd5b82018360208201111561043457600080fd5b8035906020019184600183028401116401000000008311171561045657600080fd5b509092509050610a91565b005b6103996004803603606081101561047957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610db7565b6104ae610ecb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103b5610eec565b6104e7610f10565b6040805160ff9092168252519081900360200190f35b6103b5610f19565b6103b5610f1f565b6103b5610f25565b610461610f75565b6104616004803603602081101561053357600080fd5b5035611026565b61056d6004803603602081101561055057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611140565b6040805192835260208301919091528051918290030190f35b6103b56004803603602081101561059c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611177565b610399600480360360408110156105cf57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611425565b61056d6004803603606081101561060857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135611618565b6104ae61181b565b6103b56004803603602081101561064f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611837565b6104ae611849565b6103b56004803603602081101561068a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611865565b6103b5611877565b6103b5600480360360208110156106c557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661187d565b6102eb611aa1565b6103996004803603606081101561070057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611b19565b6103996004803603604081101561074357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611cb3565b6103b5611cc0565b6103b5611cc6565b6103b56004803603606081101561078c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611cd2565b6103b5611fb9565b610461600480360360208110156107d757600080fd5b5035611fbf565b610461600480360360208110156107f457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166120d9565b61056d61225c565b6104ae612637565b610461600480360360a081101561083757600080fd5b81019060208101813564010000000081111561085257600080fd5b82018360208201111561086457600080fd5b8035906020019184600183028401116401000000008311171561088657600080fd5b9193909290916020810190356401000000008111156108a457600080fd5b8201836020820111156108b657600080fd5b803590602001918460018302840111640100000000831117156108d857600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160409091013516612653565b6103b561289f565b610461600480360360e081101561092957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c001356128ab565b6104ae6128ef565b6103b56004803603604081101561098f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661290b565b610461612928565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f81018490048402820184019092528181529291830182828015610a605780601f10610a3557610100808354040283529160200191610a60565b820191906000526020600020905b815481529060010190602001808311610a4357829003601f168201915b505050505081565b6000610a753384846129f6565b5060015b92915050565b670de0b6b3a764000081565b60035481565b600b5460ff16610b0257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54831115610b9b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e53554646494349454e545f434153480000000000604482015290519081900360640190fd5b610ba58484612a65565b8015610c71576040517facb86cbb0000000000000000000000000000000000000000000000000000000081523360048201818152602483018690526060604484019081526064840185905273ffffffffffffffffffffffffffffffffffffffff88169363acb86cbb93928892889288929190608401848480828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015610c5857600080fd5b505af1158015610c6c573d6000803e3d6000fd5b505050505b3060009081526004602052604081205490610cc26001610cb6610c92610f25565b610caa89670de0b6b3a764000063ffffffff612c7116565b9063ffffffff612ceb16565b9063ffffffff612d2d16565b905080821015610d1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613ac66024913960400191505060405180910390fd5b610d273083612da1565b6040805186815260208101849052815173ffffffffffffffffffffffffffffffffffffffff89169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a35050610d86612e65565b5050600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610eb657604080518082018252601e81527f496d7065726d61783a205452414e534645525f4e4f545f414c4c4f574544000060208083019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600582528381203382529091529190912054610e8491849063ffffffff612f3b16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610ec1848484612fec565b5060019392505050565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b600e5481565b60065481565b600354600a5460009190811580610f3a575080155b15610f5157670de0b6b3a764000092505050610f72565b610f6d82610caa83670de0b6b3a764000063ffffffff612c7116565b925050505b90565b60095473ffffffffffffffffffffffffffffffffffffffff1615610ffa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496d7065726d61783a20464143544f52595f414c52454144595f534554000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055565b600b5460ff1661109757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556110da81670de0b6b3a7640000670e92596fd6290000613071565b600f8190556040805182815290517f8a9bb9067f9ecb13a322b548e6df3dd1bd10a54698834dac43ed8f0e765bf94d9181900360200190a150600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008061116e837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80611618565b91509150915091565b600b5460009060ff166111eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561128457600080fd5b505afa158015611298573d6000803e3d6000fd5b505050506040513d60208110156112ae57600080fd5b5051600a549091506000906112ca90839063ffffffff61315716565b90506112ef6112d7610f25565b610caa83670de0b6b3a764000063ffffffff612c7116565b92506003546000141561131d5761130e836103e863ffffffff61315716565b925061131d60006103e8613199565b6000831161138c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f496d7065726d61783a204d494e545f414d4f554e545f5a45524f000000000000604482015290519081900360640190fd5b6113968484613199565b6040805182815260208101859052815173ffffffffffffffffffffffffffffffffffffffff87169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a350506113f5612e65565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055919050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120548083111561145d576000915050610a79565b8281036000611486670de0b6b3a7640000610caa611479610f25565b859063ffffffff612c7116565b90506000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634d73e9ba886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561152957600080fd5b505afa15801561153d573d6000803e3d6000fd5b505050506040513d602081101561155357600080fd5b5051600c54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015291519394506000939190921691634d73e9ba916024808301926020929190829003018186803b1580156115ce57600080fd5b505afa1580156115e2573d6000803e3d6000fd5b505050506040513d60208110156115f857600080fd5b50519050600061160984848461324a565b159a9950505050505050505050565b6000807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8414156116eb57600b54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152915161010090930490911691634d73e9ba91602480820192602092909190829003018186803b1580156116bc57600080fd5b505afa1580156116d0573d6000803e3d6000fd5b505050506040513d60208110156116e657600080fd5b505193505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8314156117b557600c54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015291519190921691634d73e9ba916024808301926020929190829003018186803b15801561178657600080fd5b505afa15801561179a573d6000803e3d6000fd5b505050506040513d60208110156117b057600080fd5b505192505b6000611800670de0b6b3a7640000610caa6117ce610f25565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600460205260409020549063ffffffff612c7116565b905061180d81868661324a565b92509250505b935093915050565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b60076020526000908152604090205481565b600f5481565b600b5460009060ff166118f157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690553060009081526004602052604090205461194d670de0b6b3a7640000610caa611940610f25565b849063ffffffff612c7116565b9150600082116119be57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496d7065726d61783a2052454445454d5f414d4f554e545f5a45524f00000000604482015290519081900360640190fd5b600a54821115611a2f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e53554646494349454e545f434153480000000000604482015290519081900360640190fd5b611a393082612da1565b611a438383612a65565b6040805183815260208101839052815173ffffffffffffffffffffffffffffffffffffffff86169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a3506113f5612e65565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f81018490048402820184019092528181529291830182828015610a605780601f10610a3557610100808354040283529160200191610a60565b600b54600c5460009173ffffffffffffffffffffffffffffffffffffffff6101009091048116918116908516821480611b7d57508073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b611be857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496d7065726d61783a20494e56414c49445f424f52524f5741424c4500000000604482015290519081900360640190fd5b60008273ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614611c43577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611c45565b845b905060008273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614611ca2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611ca4565b855b90506000611609898484611618565b6000610a75338484612fec565b600a5481565b670e92596fd629000081565b600b54600090610100900473ffffffffffffffffffffffffffffffffffffffff16331480611d175750600c5473ffffffffffffffffffffffffffffffffffffffff1633145b611d8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b6000611d8d84611140565b91505060008111611dff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f496d7065726d61783a20494e53554646494349454e545f53484f525446414c4c604482015290519081900360640190fd5b600b54600090610100900473ffffffffffffffffffffffffffffffffffffffff16331415611e3757611e2f61225c565b509050611e43565b611e3f61225c565b9150505b611e7f611e4e610f25565b610caa83611e73670de0b6b3a7640000610caa600f548b612c7190919063ffffffff16565b9063ffffffff612c7116565b9250611f0a836040518060400160405280601e81526020017f496d7065726d61783a204c49515549444154494e475f544f4f5f4d5543480000815250600460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f3b9092919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600460205260408082209390935590881681522054611f4c908463ffffffff612d2d16565b73ffffffffffffffffffffffffffffffffffffffff80881660008181526004602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350509392505050565b6103e881565b600b5460ff1661203057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905561207381670de0b6b3a76400006715f15565d2c5f000613071565b600e8190556040805182815290517fdff9a61839be6f6ce5ea77311cc351786a39a9f337c507ff35e7b358fd39c0439181900360200190a150600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b5460ff1661214a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161222e93859361222993919273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b1580156121f157600080fd5b505afa158015612205573d6000803e3d6000fd5b505050506040513d602081101561221b57600080fd5b50519063ffffffff61315716565b612a65565b50600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600d54600854604080517f446a37e000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015281516000948594859491169263446a37e0926024808301939282900301818787803b1580156122d457600080fd5b505af11580156122e8573d6000803e3d6000fd5b505050506040513d60408110156122fe57600080fd5b5051600854604080517f0902f1ac0000000000000000000000000000000000000000000000000000000081529051929350600092839273ffffffffffffffffffffffffffffffffffffffff1691630902f1ac916004808301926060929190829003018186803b15801561237057600080fd5b505afa158015612384573d6000803e3d6000fd5b505050506040513d606081101561239a57600080fd5b508051602091820151600854604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905193965091945060009373ffffffffffffffffffffffffffffffffffffffff909116926318160ddd926004808201939291829003018186803b15801561241357600080fd5b505afa158015612427573d6000803e3d6000fd5b505050506040513d602081101561243d57600080fd5b50519050600061247a846124508561333e565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff61336216565b905060006124b97bffffffffffffffffffffffffffffffffffffffffffffffffffffffff80841690610caa90891664010000000063ffffffff612c7116565b905060006124da6124d58364010000000063ffffffff612c7116565b6133a3565b9050600061250d6dffffffffffffffffffffffffffff6002890216610caa87670de0b6b3a764000063ffffffff612c7116565b905060006125406dffffffffffffffffffffffffffff6002890216610caa88670de0b6b3a764000063ffffffff612c7116565b905061255b640100000000610caa848663ffffffff612c7116565b9a5061257683610caa8364010000000063ffffffff612c7116565b995060648b116125d1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613aea6021913960400191505060405180910390fd5b60648a1161262a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613aea6021913960400191505060405180910390fd5b5050505050505050509091565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b60095473ffffffffffffffffffffffffffffffffffffffff1633146126d957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b61274c87878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b0181900481028201810190925289815292508991508890819084018382808284376000920191909152506133f592505050565b600880547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff86811691909117909255600b80547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010086851602179055600c8054909116838316179055600954604080517f7c6674b500000000000000000000000000000000000000000000000000000000815290519190921691637c6674b5916004808301926020929190829003018186803b15801561282657600080fd5b505afa15801561283a573d6000803e3d6000fd5b505050506040513d602081101561285057600080fd5b5051600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff90921691909117905550505050505050565b6715f15565d2c5f00081565b6128db878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96134d9565b6128e68787876129f6565b50505050505050565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b600560209081526000928352604080842090915290825290205481565b600b5460ff1661299957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556129c9612e65565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff86811660248301526044808301879052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009560609594169382918083835b60208310612b6b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612b2e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612bcd576040519150601f19603f3d011682016040523d82523d6000602084013e612bd2565b606091505b5091509150818015612c00575080511580612c005750808060200190516020811015612bfd57600080fd5b50515b612c6b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b600082612c8057506000610a79565b82820282848281612c8d57fe5b0414612ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613b5d6021913960400191505060405180910390fd5b9392505050565b6000612ce483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061377c565b600082820183811015612ce457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054612dd7908263ffffffff61315716565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040902055600354612e10908263ffffffff61315716565b60035560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015612ed657600080fd5b505afa158015612eea573d6000803e3d6000fd5b505050506040513d6020811015612f0057600080fd5b5051600a81905560408051918252517f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf49181900360200190a1565b60008184841115612fe4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612fa9578181015183820152602001612f91565b50505050905090810190601f168015612fd65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b612ff68382611425565b61306157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f496d7065726d61783a20494e53554646494349454e545f4c4951554944495459604482015290519081900360640190fd5b61306c8383836137fb565b505050565b613079613914565b818310156130e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a20494e56414c49445f53455454494e4700000000000000604482015290519081900360640190fd5b8083111561306c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a20494e56414c49445f53455454494e4700000000000000604482015290519081900360640190fd5b6000612ce483836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612f3b565b6003546131ac908263ffffffff612d2d16565b60035573ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260409020546131e5908263ffffffff612d2d16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600e546000908190818061325c61225c565b9092509050600061327f670de0b6b3a7640000610caa8a8663ffffffff612c7116565b9050600061329f670de0b6b3a7640000610caa8a8663ffffffff612c7116565b9050808210156132ab57905b6132c7670de0b6b3a7640000610caa848863ffffffff612c7116565b91506132e585610caa83670de0b6b3a764000063ffffffff612c7116565b9050600061330e670de0b6b3a7640000610caa600f54611e738688612d2d90919063ffffffff16565b9050808b1061332a578a03965060009550611813945050505050565b600097508a90039550611813945050505050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff84168161339b57fe5b049392505050565b600060038211156133e6575080600160028204015b818110156133e0578091506002818285816133cf57fe5b0401816133d857fe5b0490506133b8565b506133f0565b81156133f0575060015b919050565b8151613408906000906020850190613a2d565b50805161341c906001906020840190613a2d565b506040514690806052613b0b82396040805191829003605201822086516020978801208383018352600184527f310000000000000000000000000000000000000000000000000000000000000093880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b4285101561354857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2045585049524544000000000000000000000000000000604482015290519081900360640190fd5b60065473ffffffffffffffffffffffffffffffffffffffff808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa15801561368a573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061370557508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61377057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b50505050505050505050565b600081836137e5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315612fa9578181015183820152602001612f91565b5060008385816137f157fe5b0495945050505050565b604080518082018252601b81527f496d7065726d61783a205452414e534645525f544f4f5f48494748000000000060208083019190915273ffffffffffffffffffffffffffffffffffffffff861660009081526004909152919091205461386991839063ffffffff612f3b16565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602052604080822093909355908416815220546138ab908263ffffffff612d2d16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b15801561397c57600080fd5b505afa158015613990573d6000803e3d6000fd5b505050506040513d60208110156139a657600080fd5b505173ffffffffffffffffffffffffffffffffffffffff163314613a2b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613a6e57805160ff1916838001178555613a9b565b82800160010185558215613a9b579182015b82811115613a9b578251825591602001919060010190613a80565b50613aa7929150613aab565b5090565b610f7291905b80821115613aa75760008155600101613ab156fe496d7065726d61783a20494e53554646494349454e545f52454445454d5f544f4b454e53496d7065726d61783a2050524943455f43414c43554c4154494f4e5f4552524f52454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72315820924b31b8ae4eaf7fcf65d8d260420e2ea80db1aa56292003758c667e9b0aa01d64736f6c63430005100032
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $1,389,226,544.17 | 0.00000005678 | $78.88 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.