Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 16 from a total of 16 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 11197840 | 1358 days ago | IN | 0 ETH | 0.09181695 | ||||
Harvest | 11180081 | 1361 days ago | IN | 0 ETH | 0.04173498 | ||||
Harvest | 11161014 | 1364 days ago | IN | 0 ETH | 0.02005597 | ||||
Harvest | 11134423 | 1368 days ago | IN | 0 ETH | 0.02810314 | ||||
Harvest | 11118534 | 1371 days ago | IN | 0 ETH | 0.02550471 | ||||
Harvest | 11101373 | 1373 days ago | IN | 0 ETH | 0.0956306 | ||||
Harvest | 11088483 | 1375 days ago | IN | 0 ETH | 0.02561222 | ||||
Harvest | 11078391 | 1377 days ago | IN | 0 ETH | 0.02677641 | ||||
Harvest | 11062561 | 1379 days ago | IN | 0 ETH | 0.06567403 | ||||
Harvest | 11055975 | 1380 days ago | IN | 0 ETH | 0.07334409 | ||||
Harvest | 11049774 | 1381 days ago | IN | 0 ETH | 0.06269659 | ||||
Harvest | 11043381 | 1382 days ago | IN | 0 ETH | 0.06403056 | ||||
Set Governance | 11040241 | 1383 days ago | IN | 0 ETH | 0.00159638 | ||||
Set Strategist | 11040232 | 1383 days ago | IN | 0 ETH | 0.00145013 | ||||
Set Proxy | 11035553 | 1383 days ago | IN | 0 ETH | 0.0018233 | ||||
0x60806040 | 11035537 | 1383 days ago | IN | 0 ETH | 0.06528901 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StrategyCurveBTCVoterProxy
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-11 */ // 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; function lock() external; } // contract StrategyCurveBTCVoterProxy { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; address public constant want = address(0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3); address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52); address public constant uni = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address public constant weth = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); // used for crv <> weth <> wbtc route address public constant wbtc = address(0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599); address public constant curve = address(0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714); address public constant gauge = address(0x705350c4BcD35c9441419DdD5d2f097d7a55410F); 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 proxy; 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 "StrategyCurveBTCVoterProxy"; } 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 setProxy(address _proxy) external { require(msg.sender == governance, "!governance"); proxy = _proxy; } 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(wbtc != address(_asset), "wbtc"); 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 { uint256 _before = balanceOf(); VoterProxy(proxy).withdrawAll(gauge, want); require(_before == balanceOf(), "!slippage"); } 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] = wbtc; Uni(uni).swapExactTokensForTokens(_crv, uint256(0), path, address(this), now.add(1800)); } uint256 _wbtc = IERC20(wbtc).balanceOf(address(this)); if (_wbtc > 0) { IERC20(wbtc).safeApprove(curve, 0); IERC20(wbtc).safeApprove(curve, _wbtc); ICurveFi(curve).add_liquidity([0, _wbtc, 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(); } VoterProxy(proxy).lock(); } 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":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":"_proxy","type":"address"}],"name":"setProxy","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":"wbtc","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"}]
Contract Creation Code
60806040526103e86000556101f4600155603260025534801561002157600080fd5b506040516121213803806121218339818101604052602081101561004457600080fd5b505160048054336001600160a01b03199182168117909255600680548216909217909155600580549091166001600160a01b039092169190911790556120928061008f6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063853828b61161011a578063ac1e5025116100ad578063d5c1ff731161007c578063d5c1ff7314610370578063e9751f6b14610370578063ec55688914610482578063edc9af951461048a578063f77c47911461049257610206565b8063ac1e50251461042f578063c1a3d44c1461044c578063c7b9d53014610454578063d0e30db01461047a57610206565b8063955383bd116100e9578063955383bd146103be57806397107d6d146103db578063a6f19c8414610401578063ab033ea91461040957610206565b8063853828b61461038057806387788782146103885780638bc7e8c41461039057806392eefe9b1461039857610206565b806346c96aac1161019d57806370897b231161016c57806370897b23146103435780637165485d14610360578063722713f7146103685780637cc79113146103705780637fef901a1461037857610206565b806346c96aac1461030557806351cff8d91461030d5780635aa6e675146103335780636a4874a11461033b57610206565b80632e1a7d4d116101d95780632e1a7d4d146102ce5780633cdc5389146102ed5780633fc8cef3146102f55780634641257d146102fd57610206565b8063115880861461020b57806317d7de7c146102255780631f1fcd51146102a25780631fe4a686146102c6575b600080fd5b61021361049a565b60408051918252519081900360200190f35b61022d61052a565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026757818101518382015260200161024f565b50505050905090810190601f1680156102945780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102aa610561565b604080516001600160a01b039092168252519081900360200190f35b6102aa610573565b6102eb600480360360208110156102e457600080fd5b5035610582565b005b6102aa610846565b6102aa61085e565b6102eb610876565b6102aa610fa7565b6102136004803603602081101561032357600080fd5b50356001600160a01b0316610fbf565b6102aa6111b1565b6102aa6111c0565b6102eb6004803603602081101561035957600080fd5b50356111d8565b6102aa61122a565b610213611242565b610213611268565b61021361126e565b610213611274565b610213611437565b61021361143d565b6102eb600480360360208110156103ae57600080fd5b50356001600160a01b0316611443565b6102eb600480360360208110156103d457600080fd5b50356114b2565b6102eb600480360360208110156103f157600080fd5b50356001600160a01b0316611504565b6102aa611573565b6102eb6004803603602081101561041f57600080fd5b50356001600160a01b031661158b565b6102eb6004803603602081101561044557600080fd5b50356115fa565b61021361164c565b6102eb6004803603602081101561046a57600080fd5b50356001600160a01b031661169b565b6102eb61170a565b6102aa611849565b6102aa611858565b6102aa611870565b600354604080516370a0823160e01b815273705350c4bcd35c9441419ddd5d2f097d7a55410f600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156104f957600080fd5b505afa15801561050d573d6000803e3d6000fd5b505050506040513d602081101561052357600080fd5b5051905090565b60408051808201909152601a81527f53747261746567794375727665425443566f74657250726f7879000000000000602082015290565b600080516020611fde83398151915281565b6006546001600160a01b031681565b6005546001600160a01b031633146105cf576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b15801561061e57600080fd5b505afa158015610632573d6000803e3d6000fd5b505050506040513d602081101561064857600080fd5b50519050818110156106815761066c610667838363ffffffff61187f16565b6118ca565b915061067e828263ffffffff61197716565b91505b60006106aa61271061069e600254866119d190919063ffffffff16565b9063ffffffff611a2a16565b9050610745600560009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106fd57600080fd5b505afa158015610711573d6000803e3d6000fd5b505050506040513d602081101561072757600080fd5b5051600080516020611fde833981519152908363ffffffff611a6c16565b60055460408051632988bb9f60e21b8152600080516020611fde833981519152600482015290516000926001600160a01b03169163a622ee7c916024808301926020929190829003018186803b15801561079e57600080fd5b505afa1580156107b2573d6000803e3d6000fd5b505050506040513d60208110156107c857600080fd5b505190506001600160a01b038116610810576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b61084081610824868563ffffffff61187f16565b600080516020611fde833981519152919063ffffffff611a6c16565b50505050565b732260fac5e5542a773aa44fbcfedf7c193bc2c59981565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6006546001600160a01b031633148061089957506004546001600160a01b031633145b6108d8576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6003546040805163072e008f60e11b815273705350c4bcd35c9441419ddd5d2f097d7a55410f600482015290516001600160a01b0390921691630e5c011e9160248082019260009290919082900301818387803b15801561093857600080fd5b505af115801561094c573d6000803e3d6000fd5b5050604080516370a0823160e01b815230600482015290516000935073d533a949740bb3306d119cc777fa900ba034cd5292506370a0823191602480820192602092909190829003018186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d60208110156109cf57600080fd5b505190508015610c845760006109f661271061069e600054856119d190919063ffffffff16565b9050610a3173d533a949740bb3306d119cc777fa900ba034cd5273f147b8125d2ef93fb6965db97d6746952a1339348363ffffffff611a6c16565b610a41828263ffffffff61187f16565b9150610a7d73d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d600063ffffffff611ac316565b610ab673d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d8463ffffffff611ac316565b6040805160038082526080820190925260609160208201838038833901905050905073d533a949740bb3306d119cc777fa900ba034cd5281600081518110610afa57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610b3c57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050732260fac5e5542a773aa44fbcfedf7c193bc2c59981600281518110610b7e57fe5b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d6338ed17398460008430610bc74261070863ffffffff61197716565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610c40578181015183820152602001610c28565b505050509050019650505050505050600060405180830381600087803b158015610c6957600080fd5b505af1158015610c7d573d6000803e3d6000fd5b5050505050505b604080516370a0823160e01b81523060048201529051600091732260fac5e5542a773aa44fbcfedf7c193bc2c599916370a0823191602480820192602092909190829003018186803b158015610cd957600080fd5b505afa158015610ced573d6000803e3d6000fd5b505050506040513d6020811015610d0357600080fd5b505190508015610e3d57610d47732260fac5e5542a773aa44fbcfedf7c193bc2c599737fc77b5c7614e1533320ea6ddc2eb61fa00a9714600063ffffffff611ac316565b610d80732260fac5e5542a773aa44fbcfedf7c193bc2c599737fc77b5c7614e1533320ea6ddc2eb61fa00a97148363ffffffff611ac316565b737fc77b5c7614e1533320ea6ddc2eb61fa00a97146001600160a01b0316634515cef3604051806060016040528060008152602001848152602001600081525060006040518363ffffffff1660e01b81526004018083600360200280838360005b83811015610df9578181015183820152602001610de1565b5050505090500182815260200192505050600060405180830381600087803b158015610e2457600080fd5b505af1158015610e38573d6000803e3d6000fd5b505050505b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b158015610e8c57600080fd5b505afa158015610ea0573d6000803e3d6000fd5b505050506040513d6020811015610eb657600080fd5b505190508015610f3a576000610edd61271061069e600154856119d190919063ffffffff16565b9050610f30600560009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106fd57600080fd5b610f3861170a565b505b600360009054906101000a90046001600160a01b03166001600160a01b031663f83d08ba6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610f8a57600080fd5b505af1158015610f9e573d6000803e3d6000fd5b50505050505050565b73f147b8125d2ef93fb6965db97d6746952a13393481565b6005546000906001600160a01b0316331461100f576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b600080516020611fde8339815191526001600160a01b0383161415611064576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b73d533a949740bb3306d119cc777fa900ba034cd526001600160a01b03831614156110bc576040805162461bcd60e51b815260206004820152600360248201526231b93b60e91b604482015290519081900360640190fd5b732260fac5e5542a773aa44fbcfedf7c193bc2c5996001600160a01b0383161415611117576040805162461bcd60e51b815260206004808301919091526024820152637762746360e01b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561115d57600080fd5b505afa158015611171573d6000803e3d6000fd5b505050506040513d602081101561118757600080fd5b50516005549091506111ac906001600160a01b0384811691168363ffffffff611a6c16565b919050565b6004546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b6004546001600160a01b03163314611225576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600155565b737fc77b5c7614e1533320ea6ddc2eb61fa00a971481565b600061126361124f61049a565b61125761164c565b9063ffffffff61197716565b905090565b61271081565b60005481565b6005546000906001600160a01b031633146112c4576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6112cc611bd6565b604080516370a0823160e01b81523060048201529051600080516020611fde833981519152916370a08231916024808301926020929190829003018186803b15801561131757600080fd5b505afa15801561132b573d6000803e3d6000fd5b505050506040513d602081101561134157600080fd5b505160055460408051632988bb9f60e21b8152600080516020611fde833981519152600482015290519293506000926001600160a01b039092169163a622ee7c91602480820192602092909190829003018186803b1580156113a257600080fd5b505afa1580156113b6573d6000803e3d6000fd5b505050506040513d60208110156113cc57600080fd5b505190506001600160a01b038116611414576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b611433600080516020611fde833981519152828463ffffffff611a6c16565b5090565b60015481565b60025481565b6004546001600160a01b03163314611490576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031633146114ff576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600055565b6004546001600160a01b03163314611551576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b73705350c4bcd35c9441419ddd5d2f097d7a55410f81565b6004546001600160a01b031633146115d8576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314611647576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600255565b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b1580156104f957600080fd5b6004546001600160a01b031633146116e8576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b15801561175957600080fd5b505afa15801561176d573d6000803e3d6000fd5b505050506040513d602081101561178357600080fd5b505190508015611846576003546117b990600080516020611fde833981519152906001600160a01b03168363ffffffff611a6c16565b60035460408051631f2c13e160e31b815273705350c4bcd35c9441419ddd5d2f097d7a55410f6004820152600080516020611fde833981519152602482015290516001600160a01b039092169163f9609f089160448082019260009290919082900301818387803b15801561182d57600080fd5b505af1158015611841573d6000803e3d6000fd5b505050505b50565b6003546001600160a01b031681565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6005546001600160a01b031681565b60006118c183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ccc565b90505b92915050565b60035460408051636ce5768960e11b815273705350c4bcd35c9441419ddd5d2f097d7a55410f6004820152600080516020611fde83398151915260248201526044810184905290516000926001600160a01b03169163d9caed1291606480830192602092919082900301818787803b15801561194557600080fd5b505af1158015611959573d6000803e3d6000fd5b505050506040513d602081101561196f57600080fd5b505192915050565b6000828201838110156118c1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826119e0575060006118c4565b828202828482816119ed57fe5b04146118c15760405162461bcd60e51b8152600401808060200182810382526021815260200180611fbd6021913960400191505060405180910390fd5b60006118c183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d63565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611abe908490611dc8565b505050565b801580611b49575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611b1b57600080fd5b505afa158015611b2f573d6000803e3d6000fd5b505050506040513d6020811015611b4557600080fd5b5051155b611b845760405162461bcd60e51b81526004018080602001828103825260368152602001806120286036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611abe908490611dc8565b6000611be0611242565b600354604080516301395c5960e31b815273705350c4bcd35c9441419ddd5d2f097d7a55410f6004820152600080516020611fde833981519152602482015290519293506001600160a01b03909116916309cae2c8916044808201926020929091908290030181600087803b158015611c5857600080fd5b505af1158015611c6c573d6000803e3d6000fd5b505050506040513d6020811015611c8257600080fd5b50611c8d9050611242565b8114611846576040805162461bcd60e51b815260206004820152600960248201526821736c69707061676560b81b604482015290519081900360640190fd5b60008184841115611d5b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d20578181015183820152602001611d08565b50505050905090810190601f168015611d4d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611db25760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d20578181015183820152602001611d08565b506000838581611dbe57fe5b0495945050505050565b611dda826001600160a01b0316611f80565b611e2b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611e695780518252601f199092019160209182019101611e4a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ecb576040519150601f19603f3d011682016040523d82523d6000602084013e611ed0565b606091505b509150915081611f27576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561084057808060200190516020811015611f4357600080fd5b50516108405760405162461bcd60e51b815260040180806020018281038252602a815260200180611ffe602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611fb457508115155b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77000000000000000000000000075b1bb99792c9e1041ba13afef80c91a1e70fb35361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a723158204f96449cab2cf229a17529b89ae84f744bd9af4e752e0724ac6a92bdb65691ee64736f6c634300051100320000000000000000000000009e65ad11b299ca0abefc2799ddb6314ef2d91080
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c8063853828b61161011a578063ac1e5025116100ad578063d5c1ff731161007c578063d5c1ff7314610370578063e9751f6b14610370578063ec55688914610482578063edc9af951461048a578063f77c47911461049257610206565b8063ac1e50251461042f578063c1a3d44c1461044c578063c7b9d53014610454578063d0e30db01461047a57610206565b8063955383bd116100e9578063955383bd146103be57806397107d6d146103db578063a6f19c8414610401578063ab033ea91461040957610206565b8063853828b61461038057806387788782146103885780638bc7e8c41461039057806392eefe9b1461039857610206565b806346c96aac1161019d57806370897b231161016c57806370897b23146103435780637165485d14610360578063722713f7146103685780637cc79113146103705780637fef901a1461037857610206565b806346c96aac1461030557806351cff8d91461030d5780635aa6e675146103335780636a4874a11461033b57610206565b80632e1a7d4d116101d95780632e1a7d4d146102ce5780633cdc5389146102ed5780633fc8cef3146102f55780634641257d146102fd57610206565b8063115880861461020b57806317d7de7c146102255780631f1fcd51146102a25780631fe4a686146102c6575b600080fd5b61021361049a565b60408051918252519081900360200190f35b61022d61052a565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026757818101518382015260200161024f565b50505050905090810190601f1680156102945780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102aa610561565b604080516001600160a01b039092168252519081900360200190f35b6102aa610573565b6102eb600480360360208110156102e457600080fd5b5035610582565b005b6102aa610846565b6102aa61085e565b6102eb610876565b6102aa610fa7565b6102136004803603602081101561032357600080fd5b50356001600160a01b0316610fbf565b6102aa6111b1565b6102aa6111c0565b6102eb6004803603602081101561035957600080fd5b50356111d8565b6102aa61122a565b610213611242565b610213611268565b61021361126e565b610213611274565b610213611437565b61021361143d565b6102eb600480360360208110156103ae57600080fd5b50356001600160a01b0316611443565b6102eb600480360360208110156103d457600080fd5b50356114b2565b6102eb600480360360208110156103f157600080fd5b50356001600160a01b0316611504565b6102aa611573565b6102eb6004803603602081101561041f57600080fd5b50356001600160a01b031661158b565b6102eb6004803603602081101561044557600080fd5b50356115fa565b61021361164c565b6102eb6004803603602081101561046a57600080fd5b50356001600160a01b031661169b565b6102eb61170a565b6102aa611849565b6102aa611858565b6102aa611870565b600354604080516370a0823160e01b815273705350c4bcd35c9441419ddd5d2f097d7a55410f600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156104f957600080fd5b505afa15801561050d573d6000803e3d6000fd5b505050506040513d602081101561052357600080fd5b5051905090565b60408051808201909152601a81527f53747261746567794375727665425443566f74657250726f7879000000000000602082015290565b600080516020611fde83398151915281565b6006546001600160a01b031681565b6005546001600160a01b031633146105cf576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b15801561061e57600080fd5b505afa158015610632573d6000803e3d6000fd5b505050506040513d602081101561064857600080fd5b50519050818110156106815761066c610667838363ffffffff61187f16565b6118ca565b915061067e828263ffffffff61197716565b91505b60006106aa61271061069e600254866119d190919063ffffffff16565b9063ffffffff611a2a16565b9050610745600560009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106fd57600080fd5b505afa158015610711573d6000803e3d6000fd5b505050506040513d602081101561072757600080fd5b5051600080516020611fde833981519152908363ffffffff611a6c16565b60055460408051632988bb9f60e21b8152600080516020611fde833981519152600482015290516000926001600160a01b03169163a622ee7c916024808301926020929190829003018186803b15801561079e57600080fd5b505afa1580156107b2573d6000803e3d6000fd5b505050506040513d60208110156107c857600080fd5b505190506001600160a01b038116610810576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b61084081610824868563ffffffff61187f16565b600080516020611fde833981519152919063ffffffff611a6c16565b50505050565b732260fac5e5542a773aa44fbcfedf7c193bc2c59981565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6006546001600160a01b031633148061089957506004546001600160a01b031633145b6108d8576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b6003546040805163072e008f60e11b815273705350c4bcd35c9441419ddd5d2f097d7a55410f600482015290516001600160a01b0390921691630e5c011e9160248082019260009290919082900301818387803b15801561093857600080fd5b505af115801561094c573d6000803e3d6000fd5b5050604080516370a0823160e01b815230600482015290516000935073d533a949740bb3306d119cc777fa900ba034cd5292506370a0823191602480820192602092909190829003018186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d60208110156109cf57600080fd5b505190508015610c845760006109f661271061069e600054856119d190919063ffffffff16565b9050610a3173d533a949740bb3306d119cc777fa900ba034cd5273f147b8125d2ef93fb6965db97d6746952a1339348363ffffffff611a6c16565b610a41828263ffffffff61187f16565b9150610a7d73d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d600063ffffffff611ac316565b610ab673d533a949740bb3306d119cc777fa900ba034cd52737a250d5630b4cf539739df2c5dacb4c659f2488d8463ffffffff611ac316565b6040805160038082526080820190925260609160208201838038833901905050905073d533a949740bb3306d119cc777fa900ba034cd5281600081518110610afa57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610b3c57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050732260fac5e5542a773aa44fbcfedf7c193bc2c59981600281518110610b7e57fe5b6001600160a01b0390921660209283029190910190910152737a250d5630b4cf539739df2c5dacb4c659f2488d6338ed17398460008430610bc74261070863ffffffff61197716565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610c40578181015183820152602001610c28565b505050509050019650505050505050600060405180830381600087803b158015610c6957600080fd5b505af1158015610c7d573d6000803e3d6000fd5b5050505050505b604080516370a0823160e01b81523060048201529051600091732260fac5e5542a773aa44fbcfedf7c193bc2c599916370a0823191602480820192602092909190829003018186803b158015610cd957600080fd5b505afa158015610ced573d6000803e3d6000fd5b505050506040513d6020811015610d0357600080fd5b505190508015610e3d57610d47732260fac5e5542a773aa44fbcfedf7c193bc2c599737fc77b5c7614e1533320ea6ddc2eb61fa00a9714600063ffffffff611ac316565b610d80732260fac5e5542a773aa44fbcfedf7c193bc2c599737fc77b5c7614e1533320ea6ddc2eb61fa00a97148363ffffffff611ac316565b737fc77b5c7614e1533320ea6ddc2eb61fa00a97146001600160a01b0316634515cef3604051806060016040528060008152602001848152602001600081525060006040518363ffffffff1660e01b81526004018083600360200280838360005b83811015610df9578181015183820152602001610de1565b5050505090500182815260200192505050600060405180830381600087803b158015610e2457600080fd5b505af1158015610e38573d6000803e3d6000fd5b505050505b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b158015610e8c57600080fd5b505afa158015610ea0573d6000803e3d6000fd5b505050506040513d6020811015610eb657600080fd5b505190508015610f3a576000610edd61271061069e600154856119d190919063ffffffff16565b9050610f30600560009054906101000a90046001600160a01b03166001600160a01b0316639ec5a8946040518163ffffffff1660e01b815260040160206040518083038186803b1580156106fd57600080fd5b610f3861170a565b505b600360009054906101000a90046001600160a01b03166001600160a01b031663f83d08ba6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610f8a57600080fd5b505af1158015610f9e573d6000803e3d6000fd5b50505050505050565b73f147b8125d2ef93fb6965db97d6746952a13393481565b6005546000906001600160a01b0316331461100f576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b600080516020611fde8339815191526001600160a01b0383161415611064576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b73d533a949740bb3306d119cc777fa900ba034cd526001600160a01b03831614156110bc576040805162461bcd60e51b815260206004820152600360248201526231b93b60e91b604482015290519081900360640190fd5b732260fac5e5542a773aa44fbcfedf7c193bc2c5996001600160a01b0383161415611117576040805162461bcd60e51b815260206004808301919091526024820152637762746360e01b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561115d57600080fd5b505afa158015611171573d6000803e3d6000fd5b505050506040513d602081101561118757600080fd5b50516005549091506111ac906001600160a01b0384811691168363ffffffff611a6c16565b919050565b6004546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b6004546001600160a01b03163314611225576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600155565b737fc77b5c7614e1533320ea6ddc2eb61fa00a971481565b600061126361124f61049a565b61125761164c565b9063ffffffff61197716565b905090565b61271081565b60005481565b6005546000906001600160a01b031633146112c4576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6112cc611bd6565b604080516370a0823160e01b81523060048201529051600080516020611fde833981519152916370a08231916024808301926020929190829003018186803b15801561131757600080fd5b505afa15801561132b573d6000803e3d6000fd5b505050506040513d602081101561134157600080fd5b505160055460408051632988bb9f60e21b8152600080516020611fde833981519152600482015290519293506000926001600160a01b039092169163a622ee7c91602480820192602092909190829003018186803b1580156113a257600080fd5b505afa1580156113b6573d6000803e3d6000fd5b505050506040513d60208110156113cc57600080fd5b505190506001600160a01b038116611414576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b611433600080516020611fde833981519152828463ffffffff611a6c16565b5090565b60015481565b60025481565b6004546001600160a01b03163314611490576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031633146114ff576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600055565b6004546001600160a01b03163314611551576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b73705350c4bcd35c9441419ddd5d2f097d7a55410f81565b6004546001600160a01b031633146115d8576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314611647576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600255565b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b1580156104f957600080fd5b6004546001600160a01b031633146116e8576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b604080516370a0823160e01b81523060048201529051600091600080516020611fde833981519152916370a0823191602480820192602092909190829003018186803b15801561175957600080fd5b505afa15801561176d573d6000803e3d6000fd5b505050506040513d602081101561178357600080fd5b505190508015611846576003546117b990600080516020611fde833981519152906001600160a01b03168363ffffffff611a6c16565b60035460408051631f2c13e160e31b815273705350c4bcd35c9441419ddd5d2f097d7a55410f6004820152600080516020611fde833981519152602482015290516001600160a01b039092169163f9609f089160448082019260009290919082900301818387803b15801561182d57600080fd5b505af1158015611841573d6000803e3d6000fd5b505050505b50565b6003546001600160a01b031681565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6005546001600160a01b031681565b60006118c183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ccc565b90505b92915050565b60035460408051636ce5768960e11b815273705350c4bcd35c9441419ddd5d2f097d7a55410f6004820152600080516020611fde83398151915260248201526044810184905290516000926001600160a01b03169163d9caed1291606480830192602092919082900301818787803b15801561194557600080fd5b505af1158015611959573d6000803e3d6000fd5b505050506040513d602081101561196f57600080fd5b505192915050565b6000828201838110156118c1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826119e0575060006118c4565b828202828482816119ed57fe5b04146118c15760405162461bcd60e51b8152600401808060200182810382526021815260200180611fbd6021913960400191505060405180910390fd5b60006118c183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d63565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611abe908490611dc8565b505050565b801580611b49575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611b1b57600080fd5b505afa158015611b2f573d6000803e3d6000fd5b505050506040513d6020811015611b4557600080fd5b5051155b611b845760405162461bcd60e51b81526004018080602001828103825260368152602001806120286036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611abe908490611dc8565b6000611be0611242565b600354604080516301395c5960e31b815273705350c4bcd35c9441419ddd5d2f097d7a55410f6004820152600080516020611fde833981519152602482015290519293506001600160a01b03909116916309cae2c8916044808201926020929091908290030181600087803b158015611c5857600080fd5b505af1158015611c6c573d6000803e3d6000fd5b505050506040513d6020811015611c8257600080fd5b50611c8d9050611242565b8114611846576040805162461bcd60e51b815260206004820152600960248201526821736c69707061676560b81b604482015290519081900360640190fd5b60008184841115611d5b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d20578181015183820152602001611d08565b50505050905090810190601f168015611d4d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183611db25760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d20578181015183820152602001611d08565b506000838581611dbe57fe5b0495945050505050565b611dda826001600160a01b0316611f80565b611e2b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611e695780518252601f199092019160209182019101611e4a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ecb576040519150601f19603f3d011682016040523d82523d6000602084013e611ed0565b606091505b509150915081611f27576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561084057808060200190516020811015611f4357600080fd5b50516108405760405162461bcd60e51b815260040180806020018281038252602a815260200180611ffe602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611fb457508115155b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77000000000000000000000000075b1bb99792c9e1041ba13afef80c91a1e70fb35361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a723158204f96449cab2cf229a17529b89ae84f744bd9af4e752e0724ac6a92bdb65691ee64736f6c63430005110032
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 | 26 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.