Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 12500413 | 1291 days ago | IN | 0 ETH | 0.02932618 | ||||
Skim | 12481096 | 1294 days ago | IN | 0 ETH | 0.00495182 | ||||
Harvest | 12481005 | 1294 days ago | IN | 0 ETH | 0.03616262 | ||||
Skim | 12461785 | 1297 days ago | IN | 0 ETH | 0.00508971 | ||||
Harvest | 12461760 | 1297 days ago | IN | 0 ETH | 0.05756173 | ||||
Set Keeper | 12431544 | 1301 days ago | IN | 0 ETH | 0.00373145 | ||||
Set Next Admin | 12431541 | 1301 days ago | IN | 0 ETH | 0.00632775 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StrategyCurveUsdpUsdt
Compiler Version
v0.6.11+commit.5ef660b1
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-14 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint value); } // File: @openzeppelin/contracts/math/SafeMath.sol /** * @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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint a, uint b) internal pure returns (bool, uint) { uint c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint a, uint b) internal pure returns (bool, uint) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint a, uint b) internal pure returns (bool, uint) { // 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 (true, 0); uint c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint a, uint b) internal pure returns (bool, uint) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint a, uint b) internal pure returns (bool, uint) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint a, uint b) internal pure returns (uint) { uint c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint a, uint b) internal pure returns (uint) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint a, uint b) internal pure returns (uint) { if (a == 0) return 0; uint c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting 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(uint a, uint b) internal pure returns (uint) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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(uint a, uint b) internal pure returns (uint) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint a, uint b, string memory errorMessage ) internal pure returns (uint) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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( uint a, uint b, string memory errorMessage ) internal pure returns (uint) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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( uint a, uint b, string memory errorMessage ) internal pure returns (uint) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint; using Address for address; function safeTransfer( IERC20 token, address to, uint value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transfer.selector, to, value) ); } function safeTransferFrom( IERC20 token, address from, address to, uint value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value) ); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, value) ); } function safeIncreaseAllowance( IERC20 token, address spender, uint value ) internal { uint newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance) ); } function safeDecreaseAllowance( IERC20 token, address spender, uint value ) internal { uint newAllowance = token.allowance(address(this), spender).sub( value, "SafeERC20: decreased allowance below zero" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance) ); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require( abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed" ); } } } // File: contracts/protocol/IStrategyERC20_V3.sol /* version 1.3.0 Changes listed here do not affect interaction with other contracts (Vault and Controller) - remove functions that are not called by other contracts (vaults and controller) */ interface IStrategyERC20_V3 { function admin() external view returns (address); function controller() external view returns (address); function vault() external view returns (address); /* @notice Returns address of underlying token (ETH or ERC20) @dev Return 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for ETH strategy */ function underlying() external view returns (address); /* @notice Returns total amount of underlying token transferred from vault */ function totalDebt() external view returns (uint); /* @notice Returns amount of underlying token locked in this contract @dev Output may vary depending on price of liquidity provider token where the underlying token is invested */ function totalAssets() external view returns (uint); /* @notice Deposit `amount` underlying token @param amount Amount of underlying token to deposit */ function deposit(uint _amount) external; /* @notice Withdraw `_amount` underlying token @param amount Amount of underlying token to withdraw */ function withdraw(uint _amount) external; /* @notice Withdraw all underlying token from strategy */ function withdrawAll() external; /* @notice Sell any staking rewards for underlying */ function harvest() external; /* @notice Increase total debt if totalAssets > totalDebt */ function skim() external; /* @notice Exit from strategy, transfer all underlying tokens back to vault */ function exit() external; /* @notice Transfer token accidentally sent here to admin @param _token Address of token to transfer @dev _token must not be equal to underlying token */ function sweep(address _token) external; } // File: contracts/protocol/IController.sol interface IController { function ADMIN_ROLE() external view returns (bytes32); function HARVESTER_ROLE() external view returns (bytes32); function admin() external view returns (address); function treasury() external view returns (address); function setAdmin(address _admin) external; function setTreasury(address _treasury) external; function grantRole(bytes32 _role, address _addr) external; function revokeRole(bytes32 _role, address _addr) external; /* @notice Set strategy for vault @param _vault Address of vault @param _strategy Address of strategy @param _min Minimum undelying token current strategy must return. Prevents slippage */ function setStrategy( address _vault, address _strategy, uint _min ) external; // calls to strategy /* @notice Invest token in vault into strategy @param _vault Address of vault */ function invest(address _vault) external; function harvest(address _strategy) external; function skim(address _strategy) external; /* @notice Withdraw from strategy to vault @param _strategy Address of strategy @param _amount Amount of underlying token to withdraw @param _min Minimum amount of underlying token to withdraw */ function withdraw( address _strategy, uint _amount, uint _min ) external; /* @notice Withdraw all from strategy to vault @param _strategy Address of strategy @param _min Minimum amount of underlying token to withdraw */ function withdrawAll(address _strategy, uint _min) external; /* @notice Exit from strategy @param _strategy Address of strategy @param _min Minimum amount of underlying token to withdraw */ function exit(address _strategy, uint _min) external; } // File: contracts/StrategyERC20_V3.sol /* Changes - remove functions related to slippage and delta - add keeper - remove _increaseDebt - remove _decreaseDebt */ // used inside harvest abstract contract StrategyERC20_V3 is IStrategyERC20_V3 { using SafeERC20 for IERC20; using SafeMath for uint; address public override admin; address public nextAdmin; address public override controller; address public immutable override vault; address public immutable override underlying; // some functions specific to strategy cannot be called by controller // so we introduce a new role address public keeper; // total amount of underlying transferred from vault uint public override totalDebt; // performance fee sent to treasury when harvest() generates profit uint public performanceFee = 500; uint private constant PERFORMANCE_FEE_CAP = 2000; // upper limit to performance fee uint internal constant PERFORMANCE_FEE_MAX = 10000; // Force exit, in case normal exit fails bool public forceExit; constructor( address _controller, address _vault, address _underlying, address _keeper ) public { require(_controller != address(0), "controller = zero address"); require(_vault != address(0), "vault = zero address"); require(_underlying != address(0), "underlying = zero address"); require(_keeper != address(0), "keeper = zero address"); admin = msg.sender; controller = _controller; vault = _vault; underlying = _underlying; keeper = _keeper; } modifier onlyAdmin() { require(msg.sender == admin, "!admin"); _; } modifier onlyAuthorized() { require( msg.sender == admin || msg.sender == controller || msg.sender == vault || msg.sender == keeper, "!authorized" ); _; } function setNextAdmin(address _nextAdmin) external onlyAdmin { require(_nextAdmin != admin, "next admin = current"); // allow next admin = zero address (cancel next admin) nextAdmin = _nextAdmin; } function acceptAdmin() external { require(msg.sender == nextAdmin, "!next admin"); admin = msg.sender; nextAdmin = address(0); } function setController(address _controller) external onlyAdmin { require(_controller != address(0), "controller = zero address"); controller = _controller; } function setKeeper(address _keeper) external onlyAdmin { require(_keeper != address(0), "keeper = zero address"); keeper = _keeper; } function setPerformanceFee(uint _fee) external onlyAdmin { require(_fee <= PERFORMANCE_FEE_CAP, "performance fee > cap"); performanceFee = _fee; } function setForceExit(bool _forceExit) external onlyAdmin { forceExit = _forceExit; } function totalAssets() external view virtual override returns (uint); function deposit(uint) external virtual override; function withdraw(uint) external virtual override; function withdrawAll() external virtual override; function harvest() external virtual override; function skim() external virtual override; function exit() external virtual override; function sweep(address) external virtual override; } // File: contracts/interfaces/uniswap/Uniswap.sol interface Uniswap { function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); } // File: contracts/interfaces/curve/LiquidityGaugeV2.sol interface LiquidityGaugeV2 { function deposit(uint) external; function balanceOf(address) external view returns (uint); function withdraw(uint) external; function claim_rewards() external; } // File: contracts/interfaces/curve/Minter.sol // https://github.com/curvefi/curve-dao-contracts/blob/master/contracts/Minter.vy interface Minter { function mint(address) external; } // File: contracts/interfaces/curve/StableSwapUsdp.sol interface StableSwapUsdp { function get_virtual_price() external view returns (uint); /* 0 USDP 1 3CRV */ function balances(uint index) external view returns (uint); } // File: contracts/interfaces/curve/StableSwap3Pool.sol interface StableSwap3Pool { function get_virtual_price() external view returns (uint); function add_liquidity(uint[3] calldata amounts, uint min_mint_amount) external; function remove_liquidity_one_coin( uint token_amount, int128 i, uint min_uamount ) external; function balances(uint index) external view returns (uint); } // File: contracts/interfaces/curve/DepositUsdp.sol interface DepositUsdp { /* 0 USDP 1 DAI 2 USDC 3 USDT */ function add_liquidity(uint[4] memory amounts, uint min) external returns (uint); // @dev returns amount of underlying token withdrawn function remove_liquidity_one_coin( uint amount, int128 index, uint min ) external returns (uint); } // File: contracts/strategies/StrategyCurveUsdp.sol contract StrategyCurveUsdp is StrategyERC20_V3 { event Deposit(uint amount); event Withdraw(uint amount); event Harvest(uint profit); event Skim(uint profit); // Uniswap // address private constant UNISWAP = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address private constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address internal constant USDP = 0x1456688345527bE1f37E9e627DA0837D6f08C925; address internal constant DAI = 0x6B175474E89094C44Da98b954EedeAC495271d0F; address internal constant USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; address internal constant USDT = 0xdAC17F958D2ee523a2206206994597C13D831ec7; // USDP = 0 | DAI = 1 | USDC = 2 | USDT = 3 uint private immutable UNDERLYING_INDEX; // precision to convert 10 ** 18 to underlying decimals uint[4] private PRECISION_DIV = [1, 1, 1e12, 1e12]; // precision div of underlying token (used to save gas) uint private immutable PRECISION_DIV_UNDERLYING; // Curve // // StableSwap3Pool address private constant BASE_POOL = 0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7; // StableSwap address private constant SWAP = 0x42d7025938bEc20B69cBae5A77421082407f053A; // liquidity provider token (USDP / 3CRV) address private constant LP = 0x7Eb40E450b9655f4B3cC4259BCC731c63ff55ae6; // Deposit address private constant DEPOSIT = 0x3c8cAee4E09296800f8D29A68Fa3837e2dae4940; // LiquidityGaugeV2 address private constant GAUGE = 0x055be5DDB7A925BfEF3417FC157f53CA77cA7222; // Minter address private constant MINTER = 0xd061D61a4d941c39E5453435B6345Dc261C2fcE0; // CRV address private constant CRV = 0xD533a949740bb3306d119CC777fa900bA034cd52; // prevent slippage from deposit / withdraw uint public slippage = 100; uint private constant SLIPPAGE_MAX = 10000; /* Numerator used to update totalDebt if totalAssets() is <= totalDebt * delta / DELTA_MIN */ uint public delta = 10050; uint private constant DELTA_MIN = 10000; // enable to claim LiquidityGaugeV2 rewards bool public shouldClaimRewards; constructor( address _controller, address _vault, address _underlying, uint _underlyingIndex, address _keeper ) public StrategyERC20_V3(_controller, _vault, _underlying, _keeper) { UNDERLYING_INDEX = _underlyingIndex; PRECISION_DIV_UNDERLYING = PRECISION_DIV[_underlyingIndex]; // Infinite approvals should be safe as long as only small amount // of underlying is stored in this contract. // Approve DepositUsdp.add_liquidity IERC20(USDP).safeApprove(DEPOSIT, type(uint).max); IERC20(DAI).safeApprove(DEPOSIT, type(uint).max); IERC20(USDC).safeApprove(DEPOSIT, type(uint).max); IERC20(USDT).safeApprove(DEPOSIT, type(uint).max); // Approve LiquidityGaugeV2.deposit IERC20(LP).safeApprove(GAUGE, type(uint).max); // approve DepositUsdp.remove_liquidity IERC20(LP).safeApprove(DEPOSIT, type(uint).max); // These tokens are never held by this contract // so the risk of them getting stolen is minimal IERC20(CRV).safeApprove(UNISWAP, type(uint).max); } /* @notice Set max slippage for deposit and withdraw from Curve pool @param _slippage Max amount of slippage allowed */ function setSlippage(uint _slippage) external onlyAdmin { require(_slippage <= SLIPPAGE_MAX, "slippage > max"); slippage = _slippage; } /* @notice Set delta, used to calculate difference between totalAsset and totalDebt @param _delta Numerator of delta / DELTA_MIN */ function setDelta(uint _delta) external onlyAdmin { require(_delta >= DELTA_MIN, "delta < min"); delta = _delta; } /* @notice Activate or decactivate LiquidityGaugeV2.claim_rewards() */ function setShouldClaimRewards(bool _shouldClaimRewards) external onlyAdmin { shouldClaimRewards = _shouldClaimRewards; } function _totalAssets() private view returns (uint) { uint lpBal = LiquidityGaugeV2(GAUGE).balanceOf(address(this)); uint pricePerShare = StableSwapUsdp(SWAP).get_virtual_price(); return lpBal.mul(pricePerShare) / (PRECISION_DIV_UNDERLYING * 1e18); } function totalAssets() external view override returns (uint) { return _totalAssets(); } function _increaseDebt(uint _amount) private returns (uint) { // USDT has transfer fee so we need to check balance after transfer uint balBefore = IERC20(underlying).balanceOf(address(this)); IERC20(underlying).safeTransferFrom(vault, address(this), _amount); uint balAfter = IERC20(underlying).balanceOf(address(this)); uint diff = balAfter.sub(balBefore); totalDebt = totalDebt.add(diff); return diff; } function _decreaseDebt(uint _amount) private returns (uint) { // USDT has transfer fee so we need to check balance after transfer uint balBefore = IERC20(underlying).balanceOf(address(this)); IERC20(underlying).safeTransfer(vault, _amount); uint balAfter = IERC20(underlying).balanceOf(address(this)); uint diff = balBefore.sub(balAfter); if (diff >= totalDebt) { totalDebt = 0; } else { totalDebt -= diff; } return diff; } /* @notice Deposit underlying token into Curve @param _token Address of underlying token @param _index Index of underlying token */ function _deposit(address _token, uint _index) private { // deposit underlying token, get LP uint bal = IERC20(_token).balanceOf(address(this)); if (bal > 0) { // mint LP uint[4] memory amounts; amounts[_index] = bal; /* shares = underlying amount * precision div * 1e18 / price per share */ uint pricePerShare = StableSwapUsdp(SWAP).get_virtual_price(); uint shares = bal.mul(PRECISION_DIV[_index]).mul(1e18).div(pricePerShare); uint min = shares.mul(SLIPPAGE_MAX - slippage) / SLIPPAGE_MAX; uint lpAmount = DepositUsdp(DEPOSIT).add_liquidity(amounts, min); // stake into LiquidityGaugeV2 if (lpAmount > 0) { LiquidityGaugeV2(GAUGE).deposit(lpAmount); } } } function deposit(uint _amount) external override onlyAuthorized { require(_amount > 0, "deposit = 0"); uint diff = _increaseDebt(_amount); _deposit(underlying, UNDERLYING_INDEX); emit Deposit(diff); } function _getTotalShares() private view returns (uint) { return LiquidityGaugeV2(GAUGE).balanceOf(address(this)); } function _getShares( uint _amount, uint _total, uint _totalShares ) private pure returns (uint) { /* calculate shares to withdraw w = amount of underlying to withdraw U = total redeemable underlying s = shares to withdraw P = total shares deposited into external liquidity pool w / U = s / P s = w / U * P */ if (_total > 0) { // avoid rounding errors and cap shares to be <= total shares if (_amount >= _total) { return _totalShares; } return _amount.mul(_totalShares) / _total; } return 0; } /* @notice Withdraw underlying token from Curve @param _amount Amount of underlying token to withdraw @return Actual amount of underlying token that was withdrawn */ function _withdraw(uint _amount) private returns (uint) { require(_amount > 0, "withdraw = 0"); uint total = _totalAssets(); if (_amount >= total) { _amount = total; } uint totalShares = _getTotalShares(); uint shares = _getShares(_amount, total, totalShares); if (shares > 0) { // withdraw LP from LiquidityGaugeV2 LiquidityGaugeV2(GAUGE).withdraw(shares); uint min = _amount.mul(SLIPPAGE_MAX - slippage) / SLIPPAGE_MAX; // withdraw creates LP dust return DepositUsdp(DEPOSIT).remove_liquidity_one_coin( shares, int128(UNDERLYING_INDEX), min ); // Now we have underlying } return 0; } function withdraw(uint _amount) external override onlyAuthorized { uint withdrawn = _withdraw(_amount); if (withdrawn < _amount) { _amount = withdrawn; } // if withdrawn > _amount, excess will be deposited when deposit() is called uint diff; if (_amount > 0) { diff = _decreaseDebt(_amount); } emit Withdraw(diff); } function _withdrawAll() private { _withdraw(type(uint).max); // There may be dust so re-calculate balance uint bal = IERC20(underlying).balanceOf(address(this)); if (bal > 0) { IERC20(underlying).safeTransfer(vault, bal); totalDebt = 0; } emit Withdraw(bal); } function withdrawAll() external override onlyAuthorized { _withdrawAll(); } /* @notice Returns address and index of token with lowest balance in Curve pool */ function _getMostPremiumToken() private view returns (address, uint) { // meta pool balances uint[2] memory balances; balances[0] = StableSwapUsdp(SWAP).balances(0); // USDP balances[1] = StableSwapUsdp(SWAP).balances(1); // 3CRV if (balances[0] <= balances[1]) { return (USDP, 0); } else { // base pool balances uint[3] memory baseBalances; baseBalances[0] = StableSwap3Pool(BASE_POOL).balances(0); // DAI baseBalances[1] = StableSwap3Pool(BASE_POOL).balances(1).mul(1e12); // USDC baseBalances[2] = StableSwap3Pool(BASE_POOL).balances(2).mul(1e12); // USDT /* DAI 1 USDC 2 USDT 3 */ // DAI if ( baseBalances[0] <= baseBalances[1] && baseBalances[0] <= baseBalances[2] ) { return (DAI, 1); } // USDC if ( baseBalances[1] <= baseBalances[0] && baseBalances[1] <= baseBalances[2] ) { return (USDC, 2); } return (USDT, 3); } } /* @dev Uniswap fails with zero address so no check is necessary here */ function _swap( address _from, address _to, uint _amount ) private { // create dynamic array with 3 elements address[] memory path = new address[](3); path[0] = _from; path[1] = WETH; path[2] = _to; Uniswap(UNISWAP).swapExactTokensForTokens( _amount, 1, path, address(this), block.timestamp ); } function _claimRewards(address _token) private { if (shouldClaimRewards) { LiquidityGaugeV2(GAUGE).claim_rewards(); // Rewarded tokens will be managed by admin via calling sweep() } // claim CRV Minter(MINTER).mint(GAUGE); uint crvBal = IERC20(CRV).balanceOf(address(this)); // Swap only if CRV >= 1, otherwise swap may fail if (crvBal >= 1e18) { _swap(CRV, _token, crvBal); // Now this contract has token } } /* @notice Claim CRV and deposit most premium token into Curve */ function harvest() external override onlyAuthorized { (address token, uint index) = _getMostPremiumToken(); _claimRewards(token); uint bal = IERC20(token).balanceOf(address(this)); if (bal > 0) { // transfer fee to treasury uint fee = bal.mul(performanceFee) / PERFORMANCE_FEE_MAX; if (fee > 0) { address treasury = IController(controller).treasury(); require(treasury != address(0), "treasury = 0 address"); IERC20(token).safeTransfer(treasury, fee); } _deposit(token, index); emit Harvest(bal.sub(fee)); } } function skim() external override onlyAuthorized { uint total = _totalAssets(); require(total > totalDebt, "total underlying < debt"); uint profit = total - totalDebt; // protect against price manipulation uint max = totalDebt.mul(delta) / DELTA_MIN; if (total <= max) { /* total underlying is within reasonable bounds, probaly no price manipulation occured. */ /* If we were to withdraw profit followed by deposit, this would increase the total debt roughly by the profit. Withdrawing consumes high gas, so here we omit it and directly increase debt, as if withdraw and deposit were called. */ // total debt = total debt + profit = total totalDebt = total; } else { /* Possible reasons for total underlying > max 1. total debt = 0 2. total underlying really did increase over max 3. price was manipulated */ uint withdrawn = _withdraw(profit); if (withdrawn > 0) { IERC20(underlying).safeTransfer(vault, withdrawn); } } emit Skim(profit); } function exit() external override onlyAuthorized { if (forceExit) { return; } _claimRewards(underlying); _withdrawAll(); } function sweep(address _token) external override onlyAdmin { require(_token != underlying, "protected token"); require(_token != GAUGE, "protected token"); IERC20(_token).safeTransfer(admin, IERC20(_token).balanceOf(address(this))); } } // File: contracts/strategies/StrategyCurveUsdpUsdt.sol contract StrategyCurveUsdpUsdt is StrategyCurveUsdp { constructor( address _controller, address _vault, address _keeper ) public StrategyCurveUsdp(_controller, _vault, USDT, 3, _keeper) {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_keeper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"}],"name":"Skim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"acceptAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delta","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forceExit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delta","type":"uint256"}],"name":"setDelta","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_forceExit","type":"bool"}],"name":"setForceExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nextAdmin","type":"address"}],"name":"setNextAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_shouldClaimRewards","type":"bool"}],"name":"setShouldClaimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"setSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shouldClaimRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101f460055561018060405260016101008181526101209190915264e8d4a51000610140819052610160526200003a9060079060046200087c565b506064600b55612742600c553480156200005357600080fd5b50604051620038b9380380620038b9833981810160405260608110156200007957600080fd5b5080516020820151604090920151909190828273dac17f958d2ee523a2206206994597c13d831ec7600384848484836001600160a01b03841662000104576040805162461bcd60e51b815260206004820152601960248201527f636f6e74726f6c6c6572203d207a65726f206164647265737300000000000000604482015290519081900360640190fd5b6001600160a01b03831662000160576040805162461bcd60e51b815260206004820152601460248201527f7661756c74203d207a65726f2061646472657373000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038216620001bc576040805162461bcd60e51b815260206004820152601960248201527f756e6465726c79696e67203d207a65726f206164647265737300000000000000604482015290519081900360640190fd5b6001600160a01b03811662000218576040805162461bcd60e51b815260206004820152601560248201527f6b6565706572203d207a65726f20616464726573730000000000000000000000604482015290519081900360640190fd5b600080546001600160a01b03199081163317909155600280546001600160a01b039687169083161790556001600160601b0319606094851b81166080529290931b90911660a0526003805491909316911617905560c0829052600782600481106200027f57fe5b015460e052620002c2731456688345527be1f37e9e627da0837d6f08c925600080516020620038398339815191526000196200044e602090811b6200146317901c565b62000300736b175474e89094c44da98b954eedeac495271d0f600080516020620038398339815191526000196200044e602090811b6200146317901c565b6200033e73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48600080516020620038398339815191526000196200044e602090811b6200146317901c565b6200037c73dac17f958d2ee523a2206206994597c13d831ec7600080516020620038398339815191526000196200044e602090811b6200146317901c565b620003bf737eb40e450b9655f4b3cc4259bcc731c63ff55ae673055be5ddb7a925bfef3417fc157f53ca77ca72226000196200044e602090811b6200146317901c565b620003fd737eb40e450b9655f4b3cc4259bcc731c63ff55ae6600080516020620038398339815191526000196200044e602090811b6200146317901c565b6200044073d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d6000196200044e602090811b6200146317901c565b5050505050505050620008e8565b801580620004d8575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015620004a857600080fd5b505afa158015620004bd573d6000803e3d6000fd5b505050506040513d6020811015620004d457600080fd5b5051155b620005155760405162461bcd60e51b8152600401808060200182810382526036815260200180620038836036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200056d9185916200057216565b505050565b6060620005ce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200062e60201b62001576179092919060201c565b8051909150156200056d57808060200190516020811015620005ef57600080fd5b50516200056d5760405162461bcd60e51b815260040180806020018281038252602a81526020018062003859602a913960400191505060405180910390fd5b60606200064884846000856001600160e01b036200065216565b90505b9392505050565b606082471015620006955760405162461bcd60e51b8152600401808060200182810382526026815260200180620038136026913960400191505060405180910390fd5b620006a9856001600160e01b03620007cc16565b620006fb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106200073c5780518252601f1990920191602091820191016200071b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114620007a0576040519150601f19603f3d011682016040523d82523d6000602084013e620007a5565b606091505b509092509050620007c18282866001600160e01b03620007d216565b979650505050505050565b3b151590565b60608315620007e35750816200064b565b825115620007f45782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200084057818101518382015260200162000826565b50505050905090810190601f1680156200086e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b8260048101928215620008b6579160200282015b82811115620008b6578251829064ffffffffff1690559160200191906001019062000890565b50620008c4929150620008c8565b5090565b620008e591905b80821115620008c45760008155600101620008cf565b90565b60805160601c60a05160601c60c05160e051612e7c62000997600039806116ed52508061123f52806118cb52508061045952806108575280610d60528061121e5280611362528061199f5280611a205280611a905280612399528061242152806124cf528061255052806125c1525080610724528061087952806109125280610aeb5280610f6a528061115352806112d7528061143b5280611a42528061244352806125725250612e7c6000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063748747e611610104578063b6b55f25116100a2578063f77c479111610071578063f77c4791146103ef578063f851a440146103f7578063fbfa77cf146103ff578063fc7b9c1814610407576101cf565b8063b6b55f25146103a5578063c9a8af58146103c2578063e9fad8ee146103ca578063f0fa55a9146103d2576101cf565b806387788782116100de578063877887821461035057806392eefe9b1461035857806398234beb1461037e578063aced16611461039d576101cf565b8063748747e6146103035780637ab30f0814610329578063853828b614610348576101cf565b80632e1a7d4d116101715780634641257d1161014b5780634641257d146102ba57806367acc704146102c25780636f307dc3146102de57806370897b23146102e6576101cf565b80632e1a7d4d1461026f5780633e032a3b1461028c5780633e72210914610294576101cf565b80630d673938116101ad5780630d673938146102335780630e18b6811461025757806312b495a81461025f5780631dd19cb414610267576101cf565b806301681a62146101d457806301e1d114146101fc578063025ff0a514610216575b600080fd5b6101fa600480360360208110156101ea57600080fd5b50356001600160a01b031661040f565b005b6102046105cd565b60408051918252519081900360200190f35b6101fa6004803603602081101561022c57600080fd5b50356105dc565b61023b61066e565b604080516001600160a01b039092168252519081900360200190f35b6101fa61067d565b6102046106ea565b6101fa6106f0565b6101fa6004803603602081101561028557600080fd5b50356108de565b6102046109ed565b6101fa600480360360208110156102aa57600080fd5b50356001600160a01b03166109f3565b6101fa610ab7565b6102ca610d55565b604080519115158252519081900360200190f35b61023b610d5e565b6101fa600480360360208110156102fc57600080fd5b5035610d82565b6101fa6004803603602081101561031957600080fd5b50356001600160a01b0316610e1e565b6101fa6004803603602081101561033f57600080fd5b50351515610edb565b6101fa610f36565b610204610fea565b6101fa6004803603602081101561036e57600080fd5b50356001600160a01b0316610ff0565b6101fa6004803603602081101561039457600080fd5b503515156110b5565b61023b611110565b6101fa600480360360208110156103bb57600080fd5b503561111f565b6102ca61129a565b6101fa6112a3565b6101fa600480360360208110156103e857600080fd5b5035611386565b61023b61141b565b61023b61142a565b61023b611439565b61020461145d565b6000546001600160a01b03163314610457576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b031614156104d0576040805162461bcd60e51b815260206004820152600f60248201526e383937ba32b1ba32b2103a37b5b2b760891b604482015290519081900360640190fd5b6001600160a01b03811673055be5ddb7a925bfef3417fc157f53ca77ca72221415610534576040805162461bcd60e51b815260206004820152600f60248201526e383937ba32b1ba32b2103a37b5b2b760891b604482015290519081900360640190fd5b600054604080516370a0823160e01b815230600482015290516105ca926001600160a01b0390811692908516916370a0823191602480820192602092909190829003018186803b15801561058757600080fd5b505afa15801561059b573d6000803e3d6000fd5b505050506040513d60208110156105b157600080fd5b50516001600160a01b038416919063ffffffff61158f16565b50565b60006105d76115e1565b905090565b6000546001600160a01b03163314610624576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b612710811015610669576040805162461bcd60e51b815260206004820152600b60248201526a3232b63a30901e1036b4b760a91b604482015290519081900360640190fd5b600c55565b6001546001600160a01b031681565b6001546001600160a01b031633146106ca576040805162461bcd60e51b815260206004820152600b60248201526a10b732bc3a1030b236b4b760a91b604482015290519081900360640190fd5b600080546001600160a01b03199081163317909155600180549091169055565b600c5481565b6000546001600160a01b031633148061071357506002546001600160a01b031633145b806107465750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b8061075b57506003546001600160a01b031633145b61079a576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60006107a46115e1565b905060045481116107fc576040805162461bcd60e51b815260206004820152601760248201527f746f74616c20756e6465726c79696e67203c2064656274000000000000000000604482015290519081900360640190fd5b600454600c54818303916000916127109161081c9163ffffffff61172c16565b8161082357fe5b0490508083116108375760048390556108a6565b60006108428361178e565b905080156108a4576108a46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008363ffffffff61158f16565b505b6040805183815290517f09639ca13db231feb5ad02aa7a3e9d59549523814fbf88e0f7b51412c7d482519181900360200190a1505050565b6000546001600160a01b031633148061090157506002546001600160a01b031633145b806109345750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b8061094957506003546001600160a01b031633145b610988576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60006109938261178e565b9050818110156109a1578091505b600082156109b5576109b28361197a565b90505b6040805182815290517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9181900360200190a1505050565b600b5481565b6000546001600160a01b03163314610a3b576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6000546001600160a01b0382811691161415610a95576040805162461bcd60e51b81526020600482015260146024820152731b995e1d0818591b5a5b880f4818dd5c9c995b9d60621b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480610ada57506002546001600160a01b031633145b80610b0d5750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b80610b2257506003546001600160a01b031633145b610b61576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b600080610b6c611b3e565b91509150610b7982611eaa565b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b158015610bc357600080fd5b505afa158015610bd7573d6000803e3d6000fd5b505050506040513d6020811015610bed57600080fd5b505190508015610d50576000612710610c116005548461172c90919063ffffffff16565b81610c1857fe5b0490508015610d0257600254604080516361d027b360e01b815290516000926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015610c6657600080fd5b505afa158015610c7a573d6000803e3d6000fd5b505050506040513d6020811015610c9057600080fd5b505190506001600160a01b038116610ce6576040805162461bcd60e51b81526020600482015260146024820152737472656173757279203d2030206164647265737360601b604482015290519081900360640190fd5b610d006001600160a01b038616828463ffffffff61158f16565b505b610d0c8484612050565b7f80f97f878e16410266694f134ddf012f2be424f54f8b5cafa107eccc51d00d58610d3d838363ffffffff61230d16565b60408051918252519081900360200190a1505b505050565b60065460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03163314610dca576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6107d0811115610e19576040805162461bcd60e51b81526020600482015260156024820152740706572666f726d616e636520666565203e2063617605c1b604482015290519081900360640190fd5b600555565b6000546001600160a01b03163314610e66576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6001600160a01b038116610eb9576040805162461bcd60e51b81526020600482015260156024820152746b6565706572203d207a65726f206164647265737360581b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610f23576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b600d805460ff1916911515919091179055565b6000546001600160a01b0316331480610f5957506002546001600160a01b031633145b80610f8c5750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b80610fa157506003546001600160a01b031633145b610fe0576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b610fe861236a565b565b60055481565b6000546001600160a01b03163314611038576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6001600160a01b038116611093576040805162461bcd60e51b815260206004820152601960248201527f636f6e74726f6c6c6572203d207a65726f206164647265737300000000000000604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146110fd576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6006805460ff1916911515919091179055565b6003546001600160a01b031681565b6000546001600160a01b031633148061114257506002546001600160a01b031633145b806111755750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b8061118a57506003546001600160a01b031633145b6111c9576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6000811161120c576040805162461bcd60e51b815260206004820152600b60248201526a06465706f736974203d20360ac1b604482015290519081900360640190fd5b6000611217826124aa565b90506112637f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612050565b6040805182815290517f4d6ce1e535dbade1c23defba91e23b8f791ce5edc0cc320257a2b364e4e384269181900360200190a15050565b600d5460ff1681565b6000546001600160a01b03163314806112c657506002546001600160a01b031633145b806112f95750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b8061130e57506003546001600160a01b031633145b61134d576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60065460ff161561135d57610fe8565b610fe07f0000000000000000000000000000000000000000000000000000000000000000611eaa565b6000546001600160a01b031633146113ce576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b612710811115611416576040805162461bcd60e51b815260206004820152600e60248201526d0e6d8d2e0e0c2ceca407c40dac2f60931b604482015290519081900360640190fd5b600b55565b6002546001600160a01b031681565b6000546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60045481565b8015806114e9575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156114bb57600080fd5b505afa1580156114cf573d6000803e3d6000fd5b505050506040513d60208110156114e557600080fd5b5051155b6115245760405162461bcd60e51b8152600401808060200182810382526036815260200180612e116036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610d50908490612669565b6060611585848460008561271a565b90505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d50908490612669565b604080516370a0823160e01b81523060048201529051600091829173055be5ddb7a925bfef3417fc157f53ca77ca7222916370a08231916024808301926020929190829003018186803b15801561163757600080fd5b505afa15801561164b573d6000803e3d6000fd5b505050506040513d602081101561166157600080fd5b505160408051630176f71760e71b815290519192506000917342d7025938bec20b69cbae5a77421082407f053a9163bb7b8b80916004808301926020929190829003018186803b1580156116b457600080fd5b505afa1580156116c8573d6000803e3d6000fd5b505050506040513d60208110156116de57600080fd5b50519050670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000000261171d838363ffffffff61172c16565b8161172457fe5b049250505090565b60008261173b57506000611788565b8282028284828161174857fe5b04146117855760405162461bcd60e51b8152600401808060200182810382526021815260200180612dc66021913960400191505060405180910390fd5b90505b92915050565b60008082116117d3576040805162461bcd60e51b815260206004820152600c60248201526b07769746864726177203d20360a41b604482015290519081900360640190fd5b60006117dd6115e1565b90508083106117ea578092505b60006117f4612876565b905060006118038584846128fc565b9050801561196d5773055be5ddb7a925bfef3417fc157f53ca77ca72226001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561186557600080fd5b505af1158015611879573d6000803e3d6000fd5b50505050600061271061189b600b54612710038861172c90919063ffffffff16565b816118a257fe5b049050733c8caee4e09296800f8d29a68fa3837e2dae49406001600160a01b0316631a4d01d2837f0000000000000000000000000000000000000000000000000000000000000000846040518463ffffffff1660e01b81526004018084815260200183600f0b600f0b81526020018281526020019350505050602060405180830381600087803b15801561193557600080fd5b505af1158015611949573d6000803e3d6000fd5b505050506040513d602081101561195f57600080fd5b505194506119759350505050565b600093505050505b919050565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156119e557600080fd5b505afa1580156119f9573d6000803e3d6000fd5b505050506040513d6020811015611a0f57600080fd5b50519050611a6d6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008563ffffffff61158f16565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015611ad757600080fd5b505afa158015611aeb573d6000803e3d6000fd5b505050506040513d6020811015611b0157600080fd5b505190506000611b17838363ffffffff61230d16565b90506004548110611b2c576000600455611b36565b6004805482900390555b949350505050565b600080611b49612d45565b60408051634903b0d160e01b81526000600482015290517342d7025938bec20b69cbae5a77421082407f053a91634903b0d1916024808301926020929190829003018186803b158015611b9b57600080fd5b505afa158015611baf573d6000803e3d6000fd5b505050506040513d6020811015611bc557600080fd5b5051815260408051634903b0d160e01b81526001600482015290517342d7025938bec20b69cbae5a77421082407f053a91634903b0d1916024808301926020929190829003018186803b158015611c1b57600080fd5b505afa158015611c2f573d6000803e3d6000fd5b505050506040513d6020811015611c4557600080fd5b505160208201819052815111611c765750731456688345527be1f37e9e627da0837d6f08c925915060009050611ea6565b611c7e612d63565b60408051634903b0d160e01b815260006004820152905173bebc44782c7db0a1a60cb6fe97d0b483032ff1c791634903b0d1916024808301926020929190829003018186803b158015611cd057600080fd5b505afa158015611ce4573d6000803e3d6000fd5b505050506040513d6020811015611cfa57600080fd5b5051815260408051634903b0d160e01b8152600160048201529051611d939164e8d4a510009173bebc44782c7db0a1a60cb6fe97d0b483032ff1c791634903b0d1916024808301926020929190829003018186803b158015611d5b57600080fd5b505afa158015611d6f573d6000803e3d6000fd5b505050506040513d6020811015611d8557600080fd5b50519063ffffffff61172c16565b60208083019190915260408051634903b0d160e01b8152600260048201529051611df79264e8d4a510009273bebc44782c7db0a1a60cb6fe97d0b483032ff1c792634903b0d192602480840193919291829003018186803b158015611d5b57600080fd5b60408201526020810151815111801590611e1657506040810151815111155b15611e3e5750736b175474e89094c44da98b954eedeac495271d0f925060019150611ea69050565b8051602082015111801590611e5b57506040810151602082015111155b15611e83575073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48925060029150611ea69050565b5073dac17f958d2ee523a2206206994597c13d831ec7925060039150611ea69050565b9091565b600d5460ff1615611f1d5773055be5ddb7a925bfef3417fc157f53ca77ca72226001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f0457600080fd5b505af1158015611f18573d6000803e3d6000fd5b505050505b604080516335313c2160e11b815273055be5ddb7a925bfef3417fc157f53ca77ca72226004820152905173d061d61a4d941c39e5453435b6345dc261c2fce091636a62784291602480830192600092919082900301818387803b158015611f8357600080fd5b505af1158015611f97573d6000803e3d6000fd5b5050604080516370a0823160e01b815230600482015290516000935073d533a949740bb3306d119cc777fa900ba034cd5292506370a0823191602480820192602092909190829003018186803b158015611ff057600080fd5b505afa158015612004573d6000803e3d6000fd5b505050506040513d602081101561201a57600080fd5b50519050670de0b6b3a7640000811061204c5761204c73d533a949740bb3306d119cc777fa900ba034cd52838361293c565b5050565b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561209a57600080fd5b505afa1580156120ae573d6000803e3d6000fd5b505050506040513d60208110156120c457600080fd5b505190508015610d50576120d6612d81565b818184600481106120e357fe5b60200201818152505060007342d7025938bec20b69cbae5a77421082407f053a6001600160a01b031663bb7b8b806040518163ffffffff1660e01b815260040160206040518083038186803b15801561213b57600080fd5b505afa15801561214f573d6000803e3d6000fd5b505050506040513d602081101561216557600080fd5b5051905060006121b2826121a6670de0b6b3a764000061219a60078a6004811061218b57fe5b0154899063ffffffff61172c16565b9063ffffffff61172c16565b9063ffffffff612b7a16565b905060006127106121d2600b54612710038461172c90919063ffffffff16565b816121d957fe5b60405162a6cbcd60e21b81529190049150600090733c8caee4e09296800f8d29a68fa3837e2dae49409063029b2f349087908590600401808360808083838b5b83811015612231578181015183820152602001612219565b5050505090500182815260200192505050602060405180830381600087803b15801561225c57600080fd5b505af1158015612270573d6000803e3d6000fd5b505050506040513d602081101561228657600080fd5b5051905080156123035773055be5ddb7a925bfef3417fc157f53ca77ca72226001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156122ea57600080fd5b505af11580156122fe573d6000803e3d6000fd5b505050505b5050505050505050565b600082821115612364576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b61237560001961178e565b50604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b1580156123e057600080fd5b505afa1580156123f4573d6000803e3d6000fd5b505050506040513d602081101561240a57600080fd5b5051905080156124745761246e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008363ffffffff61158f16565b60006004555b6040805182815290517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9181900360200190a150565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b15801561251557600080fd5b505afa158015612529573d6000803e3d6000fd5b505050506040513d602081101561253f57600080fd5b5051905061259e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000308663ffffffff612be116565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b15801561260857600080fd5b505afa15801561261c573d6000803e3d6000fd5b505050506040513d602081101561263257600080fd5b505190506000612648828463ffffffff61230d16565b60045490915061265e908263ffffffff612c4116565b600455949350505050565b60606126be826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115769092919063ffffffff16565b805190915015610d50578080602001905160208110156126dd57600080fd5b5051610d505760405162461bcd60e51b815260040180806020018281038252602a815260200180612de7602a913960400191505060405180910390fd5b60608247101561275b5760405162461bcd60e51b8152600401808060200182810382526026815260200180612da06026913960400191505060405180910390fd5b61276485612c9b565b6127b5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127f45780518252601f1990920191602091820191016127d5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612856576040519150601f19603f3d011682016040523d82523d6000602084013e61285b565b606091505b509150915061286b828286612ca1565b979650505050505050565b604080516370a0823160e01b8152306004820152905160009173055be5ddb7a925bfef3417fc157f53ca77ca7222916370a0823191602480820192602092909190829003018186803b1580156128cb57600080fd5b505afa1580156128df573d6000803e3d6000fd5b505050506040513d60208110156128f557600080fd5b5051905090565b6000821561293257828410612912575080611588565b82612923858463ffffffff61172c16565b8161292a57fe5b049050611588565b5060009392505050565b60408051600380825260808201909252606091602082018380368337019050509050838160008151811061296c57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106129ae57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505082816002815181106129dc57fe5b6001600160a01b039092166020928302919091018201526040516338ed173960e01b8152600481018481526001602483018190523060648401819052426084850181905260a060448601908152875160a48701528751737a250d5630b4cf539739df2c5dacb4c659f2488d976338ed1739978b978b9695949093909260c490920191878101910280838360005b83811015612a81578181015183820152602001612a69565b505050509050019650505050505050600060405180830381600087803b158015612aaa57600080fd5b505af1158015612abe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612ae757600080fd5b8101908080516040519392919084640100000000821115612b0757600080fd5b908301906020820185811115612b1c57600080fd5b8251866020820283011164010000000082111715612b3957600080fd5b82525081516020918201928201910280838360005b83811015612b66578181015183820152602001612b4e565b505050509050016040525050505050505050565b6000808211612bd0576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612bd957fe5b049392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612c3b908590612669565b50505050565b600082820183811015611785576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3b151590565b60608315612cb0575081611588565b825115612cc05782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612d0a578181015183820152602001612cf2565b50505050905090810190601f168015612d375780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806002906020820280368337509192915050565b60405180606001604052806003906020820280368337509192915050565b6040518060800160405280600490602082028036833750919291505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220f015a65c1d7c6cb4981c7450562b9c6b1b89b00d6d96a720052d578e1be5d48f64736f6c634300060b0033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c0000000000000000000000003c8caee4e09296800f8d29a68fa3837e2dae49405361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000000007d55c795359eb049ff482c8bd5e0523f0fb40b6f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad584000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063748747e611610104578063b6b55f25116100a2578063f77c479111610071578063f77c4791146103ef578063f851a440146103f7578063fbfa77cf146103ff578063fc7b9c1814610407576101cf565b8063b6b55f25146103a5578063c9a8af58146103c2578063e9fad8ee146103ca578063f0fa55a9146103d2576101cf565b806387788782116100de578063877887821461035057806392eefe9b1461035857806398234beb1461037e578063aced16611461039d576101cf565b8063748747e6146103035780637ab30f0814610329578063853828b614610348576101cf565b80632e1a7d4d116101715780634641257d1161014b5780634641257d146102ba57806367acc704146102c25780636f307dc3146102de57806370897b23146102e6576101cf565b80632e1a7d4d1461026f5780633e032a3b1461028c5780633e72210914610294576101cf565b80630d673938116101ad5780630d673938146102335780630e18b6811461025757806312b495a81461025f5780631dd19cb414610267576101cf565b806301681a62146101d457806301e1d114146101fc578063025ff0a514610216575b600080fd5b6101fa600480360360208110156101ea57600080fd5b50356001600160a01b031661040f565b005b6102046105cd565b60408051918252519081900360200190f35b6101fa6004803603602081101561022c57600080fd5b50356105dc565b61023b61066e565b604080516001600160a01b039092168252519081900360200190f35b6101fa61067d565b6102046106ea565b6101fa6106f0565b6101fa6004803603602081101561028557600080fd5b50356108de565b6102046109ed565b6101fa600480360360208110156102aa57600080fd5b50356001600160a01b03166109f3565b6101fa610ab7565b6102ca610d55565b604080519115158252519081900360200190f35b61023b610d5e565b6101fa600480360360208110156102fc57600080fd5b5035610d82565b6101fa6004803603602081101561031957600080fd5b50356001600160a01b0316610e1e565b6101fa6004803603602081101561033f57600080fd5b50351515610edb565b6101fa610f36565b610204610fea565b6101fa6004803603602081101561036e57600080fd5b50356001600160a01b0316610ff0565b6101fa6004803603602081101561039457600080fd5b503515156110b5565b61023b611110565b6101fa600480360360208110156103bb57600080fd5b503561111f565b6102ca61129a565b6101fa6112a3565b6101fa600480360360208110156103e857600080fd5b5035611386565b61023b61141b565b61023b61142a565b61023b611439565b61020461145d565b6000546001600160a01b03163314610457576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b7f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec76001600160a01b0316816001600160a01b031614156104d0576040805162461bcd60e51b815260206004820152600f60248201526e383937ba32b1ba32b2103a37b5b2b760891b604482015290519081900360640190fd5b6001600160a01b03811673055be5ddb7a925bfef3417fc157f53ca77ca72221415610534576040805162461bcd60e51b815260206004820152600f60248201526e383937ba32b1ba32b2103a37b5b2b760891b604482015290519081900360640190fd5b600054604080516370a0823160e01b815230600482015290516105ca926001600160a01b0390811692908516916370a0823191602480820192602092909190829003018186803b15801561058757600080fd5b505afa15801561059b573d6000803e3d6000fd5b505050506040513d60208110156105b157600080fd5b50516001600160a01b038416919063ffffffff61158f16565b50565b60006105d76115e1565b905090565b6000546001600160a01b03163314610624576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b612710811015610669576040805162461bcd60e51b815260206004820152600b60248201526a3232b63a30901e1036b4b760a91b604482015290519081900360640190fd5b600c55565b6001546001600160a01b031681565b6001546001600160a01b031633146106ca576040805162461bcd60e51b815260206004820152600b60248201526a10b732bc3a1030b236b4b760a91b604482015290519081900360640190fd5b600080546001600160a01b03199081163317909155600180549091169055565b600c5481565b6000546001600160a01b031633148061071357506002546001600160a01b031633145b806107465750336001600160a01b037f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad58416145b8061075b57506003546001600160a01b031633145b61079a576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60006107a46115e1565b905060045481116107fc576040805162461bcd60e51b815260206004820152601760248201527f746f74616c20756e6465726c79696e67203c2064656274000000000000000000604482015290519081900360640190fd5b600454600c54818303916000916127109161081c9163ffffffff61172c16565b8161082357fe5b0490508083116108375760048390556108a6565b60006108428361178e565b905080156108a4576108a46001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7167f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad5848363ffffffff61158f16565b505b6040805183815290517f09639ca13db231feb5ad02aa7a3e9d59549523814fbf88e0f7b51412c7d482519181900360200190a1505050565b6000546001600160a01b031633148061090157506002546001600160a01b031633145b806109345750336001600160a01b037f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad58416145b8061094957506003546001600160a01b031633145b610988576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60006109938261178e565b9050818110156109a1578091505b600082156109b5576109b28361197a565b90505b6040805182815290517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9181900360200190a1505050565b600b5481565b6000546001600160a01b03163314610a3b576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6000546001600160a01b0382811691161415610a95576040805162461bcd60e51b81526020600482015260146024820152731b995e1d0818591b5a5b880f4818dd5c9c995b9d60621b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480610ada57506002546001600160a01b031633145b80610b0d5750336001600160a01b037f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad58416145b80610b2257506003546001600160a01b031633145b610b61576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b600080610b6c611b3e565b91509150610b7982611eaa565b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b158015610bc357600080fd5b505afa158015610bd7573d6000803e3d6000fd5b505050506040513d6020811015610bed57600080fd5b505190508015610d50576000612710610c116005548461172c90919063ffffffff16565b81610c1857fe5b0490508015610d0257600254604080516361d027b360e01b815290516000926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015610c6657600080fd5b505afa158015610c7a573d6000803e3d6000fd5b505050506040513d6020811015610c9057600080fd5b505190506001600160a01b038116610ce6576040805162461bcd60e51b81526020600482015260146024820152737472656173757279203d2030206164647265737360601b604482015290519081900360640190fd5b610d006001600160a01b038616828463ffffffff61158f16565b505b610d0c8484612050565b7f80f97f878e16410266694f134ddf012f2be424f54f8b5cafa107eccc51d00d58610d3d838363ffffffff61230d16565b60408051918252519081900360200190a1505b505050565b60065460ff1681565b7f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781565b6000546001600160a01b03163314610dca576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6107d0811115610e19576040805162461bcd60e51b81526020600482015260156024820152740706572666f726d616e636520666565203e2063617605c1b604482015290519081900360640190fd5b600555565b6000546001600160a01b03163314610e66576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6001600160a01b038116610eb9576040805162461bcd60e51b81526020600482015260156024820152746b6565706572203d207a65726f206164647265737360581b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610f23576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b600d805460ff1916911515919091179055565b6000546001600160a01b0316331480610f5957506002546001600160a01b031633145b80610f8c5750336001600160a01b037f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad58416145b80610fa157506003546001600160a01b031633145b610fe0576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b610fe861236a565b565b60055481565b6000546001600160a01b03163314611038576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6001600160a01b038116611093576040805162461bcd60e51b815260206004820152601960248201527f636f6e74726f6c6c6572203d207a65726f206164647265737300000000000000604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146110fd576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6006805460ff1916911515919091179055565b6003546001600160a01b031681565b6000546001600160a01b031633148061114257506002546001600160a01b031633145b806111755750336001600160a01b037f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad58416145b8061118a57506003546001600160a01b031633145b6111c9576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6000811161120c576040805162461bcd60e51b815260206004820152600b60248201526a06465706f736974203d20360ac1b604482015290519081900360640190fd5b6000611217826124aa565b90506112637f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec77f0000000000000000000000000000000000000000000000000000000000000003612050565b6040805182815290517f4d6ce1e535dbade1c23defba91e23b8f791ce5edc0cc320257a2b364e4e384269181900360200190a15050565b600d5460ff1681565b6000546001600160a01b03163314806112c657506002546001600160a01b031633145b806112f95750336001600160a01b037f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad58416145b8061130e57506003546001600160a01b031633145b61134d576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b60065460ff161561135d57610fe8565b610fe07f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7611eaa565b6000546001600160a01b031633146113ce576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b612710811115611416576040805162461bcd60e51b815260206004820152600e60248201526d0e6d8d2e0e0c2ceca407c40dac2f60931b604482015290519081900360640190fd5b600b55565b6002546001600160a01b031681565b6000546001600160a01b031681565b7f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad58481565b60045481565b8015806114e9575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156114bb57600080fd5b505afa1580156114cf573d6000803e3d6000fd5b505050506040513d60208110156114e557600080fd5b5051155b6115245760405162461bcd60e51b8152600401808060200182810382526036815260200180612e116036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610d50908490612669565b6060611585848460008561271a565b90505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d50908490612669565b604080516370a0823160e01b81523060048201529051600091829173055be5ddb7a925bfef3417fc157f53ca77ca7222916370a08231916024808301926020929190829003018186803b15801561163757600080fd5b505afa15801561164b573d6000803e3d6000fd5b505050506040513d602081101561166157600080fd5b505160408051630176f71760e71b815290519192506000917342d7025938bec20b69cbae5a77421082407f053a9163bb7b8b80916004808301926020929190829003018186803b1580156116b457600080fd5b505afa1580156116c8573d6000803e3d6000fd5b505050506040513d60208110156116de57600080fd5b50519050670de0b6b3a76400007f000000000000000000000000000000000000000000000000000000e8d4a510000261171d838363ffffffff61172c16565b8161172457fe5b049250505090565b60008261173b57506000611788565b8282028284828161174857fe5b04146117855760405162461bcd60e51b8152600401808060200182810382526021815260200180612dc66021913960400191505060405180910390fd5b90505b92915050565b60008082116117d3576040805162461bcd60e51b815260206004820152600c60248201526b07769746864726177203d20360a41b604482015290519081900360640190fd5b60006117dd6115e1565b90508083106117ea578092505b60006117f4612876565b905060006118038584846128fc565b9050801561196d5773055be5ddb7a925bfef3417fc157f53ca77ca72226001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561186557600080fd5b505af1158015611879573d6000803e3d6000fd5b50505050600061271061189b600b54612710038861172c90919063ffffffff16565b816118a257fe5b049050733c8caee4e09296800f8d29a68fa3837e2dae49406001600160a01b0316631a4d01d2837f0000000000000000000000000000000000000000000000000000000000000003846040518463ffffffff1660e01b81526004018084815260200183600f0b600f0b81526020018281526020019350505050602060405180830381600087803b15801561193557600080fd5b505af1158015611949573d6000803e3d6000fd5b505050506040513d602081101561195f57600080fd5b505194506119759350505050565b600093505050505b919050565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716916370a08231916024808301926020929190829003018186803b1580156119e557600080fd5b505afa1580156119f9573d6000803e3d6000fd5b505050506040513d6020811015611a0f57600080fd5b50519050611a6d6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7167f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad5848563ffffffff61158f16565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716916370a0823191602480820192602092909190829003018186803b158015611ad757600080fd5b505afa158015611aeb573d6000803e3d6000fd5b505050506040513d6020811015611b0157600080fd5b505190506000611b17838363ffffffff61230d16565b90506004548110611b2c576000600455611b36565b6004805482900390555b949350505050565b600080611b49612d45565b60408051634903b0d160e01b81526000600482015290517342d7025938bec20b69cbae5a77421082407f053a91634903b0d1916024808301926020929190829003018186803b158015611b9b57600080fd5b505afa158015611baf573d6000803e3d6000fd5b505050506040513d6020811015611bc557600080fd5b5051815260408051634903b0d160e01b81526001600482015290517342d7025938bec20b69cbae5a77421082407f053a91634903b0d1916024808301926020929190829003018186803b158015611c1b57600080fd5b505afa158015611c2f573d6000803e3d6000fd5b505050506040513d6020811015611c4557600080fd5b505160208201819052815111611c765750731456688345527be1f37e9e627da0837d6f08c925915060009050611ea6565b611c7e612d63565b60408051634903b0d160e01b815260006004820152905173bebc44782c7db0a1a60cb6fe97d0b483032ff1c791634903b0d1916024808301926020929190829003018186803b158015611cd057600080fd5b505afa158015611ce4573d6000803e3d6000fd5b505050506040513d6020811015611cfa57600080fd5b5051815260408051634903b0d160e01b8152600160048201529051611d939164e8d4a510009173bebc44782c7db0a1a60cb6fe97d0b483032ff1c791634903b0d1916024808301926020929190829003018186803b158015611d5b57600080fd5b505afa158015611d6f573d6000803e3d6000fd5b505050506040513d6020811015611d8557600080fd5b50519063ffffffff61172c16565b60208083019190915260408051634903b0d160e01b8152600260048201529051611df79264e8d4a510009273bebc44782c7db0a1a60cb6fe97d0b483032ff1c792634903b0d192602480840193919291829003018186803b158015611d5b57600080fd5b60408201526020810151815111801590611e1657506040810151815111155b15611e3e5750736b175474e89094c44da98b954eedeac495271d0f925060019150611ea69050565b8051602082015111801590611e5b57506040810151602082015111155b15611e83575073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48925060029150611ea69050565b5073dac17f958d2ee523a2206206994597c13d831ec7925060039150611ea69050565b9091565b600d5460ff1615611f1d5773055be5ddb7a925bfef3417fc157f53ca77ca72226001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f0457600080fd5b505af1158015611f18573d6000803e3d6000fd5b505050505b604080516335313c2160e11b815273055be5ddb7a925bfef3417fc157f53ca77ca72226004820152905173d061d61a4d941c39e5453435b6345dc261c2fce091636a62784291602480830192600092919082900301818387803b158015611f8357600080fd5b505af1158015611f97573d6000803e3d6000fd5b5050604080516370a0823160e01b815230600482015290516000935073d533a949740bb3306d119cc777fa900ba034cd5292506370a0823191602480820192602092909190829003018186803b158015611ff057600080fd5b505afa158015612004573d6000803e3d6000fd5b505050506040513d602081101561201a57600080fd5b50519050670de0b6b3a7640000811061204c5761204c73d533a949740bb3306d119cc777fa900ba034cd52838361293c565b5050565b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561209a57600080fd5b505afa1580156120ae573d6000803e3d6000fd5b505050506040513d60208110156120c457600080fd5b505190508015610d50576120d6612d81565b818184600481106120e357fe5b60200201818152505060007342d7025938bec20b69cbae5a77421082407f053a6001600160a01b031663bb7b8b806040518163ffffffff1660e01b815260040160206040518083038186803b15801561213b57600080fd5b505afa15801561214f573d6000803e3d6000fd5b505050506040513d602081101561216557600080fd5b5051905060006121b2826121a6670de0b6b3a764000061219a60078a6004811061218b57fe5b0154899063ffffffff61172c16565b9063ffffffff61172c16565b9063ffffffff612b7a16565b905060006127106121d2600b54612710038461172c90919063ffffffff16565b816121d957fe5b60405162a6cbcd60e21b81529190049150600090733c8caee4e09296800f8d29a68fa3837e2dae49409063029b2f349087908590600401808360808083838b5b83811015612231578181015183820152602001612219565b5050505090500182815260200192505050602060405180830381600087803b15801561225c57600080fd5b505af1158015612270573d6000803e3d6000fd5b505050506040513d602081101561228657600080fd5b5051905080156123035773055be5ddb7a925bfef3417fc157f53ca77ca72226001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156122ea57600080fd5b505af11580156122fe573d6000803e3d6000fd5b505050505b5050505050505050565b600082821115612364576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b61237560001961178e565b50604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716916370a0823191602480820192602092909190829003018186803b1580156123e057600080fd5b505afa1580156123f4573d6000803e3d6000fd5b505050506040513d602081101561240a57600080fd5b5051905080156124745761246e6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7167f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad5848363ffffffff61158f16565b60006004555b6040805182815290517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9181900360200190a150565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716916370a08231916024808301926020929190829003018186803b15801561251557600080fd5b505afa158015612529573d6000803e3d6000fd5b505050506040513d602081101561253f57600080fd5b5051905061259e6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7167f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad584308663ffffffff612be116565b604080516370a0823160e01b815230600482015290516000916001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716916370a0823191602480820192602092909190829003018186803b15801561260857600080fd5b505afa15801561261c573d6000803e3d6000fd5b505050506040513d602081101561263257600080fd5b505190506000612648828463ffffffff61230d16565b60045490915061265e908263ffffffff612c4116565b600455949350505050565b60606126be826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115769092919063ffffffff16565b805190915015610d50578080602001905160208110156126dd57600080fd5b5051610d505760405162461bcd60e51b815260040180806020018281038252602a815260200180612de7602a913960400191505060405180910390fd5b60608247101561275b5760405162461bcd60e51b8152600401808060200182810382526026815260200180612da06026913960400191505060405180910390fd5b61276485612c9b565b6127b5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127f45780518252601f1990920191602091820191016127d5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612856576040519150601f19603f3d011682016040523d82523d6000602084013e61285b565b606091505b509150915061286b828286612ca1565b979650505050505050565b604080516370a0823160e01b8152306004820152905160009173055be5ddb7a925bfef3417fc157f53ca77ca7222916370a0823191602480820192602092909190829003018186803b1580156128cb57600080fd5b505afa1580156128df573d6000803e3d6000fd5b505050506040513d60208110156128f557600080fd5b5051905090565b6000821561293257828410612912575080611588565b82612923858463ffffffff61172c16565b8161292a57fe5b049050611588565b5060009392505050565b60408051600380825260808201909252606091602082018380368337019050509050838160008151811061296c57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106129ae57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505082816002815181106129dc57fe5b6001600160a01b039092166020928302919091018201526040516338ed173960e01b8152600481018481526001602483018190523060648401819052426084850181905260a060448601908152875160a48701528751737a250d5630b4cf539739df2c5dacb4c659f2488d976338ed1739978b978b9695949093909260c490920191878101910280838360005b83811015612a81578181015183820152602001612a69565b505050509050019650505050505050600060405180830381600087803b158015612aaa57600080fd5b505af1158015612abe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612ae757600080fd5b8101908080516040519392919084640100000000821115612b0757600080fd5b908301906020820185811115612b1c57600080fd5b8251866020820283011164010000000082111715612b3957600080fd5b82525081516020918201928201910280838360005b83811015612b66578181015183820152602001612b4e565b505050509050016040525050505050505050565b6000808211612bd0576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612bd957fe5b049392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612c3b908590612669565b50505050565b600082820183811015611785576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3b151590565b60608315612cb0575081611588565b825115612cc05782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612d0a578181015183820152602001612cf2565b50505050905090810190601f168015612d375780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806002906020820280368337509192915050565b60405180606001604052806003906020820280368337509192915050565b6040518060800160405280600490602082028036833750919291505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220f015a65c1d7c6cb4981c7450562b9c6b1b89b00d6d96a720052d578e1be5d48f64736f6c634300060b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007d55c795359eb049ff482c8bd5e0523f0fb40b6f000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad584000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
-----Decoded View---------------
Arg [0] : _controller (address): 0x7D55C795359eB049FF482c8Bd5E0523F0fB40B6f
Arg [1] : _vault (address): 0x178Bf8fD04b47D2De3eF3f6b3D112106375ad584
Arg [2] : _keeper (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007d55c795359eb049ff482c8bd5e0523f0fb40b6f
Arg [1] : 000000000000000000000000178bf8fd04b47d2de3ef3f6b3d112106375ad584
Arg [2] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Deployed Bytecode Sourcemap
47568:228:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47236:266;;;;;;;;;;;;;;;;-1:-1:-1;47236:266:0;-1:-1:-1;;;;;47236:266:0;;:::i;:::-;;37224:101;;;:::i;:::-;;;;;;;;;;;;;;;;36558:137;;;;;;;;;;;;;;;;-1:-1:-1;36558:137:0;;:::i;27358:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;27358:24:0;;;;;;;;;;;;;;29290:160;;;:::i;34770:25::-;;;:::i;45717:1327::-;;;:::i;41598:425::-;;;;;;;;;;;;;;;;-1:-1:-1;41598:425:0;;:::i;34572:26::-;;;:::i;29053:229::-;;;;;;;;;;;;;;;;-1:-1:-1;29053:229:0;-1:-1:-1;;;;;29053:229:0;;:::i;45011:698::-;;;:::i;28070:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;27476:44;;;:::i;29810:169::-;;;;;;;;;;;;;;;;-1:-1:-1;29810:169:0;;:::i;29646:156::-;;;;;;;;;;;;;;;;-1:-1:-1;29646:156:0;-1:-1:-1;;;;;29646:156:0;;:::i;36789:135::-;;;;;;;;;;;;;;;;-1:-1:-1;36789:135:0;;;;:::i;42388:89::-;;;:::i;27837:32::-;;;:::i;29458:180::-;;;;;;;;;;;;;;;;-1:-1:-1;29458:180:0;-1:-1:-1;;;;;29458:180:0;;:::i;29987:99::-;;;;;;;;;;;;;;;;-1:-1:-1;29987:99:0;;;;:::i;27637:21::-;;;:::i;39421:245::-;;;;;;;;;;;;;;;;-1:-1:-1;39421:245:0;;:::i;34899:30::-;;;:::i;47052:176::-;;;:::i;36240:158::-;;;;;;;;;;;;;;;;-1:-1:-1;36240:158:0;;:::i;27389:34::-;;;:::i;27322:29::-;;;:::i;27430:39::-;;;:::i;27725:30::-;;;:::i;47236:266::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;47324:10:::1;-1:-1:-1::0;;;;;47314:20:0::1;:6;-1:-1:-1::0;;;;;47314:20:0::1;;;47306:48;;;::::0;;-1:-1:-1;;;47306:48:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;47306:48:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;47373:15:0;::::1;34282:42;47373:15;;47365:43;;;::::0;;-1:-1:-1;;;47365:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;47365:43:0;;;;;;;;;;;;;::::1;;47447:5;::::0;47454:39:::1;::::0;;-1:-1:-1;;;47454:39:0;;47487:4:::1;47454:39;::::0;::::1;::::0;;;47419:75:::1;::::0;-1:-1:-1;;;;;47447:5:0;;::::1;::::0;47454:24;;::::1;::::0;::::1;::::0;:39;;;;;::::1;::::0;;;;;;;;;:24;:39;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;47454:39:0;-1:-1:-1;;;;;47419:27:0;::::1;::::0;:75;::::1;:27;:75;:::i;:::-;47236:266:::0;:::o;37224:101::-;37279:4;37303:14;:12;:14::i;:::-;37296:21;;37224:101;:::o;36558:137::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;34836:5:::1;36627:6;:19;;36619:43;;;::::0;;-1:-1:-1;;;36619:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;36619:43:0;;;;;;;;;;;;;::::1;;36673:5;:14:::0;36558:137::o;27358:24::-;;;-1:-1:-1;;;;;27358:24:0;;:::o;29290:160::-;29355:9;;-1:-1:-1;;;;;29355:9:0;29341:10;:23;29333:47;;;;;-1:-1:-1;;;29333:47:0;;;;;;;;;;;;-1:-1:-1;;;29333:47:0;;;;;;;;;;;;;;;29391:5;:18;;-1:-1:-1;;;;;;29391:18:0;;;29399:10;29391:18;;;;;29420:22;;;;;;;29290:160::o;34770:25::-;;;;:::o;45717:1327::-;28855:5;;-1:-1:-1;;;;;28855:5:0;28841:10;:19;;:64;;-1:-1:-1;28895:10:0;;-1:-1:-1;;;;;28895:10:0;28881;:24;28841:64;:104;;;-1:-1:-1;28926:10:0;-1:-1:-1;;;;;28940:5:0;28926:19;;28841:104;:145;;;-1:-1:-1;28980:6:0;;-1:-1:-1;;;;;28980:6:0;28966:10;:20;28841:145;28819:206;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;;;;45777:10:::1;45790:14;:12;:14::i;:::-;45777:27;;45831:9;;45823:5;:17;45815:53;;;::::0;;-1:-1:-1;;;45815:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;45903:9;::::0;45997:5:::1;::::0;45895:17;;::::1;::::0;45881:11:::1;::::0;34836:5:::1;::::0;45983:20:::1;::::0;::::1;:13;:20;:::i;:::-;:32;;;;;;45972:43;;46039:3;46030:5;:12;46026:981;;46574:9;:17:::0;;;46026:981:::1;;;46844:14;46861:17;46871:6;46861:9;:17::i;:::-;46844:34:::0;-1:-1:-1;46897:13:0;;46893:103:::1;;46931:49;-1:-1:-1::0;;;;;46938:10:0::1;46931:31;46963:5;46970:9:::0;46931:49:::1;:31;:49;:::i;:::-;46026:981;;47024:12;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;29036:1;;;45717:1327::o:0;41598:425::-;28855:5;;-1:-1:-1;;;;;28855:5:0;28841:10;:19;;:64;;-1:-1:-1;28895:10:0;;-1:-1:-1;;;;;28895:10:0;28881;:24;28841:64;:104;;;-1:-1:-1;28926:10:0;-1:-1:-1;;;;;28940:5:0;28926:19;;28841:104;:145;;;-1:-1:-1;28980:6:0;;-1:-1:-1;;;;;28980:6:0;28966:10;:20;28841:145;28819:206;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;;;;41674:14:::1;41691:18;41701:7;41691:9;:18::i;:::-;41674:35;;41738:7;41726:9;:19;41722:71;;;41772:9;41762:19;;41722:71;41891:9;41915:11:::0;;41911:73:::1;;41950:22;41964:7;41950:13;:22::i;:::-;41943:29;;41911:73;42001:14;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;29036:1;;41598:425:::0;:::o;34572:26::-;;;;:::o;29053:229::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;29147:5:::1;::::0;-1:-1:-1;;;;;29133:19:0;;::::1;29147:5:::0;::::1;29133:19;;29125:52;;;::::0;;-1:-1:-1;;;29125:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29125:52:0;;;;;;;;;;;;;::::1;;29252:9;:22:::0;;-1:-1:-1;;;;;;29252:22:0::1;-1:-1:-1::0;;;;;29252:22:0;;;::::1;::::0;;;::::1;::::0;;29053:229::o;45011:698::-;28855:5;;-1:-1:-1;;;;;28855:5:0;28841:10;:19;;:64;;-1:-1:-1;28895:10:0;;-1:-1:-1;;;;;28895:10:0;28881;:24;28841:64;:104;;;-1:-1:-1;28926:10:0;-1:-1:-1;;;;;28940:5:0;28926:19;;28841:104;:145;;;-1:-1:-1;28980:6:0;;-1:-1:-1;;;;;28980:6:0;28966:10;:20;28841:145;28819:206;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;;;;45075:13:::1;45090:10:::0;45104:22:::1;:20;:22::i;:::-;45074:52;;;;45139:20;45153:5;45139:13;:20::i;:::-;45183:38;::::0;;-1:-1:-1;;;45183:38:0;;45215:4:::1;45183:38;::::0;::::1;::::0;;;45172:8:::1;::::0;-1:-1:-1;;;;;45183:23:0;::::1;::::0;::::1;::::0;:38;;;;;::::1;::::0;;;;;;;;;:23;:38;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;45183:38:0;;-1:-1:-1;45236:7:0;;45232:470:::1;;45301:8;28010:5;45312:23;45320:14;;45312:3;:7;;:23;;;;:::i;:::-;:45;;;;;;::::0;-1:-1:-1;45376:7:0;;45372:237:::1;;45435:10;::::0;45423:34:::1;::::0;;-1:-1:-1;;;45423:34:0;;;;45404:16:::1;::::0;-1:-1:-1;;;;;45435:10:0::1;::::0;45423:32:::1;::::0;:34:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;45435:10;45423:34;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;45423:34:0;;-1:-1:-1;;;;;;45484:22:0;::::1;45476:55;;;::::0;;-1:-1:-1;;;45476:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;45476:55:0;;;;;;;;;;;;;::::1;;45552:41;-1:-1:-1::0;;;;;45552:26:0;::::1;45579:8:::0;45589:3;45552:41:::1;:26;:41;:::i;:::-;45372:237;;45625:22;45634:5;45641;45625:8;:22::i;:::-;45669:21;45677:12;:3:::0;45685;45677:12:::1;:7;:12;:::i;:::-;45669:21;::::0;;;;;;;;;;::::1;::::0;;::::1;45232:470;;29036:1;;;45011:698::o:0;28070:21::-;;;;;;:::o;27476:44::-;;;:::o;29810:169::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;27920:4:::1;29886;:27;;29878:61;;;::::0;;-1:-1:-1;;;29878:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29878:61:0;;;;;;;;;;;;;::::1;;29950:14;:21:::0;29810:169::o;29646:156::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29720:21:0;::::1;29712:55;;;::::0;;-1:-1:-1;;;29712:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29712:55:0;;;;;;;;;;;;;::::1;;29778:6;:16:::0;;-1:-1:-1;;;;;;29778:16:0::1;-1:-1:-1::0;;;;;29778:16:0;;;::::1;::::0;;;::::1;::::0;;29646:156::o;36789:135::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;36876:18:::1;:40:::0;;-1:-1:-1;;36876:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;36789:135::o;42388:89::-;28855:5;;-1:-1:-1;;;;;28855:5:0;28841:10;:19;;:64;;-1:-1:-1;28895:10:0;;-1:-1:-1;;;;;28895:10:0;28881;:24;28841:64;:104;;;-1:-1:-1;28926:10:0;-1:-1:-1;;;;;28940:5:0;28926:19;;28841:104;:145;;;-1:-1:-1;28980:6:0;;-1:-1:-1;;;;;28980:6:0;28966:10;:20;28841:145;28819:206;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;;;;42455:14:::1;:12;:14::i;:::-;42388:89::o:0;27837:32::-;;;;:::o;29458:180::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29540:25:0;::::1;29532:63;;;::::0;;-1:-1:-1;;;29532:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;29606:10;:24:::0;;-1:-1:-1;;;;;;29606:24:0::1;-1:-1:-1::0;;;;;29606:24:0;;;::::1;::::0;;;::::1;::::0;;29458:180::o;29987:99::-;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;30056:9:::1;:22:::0;;-1:-1:-1;;30056:22:0::1;::::0;::::1;;::::0;;;::::1;::::0;;29987:99::o;27637:21::-;;;-1:-1:-1;;;;;27637:21:0;;:::o;39421:245::-;28855:5;;-1:-1:-1;;;;;28855:5:0;28841:10;:19;;:64;;-1:-1:-1;28895:10:0;;-1:-1:-1;;;;;28895:10:0;28881;:24;28841:64;:104;;;-1:-1:-1;28926:10:0;-1:-1:-1;;;;;28940:5:0;28926:19;;28841:104;:145;;;-1:-1:-1;28980:6:0;;-1:-1:-1;;;;;28980:6:0;28966:10;:20;28841:145;28819:206;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;;;;39514:1:::1;39504:7;:11;39496:35;;;::::0;;-1:-1:-1;;;39496:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;39496:35:0;;;;;;;;;;;;;::::1;;39544:9;39556:22;39570:7;39556:13;:22::i;:::-;39544:34;;39589:38;39598:10;39610:16;39589:8;:38::i;:::-;39645:13;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;29036:1;39421:245:::0;:::o;34899:30::-;;;;;;:::o;47052:176::-;28855:5;;-1:-1:-1;;;;;28855:5:0;28841:10;:19;;:64;;-1:-1:-1;28895:10:0;;-1:-1:-1;;;;;28895:10:0;28881;:24;28841:64;:104;;;-1:-1:-1;28926:10:0;-1:-1:-1;;;;;28940:5:0;28926:19;;28841:104;:145;;;-1:-1:-1;28980:6:0;;-1:-1:-1;;;;;28980:6:0;28966:10;:20;28841:145;28819:206;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;-1:-1:-1;;;28819:206:0;;;;;;;;;;;;;;;47116:9:::1;::::0;::::1;;47112:48;;;47142:7;;47112:48;47170:25;47184:10;47170:13;:25::i;36240:158::-:0;28738:5;;-1:-1:-1;;;;;28738:5:0;28724:10;:19;28716:38;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;-1:-1:-1;;;28716:38:0;;;;;;;;;;;;;;;34642:5:::1;36315:9;:25;;36307:52;;;::::0;;-1:-1:-1;;;36307:52:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;36307:52:0;;;;;;;;;;;;;::::1;;36370:8;:20:::0;36240:158::o;27389:34::-;;;-1:-1:-1;;;;;27389:34:0;;:::o;27322:29::-;;;-1:-1:-1;;;;;27322:29:0;;:::o;27430:39::-;;;:::o;27725:30::-;;;;:::o;20136:704::-;20551:10;;;20550:62;;-1:-1:-1;20567:39:0;;;-1:-1:-1;;;20567:39:0;;20591:4;20567:39;;;;-1:-1:-1;;;;;20567:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20567:39:0;:44;20550:62;20528:166;;;;-1:-1:-1;;;20528:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20759:62;;;-1:-1:-1;;;;;20759:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20759:62:0;-1:-1:-1;;;20759:62:0;;;20705:127;;20739:5;;20705:19;:127::i;13887:229::-;14024:12;14056:52;14078:6;14086:4;14092:1;14095:12;14056:21;:52::i;:::-;14049:59;;13887:229;;;;;;:::o;19332:245::-;19500:58;;;-1:-1:-1;;;;;19500:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19500:58:0;-1:-1:-1;;;19500:58:0;;;19446:123;;19480:5;;19446:19;:123::i;36932:284::-;37008:48;;;-1:-1:-1;;;37008:48:0;;37050:4;37008:48;;;;;;36978:4;;;;34282:42;;37008:33;;:48;;;;;;;;;;;;;;34282:42;37008:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37008:48:0;37088:40;;;-1:-1:-1;;;37088:40:0;;;;37008:48;;-1:-1:-1;37067:18:0;;33949:42;;37088:38;;:40;;;;;37008:48;;37088:40;;;;;;;33949:42;37088:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37088:40:0;;-1:-1:-1;37203:4:0;37176:24;:31;37148:24;:5;37088:40;37148:24;:9;:24;:::i;:::-;:60;;;;;;37141:67;;;;36932:284;:::o;6362:208::-;6414:4;6435:6;6431:20;;-1:-1:-1;6450:1:0;6443:8;;6431:20;6471:5;;;6475:1;6471;:5;:1;6495:5;;;;;:10;6487:56;;;;-1:-1:-1;;;6487:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6561:1;-1:-1:-1;6362:208:0;;;;;:::o;40721:869::-;40771:4;40806:1;40796:7;:11;40788:36;;;;;-1:-1:-1;;;40788:36:0;;;;;;;;;;;;-1:-1:-1;;;40788:36:0;;;;;;;;;;;;;;;40837:10;40850:14;:12;:14::i;:::-;40837:27;;40892:5;40881:7;:16;40877:64;;40924:5;40914:15;;40877:64;40953:16;40972:17;:15;:17::i;:::-;40953:36;;41000:11;41014:39;41025:7;41034:5;41041:11;41014:10;:39::i;:::-;41000:53;-1:-1:-1;41070:10:0;;41066:498;;34282:42;-1:-1:-1;;;;;41147:32:0;;41180:6;41147:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41204:8;34642:5;41215:36;41242:8;;34642:5;41227:23;41215:7;:11;;:36;;;;:::i;:::-;:51;;;;;;41204:62;;34175:42;-1:-1:-1;;;;;41346:46:0;;41415:6;41451:16;41491:3;41346:167;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41346:167:0;;-1:-1:-1;41322:191:0;;-1:-1:-1;;;;41322:191:0;41066:498;41581:1;41574:8;;;;;40721:869;;;;:::o;37818:539::-;37983:43;;;-1:-1:-1;;;37983:43:0;;38020:4;37983:43;;;;;;37872:4;;;;-1:-1:-1;;;;;37990:10:0;37983:28;;;;:43;;;;;;;;;;;;;;:28;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37983:43:0;;-1:-1:-1;38037:47:0;-1:-1:-1;;;;;38044:10:0;38037:31;38069:5;38076:7;38037:47;:31;:47;:::i;:::-;38111:43;;;-1:-1:-1;;;38111:43:0;;38148:4;38111:43;;;;;;38095:13;;-1:-1:-1;;;;;38118:10:0;38111:28;;;;:43;;;;;;;;;;;;;;;:28;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38111:43:0;;-1:-1:-1;38167:9:0;38179:23;:9;38111:43;38179:23;:13;:23;:::i;:::-;38167:35;;38225:9;;38217:4;:17;38213:113;;38263:1;38251:9;:13;38213:113;;;38297:9;:17;;;;;;;38213:113;38345:4;37818:539;-1:-1:-1;;;;37818:539:0:o;42583:1231::-;42637:7;42646:4;42694:23;;:::i;:::-;42742:32;;;-1:-1:-1;;;42742:32:0;;42772:1;42742:32;;;;;;33949:42;;42742:29;;:32;;;;;;;;;;;;;;33949:42;42742:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42742:32:0;42728:46;;42807:32;;;-1:-1:-1;;;42807:32:0;;42837:1;42807:32;;;;;;33949:42;;42807:29;;:32;;;;;42728:11;;42807:32;;;;;;;33949:42;42807:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42807:32:0;42793:11;;;:46;;;42864:11;;:26;42860:947;;-1:-1:-1;33144:42:0;;-1:-1:-1;42921:1:0;;-1:-1:-1;42907:16:0;;42860:947;42991:27;;:::i;:::-;43051:38;;;-1:-1:-1;;;43051:38:0;;43087:1;43051:38;;;;;;33849:42;;43051:35;;:38;;;;;;;;;;;;;;33849:42;43051:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43051:38:0;43033:56;;43129:38;;;-1:-1:-1;;;43129:38:0;;43165:1;43129:38;;;;;;:48;;43172:4;;33849:42;;43129:35;;:38;;;;;43033:15;;43129:38;;;;;;;33849:42;43129:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43129:38:0;;:48;:42;:48;:::i;:::-;43111:15;;;;:66;;;;43218:38;;;-1:-1:-1;;;43218:38:0;;43254:1;43218:38;;;;;;:48;;43261:4;;33849:42;;43218:35;;:38;;;;;43111:15;;43218:38;;;;;;33849:42;43218:38;;;;;;;;;;:48;43200:15;;;:66;:15;43446;;;43427;;:34;;;;:72;;-1:-1:-1;43484:15:0;;;;43465;;:34;;43427:72;43405:160;;;-1:-1:-1;33225:42:0;;-1:-1:-1;43547:1:0;;-1:-1:-1;43534:15:0;;-1:-1:-1;43534:15:0;43405:160;43643:15;;;43624;;;:34;;;;:72;;-1:-1:-1;43681:15:0;;;;;43662;;;:34;;43624:72;43602:161;;;-1:-1:-1;33307:42:0;;-1:-1:-1;43745:1:0;;-1:-1:-1;43731:16:0;;-1:-1:-1;43731:16:0;43602:161;-1:-1:-1;33389:42:0;;-1:-1:-1;43793:1:0;;-1:-1:-1;43779:16:0;;-1:-1:-1;43779:16:0;42583:1231;;;:::o;44380:542::-;44442:18;;;;44438:167;;;34282:42;-1:-1:-1;;;;;44477:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44438:167;44639:26;;;-1:-1:-1;;;44639:26:0;;34282:42;44639:26;;;;;;34380:42;;44639:19;;:26;;;;;-1:-1:-1;;44639:26:0;;;;;;;-1:-1:-1;34380:42:0;44639:26;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;44692:36:0;;;-1:-1:-1;;;44692:36:0;;44722:4;44692:36;;;;;;44678:11;;-1:-1:-1;34472:42:0;;-1:-1:-1;44692:21:0;;:36;;;;;;;;;;;;;;;34472:42;44692:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44692:36:0;;-1:-1:-1;44812:4:0;44802:14;;44798:117;;44833:26;34472:42;44844:6;44852;44833:5;:26::i;:::-;44380:542;;:::o;38522:891::-;38644:39;;;-1:-1:-1;;;38644:39:0;;38677:4;38644:39;;;;;;38633:8;;-1:-1:-1;;;;;38644:24:0;;;;;:39;;;;;;;;;;;;;;;:24;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38644:39:0;;-1:-1:-1;38698:7:0;;38694:712;;38746:22;;:::i;:::-;38801:3;38783:7;38791:6;38783:15;;;;;;;;;;:21;;;;;38934:18;33949:42;-1:-1:-1;;;;;38955:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38955:40:0;;-1:-1:-1;39010:11:0;39024:59;38955:40;39024;39059:4;39024:30;39032:13;39046:6;39032:21;;;;;;;;;39024:3;;:30;:7;:30;:::i;:::-;:34;:40;:34;:40;:::i;:::-;:44;:59;:44;:59;:::i;:::-;39010:73;;39098:8;34642:5;39109:35;39135:8;;34642:5;39120:23;39109:6;:10;;:35;;;;:::i;:::-;:50;;;;;39192:48;;-1:-1:-1;;;39192:48:0;;39109:50;;;;-1:-1:-1;39176:13:0;;34175:42;;39192:34;;39227:7;;39109:50;;39192:48;;;39227:7;39192:48;;;39227:7;39176:13;39192:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39192:48:0;;-1:-1:-1;39305:12:0;;39301:94;;34282:42;-1:-1:-1;;;;;39338:31:0;;39370:8;39338:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39301:94;38694:712;;;;;38522:891;;;:::o;5954:149::-;6006:4;6036:1;6031;:6;;6023:49;;;;;-1:-1:-1;;;6023:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6090:5:0;;;5954:149::o;42031:349::-;42074:25;-1:-1:-1;;42074:9:0;:25::i;:::-;-1:-1:-1;42177:43:0;;;-1:-1:-1;;;42177:43:0;;42214:4;42177:43;;;;;;42166:8;;-1:-1:-1;;;;;42184:10:0;42177:28;;;;:43;;;;;;;;;;;;;;;:28;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42177:43:0;;-1:-1:-1;42235:7:0;;42231:111;;42259:43;-1:-1:-1;;;;;42266:10:0;42259:31;42291:5;42298:3;42259:43;:31;:43;:::i;:::-;42329:1;42317:9;:13;42231:111;42359:13;;;;;;;;;;;;;;;;;42031:349;:::o;37333:477::-;37498:43;;;-1:-1:-1;;;37498:43:0;;37535:4;37498:43;;;;;;37387:4;;;;-1:-1:-1;;;;;37505:10:0;37498:28;;;;:43;;;;;;;;;;;;;;:28;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37498:43:0;;-1:-1:-1;37552:66:0;-1:-1:-1;;;;;37559:10:0;37552:35;37588:5;37603:4;37610:7;37552:66;:35;:66;:::i;:::-;37645:43;;;-1:-1:-1;;;37645:43:0;;37682:4;37645:43;;;;;;37629:13;;-1:-1:-1;;;;;37652:10:0;37645:28;;;;:43;;;;;;;;;;;;;;;:28;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37645:43:0;;-1:-1:-1;37701:9:0;37713:23;37645:43;37726:9;37713:23;:12;:23;:::i;:::-;37759:9;;37701:35;;-1:-1:-1;37759:19:0;;37701:35;37759:19;:13;:19;:::i;:::-;37747:9;:31;37798:4;37333:477;-1:-1:-1;;;;37333:477:0:o;22056:836::-;22480:23;22519:69;22547:4;22519:69;;;;;;;;;;;;;;;;;22527:5;-1:-1:-1;;;;;22519:27:0;;;:69;;;;;:::i;:::-;22603:17;;22480:108;;-1:-1:-1;22603:21:0;22599:286;;22776:10;22765:30;;;;;;;;;;;;;;;-1:-1:-1;22765:30:0;22739:134;;;;-1:-1:-1;;;22739:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15100:605;15267:12;15339:5;15314:21;:30;;15292:118;;;;-1:-1:-1;;;15292:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15429:18;15440:6;15429:10;:18::i;:::-;15421:60;;;;;-1:-1:-1;;;15421:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15555:12;15569:23;15596:6;-1:-1:-1;;;;;15596:11:0;15615:5;15622:4;15596:31;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15596:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15554:73;;;;15645:52;15663:7;15672:10;15684:12;15645:17;:52::i;:::-;15638:59;15100:605;-1:-1:-1;;;;;;;15100:605:0:o;39674:129::-;39747:48;;;-1:-1:-1;;;39747:48:0;;39789:4;39747:48;;;;;;39723:4;;34282:42;;39747:33;;:48;;;;;;;;;;;;;;;34282:42;39747:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39747:48:0;;-1:-1:-1;39674:129:0;:::o;39811:711::-;39933:4;40250:10;;40246:250;;40367:6;40356:7;:17;40352:77;;-1:-1:-1;40401:12:0;40394:19;;40352:77;40478:6;40450:25;:7;40462:12;40450:25;:11;:25;:::i;:::-;:34;;;;;;40443:41;;;;40246:250;-1:-1:-1;40513:1:0;39811:711;;;;;:::o;43910:462::-;44093:16;;;44107:1;44093:16;;;;;;;;;44069:21;;44093:16;;;44069:21;;44093:16;;;;;-1:-1:-1;44093:16:0;44069:40;;44130:5;44120:4;44125:1;44120:7;;;;;;;;;;;;;:15;-1:-1:-1;;;;;44120:15:0;;;-1:-1:-1;;;;;44120:15:0;;;;;33060:42;44146:4;44151:1;44146:7;;;;;;;;;;;;;:14;-1:-1:-1;;;;;44146:14:0;;;-1:-1:-1;;;;;44146:14:0;;;;;44181:3;44171:4;44176:1;44171:7;;;;;;;;-1:-1:-1;;;;;44171:13:0;;;:7;;;;;;;;;;:13;44197:167;;-1:-1:-1;;;44197:167:0;;;;;;;;44275:1;44197:167;;;;;;44318:4;44197:167;;;;;;44338:15;44197:167;;;;;;;;;;;;;;;;;;;;;32979:42;;44197:41;;44253:7;;44291:4;;44318;44338:15;44197:167;;;;;;;;;;;;;;;;;-1:-1:-1;44197:167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;44197:167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44197:167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43910:462;;;;:::o;7048:144::-;7100:4;7129:1;7125;:5;7117:44;;;;;-1:-1:-1;;;7117:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7183:1;7179;:5;;;;;;;7048:144;-1:-1:-1;;;7048:144:0:o;19585:282::-;19780:68;;;-1:-1:-1;;;;;19780:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19780:68:0;-1:-1:-1;;;19780:68:0;;;19726:133;;19760:5;;19726:19;:133::i;:::-;19585:282;;;;:::o;5504:167::-;5556:4;5582:5;;;5606:6;;;;5598:46;;;;;-1:-1:-1;;;5598:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;10930:441;11307:20;11355:8;;;10930:441::o;17930:777::-;18080:12;18109:7;18105:595;;;-1:-1:-1;18140:10:0;18133:17;;18105:595;18254:17;;:21;18250:439;;18517:10;18511:17;18578:15;18565:10;18561:2;18557:19;18550:44;18465:148;18660:12;18653:20;;-1:-1:-1;;;18653:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://f015a65c1d7c6cb4981c7450562b9c6b1b89b00d6d96a720052d578e1be5d48f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.