Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StrategyCurveYVoterProxy
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-08 */ // SPDX-License-Identifier: MIT pragma solidity ^0.5.17; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @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, uint256 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 (uint256); /** * @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, uint256 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, uint256 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, uint256 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, uint256 value); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @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]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } /** * @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 ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 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, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 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. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "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"); } } } // interface IController { function withdraw(address, uint256) external; function balanceOf(address) external view returns (uint256); function earn(address, uint256) external; function want(address) external view returns (address); function rewards() external view returns (address); function vaults(address) external view returns (address); function strategies(address) external view returns (address); } // interface Gauge { function deposit(uint256) external; function balanceOf(address) external view returns (uint256); function withdraw(uint256) external; } // interface Mintr { function mint(address) external; } // interface Uni { function swapExactTokensForTokens( uint256, uint256, address[] calldata, address, uint256 ) external; } // interface ICurveFi { function get_virtual_price() external view returns (uint256); function add_liquidity( // sBTC pool uint256[3] calldata amounts, uint256 min_mint_amount ) external; function add_liquidity( // bUSD pool uint256[4] calldata amounts, uint256 min_mint_amount ) external; function remove_liquidity_imbalance(uint256[4] calldata amounts, uint256 max_burn_amount) external; function remove_liquidity(uint256 _amount, uint256[4] calldata amounts) external; function exchange( int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount ) external; } interface Zap { function remove_liquidity_one_coin( uint256, int128, uint256 ) external; } // // NOTE: Basically an alias for Vaults interface yERC20 { function deposit(uint256 _amount) external; function withdraw(uint256 _amount) external; function getPricePerFullShare() external view returns (uint256); } // interface VoterProxy { function withdraw( address _gauge, address _token, uint256 _amount ) external returns (uint256); function balanceOf(address _gauge) external view returns (uint256); function withdrawAll(address _gauge, address _token) external returns (uint256); function deposit(address _gauge, address _token) external; function harvest(address _gauge) external; } // contract StrategyCurveYVoterProxy { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; address public constant want = address(0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8); address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52); address public constant uni = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address public constant weth = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); // used for crv <> weth <> dai route address public constant dai = address(0x6B175474E89094C44Da98b954EedeAC495271d0F); address public constant ydai = address(0x16de59092dAE5CcF4A1E6439D611fd0653f0Bd01); address public constant curve = address(0x45F783CCE6B7FF23B2ab2D70e416cdb7D6055f51); address public constant gauge = address(0xFA712EE4788C042e2B7BB55E6cb8ec569C4530c1); address public constant proxy = address(0x7A99923aA2efa71178BB11294349EC1F6b23a814); address public constant voter = address(0xF147b8125d2ef93FB6965Db97D6746952a133934); uint256 public keepCRV = 1000; uint256 public constant keepCRVMax = 10000; uint256 public performanceFee = 500; uint256 public constant performanceMax = 10000; uint256 public withdrawalFee = 50; uint256 public constant withdrawalMax = 10000; address public governance; address public controller; address public strategist; constructor(address _controller) public { governance = msg.sender; strategist = msg.sender; controller = _controller; } function getName() external pure returns (string memory) { return "StrategyCurveYVoterProxy"; } function setStrategist(address _strategist) external { require(msg.sender == governance, "!governance"); strategist = _strategist; } function setKeepCRV(uint256 _keepCRV) external { require(msg.sender == governance, "!governance"); keepCRV = _keepCRV; } function setWithdrawalFee(uint256 _withdrawalFee) external { require(msg.sender == governance, "!governance"); withdrawalFee = _withdrawalFee; } function setPerformanceFee(uint256 _performanceFee) external { require(msg.sender == governance, "!governance"); performanceFee = _performanceFee; } function deposit() public { uint256 _want = IERC20(want).balanceOf(address(this)); if (_want > 0) { IERC20(want).safeTransfer(proxy, _want); VoterProxy(proxy).deposit(gauge, want); } } // Controller only function for creating additional rewards from dust function withdraw(IERC20 _asset) external returns (uint256 balance) { require(msg.sender == controller, "!controller"); require(want != address(_asset), "want"); require(crv != address(_asset), "crv"); require(ydai != address(_asset), "ydai"); require(dai != address(_asset), "dai"); balance = _asset.balanceOf(address(this)); _asset.safeTransfer(controller, balance); } // Withdraw partial funds, normally used with a vault withdrawal function withdraw(uint256 _amount) external { require(msg.sender == controller, "!controller"); uint256 _balance = IERC20(want).balanceOf(address(this)); if (_balance < _amount) { _amount = _withdrawSome(_amount.sub(_balance)); _amount = _amount.add(_balance); } uint256 _fee = _amount.mul(withdrawalFee).div(withdrawalMax); IERC20(want).safeTransfer(IController(controller).rewards(), _fee); address _vault = IController(controller).vaults(address(want)); require(_vault != address(0), "!vault"); // additional protection so we don't burn the funds IERC20(want).safeTransfer(_vault, _amount.sub(_fee)); } // Withdraw all funds, normally used when migrating strategies function withdrawAll() external returns (uint256 balance) { require(msg.sender == controller, "!controller"); _withdrawAll(); balance = IERC20(want).balanceOf(address(this)); address _vault = IController(controller).vaults(address(want)); require(_vault != address(0), "!vault"); // additional protection so we don't burn the funds IERC20(want).safeTransfer(_vault, balance); } function _withdrawAll() internal { VoterProxy(proxy).withdrawAll(gauge, want); } function harvest() public { require(msg.sender == strategist || msg.sender == governance, "!authorized"); VoterProxy(proxy).harvest(gauge); uint256 _crv = IERC20(crv).balanceOf(address(this)); if (_crv > 0) { uint256 _keepCRV = _crv.mul(keepCRV).div(keepCRVMax); IERC20(crv).safeTransfer(voter, _keepCRV); _crv = _crv.sub(_keepCRV); IERC20(crv).safeApprove(uni, 0); IERC20(crv).safeApprove(uni, _crv); address[] memory path = new address[](3); path[0] = crv; path[1] = weth; path[2] = dai; Uni(uni).swapExactTokensForTokens(_crv, uint256(0), path, address(this), now.add(1800)); } uint256 _dai = IERC20(dai).balanceOf(address(this)); if (_dai > 0) { IERC20(dai).safeApprove(ydai, 0); IERC20(dai).safeApprove(ydai, _dai); yERC20(ydai).deposit(_dai); } uint256 _ydai = IERC20(ydai).balanceOf(address(this)); if (_ydai > 0) { IERC20(ydai).safeApprove(curve, 0); IERC20(ydai).safeApprove(curve, _ydai); ICurveFi(curve).add_liquidity([_ydai, 0, 0, 0], 0); } uint256 _want = IERC20(want).balanceOf(address(this)); if (_want > 0) { uint256 _fee = _want.mul(performanceFee).div(performanceMax); IERC20(want).safeTransfer(IController(controller).rewards(), _fee); deposit(); } } function _withdrawSome(uint256 _amount) internal returns (uint256) { return VoterProxy(proxy).withdraw(gauge, want, _amount); } function balanceOfWant() public view returns (uint256) { return IERC20(want).balanceOf(address(this)); } function balanceOfPool() public view returns (uint256) { return VoterProxy(proxy).balanceOf(gauge); } function balanceOf() public view returns (uint256) { return balanceOfWant().add(balanceOfPool()); } function setGovernance(address _governance) external { require(msg.sender == governance, "!governance"); governance = _governance; } function setController(address _controller) external { require(msg.sender == governance, "!governance"); controller = _controller; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"curve","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"dai","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gauge","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"harvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"keepCRV","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"keepCRVMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"performanceMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxy","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_keepCRV","type":"uint256"}],"name":"setKeepCRV","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_performanceFee","type":"uint256"}],"name":"setPerformanceFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_withdrawalFee","type":"uint256"}],"name":"setWithdrawalFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"uni","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"voter","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"withdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"withdrawalMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ydai","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526103e86000556101f4600155603260025534801561002157600080fd5b506040516121f53803806121f58339818101604052602081101561004457600080fd5b505160038054336001600160a01b03199182168117909255600580548216909217909155600480549091166001600160a01b039092169190911790556121668061008f6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063853828b61161011a578063c1a3d44c116100ad578063e9751f6b1161007c578063e9751f6b14610370578063ec5568891461045c578063edc9af9514610464578063f4b9fa751461046c578063f77c47911461047457610206565b8063c1a3d44c14610426578063c7b9d5301461042e578063d0e30db014610454578063d5c1ff731461037057610206565b8063955383bd116100e9578063955383bd146103be578063a6f19c84146103db578063ab033ea9146103e3578063ac1e50251461040957610206565b8063853828b61461038057806387788782146103885780638bc7e8c41461039057806392eefe9b1461039857610206565b806346c96aac1161019d57806370897b231161016c57806370897b23146103435780637165485d14610360578063722713f7146103685780637cc79113146103705780637fef901a1461037857610206565b806346c96aac1461030557806351cff8d91461030d5780635aa6e675146103335780636a4874a11461033b57610206565b80632e1a7d4d116101d95780632e1a7d4d146102ce578063366cd4f3146102ed5780633fc8cef3146102f55780634641257d146102fd57610206565b8063115880861461020b57806317d7de7c146102255780631f1fcd51146102a25780631fe4a686146102c6575b600080fd5b61021361047c565b60408051918252519081900360200190f35b61022d610516565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026757818101518382015260200161024f565b50505050905090810190601f1680156102945780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102aa61054d565b604080516001600160a01b039092168252519081900360200190f35b6102aa61055f565b6102eb600480360360208110156102e457600080fd5b503561056e565b005b6102aa610836565b6102aa61084e565b6102eb610866565b6102aa6110ab565b6102136004803603602081101561032357600080fd5b50356001600160a01b03166110c3565b6102aa61130d565b6102aa61131c565b6102eb6004803603602081101561035957600080fd5b5035611334565b6102aa611386565b61021361139e565b6102136113c4565b6102136113ca565b6102136113d0565b610213611594565b61021361159a565b6102eb600480360360208110156103ae57600080fd5b50356001600160a01b03166115a0565b6102eb600480360360208110156103d457600080fd5b503561160f565b6102aa611661565b6102eb600480360360208110156103f957600080fd5b50356001600160a01b0316611679565b6102eb6004803603602081101561041f57600080fd5b50356116e8565b61021361173a565b6102eb6004803603602081101561044457600080fd5b50356001600160a01b0316611789565b6102eb6117f8565b6102aa61193f565b6102aa611957565b6102aa61196f565b6102aa611987565b604080516370a0823160e01b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c160048201529051600091737a99923aa2efa71178bb11294349ec1f6b23a814916370a0823191602480820192602092909190829003018186803b1580156104e557600080fd5b505afa1580156104f9573d6000803e3d6000fd5b505050506040513d602081101561050f57600080fd5b5051905090565b60408051808201909152601881527f5374726174656779437572766559566f74657250726f78790000000000000000602082015290565b60008051602061209183398151915281565b6005546001600160a01b031681565b6004546001600160a01b031633146105bb576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b15801561060a57600080fd5b505afa15801561061e573d6000803e3d6000fd5b505050506040513d602081101561063457600080fd5b505190508181101561066d57610658610653838363ffffffff61199616565b6119e1565b915061066a828263ffffffff611a9816565b91505b600061069661271061068a60025486611af290919063ffffffff16565b9063ffffffff611b4b16565b9050610731600460009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e957600080fd5b505afa1580156106fd573d6000803e3d6000fd5b505050506040513d602081101561071357600080fd5b5051600080516020612091833981519152908363ffffffff611b8d16565b6004805460408051632988bb9f60e21b815260008051602061209183398151915293810193909352516000926001600160a01b039092169163a622ee7c916024808301926020929190829003018186803b15801561078e57600080fd5b505afa1580156107a2573d6000803e3d6000fd5b505050506040513d60208110156107b857600080fd5b505190506001600160a01b038116610800576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b61083081610814868563ffffffff61199616565b600080516020612091833981519152919063ffffffff611b8d16565b50505050565b7316de59092dae5ccf4a1e6439d611fd0653f0bd0181565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6005546001600160a01b031633148061088957506003546001600160a01b031633145b6108c8576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6040805163072e008f60e11b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c160048201529051737a99923aa2efa71178bb11294349ec1f6b23a81491630e5c011e91602480830192600092919082900301818387803b15801561092e57600080fd5b505af1158015610942573d6000803e3d6000fd5b5050604080516370a0823160e01b815230600482015290516000935073d533a949740bb3306d119cc777fa900ba034cd5292506370a0823191602480820192602092909190829003018186803b15801561099b57600080fd5b505afa1580156109af573d6000803e3d6000fd5b505050506040513d60208110156109c557600080fd5b505190508015610c7a5760006109ec61271061068a60005485611af290919063ffffffff16565b9050610a2773d533a949740bb3306d119cc777fa900ba034cd5273f147b8125d2ef93fb6965db97d6746952a1339348363ffffffff611b8d16565b610a37828263ffffffff61199616565b9150610a7373d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d600063ffffffff611be416565b610aac73d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d8463ffffffff611be416565b6040805160038082526080820190925260609160208201838038833901905050905073d533a949740bb3306d119cc777fa900ba034cd5281600081518110610af057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610b3257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050736b175474e89094c44da98b954eedeac495271d0f81600281518110610b7457fe5b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d6338ed17398460008430610bbd4261070863ffffffff611a9816565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610c36578181015183820152602001610c1e565b505050509050019650505050505050600060405180830381600087803b158015610c5f57600080fd5b505af1158015610c73573d6000803e3d6000fd5b5050505050505b604080516370a0823160e01b81523060048201529051600091736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015610ccf57600080fd5b505afa158015610ce3573d6000803e3d6000fd5b505050506040513d6020811015610cf957600080fd5b505190508015610de957610d3d736b175474e89094c44da98b954eedeac495271d0f7316de59092dae5ccf4a1e6439d611fd0653f0bd01600063ffffffff611be416565b610d76736b175474e89094c44da98b954eedeac495271d0f7316de59092dae5ccf4a1e6439d611fd0653f0bd018363ffffffff611be416565b7316de59092dae5ccf4a1e6439d611fd0653f0bd016001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610dd057600080fd5b505af1158015610de4573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516000917316de59092dae5ccf4a1e6439d611fd0653f0bd01916370a0823191602480820192602092909190829003018186803b158015610e3e57600080fd5b505afa158015610e52573d6000803e3d6000fd5b505050506040513d6020811015610e6857600080fd5b505190508015610fa957610eac7316de59092dae5ccf4a1e6439d611fd0653f0bd017345f783cce6b7ff23b2ab2d70e416cdb7d6055f51600063ffffffff611be416565b610ee57316de59092dae5ccf4a1e6439d611fd0653f0bd017345f783cce6b7ff23b2ab2d70e416cdb7d6055f518363ffffffff611be416565b7345f783cce6b7ff23b2ab2d70e416cdb7d6055f516001600160a01b031663029b2f3460405180608001604052808481526020016000815260200160008152602001600081525060006040518363ffffffff1660e01b81526004018083600460200280838360005b83811015610f65578181015183820152602001610f4d565b5050505090500182815260200192505050600060405180830381600087803b158015610f9057600080fd5b505af1158015610fa4573d6000803e3d6000fd5b505050505b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b158015610ff857600080fd5b505afa15801561100c573d6000803e3d6000fd5b505050506040513d602081101561102257600080fd5b50519050801561083057600061104961271061068a60015485611af290919063ffffffff16565b905061109c600460009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e957600080fd5b6110a46117f8565b5050505050565b73f147b8125d2ef93fb6965db97d6746952a13393481565b6004546000906001600160a01b03163314611113576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6000805160206120918339815191526001600160a01b0383161415611168576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b73d533a949740bb3306d119cc777fa900ba034cd526001600160a01b03831614156111c0576040805162461bcd60e51b815260206004820152600360248201526231b93b60e91b604482015290519081900360640190fd5b7316de59092dae5ccf4a1e6439d611fd0653f0bd016001600160a01b038316141561121b576040805162461bcd60e51b815260206004808301919091526024820152637964616960e01b604482015290519081900360640190fd5b736b175474e89094c44da98b954eedeac495271d0f6001600160a01b0383161415611273576040805162461bcd60e51b815260206004820152600360248201526264616960e81b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156112b957600080fd5b505afa1580156112cd573d6000803e3d6000fd5b505050506040513d60208110156112e357600080fd5b5051600454909150611308906001600160a01b0384811691168363ffffffff611b8d16565b919050565b6003546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b6003546001600160a01b03163314611381576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600155565b7345f783cce6b7ff23b2ab2d70e416cdb7d6055f5181565b60006113bf6113ab61047c565b6113b361173a565b9063ffffffff611a9816565b905090565b61271081565b60005481565b6004546000906001600160a01b03163314611420576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611428611cf7565b604080516370a0823160e01b81523060048201529051600080516020612091833981519152916370a08231916024808301926020929190829003018186803b15801561147357600080fd5b505afa158015611487573d6000803e3d6000fd5b505050506040513d602081101561149d57600080fd5b50516004805460408051632988bb9f60e21b815260008051602061209183398151915293810193909352519293506000926001600160a01b039091169163a622ee7c916024808301926020929190829003018186803b1580156114ff57600080fd5b505afa158015611513573d6000803e3d6000fd5b505050506040513d602081101561152957600080fd5b505190506001600160a01b038116611571576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b611590600080516020612091833981519152828463ffffffff611b8d16565b5090565b60015481565b60025481565b6003546001600160a01b031633146115ed576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461165c576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600055565b73fa712ee4788c042e2b7bb55e6cb8ec569c4530c181565b6003546001600160a01b031633146116c6576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314611735576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600255565b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b1580156104e557600080fd5b6003546001600160a01b031633146117d6576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b15801561184757600080fd5b505afa15801561185b573d6000803e3d6000fd5b505050506040513d602081101561187157600080fd5b50519050801561193c576118ae600080516020612091833981519152737a99923aa2efa71178bb11294349ec1f6b23a8148363ffffffff611b8d16565b60408051631f2c13e160e31b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c1600482015260008051602061209183398151915260248201529051737a99923aa2efa71178bb11294349ec1f6b23a8149163f9609f0891604480830192600092919082900301818387803b15801561192857600080fd5b505af11580156110a4573d6000803e3d6000fd5b50565b737a99923aa2efa71178bb11294349ec1f6b23a81481565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b736b175474e89094c44da98b954eedeac495271d0f81565b6004546001600160a01b031681565b60006119d883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611da0565b90505b92915050565b60408051636ce5768960e11b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c160048201526000805160206120918339815191526024820152604481018390529051600091737a99923aa2efa71178bb11294349ec1f6b23a8149163d9caed129160648082019260209290919082900301818787803b158015611a6657600080fd5b505af1158015611a7a573d6000803e3d6000fd5b505050506040513d6020811015611a9057600080fd5b505192915050565b6000828201838110156119d8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611b01575060006119db565b82820282848281611b0e57fe5b04146119d85760405162461bcd60e51b81526004018080602001828103825260218152602001806120b16021913960400191505060405180910390fd5b60006119d883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611e37565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611bdf908490611e9c565b505050565b801580611c6a575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611c3c57600080fd5b505afa158015611c50573d6000803e3d6000fd5b505050506040513d6020811015611c6657600080fd5b5051155b611ca55760405162461bcd60e51b81526004018080602001828103825260368152602001806120fc6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611bdf908490611e9c565b604080516301395c5960e31b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c1600482015260008051602061209183398151915260248201529051737a99923aa2efa71178bb11294349ec1f6b23a814916309cae2c89160448083019260209291908290030181600087803b158015611d7257600080fd5b505af1158015611d86573d6000803e3d6000fd5b505050506040513d6020811015611d9c57600080fd5b5050565b60008184841115611e2f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611df4578181015183820152602001611ddc565b50505050905090810190601f168015611e215780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611e865760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611df4578181015183820152602001611ddc565b506000838581611e9257fe5b0495945050505050565b611eae826001600160a01b0316612054565b611eff576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611f3d5780518252601f199092019160209182019101611f1e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611f9f576040519150601f19603f3d011682016040523d82523d6000602084013e611fa4565b606091505b509150915081611ffb576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156108305780806020019051602081101561201757600080fd5b50516108305760405162461bcd60e51b815260040180806020018281038252602a8152602001806120d2602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061208857508115155b94935050505056fe000000000000000000000000df5e0e81dff6faf3a7e52ba697820c5e32d806a8536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a7231582056f89f1b9b9238169b873d1e6475bf67f9245aa1b8ddc7629ff6411913d352e164736f6c634300051100320000000000000000000000009e65ad11b299ca0abefc2799ddb6314ef2d91080
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c8063853828b61161011a578063c1a3d44c116100ad578063e9751f6b1161007c578063e9751f6b14610370578063ec5568891461045c578063edc9af9514610464578063f4b9fa751461046c578063f77c47911461047457610206565b8063c1a3d44c14610426578063c7b9d5301461042e578063d0e30db014610454578063d5c1ff731461037057610206565b8063955383bd116100e9578063955383bd146103be578063a6f19c84146103db578063ab033ea9146103e3578063ac1e50251461040957610206565b8063853828b61461038057806387788782146103885780638bc7e8c41461039057806392eefe9b1461039857610206565b806346c96aac1161019d57806370897b231161016c57806370897b23146103435780637165485d14610360578063722713f7146103685780637cc79113146103705780637fef901a1461037857610206565b806346c96aac1461030557806351cff8d91461030d5780635aa6e675146103335780636a4874a11461033b57610206565b80632e1a7d4d116101d95780632e1a7d4d146102ce578063366cd4f3146102ed5780633fc8cef3146102f55780634641257d146102fd57610206565b8063115880861461020b57806317d7de7c146102255780631f1fcd51146102a25780631fe4a686146102c6575b600080fd5b61021361047c565b60408051918252519081900360200190f35b61022d610516565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026757818101518382015260200161024f565b50505050905090810190601f1680156102945780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102aa61054d565b604080516001600160a01b039092168252519081900360200190f35b6102aa61055f565b6102eb600480360360208110156102e457600080fd5b503561056e565b005b6102aa610836565b6102aa61084e565b6102eb610866565b6102aa6110ab565b6102136004803603602081101561032357600080fd5b50356001600160a01b03166110c3565b6102aa61130d565b6102aa61131c565b6102eb6004803603602081101561035957600080fd5b5035611334565b6102aa611386565b61021361139e565b6102136113c4565b6102136113ca565b6102136113d0565b610213611594565b61021361159a565b6102eb600480360360208110156103ae57600080fd5b50356001600160a01b03166115a0565b6102eb600480360360208110156103d457600080fd5b503561160f565b6102aa611661565b6102eb600480360360208110156103f957600080fd5b50356001600160a01b0316611679565b6102eb6004803603602081101561041f57600080fd5b50356116e8565b61021361173a565b6102eb6004803603602081101561044457600080fd5b50356001600160a01b0316611789565b6102eb6117f8565b6102aa61193f565b6102aa611957565b6102aa61196f565b6102aa611987565b604080516370a0823160e01b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c160048201529051600091737a99923aa2efa71178bb11294349ec1f6b23a814916370a0823191602480820192602092909190829003018186803b1580156104e557600080fd5b505afa1580156104f9573d6000803e3d6000fd5b505050506040513d602081101561050f57600080fd5b5051905090565b60408051808201909152601881527f5374726174656779437572766559566f74657250726f78790000000000000000602082015290565b60008051602061209183398151915281565b6005546001600160a01b031681565b6004546001600160a01b031633146105bb576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b15801561060a57600080fd5b505afa15801561061e573d6000803e3d6000fd5b505050506040513d602081101561063457600080fd5b505190508181101561066d57610658610653838363ffffffff61199616565b6119e1565b915061066a828263ffffffff611a9816565b91505b600061069661271061068a60025486611af290919063ffffffff16565b9063ffffffff611b4b16565b9050610731600460009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e957600080fd5b505afa1580156106fd573d6000803e3d6000fd5b505050506040513d602081101561071357600080fd5b5051600080516020612091833981519152908363ffffffff611b8d16565b6004805460408051632988bb9f60e21b815260008051602061209183398151915293810193909352516000926001600160a01b039092169163a622ee7c916024808301926020929190829003018186803b15801561078e57600080fd5b505afa1580156107a2573d6000803e3d6000fd5b505050506040513d60208110156107b857600080fd5b505190506001600160a01b038116610800576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b61083081610814868563ffffffff61199616565b600080516020612091833981519152919063ffffffff611b8d16565b50505050565b7316de59092dae5ccf4a1e6439d611fd0653f0bd0181565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6005546001600160a01b031633148061088957506003546001600160a01b031633145b6108c8576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6040805163072e008f60e11b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c160048201529051737a99923aa2efa71178bb11294349ec1f6b23a81491630e5c011e91602480830192600092919082900301818387803b15801561092e57600080fd5b505af1158015610942573d6000803e3d6000fd5b5050604080516370a0823160e01b815230600482015290516000935073d533a949740bb3306d119cc777fa900ba034cd5292506370a0823191602480820192602092909190829003018186803b15801561099b57600080fd5b505afa1580156109af573d6000803e3d6000fd5b505050506040513d60208110156109c557600080fd5b505190508015610c7a5760006109ec61271061068a60005485611af290919063ffffffff16565b9050610a2773d533a949740bb3306d119cc777fa900ba034cd5273f147b8125d2ef93fb6965db97d6746952a1339348363ffffffff611b8d16565b610a37828263ffffffff61199616565b9150610a7373d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d600063ffffffff611be416565b610aac73d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d8463ffffffff611be416565b6040805160038082526080820190925260609160208201838038833901905050905073d533a949740bb3306d119cc777fa900ba034cd5281600081518110610af057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610b3257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050736b175474e89094c44da98b954eedeac495271d0f81600281518110610b7457fe5b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d6338ed17398460008430610bbd4261070863ffffffff611a9816565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610c36578181015183820152602001610c1e565b505050509050019650505050505050600060405180830381600087803b158015610c5f57600080fd5b505af1158015610c73573d6000803e3d6000fd5b5050505050505b604080516370a0823160e01b81523060048201529051600091736b175474e89094c44da98b954eedeac495271d0f916370a0823191602480820192602092909190829003018186803b158015610ccf57600080fd5b505afa158015610ce3573d6000803e3d6000fd5b505050506040513d6020811015610cf957600080fd5b505190508015610de957610d3d736b175474e89094c44da98b954eedeac495271d0f7316de59092dae5ccf4a1e6439d611fd0653f0bd01600063ffffffff611be416565b610d76736b175474e89094c44da98b954eedeac495271d0f7316de59092dae5ccf4a1e6439d611fd0653f0bd018363ffffffff611be416565b7316de59092dae5ccf4a1e6439d611fd0653f0bd016001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610dd057600080fd5b505af1158015610de4573d6000803e3d6000fd5b505050505b604080516370a0823160e01b815230600482015290516000917316de59092dae5ccf4a1e6439d611fd0653f0bd01916370a0823191602480820192602092909190829003018186803b158015610e3e57600080fd5b505afa158015610e52573d6000803e3d6000fd5b505050506040513d6020811015610e6857600080fd5b505190508015610fa957610eac7316de59092dae5ccf4a1e6439d611fd0653f0bd017345f783cce6b7ff23b2ab2d70e416cdb7d6055f51600063ffffffff611be416565b610ee57316de59092dae5ccf4a1e6439d611fd0653f0bd017345f783cce6b7ff23b2ab2d70e416cdb7d6055f518363ffffffff611be416565b7345f783cce6b7ff23b2ab2d70e416cdb7d6055f516001600160a01b031663029b2f3460405180608001604052808481526020016000815260200160008152602001600081525060006040518363ffffffff1660e01b81526004018083600460200280838360005b83811015610f65578181015183820152602001610f4d565b5050505090500182815260200192505050600060405180830381600087803b158015610f9057600080fd5b505af1158015610fa4573d6000803e3d6000fd5b505050505b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b158015610ff857600080fd5b505afa15801561100c573d6000803e3d6000fd5b505050506040513d602081101561102257600080fd5b50519050801561083057600061104961271061068a60015485611af290919063ffffffff16565b905061109c600460009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e957600080fd5b6110a46117f8565b5050505050565b73f147b8125d2ef93fb6965db97d6746952a13393481565b6004546000906001600160a01b03163314611113576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6000805160206120918339815191526001600160a01b0383161415611168576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b73d533a949740bb3306d119cc777fa900ba034cd526001600160a01b03831614156111c0576040805162461bcd60e51b815260206004820152600360248201526231b93b60e91b604482015290519081900360640190fd5b7316de59092dae5ccf4a1e6439d611fd0653f0bd016001600160a01b038316141561121b576040805162461bcd60e51b815260206004808301919091526024820152637964616960e01b604482015290519081900360640190fd5b736b175474e89094c44da98b954eedeac495271d0f6001600160a01b0383161415611273576040805162461bcd60e51b815260206004820152600360248201526264616960e81b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156112b957600080fd5b505afa1580156112cd573d6000803e3d6000fd5b505050506040513d60208110156112e357600080fd5b5051600454909150611308906001600160a01b0384811691168363ffffffff611b8d16565b919050565b6003546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b6003546001600160a01b03163314611381576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600155565b7345f783cce6b7ff23b2ab2d70e416cdb7d6055f5181565b60006113bf6113ab61047c565b6113b361173a565b9063ffffffff611a9816565b905090565b61271081565b60005481565b6004546000906001600160a01b03163314611420576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611428611cf7565b604080516370a0823160e01b81523060048201529051600080516020612091833981519152916370a08231916024808301926020929190829003018186803b15801561147357600080fd5b505afa158015611487573d6000803e3d6000fd5b505050506040513d602081101561149d57600080fd5b50516004805460408051632988bb9f60e21b815260008051602061209183398151915293810193909352519293506000926001600160a01b039091169163a622ee7c916024808301926020929190829003018186803b1580156114ff57600080fd5b505afa158015611513573d6000803e3d6000fd5b505050506040513d602081101561152957600080fd5b505190506001600160a01b038116611571576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b611590600080516020612091833981519152828463ffffffff611b8d16565b5090565b60015481565b60025481565b6003546001600160a01b031633146115ed576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461165c576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600055565b73fa712ee4788c042e2b7bb55e6cb8ec569c4530c181565b6003546001600160a01b031633146116c6576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314611735576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600255565b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b1580156104e557600080fd5b6003546001600160a01b031633146117d6576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b604080516370a0823160e01b81523060048201529051600091600080516020612091833981519152916370a0823191602480820192602092909190829003018186803b15801561184757600080fd5b505afa15801561185b573d6000803e3d6000fd5b505050506040513d602081101561187157600080fd5b50519050801561193c576118ae600080516020612091833981519152737a99923aa2efa71178bb11294349ec1f6b23a8148363ffffffff611b8d16565b60408051631f2c13e160e31b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c1600482015260008051602061209183398151915260248201529051737a99923aa2efa71178bb11294349ec1f6b23a8149163f9609f0891604480830192600092919082900301818387803b15801561192857600080fd5b505af11580156110a4573d6000803e3d6000fd5b50565b737a99923aa2efa71178bb11294349ec1f6b23a81481565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b736b175474e89094c44da98b954eedeac495271d0f81565b6004546001600160a01b031681565b60006119d883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611da0565b90505b92915050565b60408051636ce5768960e11b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c160048201526000805160206120918339815191526024820152604481018390529051600091737a99923aa2efa71178bb11294349ec1f6b23a8149163d9caed129160648082019260209290919082900301818787803b158015611a6657600080fd5b505af1158015611a7a573d6000803e3d6000fd5b505050506040513d6020811015611a9057600080fd5b505192915050565b6000828201838110156119d8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611b01575060006119db565b82820282848281611b0e57fe5b04146119d85760405162461bcd60e51b81526004018080602001828103825260218152602001806120b16021913960400191505060405180910390fd5b60006119d883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611e37565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611bdf908490611e9c565b505050565b801580611c6a575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611c3c57600080fd5b505afa158015611c50573d6000803e3d6000fd5b505050506040513d6020811015611c6657600080fd5b5051155b611ca55760405162461bcd60e51b81526004018080602001828103825260368152602001806120fc6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611bdf908490611e9c565b604080516301395c5960e31b815273fa712ee4788c042e2b7bb55e6cb8ec569c4530c1600482015260008051602061209183398151915260248201529051737a99923aa2efa71178bb11294349ec1f6b23a814916309cae2c89160448083019260209291908290030181600087803b158015611d7257600080fd5b505af1158015611d86573d6000803e3d6000fd5b505050506040513d6020811015611d9c57600080fd5b5050565b60008184841115611e2f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611df4578181015183820152602001611ddc565b50505050905090810190601f168015611e215780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611e865760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611df4578181015183820152602001611ddc565b506000838581611e9257fe5b0495945050505050565b611eae826001600160a01b0316612054565b611eff576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611f3d5780518252601f199092019160209182019101611f1e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611f9f576040519150601f19603f3d011682016040523d82523d6000602084013e611fa4565b606091505b509150915081611ffb576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156108305780806020019051602081101561201757600080fd5b50516108305760405162461bcd60e51b815260040180806020018281038252602a8152602001806120d2602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061208857508115155b94935050505056fe000000000000000000000000df5e0e81dff6faf3a7e52ba697820c5e32d806a8536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a7231582056f89f1b9b9238169b873d1e6475bf67f9245aa1b8ddc7629ff6411913d352e164736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009e65ad11b299ca0abefc2799ddb6314ef2d91080
-----Decoded View---------------
Arg [0] : _controller (address): 0x9E65Ad11b299CA0Abefc2799dDB6314Ef2d91080
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009e65ad11b299ca0abefc2799ddb6314ef2d91080
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.