More Info
Private Name Tags
ContractCreator
TokenTracker
Sponsored
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 74718435 | 253 days ago | IN | 0 FTM | 0.00255515 | ||||
Transfer | 67242889 | 409 days ago | IN | 0 FTM | 0.0071495 | ||||
Transfer | 67242882 | 409 days ago | IN | 0 FTM | 0.00715016 | ||||
Transfer | 67242877 | 409 days ago | IN | 0 FTM | 0.00701951 | ||||
Approve | 33393697 | 934 days ago | IN | 0 FTM | 0.01243886 | ||||
Approve | 33192979 | 936 days ago | IN | 0 FTM | 0.00925815 | ||||
_set Safety Marg... | 32064387 | 949 days ago | IN | 0 FTM | 0.03514237 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
32038578 | 949 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xAe94b286...275e80745 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Collateral
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at ftmscan.com on 2022-02-26 */ // File: contracts\libraries\SafeMath.sol 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; } } // File: contracts\ImpermaxERC20.sol pragma solidity =0.5.16; // 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); } } // File: contracts\interfaces\IERC20.sol 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); } // File: contracts\interfaces\IPoolToken.sol 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; } // File: contracts\PoolToken.sol pragma solidity =0.5.16; 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(); } } // File: contracts\CStorage.sol pragma solidity =0.5.16; contract CStorage { address public borrowable0; address public borrowable1; uint public safetyMarginSqrt = 1.58113883e18; //safetyMargin: 250% uint public liquidationIncentive = 1.04e18; //4% function safe112(uint n) internal pure returns (uint112) { require(n < 2**112, "Impermax: SAFE112"); return uint112(n); } } // File: contracts\interfaces\IFactory.sol 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 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; } // File: contracts\CSetter.sol pragma solidity =0.5.16; 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; } 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"); } } // File: contracts\interfaces\IBorrowable.sol 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; } // File: contracts\interfaces\ICollateral.sol 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 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; } // File: contracts\interfaces\IImpermaxCallee.sol 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; } // File: contracts\interfaces\IUniswapV2Pair.sol 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 observationLength() external view returns (uint); function observations(uint) external view returns ( uint timestamp, uint reserve0Cumulative, uint reserve1Cumulative ); function currentCumulativePrices() external view returns ( uint reserve0Cumulative, uint reserve1Cumulative, uint timestamp ); } // File: contracts\libraries\UQ112x112.sol 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); } } // File: contracts\libraries\Math.sol 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; } } } // File: contracts\Collateral.sol pragma solidity =0.5.16; contract Collateral is ICollateral, PoolToken, CStorage, CSetter { using UQ112x112 for uint224; constructor() public {} /*** Collateralization Model ***/ function getTwapPrice112x112() public returns(uint224 twapPrice112x112) { uint length = IUniswapV2Pair(underlying).observationLength(); (uint lastTimestamp, uint lastReserve0Cumulative, uint lastReserve1Cumulative) = IUniswapV2Pair(underlying).observations(length-2); (uint reserve0Cumulative, uint reserve1Cumulative, uint timestamp) = IUniswapV2Pair(underlying).currentCumulativePrices(); uint timeElapsed = timestamp - lastTimestamp; uint112 twapReserve0 = safe112((reserve0Cumulative - lastReserve0Cumulative) / timeElapsed); uint112 twapReserve1 = safe112((reserve1Cumulative - lastReserve1Cumulative) / timeElapsed); twapPrice112x112 = UQ112x112.encode(twapReserve1).uqdiv(twapReserve0); } function getPrices() public returns (uint price0, uint price1) { uint224 twapPrice112x112 = getTwapPrice112x112(); (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); } } // File: contracts\interfaces\ICDeployer.sol pragma solidity >=0.5.0; interface ICDeployer { function deployCollateral(address uniswapV2Pair) external returns (address collateral); } // File: contracts\CDeployer.sol pragma solidity =0.5.16; /* * This contract is used by the Factory to deploy Collateral(s) * The bytecode would be too long to fit in the Factory */ contract CDeployer is ICDeployer { constructor () public {} function deployCollateral(address uniswapV2Pair) external returns (address collateral) { bytes memory bytecode = type(Collateral).creationCode; bytes32 salt = keccak256(abi.encodePacked(msg.sender, uniswapV2Pair)); assembly { collateral := create2(0, add(bytecode, 32), mload(bytecode), salt) } } }
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":false,"inputs":[],"name":"getTwapPrice112x112","outputs":[{"internalType":"uint224","name":"twapPrice112x112","type":"uint224"}],"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":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"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102de5760003560e01c80638c765e9411610186578063bc25cf77116100e3578063d490e7e011610097578063dd62ed3e11610071578063dd62ed3e14610971578063e22e013c146109ac578063fff6cae9146109e5576102de565b8063d490e7e014610903578063d505accf1461090b578063daf8881814610969576102de565b8063bd9a548b116100c8578063bd9a548b14610809578063c45a015514610811578063c548e3c514610819576102de565b8063bc25cf77146107d6578063bc9bd12a146103ad576102de565b8063ad7a672f1161013a578063b2a02ff11161011f578063b2a02ff11461076e578063ba9a7a56146107b1578063bb6ff386146107b9576102de565b8063ad7a672f1461075e578063afc8276c14610766576102de565b806395d89b411161016b57806395d89b41146106da5780639aac2c53146106e2578063a9059cbb14610725576102de565b80638c765e941461069f57806395a2251f146106a7576102de565b80633644e5151161023f5780636a627842116101f35780636f307dc3116101cd5780636f307dc31461063157806370a08231146106395780637ecebe001461066c576102de565b80636a627842146105865780636e01be10146105b95780636f13cb83146105f2576102de565b80634a5d316c116102245780634a5d316c146105155780634fd42e171461051d5780635a0f03c61461053a576102de565b80633644e515146105055780633ba0b9a91461050d576102de565b806323b872dd1161029657806330adf81f1161027b57806330adf81f146104d7578063313ce567146104df578063356c571f146104fd576102de565b806323b872dd146104635780632fa5ae1b146104a6576102de565b80630fb60fef116102c75780630fb60fef146103ad57806318160ddd146103c757806319f3400d146103cf576102de565b806306fdde03146102e3578063095ea7b314610360575b600080fd5b6102eb6109ed565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032557818101518382015260200161030d565b50505050905090810190601f1680156103525780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103996004803603604081101561037657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a99565b604080519115158252519081900360200190f35b6103b5610ab0565b60408051918252519081900360200190f35b6103b5610abc565b610461600480360360608110156103e557600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235169160208101359181019060608101604082013564010000000081111561042257600080fd5b82018360208201111561043457600080fd5b8035906020019184600183028401116401000000008311171561045657600080fd5b509092509050610ac2565b005b6103996004803603606081101561047957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610de8565b6104ae610efc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103b5610f1d565b6104e7610f41565b6040805160ff9092168252519081900360200190f35b6103b5610f4a565b6103b5610f50565b6103b5610f56565b610461610fa6565b6104616004803603602081101561053357600080fd5b5035611057565b61056d6004803603602081101561055057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611171565b6040805192835260208301919091528051918290030190f35b6103b56004803603602081101561059c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111a8565b610399600480360360408110156105cf57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611456565b61056d6004803603606081101561060857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135611649565b6104ae61184c565b6103b56004803603602081101561064f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611868565b6103b56004803603602081101561068257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661187a565b6103b561188c565b6103b5600480360360208110156106bd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611892565b6102eb611ab6565b610399600480360360608110156106f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611b2e565b6103996004803603604081101561073b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611cc8565b6103b5611cd5565b6103b5611cdb565b6103b56004803603606081101561078457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611ce7565b6103b5611fce565b610461600480360360208110156107cf57600080fd5b5035611fd4565b610461600480360360208110156107ec57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166120ee565b61056d612271565b6104ae6125b2565b610461600480360360a081101561082f57600080fd5b81019060208101813564010000000081111561084a57600080fd5b82018360208201111561085c57600080fd5b8035906020019184600183028401116401000000008311171561087e57600080fd5b91939092909160208101903564010000000081111561089c57600080fd5b8201836020820111156108ae57600080fd5b803590602001918460018302840111640100000000831117156108d057600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81358116916020810135821691604090910135166125ce565b6103b5612754565b610461600480360360e081101561092157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135612760565b6104ae6127a4565b6103b56004803603604081101561098757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166127c0565b6109b46127dd565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610461612a47565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f81018490048402820184019092528181529291830182828015610a915780601f10610a6657610100808354040283529160200191610a91565b820191906000526020600020905b815481529060010190602001808311610a7457829003601f168201915b505050505081565b6000610aa6338484612b15565b5060015b92915050565b670de0b6b3a764000081565b60035481565b600b5460ff16610b3357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54831115610bcc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e53554646494349454e545f434153480000000000604482015290519081900360640190fd5b610bd68484612b84565b8015610ca2576040517facb86cbb0000000000000000000000000000000000000000000000000000000081523360048201818152602483018690526060604484019081526064840185905273ffffffffffffffffffffffffffffffffffffffff88169363acb86cbb93928892889288929190608401848480828437600081840152601f19601f82011690508083019250505095505050505050600060405180830381600087803b158015610c8957600080fd5b505af1158015610c9d573d6000803e3d6000fd5b505050505b3060009081526004602052604081205490610cf36001610ce7610cc3610f56565b610cdb89670de0b6b3a764000063ffffffff612d9016565b9063ffffffff612e0a16565b9063ffffffff612e4c16565b905080821015610d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613c5e6024913960400191505060405180910390fd5b610d583083612ec0565b6040805186815260208101849052815173ffffffffffffffffffffffffffffffffffffffff89169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a35050610db7612f84565b5050600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610ee757604080518082018252601e81527f496d7065726d61783a205452414e534645525f4e4f545f414c4c4f574544000060208083019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600582528381203382529091529190912054610eb591849063ffffffff61305a16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526005602090815260408083203384529091529020555b610ef284848461310b565b5060019392505050565b600b54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60025460ff1681565b600d5481565b60065481565b600354600a5460009190811580610f6b575080155b15610f8257670de0b6b3a764000092505050610fa3565b610f9e82610cdb83670de0b6b3a764000063ffffffff612d9016565b925050505b90565b60095473ffffffffffffffffffffffffffffffffffffffff161561102b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496d7065726d61783a20464143544f52595f414c52454144595f534554000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001633179055565b600b5460ff166110c857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905561110b81670de0b6b3a7640000670e92596fd6290000613190565b600e8190556040805182815290517f8a9bb9067f9ecb13a322b548e6df3dd1bd10a54698834dac43ed8f0e765bf94d9181900360200190a150600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008061119f837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80611649565b91509150915091565b600b5460009060ff1661121c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156112b557600080fd5b505afa1580156112c9573d6000803e3d6000fd5b505050506040513d60208110156112df57600080fd5b5051600a549091506000906112fb90839063ffffffff61327616565b9050611320611308610f56565b610cdb83670de0b6b3a764000063ffffffff612d9016565b92506003546000141561134e5761133f836103e863ffffffff61327616565b925061134e60006103e86132b8565b600083116113bd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f496d7065726d61783a204d494e545f414d4f554e545f5a45524f000000000000604482015290519081900360640190fd5b6113c784846132b8565b6040805182815260208101859052815173ffffffffffffffffffffffffffffffffffffffff87169233927f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee929081900390910190a35050611426612f84565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055919050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120548083111561148e576000915050610aaa565b82810360006114b7670de0b6b3a7640000610cdb6114aa610f56565b859063ffffffff612d9016565b90506000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634d73e9ba886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561155a57600080fd5b505afa15801561156e573d6000803e3d6000fd5b505050506040513d602081101561158457600080fd5b5051600c54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b8116600483015291519394506000939190921691634d73e9ba916024808301926020929190829003018186803b1580156115ff57600080fd5b505afa158015611613573d6000803e3d6000fd5b505050506040513d602081101561162957600080fd5b50519050600061163a848484613369565b159a9950505050505050505050565b6000807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84141561171c57600b54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152915161010090930490911691634d73e9ba91602480820192602092909190829003018186803b1580156116ed57600080fd5b505afa158015611701573d6000803e3d6000fd5b505050506040513d602081101561171757600080fd5b505193505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8314156117e657600c54604080517f4d73e9ba00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015291519190921691634d73e9ba916024808301926020929190829003018186803b1580156117b757600080fd5b505afa1580156117cb573d6000803e3d6000fd5b505050506040513d60208110156117e157600080fd5b505192505b6000611831670de0b6b3a7640000610cdb6117ff610f56565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152600460205260409020549063ffffffff612d9016565b905061183e818686613369565b92509250505b935093915050565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b60046020526000908152604090205481565b60076020526000908152604090205481565b600e5481565b600b5460009060ff1661190657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905530600090815260046020526040902054611962670de0b6b3a7640000610cdb611955610f56565b849063ffffffff612d9016565b9150600082116119d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496d7065726d61783a2052454445454d5f414d4f554e545f5a45524f00000000604482015290519081900360640190fd5b600a54821115611a4457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e53554646494349454e545f434153480000000000604482015290519081900360640190fd5b611a4e3082612ec0565b611a588383612b84565b6040805183815260208101839052815173ffffffffffffffffffffffffffffffffffffffff86169233927f3f693fff038bb8a046aa76d9516190ac7444f7d69cf952c4cbdc086fdef2d6fc929081900390910190a350611426612f84565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f81018490048402820184019092528181529291830182828015610a915780601f10610a6657610100808354040283529160200191610a91565b600b54600c5460009173ffffffffffffffffffffffffffffffffffffffff6101009091048116918116908516821480611b9257508073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b611bfd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496d7065726d61783a20494e56414c49445f424f52524f5741424c4500000000604482015290519081900360640190fd5b60008273ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614611c58577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611c5a565b845b905060008273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614611cb7577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611cb9565b855b9050600061163a898484611649565b6000610aa633848461310b565b600a5481565b670e92596fd629000081565b600b54600090610100900473ffffffffffffffffffffffffffffffffffffffff16331480611d2c5750600c5473ffffffffffffffffffffffffffffffffffffffff1633145b611d9757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b6000611da284611171565b91505060008111611e1457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f496d7065726d61783a20494e53554646494349454e545f53484f525446414c4c604482015290519081900360640190fd5b600b54600090610100900473ffffffffffffffffffffffffffffffffffffffff16331415611e4c57611e44612271565b509050611e58565b611e54612271565b9150505b611e94611e63610f56565b610cdb83611e88670de0b6b3a7640000610cdb600e548b612d9090919063ffffffff16565b9063ffffffff612d9016565b9250611f1f836040518060400160405280601e81526020017f496d7065726d61783a204c49515549444154494e475f544f4f5f4d5543480000815250600460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461305a9092919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600460205260408082209390935590881681522054611f61908463ffffffff612e4c16565b73ffffffffffffffffffffffffffffffffffffffff80881660008181526004602090815260409182902094909455805187815290519193928916927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350509392505050565b6103e881565b600b5460ff1661204557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905561208881670de0b6b3a76400006715f15565d2c5f000613190565b600d8190556040805182815290517fdff9a61839be6f6ce5ea77311cc351786a39a9f337c507ff35e7b358fd39c0439181900360200190a150600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b5460ff1661215f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600a54600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161224393859361223e93919273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561220657600080fd5b505afa15801561221a573d6000803e3d6000fd5b505050506040513d602081101561223057600080fd5b50519063ffffffff61327616565b612b84565b50600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600080600061227e6127dd565b9050600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156122eb57600080fd5b505afa1580156122ff573d6000803e3d6000fd5b505050506040513d606081101561231557600080fd5b508051602091820151600854604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905193965091945060009373ffffffffffffffffffffffffffffffffffffffff909116926318160ddd926004808201939291829003018186803b15801561238e57600080fd5b505afa1580156123a2573d6000803e3d6000fd5b505050506040513d60208110156123b857600080fd5b5051905060006123f5846123cb8561345d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff61348116565b905060006124347bffffffffffffffffffffffffffffffffffffffffffffffffffffffff80841690610cdb90891664010000000063ffffffff612d9016565b905060006124556124508364010000000063ffffffff612d9016565b6134c2565b905060006124886dffffffffffffffffffffffffffff6002890216610cdb87670de0b6b3a764000063ffffffff612d9016565b905060006124bb6dffffffffffffffffffffffffffff6002890216610cdb88670de0b6b3a764000063ffffffff612d9016565b90506124d6640100000000610cdb848663ffffffff612d9016565b9a506124f183610cdb8364010000000063ffffffff612d9016565b995060648b1161254c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613c826021913960400191505060405180910390fd5b60648a116125a5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613c826021913960400191505060405180910390fd5b5050505050505050509091565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b60095473ffffffffffffffffffffffffffffffffffffffff16331461265457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b6126c787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525061351492505050565b6008805473ffffffffffffffffffffffffffffffffffffffff9485167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155600b8054938516610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff90941693909317909255600c805491909316911617905550505050565b6715f15565d2c5f00081565b612790878787878787877f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c96135f8565b61279b878787612b15565b50505050505050565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b600560209081526000928352604080842090915290825290205481565b600080600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ebeb31db6040518163ffffffff1660e01b815260040160206040518083038186803b15801561284857600080fd5b505afa15801561285c573d6000803e3d6000fd5b505050506040513d602081101561287257600080fd5b5051600854604080517f252c09d70000000000000000000000000000000000000000000000000000000081527ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe8401600482015290519293506000928392839273ffffffffffffffffffffffffffffffffffffffff9091169163252c09d791602480820192606092909190829003018186803b15801561291157600080fd5b505afa158015612925573d6000803e3d6000fd5b505050506040513d606081101561293b57600080fd5b508051602082015160409283015160085484517f1df8c717000000000000000000000000000000000000000000000000000000008152945193975091955093506000928392839273ffffffffffffffffffffffffffffffffffffffff1691631df8c717916004808301926060929190829003018186803b1580156129be57600080fd5b505afa1580156129d2573d6000803e3d6000fd5b505050506040513d60608110156129e857600080fd5b508051602082015160409092015190945090925090508581036000612a178288870381612a1157fe5b0461389b565b90506000612a298388870381612a1157fe5b9050612a38826123cb8361345d565b9a505050505050505050505090565b600b5460ff16612ab857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496d7065726d61783a205245454e544552454400000000000000000000000000604482015290519081900360640190fd5b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055612ae8612f84565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260056020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600854604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff86811660248301526044808301879052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009560609594169382918083835b60208310612c8a57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612c4d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612cec576040519150601f19603f3d011682016040523d82523d6000602084013e612cf1565b606091505b5091509150818015612d1f575080511580612d1f5750808060200190516020811015612d1c57600080fd5b50515b612d8a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a205452414e534645525f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b600082612d9f57506000610aaa565b82820282848281612dac57fe5b0414612e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613cf56021913960400191505060405180910390fd5b9392505050565b6000612e0383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061391e565b600082820183811015612e0357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054612ef6908263ffffffff61327616565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040902055600354612f2f908263ffffffff61327616565b60035560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015612ff557600080fd5b505afa158015613009573d6000803e3d6000fd5b505050506040513d602081101561301f57600080fd5b5051600a81905560408051918252517f8a0df8ef054fae2c3d2d19a7b322e864870cc9fd3cb07fb9526309c596244bf49181900360200190a1565b60008184841115613103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156130c85781810151838201526020016130b0565b50505050905090810190601f1680156130f55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6131158382611456565b61318057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f496d7065726d61783a20494e53554646494349454e545f4c4951554944495459604482015290519081900360640190fd5b61318b83838361399d565b505050565b613198613ab6565b8183101561320757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a20494e56414c49445f53455454494e4700000000000000604482015290519081900360640190fd5b8083111561318b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496d7065726d61783a20494e56414c49445f53455454494e4700000000000000604482015290519081900360640190fd5b6000612e0383836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f770081525061305a565b6003546132cb908263ffffffff612e4c16565b60035573ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040902054613304908263ffffffff612e4c16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526004602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600d546000908190818061337b612271565b9092509050600061339e670de0b6b3a7640000610cdb8a8663ffffffff612d9016565b905060006133be670de0b6b3a7640000610cdb8a8663ffffffff612d9016565b9050808210156133ca57905b6133e6670de0b6b3a7640000610cdb848863ffffffff612d9016565b915061340485610cdb83670de0b6b3a764000063ffffffff612d9016565b9050600061342d670de0b6b3a7640000610cdb600e54611e888688612e4c90919063ffffffff16565b9050808b10613449578a03965060009550611844945050505050565b600097508a90039550611844945050505050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8416816134ba57fe5b049392505050565b60006003821115613505575080600160028204015b818110156134ff578091506002818285816134ee57fe5b0401816134f757fe5b0490506134d7565b5061350f565b811561350f575060015b919050565b8151613527906000906020850190613bcf565b50805161353b906001906020840190613bcf565b506040514690806052613ca382396040805191829003605201822086516020978801208383018352600184527f310000000000000000000000000000000000000000000000000000000000000093880193909352815180880191909152808201929092527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606083015260808201939093523060a0808301919091528351808303909101815260c090910190925250805192019190912060065550565b4285101561366757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2045585049524544000000000000000000000000000000604482015290519081900360640190fd5b60065473ffffffffffffffffffffffffffffffffffffffff808a1660008181526007602090815260408083208054600180820190925582518085018a905280840196909652958e166060860152608085018d905260a085019590955260c08085018c90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff8a166101828501526101a284018990526101c28401889052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa1580156137a9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061382457508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61388f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f496d7065726d61783a20494e56414c49445f5349474e41545552450000000000604482015290519081900360640190fd5b50505050505050505050565b60006e010000000000000000000000000000821061391a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496d7065726d61783a2053414645313132000000000000000000000000000000604482015290519081900360640190fd5b5090565b60008183613987576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156130c85781810151838201526020016130b0565b50600083858161399357fe5b0495945050505050565b604080518082018252601b81527f496d7065726d61783a205452414e534645525f544f4f5f48494748000000000060208083019190915273ffffffffffffffffffffffffffffffffffffffff8616600090815260049091529190912054613a0b91839063ffffffff61305a16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600460205260408082209390935590841681522054613a4d908263ffffffff612e4c16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b158015613b1e57600080fd5b505afa158015613b32573d6000803e3d6000fd5b505050506040513d6020811015613b4857600080fd5b505173ffffffffffffffffffffffffffffffffffffffff163314613bcd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f496d7065726d61783a20554e415554484f52495a454400000000000000000000604482015290519081900360640190fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613c1057805160ff1916838001178555613c3d565b82800160010185558215613c3d579182015b82811115613c3d578251825591602001919060010190613c22565b5061391a92610fa39250905b8082111561391a5760008155600101613c4956fe496d7065726d61783a20494e53554646494349454e545f52454445454d5f544f4b454e53496d7065726d61783a2050524943455f43414c43554c4154494f4e5f4552524f52454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a7231582036639634c0d56dae503e6e9ea3b464cf5aa17490b002261826f0ac4dc9201d5264736f6c63430005100032
Deployed Bytecode Sourcemap
33452:6402:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33452:6402:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6938:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;6938:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8621:132;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8621:132:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;19222:53;;;:::i;:::-;;;;;;;;;;;;;;;;7014:23;;;:::i;39135:716::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39135:716:0;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;39135:716:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;39135:716:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;39135:716:0;;-1:-1:-1;39135:716:0;-1:-1:-1;39135:716:0;:::i;:::-;;8887:299;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8887:299:0;;;;;;;;;;;;;;;;;;:::i;16693:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;9863:108;;;:::i;6984:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16753:44;;;:::i;7154:31::-;;;:::i;13995:287::-;;;:::i;13705:130::-;;;:::i;20335:297::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20335:297:0;;:::i;37524:162::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37524:162:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;14356:591;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14356:591:0;;;;:::i;36534:499::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36534:499:0;;;;;;;;;:::i;37065:453::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37065:453:0;;;;;;;;;;;;;;:::i;13276:25::-;;;:::i;7041:41::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7041:41:0;;;;:::i;7189:38::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7189:38:0;;;;:::i;16822:42::-;;;:::i;15020:493::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15020:493:0;;;;:::i;6960:20::-;;;:::i;37692:537::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37692:537:0;;;;;;;;;;;;;;;;;;:::i;8758:124::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8758:124:0;;;;;;;;;:::i;13331:24::-;;;:::i;19451:56::-;;;:::i;38301:761::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38301:761:0;;;;;;;;;;;;;;;;;;:::i;13359:45::-;;;:::i;20071:259::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20071:259:0;;:::i;15564:138::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15564:138:0;;;;:::i;34395:1188::-;;;:::i;13305:22::-;;;:::i;19695:371::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;19695:371:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;19695:371:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;19695:371:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;19695:371:0;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;19695:371:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;19695:371:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;19695:371:0;;-1:-1:-1;19695:371:0;-1:-1:-1;19695:371:0;;;;;;;;;;;;;;;;;;;;:::i;19300:59::-;;;:::i;9975:235::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;9975:235:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;16723:26::-;;;:::i;7086:61::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7086:61:0;;;;;;;;;;;:::i;33628:759::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15753:47;;;:::i;6938:18::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;8621:132::-;8685:4;8696:36;8705:10;8717:7;8726:5;8696:8;:36::i;:::-;-1:-1:-1;8744:4:0;8621:132;;;;;:::o;19222:53::-;19268:7;19222:53;:::o;7014:23::-;;;;:::o;39135:716::-;16411:11;;;;16403:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:11;:19;;;;;;39272:12;;39256:28;;;39248:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39361:37;39375:8;39385:12;39361:13;:37::i;:::-;39407:15;;39403:93;;39424:72;;;;;39465:10;39424:72;;;;;;;;;;;;;;;;;;;;;;;;;:40;;;;;;39465:10;39477:12;;39491:4;;;;39424:72;;;;39491:4;;;;39424:72;1:33:-1;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;39424:72:0;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39424:72:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39424:72:0;;;;39403:93;39543:4;39505:17;39525:24;;;:9;:24;;;;;;;39582:51;39631:1;39582:44;39610:14;:12;:14::i;:::-;39582:22;:12;39599:4;39582:22;:16;:22;:::i;:::-;:26;:44;:26;:44;:::i;:::-;:48;:51;:48;:51;:::i;:::-;39554:79;;39676:20;39660:12;:36;;39652:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39746:34;39760:4;39767:12;39746:5;:34::i;:::-;39790:56;;;;;;;;;;;;;;;;;;39797:10;;39790:56;;;;;;;;;;;16579:1;;16585:9;:7;:9::i;:::-;-1:-1:-1;;16481:11:0;:18;;;;16495:4;16481:18;;;-1:-1:-1;;39135:716:0:o;8887:299::-;8980:15;;;8965:4;8980:15;;;:9;:15;;;;;;;;8996:10;8980:27;;;;;;;;9016:2;8980:39;8976:159;;9057:72;;;;;;;;;;;;;;;;;;;;:15;;;-1:-1:-1;9057:15:0;;;:9;:15;;;;;9073:10;9057:27;;;;;;;;;;:72;;9089:5;;9057:72;:31;:72;:::i;:::-;9027:15;;;;;;;:9;:15;;;;;;;;9043:10;9027:27;;;;;;;:102;8976:159;9139:26;9149:4;9155:2;9159:5;9139:9;:26::i;:::-;-1:-1:-1;9177:4:0;8887:299;;;;;:::o;16693:26::-;;;;;;;;;:::o;9863:108::-;9905:66;9863:108;:::o;6984:26::-;;;;;;:::o;16753:44::-;;;;:::o;7154:31::-;;;;:::o;13995:287::-;14069:11;;14121:12;;14035:4;;14069:11;14157:17;;;:39;;-1:-1:-1;14178:18:0;;14157:39;14153:71;;;13268:4;14198:26;;;;;;14153:71;14236:41;14264:12;14236:23;:13;14254:4;14236:23;:17;:23;:::i;:41::-;14229:48;;;;13995:287;;:::o;13705:130::-;13750:7;;:21;:7;:21;13742:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13810:7;:20;;;;13820:10;13810:20;;;13705:130::o;20335:297::-;16411:11;;;;16403:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:11;:19;;;;;;20426:92;20440:23;19433:7;19500;20426:13;:92::i;:::-;20523:20;:46;;;20579:48;;;;;;;;;;;;;;;;;-1:-1:-1;16481:11:0;:18;;;;16495:4;16481:18;;;20335:297::o;37524:162::-;37584:14;37600;37628:53;37652:8;37667:2;37677;37628:23;:53::i;:::-;37621:60;;;;37524:162;;;:::o;14356:591::-;16411:11;;14424:15;;16411:11;;16403:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:11;:19;;;;;;14468:10;;14461:43;;;;;;14498:4;14461:43;;;;;;16465:5;;14468:10;;;14461:28;;:43;;;;;;;;;;;;;;14468:10;14461:43;;;5:2:-1;;;;30:1;27;20:12;5:2;14461:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14461:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14461:43:0;14539:12;;14461:43;;-1:-1:-1;14509:15:0;;14527:25;;14461:43;;14527:25;:11;:25;:::i;:::-;14509:43;;14570:40;14595:14;:12;:14::i;:::-;14570:20;:10;14585:4;14570:20;:14;:20;:::i;:40::-;14557:53;;14620:11;;14635:1;14620:16;14617:180;;;14716:33;:10;13400:4;14716:33;:14;:33;:::i;:::-;14703:46;;14755:36;14769:1;13400:4;14755:5;:36::i;:::-;14822:1;14809:10;:14;14801:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14859:25;14865:6;14873:10;14859:5;:25::i;:::-;14894:48;;;;;;;;;;;;;;;;;;14899:10;;14894:48;;;;;;;;;;;16579:1;;16585:9;:7;:9::i;:::-;16481:11;:18;;;;16495:4;16481:18;;;14356:591;;-1:-1:-1;14356:591:0:o;36534:499::-;36627:15;;;36600:4;36627:15;;;:9;:15;;;;;;36651:16;;;36647:34;;;36676:5;36669:12;;;;;36647:34;36706:16;;;36686:17;36751:42;36788:4;36751:32;36768:14;:12;:14::i;:::-;36751:12;;:32;:16;:32;:::i;:42::-;36727:66;;36798:12;36825:11;;;;;;;;;;;36813:38;;;36852:4;36813:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36813:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36813:44:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36813:44:0;36889:11;;36877:44;;;;;;36889:11;36877:44;;;;;;;;;36813;;-1:-1:-1;36862:12:0;;36889:11;;;;;36877:38;;:44;;;;;36813;;36877;;;;;;;36889:11;36877:44;;;5:2:-1;;;;30:1;27;20:12;5:2;36877:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36877:44:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36877:44:0;;-1:-1:-1;36929:14:0;36947:55;36967:16;36985:7;36877:44;36947:19;:55::i;:::-;37014:14;;36534:499;-1:-1:-1;;;;;;;;;;36534:499:0:o;37065:453::-;37160:14;37176;37217:2;37201:7;:19;37197:83;;;37244:11;;37232:48;;;;;;37244:11;37232:48;;;;;;;;;37244:11;;;;;;;;37232:38;;:48;;;;;;;;;;;;;;;37244:11;37232:48;;;5:2:-1;;;;30:1;27;20:12;5:2;37232:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37232:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37232:48:0;;-1:-1:-1;37197:83:0;37305:2;37289:7;:19;37285:83;;;37332:11;;37320:48;;;;;;37332:11;37320:48;;;;;;;;;37332:11;;;;;37320:38;;:48;;;;;;;;;;;;;;37332:11;37320:48;;;5:2:-1;;;;30:1;27;20:12;5:2;37320:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37320:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37320:48:0;;-1:-1:-1;37285:83:0;37373:21;37397:49;37441:4;37397:39;37421:14;:12;:14::i;:::-;37397:19;;;;;;;:9;:19;;;;;;;:39;:23;:39;:::i;:49::-;37373:73;;37458:55;37478:16;37496:7;37505;37458:19;:55::i;:::-;37451:62;;;;;37065:453;;;;;;;:::o;13276:25::-;;;;;;:::o;7041:41::-;;;;;;;;;;;;;:::o;7189:38::-;;;;;;;;;;;;;:::o;16822:42::-;;;;:::o;15020:493::-;16411:11;;15092:17;;16411:11;;16403:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:11;:19;;;;;;15154:4;16465:5;15136:24;;;:9;:24;;;;;;15180:42;15217:4;15180:32;15197:14;:12;:14::i;:::-;15180:12;;:32;:16;:32;:::i;:42::-;15165:57;;15252:1;15237:12;:16;15229:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15315:12;;15299;:28;;15291:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15364:34;15378:4;15385:12;15364:5;:34::i;:::-;15403:37;15417:8;15427:12;15403:13;:37::i;:::-;15450:56;;;;;;;;;;;;;;;;;;15457:10;;15450:56;;;;;;;;;;;16579:1;16585:9;:7;:9::i;6960:20::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37692:537;37820:11;;37859;;37786:4;;37820:11;;;;;;;;37859;;;37883:26;;;;;:56;;;37927:12;37913:26;;:10;:26;;;37883:56;37875:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37978:12;38007;37993:26;;:10;:26;;;:54;;38044:2;37993:54;;;38022:14;37993:54;37978:69;;38052:12;38081;38067:26;;:10;:26;;;:54;;38118:2;38067:54;;;38096:14;38067:54;38052:69;;38129:14;38147:51;38171:8;38181:7;38190;38147:23;:51::i;8758:124::-;8818:4;8829:32;8839:10;8851:2;8855:5;8829:9;:32::i;13331:24::-;;;;:::o;19451:56::-;19500:7;19451:56;:::o;38301:761::-;38435:11;;38390:16;;38435:11;;;;;38421:10;:25;;:54;;-1:-1:-1;38464:11:0;;;;38450:10;:25;38421:54;38413:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38514:14;38532:26;38549:8;38532:16;:26::i;:::-;38511:47;;;38583:1;38571:9;:13;38563:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38663:11;;38630:10;;38663:11;;;;;38649:10;:25;38645:88;;;38688:11;:9;:11::i;:::-;-1:-1:-1;38676:23:0;-1:-1:-1;38645:88:0;;;38722:11;:9;:11::i;:::-;38710:23;-1:-1:-1;;38645:88:0;38756:80;38820:14;:12;:14::i;:::-;38756:58;38808:5;38756:47;38798:4;38756:37;38772:20;;38756:11;:15;;:37;;;;:::i;:47::-;:51;:58;:51;:58;:::i;:80::-;38742:94;;38867:70;38891:11;38867:70;;;;;;;;;;;;;;;;;:9;:19;38877:8;38867:19;;;;;;;;;;;;;;;;:23;;:70;;;;;:::i;:::-;38845:19;;;;;;;;:9;:19;;;;;;:92;;;;38966:21;;;;;;;:38;;38992:11;38966:38;:25;:38;:::i;:::-;38942:21;;;;;;;;:9;:21;;;;;;;;;:62;;;;39014:43;;;;;;;38942:21;;39014:43;;;;;;;;;;;;;38301:761;;;;;;;:::o;13359:45::-;13400:4;13359:45;:::o;20071:259::-;16411:11;;;;16403:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:11;:19;;;;;;20154:82;20168:19;19268:7;19346:13;20154;:82::i;:::-;20241:16;:38;;;20289:36;;;;;;;;;;;;;;;;;-1:-1:-1;16481:11:0;:18;;;;16495:4;16481:18;;;20071:259::o;15564:138::-;16411:11;;;;16403:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:11;:19;;;;;;15683:12;;15642:10;;15635:43;;;;;;15672:4;15635:43;;;;;;15617:80;;15631:2;;15635:61;;15683:12;;15642:10;;;;;15635:28;;:43;;;;;;;;;;;;;;15642:10;15635:43;;;5:2:-1;;;;30:1;27;20:12;5:2;15635:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15635:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15635:43:0;;:61;:47;:61;:::i;:::-;15617:13;:80::i;:::-;-1:-1:-1;16481:11:0;:18;;;;16495:4;16481:18;;;15564:138::o;34395:1188::-;34432:11;34445;34463:24;34490:21;:19;:21::i;:::-;34463:48;;34519:16;34537;34573:10;;;;;;;;;;;34558:38;;;:40;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34558:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34558:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34558:40:0;;;;;;;34650:10;;34558:40;34635;;;;;;;34558;;-1:-1:-1;34558:40:0;;-1:-1:-1;34603:29:0;;34650:10;;;;;34635:38;;:40;;;;;34558;34635;;;;;;34650:10;34635:40;;;5:2:-1;;;;30:1;27;20:12;5:2;34635:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34635:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34635:40:0;;-1:-1:-1;34684:27:0;34714:42;34747:8;34714:26;34731:8;34714:16;:26::i;:::-;:32;;;:42;:32;:42;:::i;:::-;34684:72;-1:-1:-1;34761:25:0;34789:61;;;;;;:36;;:25;;34819:5;34789:36;:29;:36;:::i;:61::-;34761:89;-1:-1:-1;34855:18:0;34876:39;34886:28;34761:89;34908:5;34886:28;:21;:28;:::i;:::-;34876:9;:39::i;:::-;34855:60;-1:-1:-1;34922:31:0;34956:56;;35010:1;35001:10;;34956:56;:40;34964:21;34991:4;34956:40;:34;:40;:::i;:56::-;34922:90;-1:-1:-1;35017:31:0;35051:56;;35105:1;35096:10;;35051:56;:40;35059:21;35086:4;35051:40;:34;:40;:::i;:56::-;35017:90;-1:-1:-1;35125:50:0;35169:5;35125:39;:23;35153:10;35125:39;:27;:39;:::i;:50::-;35116:59;-1:-1:-1;35189:50:0;35228:10;35189:34;:23;35217:5;35189:34;:27;:34;:::i;:50::-;35180:59;;35474:3;35465:6;:12;35457:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35537:3;35528:6;:12;35520:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34395:1188;;;;;;;;;;;:::o;13305:22::-;;;;;;:::o;19695:371::-;19887:7;;;;19873:10;:21;19865:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19946:24;19955:5;;19946:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;19946:24:0;;;;137:4:-1;19946:24:0;;;;;;;;;;;;;;;;;;-1:-1:-1;19962:7:0;;-1:-1:-1;19962:7:0;;;;19946:24;;19962:7;;;;19946:24;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;19946:8:0;;-1:-1:-1;;;19946:24:0:i;:::-;19975:10;:24;;;;;;;;;;;;;;20004:11;:26;;;;;19975:24;20004:26;;;;;;;;;;;;20035:11;:26;;;;;;;;;;;-1:-1:-1;;;;19695:371:0:o;19300:59::-;19346:13;19300:59;:::o;9975:235::-;10095:74;10111:5;10118:7;10127:5;10134:8;10144:1;10147;10150;9905:66;10095:15;:74::i;:::-;10174:31;10183:5;10190:7;10199:5;10174:8;:31::i;:::-;9975:235;;;;;;;:::o;16723:26::-;;;;;;:::o;7086:61::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;33628:759::-;33674:24;33711:11;33740:10;;;;;;;;;;;33725:44;;;:46;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33725:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33725:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33725:46:0;33878:10;;33863:49;;;;;;33903:8;;;33863:49;;;;;;33725:46;;-1:-1:-1;33783:18:0;;;;;;33878:10;;;;;33863:39;;:49;;;;;;;;;;;;;;;33878:10;33863:49;;;5:2:-1;;;;30:1;27;20:12;5:2;33863:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33863:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33863:49:0;;;;;;;;;;;34007:10;;33992:52;;;;;;;33863:49;;-1:-1:-1;33863:49:0;;-1:-1:-1;33863:49:0;-1:-1:-1;33924:23:0;;;;;;34007:10;;;33992:50;;:52;;;;;33863:49;;33992:52;;;;;;;34007:10;33992:52;;;5:2:-1;;;;30:1;27;20:12;5:2;33992:52:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33992:52:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33992:52:0;;;;;;;;;;;;;-1:-1:-1;33992:52:0;;-1:-1:-1;33992:52:0;-1:-1:-1;34074:25:0;;;34055:16;34133:68;34074:25;34142:43;;;34074:25;34141:59;;;;;34133:7;:68::i;:::-;34110:91;;34212:20;34235:68;34291:11;34265:22;34244:18;:43;34243:59;;;;34235:68;34212:91;;34328:50;34365:12;34328:30;34345:12;34328:16;:30::i;:50::-;34309:69;;33628:759;;;;;;;;;;;:::o;15753:47::-;16411:11;;;;16403:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:11;:19;;;;;;16585:9;:7;:9::i;:::-;16481:11;:18;;;;16495:4;16481:18;;;15753:47::o;8226:154::-;8301:16;;;;;;;;:9;:16;;;;;;;;:25;;;;;;;;;;;;;:33;;;8344:31;;;;;;;;;;;;;;;;;8226:154;;;:::o;15998:264::-;16096:10;;15958:34;;;;;;;;;;;;;;;;;16112:44;;16096:10;16112:44;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16112:44:0;;;;;;25:18:-1;;;61:17;;16112:44:0;182:15:-1;16112:44:0;179:29:-1;160:49;;16096:61:0;;;;16061:12;;16075:17;;16096:10;;;:61;;;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;139:12;;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;16096:61:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;16060:97:0;;;;16170:7;:57;;;;-1:-1:-1;16182:11:0;;:16;;:44;;;16213:4;16202:24;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16202:24:0;16182:44;16162:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15998:264;;;;:::o;2785:471::-;2843:7;3088:6;3084:47;;-1:-1:-1;3118:1:0;3111:8;;3084:47;3155:5;;;3159:1;3155;:5;:1;3179:5;;;;;:10;3171:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3247:1;2785:471;-1:-1:-1;;;2785:471:0:o;4443:132::-;4501:7;4528:39;4532:1;4535;4528:39;;;;;;;;;;;;;;;;;:3;:39::i;1031:181::-;1089:7;1121:5;;;1145:6;;;;1137:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8033:188;8106:15;;;;;;;:9;:15;;;;;;:26;;8126:5;8106:26;:19;:26;:::i;:::-;8088:15;;;;;;;:9;:15;;;;;:44;8151:11;;:22;;8167:5;8151:22;:15;:22;:::i;:::-;8137:11;:36;8183:33;;;;;;;;8206:1;;8183:33;;;;;;;;;;;;;8033:188;;:::o;13866:124::-;13921:10;;13914:43;;;;;;13951:4;13914:43;;;;;;13921:10;;;;;13914:28;;:43;;;;;;;;;;;;;;;13921:10;13914:43;;;5:2:-1;;;;30:1;27;20:12;5:2;13914:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13914:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13914:43:0;13899:12;:58;;;13967:18;;;;;;;;;;;;13914:43;13967:18;;;13866:124::o;2350:192::-;2436:7;2472:12;2464:6;;;;2456:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2456:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2508:5:0;;;2350:192::o;36343:185::-;36422:27;36437:4;36443:5;36422:14;:27::i;:::-;36414:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36491:32;36507:4;36513:2;36517:5;36491:15;:32::i;:::-;36343:185;;;:::o;20638:214::-;20716:13;:11;:13::i;:::-;20755:3;20742:9;:16;;20734:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20814:3;20801:9;:16;;20793:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1924:137;1982:7;2009:44;2013:1;2016;2009:44;;;;;;;;;;;;;;;;;:3;:44::i;7848:180::-;7915:11;;:22;;7931:5;7915:22;:15;:22;:::i;:::-;7901:11;:36;7958:13;;;;;;;:9;:13;;;;;;:24;;7976:5;7958:24;:17;:24;:::i;:::-;7942:13;;;;;;;:9;:13;;;;;;;;:40;;;;7992:31;;;;;;;7942:13;;;;7992:31;;;;;;;;;;7848:180;;:::o;35640:677::-;35800:16;;35738:14;;;;;;35850:11;:9;:11::i;:::-;35821:40;;-1:-1:-1;35821:40:0;-1:-1:-1;35870:6:0;35879:29;35903:4;35879:19;:7;35821:40;35879:19;:11;:19;:::i;:29::-;35870:38;-1:-1:-1;35913:6:0;35922:29;35946:4;35922:19;:7;35934:6;35922:19;:11;:19;:::i;:29::-;35913:38;;35963:1;35959;:5;35956:25;;;35976:1;35956:25;35990:34;36019:4;35990:24;:1;35996:17;35990:24;:5;:24;:::i;:34::-;35986:38;-1:-1:-1;36033:34:0;36049:17;36033:11;:1;36039:4;36033:11;:5;:11;:::i;:34::-;36029:38;;36072:21;36096:44;36135:4;36096:34;36109:20;;36096:8;36102:1;36096;:5;;:8;;;;:::i;:44::-;36072:68;;36172:16;36152;:36;36149:164;;36203:35;;;-1:-1:-1;36240:1:0;;-1:-1:-1;36195:47:0;;-1:-1:-1;;;;;36195:47:0;36149:164;36268:1;;-1:-1:-1;36271:35:0;;;;-1:-1:-1;36260:47:0;;-1:-1:-1;;;;;36260:47:0;32290:120;32366:10;;32235:6;32366:17;;32290:120::o;32481:108::-;32541:9;32571:10;;;32567:14;;;32571:10;32567:14;;;;;;32481:108;-1:-1:-1;;;32481:108:0:o;33055:303::-;33100:6;33127:1;33123;:5;33119:232;;;-1:-1:-1;33149:1:0;33182;33178;33174:5;;:9;33198:92;33209:1;33205;:5;33198:92;;;33235:1;33231:5;;33273:1;33268;33264;33260;:5;;;;;;:9;33259:15;;;;;;33255:19;;33198:92;;;33119:232;;;;33311:6;;33307:44;;-1:-1:-1;33338:1:0;33307:44;33055:303;;;:::o;7416:427::-;7492:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;7509:16:0;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;7640:95:0;;7573:7;;7640:95;;;;;;;;;;;;;;;;7742:23;;;;;;;7782:10;;;;;;;;;;;;;;;;7623:210;;;;;;;;;;;;;;;;7772:21;7623:210;;;;;;;;;;;7822:4;7623:210;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;7623:210:0;;;;;;;-1:-1:-1;7608:230:0;;;;;;;;7589:16;:249;-1:-1:-1;7416:427:0:o;9192:564::-;9359:15;9347:8;:27;;9339:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9473:16;;9550:13;;;;9401:14;9550:13;;;:6;:13;;;;;;;;:15;;;;;;;;;9506:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;9506:70:0;;;;;9496:81;;;;;;9433:150;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;9433:150:0;;;;;;9418:170;;;;;;;;;9620:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9401:14;;9550:15;9620:26;;;;;-1:-1:-1;9620:26:0;;;;;;;;;;9550:15;9620:26;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;9620:26:0;;;;;;-1:-1:-1;;9659:30:0;;;;;;;:59;;;9713:5;9693:25;;:16;:25;;;9659:59;9651:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9192:564;;;;;;;;;;:::o;16878:144::-;16926:7;16958:6;16954:1;:10;16946:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17012:1:0;16878:144::o;5063:345::-;5149:7;5251:12;5244:5;5236:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;5236:28:0;;5275:9;5291:1;5287;:5;;;;;;;5063:345;-1:-1:-1;;;;;5063:345:0:o;8385:231::-;8474:57;;;;;;;;;;;;;;;;;;;;:15;;;-1:-1:-1;8474:15:0;;;:9;:15;;;;;;;;:57;;8494:5;;8474:57;:19;:57;:::i;:::-;8456:15;;;;;;;;:9;:15;;;;;;:75;;;;8552:13;;;;;;;:24;;8570:5;8552:24;:17;:24;:::i;:::-;8536:13;;;;;;;;:9;:13;;;;;;;;;:40;;;;8586:25;;;;;;;8536:13;;8586:25;;;;;;;;;;;;;8385:231;;;:::o;20858:121::-;20931:7;;;;;;;;;;;20922:23;;;:25;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20922:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20922:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20922:25:0;20908:39;;:10;:39;20900:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20858:121::o;33452:6402::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33452:6402:0;;;;-1:-1:-1;33452:6402:0;;;;;;;;;;;;;;
Swarm Source
bzzr://36639634c0d56dae503e6e9ea3b464cf5aa17490b002261826f0ac4dc9201d52
Loading...
Loading
Loading...
Loading
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.