More Info
Private Name Tags
ContractCreator
Latest 12 from a total of 12 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Governance | 11692755 | 1324 days ago | IN | 0 ETH | 0.00207575 | ||||
Set Strategist | 11692754 | 1324 days ago | IN | 0 ETH | 0.0021342 | ||||
Set Vault | 11692750 | 1324 days ago | IN | 0 ETH | 0.00335812 | ||||
Set Strategy | 11692747 | 1324 days ago | IN | 0 ETH | 0.00343425 | ||||
Approve Strategy | 11692746 | 1324 days ago | IN | 0 ETH | 0.00329362 | ||||
Set Vault | 11692726 | 1324 days ago | IN | 0 ETH | 0.00335812 | ||||
Set Strategy | 11692725 | 1324 days ago | IN | 0 ETH | 0.00343515 | ||||
Approve Strategy | 11692724 | 1324 days ago | IN | 0 ETH | 0.00329452 | ||||
Set Vault | 11692672 | 1324 days ago | IN | 0 ETH | 0.00295515 | ||||
Set Strategy | 11692664 | 1324 days ago | IN | 0 ETH | 0.00302293 | ||||
Approve Strategy | 11692663 | 1324 days ago | IN | 0 ETH | 0.0027674 | ||||
0x60806040 | 11692633 | 1324 days ago | IN | 0 ETH | 0.1315015 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
20565325 | 17 days ago | 0 ETH | |||||
20565325 | 17 days ago | 0 ETH | |||||
20565325 | 17 days ago | 0 ETH | |||||
20565325 | 17 days ago | 0 ETH | |||||
20565325 | 17 days ago | 0 ETH | |||||
20565325 | 17 days ago | 0 ETH | |||||
20393629 | 41 days ago | 0 ETH | |||||
20393629 | 41 days ago | 0 ETH | |||||
20393629 | 41 days ago | 0 ETH | |||||
20393629 | 41 days ago | 0 ETH | |||||
20393629 | 41 days ago | 0 ETH | |||||
20393629 | 41 days ago | 0 ETH | |||||
20246253 | 61 days ago | 0 ETH | |||||
20246253 | 61 days ago | 0 ETH | |||||
20246252 | 61 days ago | 0 ETH | |||||
20246252 | 61 days ago | 0 ETH | |||||
20246252 | 61 days ago | 0 ETH | |||||
20246252 | 61 days ago | 0 ETH | |||||
20246252 | 61 days ago | 0 ETH | |||||
20246252 | 61 days ago | 0 ETH | |||||
20223485 | 65 days ago | 0 ETH | |||||
20223485 | 65 days ago | 0 ETH | |||||
20223485 | 65 days ago | 0 ETH | |||||
20223485 | 65 days ago | 0 ETH | |||||
20223485 | 65 days ago | 0 ETH |
Loading...
Loading
Contract Name:
Controller
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-20 */ // SPDX-License-Identifier: MIT pragma solidity 0.5.17; // Part: IConverter interface IConverter { function convert(address) external returns (uint256); } // Part: IOneSplitAudit interface IOneSplitAudit { function swap( address fromToken, address destToken, uint256 amount, uint256 minReturn, uint256[] calldata distribution, uint256 flags ) external payable returns (uint256 returnAmount); function getExpectedReturn( address fromToken, address destToken, uint256 amount, uint256 parts, uint256 flags // See constants in IOneSplit.sol ) external view returns (uint256 returnAmount, uint256[] memory distribution); } // Part: IStrategy interface IStrategy { function want() external view returns (address); function deposit() external; // NOTE: must exclude any tokens used in the yield // Controller role - withdraw should return to Controller function withdraw(address) external; // Controller | Vault role - withdraw should always return to Vault function withdraw(uint256) external; function skim() external; // Controller | Vault role - withdraw should always return to Vault function withdrawAll() external returns (uint256); function balanceOf() external view returns (uint256); } // Part: OpenZeppelin/[email protected]/Address /** * @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"); } } // Part: OpenZeppelin/[email protected]/IERC20 /** * @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); } // Part: OpenZeppelin/[email protected]/SafeMath /** * @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; } } // Part: OpenZeppelin/[email protected]/SafeERC20 /** * @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"); } } } // File: Controller.sol contract Controller { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; address public governance; address public strategist; address public onesplit; address public rewards; mapping(address => address) public vaults; mapping(address => address) public strategies; mapping(address => mapping(address => address)) public converters; mapping(address => mapping(address => bool)) public approvedStrategies; uint256 public split = 500; uint256 public constant max = 10000; constructor(address _rewards) public { governance = msg.sender; strategist = msg.sender; onesplit = address(0x50FDA034C0Ce7a8f7EFDAebDA7Aa7cA21CC1267e); rewards = _rewards; } function setRewards(address _rewards) public { require(msg.sender == governance, "!governance"); rewards = _rewards; } function setStrategist(address _strategist) public { require(msg.sender == governance, "!governance"); strategist = _strategist; } function setSplit(uint256 _split) public { require(msg.sender == governance, "!governance"); split = _split; } function setOneSplit(address _onesplit) public { require(msg.sender == governance, "!governance"); onesplit = _onesplit; } function setGovernance(address _governance) public { require(msg.sender == governance, "!governance"); governance = _governance; } function setVault(address _token, address _vault) public { require(msg.sender == strategist || msg.sender == governance, "!strategist"); require(vaults[_token] == address(0), "vault"); vaults[_token] = _vault; } function approveStrategy(address _token, address _strategy) public { require(msg.sender == governance, "!governance"); approvedStrategies[_token][_strategy] = true; } function revokeStrategy(address _token, address _strategy) public { require(msg.sender == governance, "!governance"); approvedStrategies[_token][_strategy] = false; } function setConverter( address _input, address _output, address _converter ) public { require(msg.sender == strategist || msg.sender == governance, "!strategist"); converters[_input][_output] = _converter; } function setStrategy(address _token, address _strategy) public { require(msg.sender == strategist || msg.sender == governance, "!strategist"); require(approvedStrategies[_token][_strategy] == true, "!approved"); address _current = strategies[_token]; if (_current != address(0)) { IStrategy(_current).withdrawAll(); } strategies[_token] = _strategy; } function earn(address _token, uint256 _amount) public { address _strategy = strategies[_token]; address _want = IStrategy(_strategy).want(); if (_want != _token) { address converter = converters[_token][_want]; IERC20(_token).safeTransfer(converter, _amount); _amount = IConverter(converter).convert(_strategy); IERC20(_want).safeTransfer(_strategy, _amount); } else { IERC20(_token).safeTransfer(_strategy, _amount); } IStrategy(_strategy).deposit(); } function balanceOf(address _token) external view returns (uint256) { return IStrategy(strategies[_token]).balanceOf(); } function withdrawAll(address _token) public { require(msg.sender == strategist || msg.sender == governance, "!strategist"); IStrategy(strategies[_token]).withdrawAll(); } function inCaseTokensGetStuck(address _token, uint256 _amount) public { require(msg.sender == strategist || msg.sender == governance, "!governance"); IERC20(_token).safeTransfer(msg.sender, _amount); } function inCaseStrategyTokenGetStuck(address _strategy, address _token) public { require(msg.sender == strategist || msg.sender == governance, "!governance"); IStrategy(_strategy).withdraw(_token); } function getExpectedReturn( address _strategy, address _token, uint256 parts ) public view returns (uint256 expected) { uint256 _balance = IERC20(_token).balanceOf(_strategy); address _want = IStrategy(_strategy).want(); (expected, ) = IOneSplitAudit(onesplit).getExpectedReturn(_token, _want, _balance, parts, 0); } // Only allows to withdraw non-core strategy tokens ~ this is over and above normal yield function yearn( address _strategy, address _token, uint256 parts ) public { require(msg.sender == strategist || msg.sender == governance, "!governance"); // This contract should never have value in it, but just incase since this is a public call uint256 _before = IERC20(_token).balanceOf(address(this)); IStrategy(_strategy).withdraw(_token); uint256 _after = IERC20(_token).balanceOf(address(this)); if (_after > _before) { uint256 _amount = _after.sub(_before); address _want = IStrategy(_strategy).want(); uint256[] memory _distribution; uint256 _expected; _before = IERC20(_want).balanceOf(address(this)); IERC20(_token).safeApprove(onesplit, 0); IERC20(_token).safeApprove(onesplit, _amount); (_expected, _distribution) = IOneSplitAudit(onesplit).getExpectedReturn(_token, _want, _amount, parts, 0); IOneSplitAudit(onesplit).swap(_token, _want, _amount, _expected, _distribution, 0); _after = IERC20(_want).balanceOf(address(this)); if (_after > _before) { _amount = _after.sub(_before); uint256 _reward = _amount.mul(split).div(max); earn(_want, _amount.sub(_reward)); IERC20(_want).safeTransfer(rewards, _reward); } } } function withdraw(address _token, uint256 _amount) public { require(msg.sender == vaults[_token], "!vault"); IStrategy(strategies[_token]).withdraw(_amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rewards","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"approveStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"approvedStrategies","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"converters","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"earn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"parts","type":"uint256"}],"name":"getExpectedReturn","outputs":[{"internalType":"uint256","name":"expected","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseStrategyTokenGetStuck","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"inCaseTokensGetStuck","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onesplit","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"revokeStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_input","type":"address"},{"internalType":"address","name":"_output","type":"address"},{"internalType":"address","name":"_converter","type":"address"}],"name":"setConverter","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":"address","name":"_onesplit","type":"address"}],"name":"setOneSplit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewards","type":"address"}],"name":"setRewards","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_split","type":"uint256"}],"name":"setSplit","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":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"split","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strategies","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vaults","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"parts","type":"uint256"}],"name":"yearn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526101f460085534801561001657600080fd5b506040516121453803806121458339818101604052602081101561003957600080fd5b5051600080546001600160a01b0319908116339081179092556001805482169092179091556002805482167350fda034c0ce7a8f7efdaebda7aa7ca21cc1267e179055600380546001600160a01b03909316929091169190911790556120a1806100a46000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063a1578b6a116100f9578063ccd0631811610097578063f3fef3a311610071578063f3fef3a314610592578063f712adbb146105be578063f7654176146105c6578063fa09e630146105ce576101c4565b8063ccd0631814610506578063e4f2494d1461053e578063ec38a8621461056c576101c4565b8063b02bf4b9116100d3578063b02bf4b91461045a578063c494448e14610486578063c6d758cb146104b4578063c7b9d530146104e0576101c4565b8063a1578b6a146103cc578063a622ee7c1461040e578063ab033ea914610434576101c4565b80636ac5db1911610166578063714ccf7b11610140578063714ccf7b1461034257806372cb5d97146103705780638da1df4d1461039e5780639ec5a894146103c4576101c4565b80636ac5db19146102cc5780636dcd64e5146102e657806370a082311461031c576101c4565b806339ebf823116101a257806339ebf82314610253578063590bbb60146102795780635aa6e675146102a7578063674e694f146102af576101c4565b806304209f48146101c9578063197baa6d146102015780631fe4a6861461022f575b600080fd5b6101ff600480360360608110156101df57600080fd5b506001600160a01b038135811691602081013590911690604001356105f4565b005b6101ff6004803603604081101561021757600080fd5b506001600160a01b0381358116916020013516610c3f565b610237610d15565b604080516001600160a01b039092168252519081900360200190f35b6102376004803603602081101561026957600080fd5b50356001600160a01b0316610d24565b6101ff6004803603604081101561028f57600080fd5b506001600160a01b0381358116916020013516610d3f565b610237610dbd565b6101ff600480360360208110156102c557600080fd5b5035610dcc565b6102d4610e1e565b60408051918252519081900360200190f35b6102d4600480360360608110156102fc57600080fd5b506001600160a01b03813581169160208101359091169060400135610e24565b6102d46004803603602081101561033257600080fd5b50356001600160a01b0316611064565b6101ff6004803603604081101561035857600080fd5b506001600160a01b03813581169160200135166110e8565b6101ff6004803603604081101561038657600080fd5b506001600160a01b03813581169160200135166111cd565b6101ff600480360360208110156103b457600080fd5b50356001600160a01b0316611352565b6102376113c1565b6103fa600480360360408110156103e257600080fd5b506001600160a01b03813581169160200135166113d0565b604080519115158252519081900360200190f35b6102376004803603602081101561042457600080fd5b50356001600160a01b03166113f0565b6101ff6004803603602081101561044a57600080fd5b50356001600160a01b031661140b565b6101ff6004803603604081101561047057600080fd5b506001600160a01b03813516906020013561147a565b6101ff6004803603604081101561049c57600080fd5b506001600160a01b0381358116916020013516611661565b6101ff600480360360408110156104ca57600080fd5b506001600160a01b0381351690602001356116e2565b6101ff600480360360208110156104f657600080fd5b50356001600160a01b0316611762565b6101ff6004803603606081101561051c57600080fd5b506001600160a01b0381358116916020810135821691604090910135166117d1565b6102376004803603604081101561055457600080fd5b506001600160a01b0381358116916020013516611870565b6101ff6004803603602081101561058257600080fd5b50356001600160a01b0316611896565b6101ff600480360360408110156105a857600080fd5b506001600160a01b038135169060200135611905565b6102376119b3565b6102d46119c2565b6101ff600480360360208110156105e457600080fd5b50356001600160a01b03166119c8565b6001546001600160a01b031633148061061757506000546001600160a01b031633145b610656576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b1580156106a057600080fd5b505afa1580156106b4573d6000803e3d6000fd5b505050506040513d60208110156106ca57600080fd5b5051604080516351cff8d960e01b81526001600160a01b0386811660048301529151929350908616916351cff8d99160248082019260009290919082900301818387803b15801561071a57600080fd5b505af115801561072e573d6000803e3d6000fd5b5050604080516370a0823160e01b81523060048201529051600093506001600160a01b03871692506370a0823191602480820192602092909190829003018186803b15801561077c57600080fd5b505afa158015610790573d6000803e3d6000fd5b505050506040513d60208110156107a657600080fd5b5051905081811115610c385760006107c4828463ffffffff611aaa16565b90506000866001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b15801561080157600080fd5b505afa158015610815573d6000803e3d6000fd5b505050506040513d602081101561082b57600080fd5b5051604080516370a0823160e01b815230600482015290519192506060916000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561087d57600080fd5b505afa158015610891573d6000803e3d6000fd5b505050506040513d60208110156108a757600080fd5b50516002549096506108cd906001600160a01b038a81169116600063ffffffff611af516565b6002546108ed906001600160a01b038a811691168663ffffffff611af516565b6002546040805163085e2c5b60e01b81526001600160a01b038b81166004830152868116602483015260448201889052606482018b9052600060848301819052925193169263085e2c5b9260a480840193919291829003018186803b15801561095557600080fd5b505afa158015610969573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561099257600080fd5b8151602083018051604051929492938301929190846401000000008211156109b957600080fd5b9083019060208201858111156109ce57600080fd5b82518660208202830111640100000000821117156109eb57600080fd5b82525081516020918201928201910280838360005b83811015610a18578181015183820152602001610a00565b505050509050016040525050508093508192505050600260009054906101000a90046001600160a01b03166001600160a01b031663e2a7515e898587858760006040518763ffffffff1660e01b815260040180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b0316815260200185815260200184815260200180602001838152602001828103825284818151815260200191508051906020019060200280838360005b83811015610ae9578181015183820152602001610ad1565b50505050905001975050505050505050602060405180830381600087803b158015610b1357600080fd5b505af1158015610b27573d6000803e3d6000fd5b505050506040513d6020811015610b3d57600080fd5b5050604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b158015610b8557600080fd5b505afa158015610b99573d6000803e3d6000fd5b505050506040513d6020811015610baf57600080fd5b5051945085851115610c3357610bcb858763ffffffff611aaa16565b93506000610bf6612710610bea60085488611c0890919063ffffffff16565b9063ffffffff611c6116565b9050610c1184610c0c878463ffffffff611aaa16565b61147a565b600354610c31906001600160a01b0386811691168363ffffffff611ca316565b505b505050505b5050505050565b6001546001600160a01b0316331480610c6257506000546001600160a01b031633145b610ca1576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b816001600160a01b03166351cff8d9826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015610cf957600080fd5b505af1158015610d0d573d6000803e3d6000fd5b505050505050565b6001546001600160a01b031681565b6005602052600090815260409020546001600160a01b031681565b6000546001600160a01b03163314610d8c576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220805460ff19169055565b6000546001600160a01b031681565b6000546001600160a01b03163314610e19576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600855565b61271081565b600080836001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610e7d57600080fd5b505afa158015610e91573d6000803e3d6000fd5b505050506040513d6020811015610ea757600080fd5b505160408051631f1fcd5160e01b815290519192506000916001600160a01b03881691631f1fcd51916004808301926020929190829003018186803b158015610eef57600080fd5b505afa158015610f03573d6000803e3d6000fd5b505050506040513d6020811015610f1957600080fd5b50516002546040805163085e2c5b60e01b81526001600160a01b0389811660048301528085166024830152604482018790526064820189905260006084830181905292519495509092169263085e2c5b9260a4808201939291829003018186803b158015610f8657600080fd5b505afa158015610f9a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040908152811015610fc357600080fd5b815160208301805160405192949293830192919084640100000000821115610fea57600080fd5b908301906020820185811115610fff57600080fd5b825186602082028301116401000000008211171561101c57600080fd5b82525081516020918201928201910280838360005b83811015611049578181015183820152602001611031565b50505050905001604052505050508093505050509392505050565b6001600160a01b03808216600090815260056020908152604080832054815163722713f760e01b815291519394169263722713f792600480840193919291829003018186803b1580156110b657600080fd5b505afa1580156110ca573d6000803e3d6000fd5b505050506040513d60208110156110e057600080fd5b505192915050565b6001546001600160a01b031633148061110b57506000546001600160a01b031633145b61114a576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b03828116600090815260046020526040902054161561119f576040805162461bcd60e51b81526020600482015260056024820152641d985d5b1d60da1b604482015290519081900360640190fd5b6001600160a01b03918216600090815260046020526040902080546001600160a01b03191691909216179055565b6001546001600160a01b03163314806111f057506000546001600160a01b031633145b61122f576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b0380831660009081526007602090815260408083209385168352929052205460ff16151560011461129a576040805162461bcd60e51b815260206004820152600960248201526808585c1c1c9bdd995960ba1b604482015290519081900360640190fd5b6001600160a01b0380831660009081526005602052604090205416801561132357806001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156112f657600080fd5b505af115801561130a573d6000803e3d6000fd5b505050506040513d602081101561132057600080fd5b50505b506001600160a01b03918216600090815260056020526040902080546001600160a01b03191691909216179055565b6000546001600160a01b0316331461139f576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b600760209081526000928352604080842090915290825290205460ff1681565b6004602052600090815260409020546001600160a01b031681565b6000546001600160a01b03163314611458576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038083166000908152600560209081526040808320548151631f1fcd5160e01b815291519416938492631f1fcd519260048082019391829003018186803b1580156114cb57600080fd5b505afa1580156114df573d6000803e3d6000fd5b505050506040513d60208110156114f557600080fd5b505190506001600160a01b03808216908516146115ee576001600160a01b03808516600081815260066020908152604080832086861684529091529020549091169061154890828663ffffffff611ca316565b806001600160a01b031663def2489b846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b1580156115a057600080fd5b505af11580156115b4573d6000803e3d6000fd5b505050506040513d60208110156115ca57600080fd5b505193506115e86001600160a01b038316848663ffffffff611ca316565b50611608565b6116086001600160a01b038516838563ffffffff611ca316565b816001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146116ae576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220805460ff19166001179055565b6001546001600160a01b031633148061170557506000546001600160a01b031633145b611744576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b61175e6001600160a01b038316338363ffffffff611ca316565b5050565b6000546001600160a01b031633146117af576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314806117f457506000546001600160a01b031633145b611833576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b03928316600090815260066020908152604080832094861683529390529190912080546001600160a01b03191691909216179055565b60066020908152600092835260408084209091529082529020546001600160a01b031681565b6000546001600160a01b031633146118e3576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382811660009081526004602052604090205416331461195c576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b6001600160a01b03808316600090815260056020526040808220548151632e1a7d4d60e01b8152600481018690529151931692632e1a7d4d9260248084019391929182900301818387803b158015610cf957600080fd5b6002546001600160a01b031681565b60085481565b6001546001600160a01b03163314806119eb57506000546001600160a01b031633145b611a2a576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b03808216600090815260056020908152604080832054815163429c145b60e11b8152915194169363853828b693600480840194938390030190829087803b158015611a7b57600080fd5b505af1158015611a8f573d6000803e3d6000fd5b505050506040513d6020811015611aa557600080fd5b505050565b6000611aec83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611cf5565b90505b92915050565b801580611b7b575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611b4d57600080fd5b505afa158015611b61573d6000803e3d6000fd5b505050506040513d6020811015611b7757600080fd5b5051155b611bb65760405162461bcd60e51b81526004018080602001828103825260368152602001806120376036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611aa5908490611d8c565b600082611c1757506000611aef565b82820282848281611c2457fe5b0414611aec5760405162461bcd60e51b8152600401808060200182810382526021815260200180611fec6021913960400191505060405180910390fd5b6000611aec83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f4a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611aa5908490611d8c565b60008184841115611d845760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d49578181015183820152602001611d31565b50505050905090810190601f168015611d765780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611d9e826001600160a01b0316611faf565b611def576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611e2d5780518252601f199092019160209182019101611e0e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611e8f576040519150601f19603f3d011682016040523d82523d6000602084013e611e94565b606091505b509150915081611eeb576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611f4457808060200190516020811015611f0757600080fd5b5051611f445760405162461bcd60e51b815260040180806020018281038252602a81526020018061200d602a913960400191505060405180910390fd5b50505050565b60008183611f995760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d49578181015183820152602001611d31565b506000838581611fa557fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611fe357508115155b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a723158205eb4884548ea0565e2d9d681adf98ce2c5df2335bb64face86f6f8be01dbb94964736f6c634300051100320000000000000000000000009d75c85f864ab9149e23f27c35addae09b9b909c
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063a1578b6a116100f9578063ccd0631811610097578063f3fef3a311610071578063f3fef3a314610592578063f712adbb146105be578063f7654176146105c6578063fa09e630146105ce576101c4565b8063ccd0631814610506578063e4f2494d1461053e578063ec38a8621461056c576101c4565b8063b02bf4b9116100d3578063b02bf4b91461045a578063c494448e14610486578063c6d758cb146104b4578063c7b9d530146104e0576101c4565b8063a1578b6a146103cc578063a622ee7c1461040e578063ab033ea914610434576101c4565b80636ac5db1911610166578063714ccf7b11610140578063714ccf7b1461034257806372cb5d97146103705780638da1df4d1461039e5780639ec5a894146103c4576101c4565b80636ac5db19146102cc5780636dcd64e5146102e657806370a082311461031c576101c4565b806339ebf823116101a257806339ebf82314610253578063590bbb60146102795780635aa6e675146102a7578063674e694f146102af576101c4565b806304209f48146101c9578063197baa6d146102015780631fe4a6861461022f575b600080fd5b6101ff600480360360608110156101df57600080fd5b506001600160a01b038135811691602081013590911690604001356105f4565b005b6101ff6004803603604081101561021757600080fd5b506001600160a01b0381358116916020013516610c3f565b610237610d15565b604080516001600160a01b039092168252519081900360200190f35b6102376004803603602081101561026957600080fd5b50356001600160a01b0316610d24565b6101ff6004803603604081101561028f57600080fd5b506001600160a01b0381358116916020013516610d3f565b610237610dbd565b6101ff600480360360208110156102c557600080fd5b5035610dcc565b6102d4610e1e565b60408051918252519081900360200190f35b6102d4600480360360608110156102fc57600080fd5b506001600160a01b03813581169160208101359091169060400135610e24565b6102d46004803603602081101561033257600080fd5b50356001600160a01b0316611064565b6101ff6004803603604081101561035857600080fd5b506001600160a01b03813581169160200135166110e8565b6101ff6004803603604081101561038657600080fd5b506001600160a01b03813581169160200135166111cd565b6101ff600480360360208110156103b457600080fd5b50356001600160a01b0316611352565b6102376113c1565b6103fa600480360360408110156103e257600080fd5b506001600160a01b03813581169160200135166113d0565b604080519115158252519081900360200190f35b6102376004803603602081101561042457600080fd5b50356001600160a01b03166113f0565b6101ff6004803603602081101561044a57600080fd5b50356001600160a01b031661140b565b6101ff6004803603604081101561047057600080fd5b506001600160a01b03813516906020013561147a565b6101ff6004803603604081101561049c57600080fd5b506001600160a01b0381358116916020013516611661565b6101ff600480360360408110156104ca57600080fd5b506001600160a01b0381351690602001356116e2565b6101ff600480360360208110156104f657600080fd5b50356001600160a01b0316611762565b6101ff6004803603606081101561051c57600080fd5b506001600160a01b0381358116916020810135821691604090910135166117d1565b6102376004803603604081101561055457600080fd5b506001600160a01b0381358116916020013516611870565b6101ff6004803603602081101561058257600080fd5b50356001600160a01b0316611896565b6101ff600480360360408110156105a857600080fd5b506001600160a01b038135169060200135611905565b6102376119b3565b6102d46119c2565b6101ff600480360360208110156105e457600080fd5b50356001600160a01b03166119c8565b6001546001600160a01b031633148061061757506000546001600160a01b031633145b610656576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b1580156106a057600080fd5b505afa1580156106b4573d6000803e3d6000fd5b505050506040513d60208110156106ca57600080fd5b5051604080516351cff8d960e01b81526001600160a01b0386811660048301529151929350908616916351cff8d99160248082019260009290919082900301818387803b15801561071a57600080fd5b505af115801561072e573d6000803e3d6000fd5b5050604080516370a0823160e01b81523060048201529051600093506001600160a01b03871692506370a0823191602480820192602092909190829003018186803b15801561077c57600080fd5b505afa158015610790573d6000803e3d6000fd5b505050506040513d60208110156107a657600080fd5b5051905081811115610c385760006107c4828463ffffffff611aaa16565b90506000866001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b15801561080157600080fd5b505afa158015610815573d6000803e3d6000fd5b505050506040513d602081101561082b57600080fd5b5051604080516370a0823160e01b815230600482015290519192506060916000916001600160a01b038516916370a0823191602480820192602092909190829003018186803b15801561087d57600080fd5b505afa158015610891573d6000803e3d6000fd5b505050506040513d60208110156108a757600080fd5b50516002549096506108cd906001600160a01b038a81169116600063ffffffff611af516565b6002546108ed906001600160a01b038a811691168663ffffffff611af516565b6002546040805163085e2c5b60e01b81526001600160a01b038b81166004830152868116602483015260448201889052606482018b9052600060848301819052925193169263085e2c5b9260a480840193919291829003018186803b15801561095557600080fd5b505afa158015610969573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561099257600080fd5b8151602083018051604051929492938301929190846401000000008211156109b957600080fd5b9083019060208201858111156109ce57600080fd5b82518660208202830111640100000000821117156109eb57600080fd5b82525081516020918201928201910280838360005b83811015610a18578181015183820152602001610a00565b505050509050016040525050508093508192505050600260009054906101000a90046001600160a01b03166001600160a01b031663e2a7515e898587858760006040518763ffffffff1660e01b815260040180876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b0316815260200185815260200184815260200180602001838152602001828103825284818151815260200191508051906020019060200280838360005b83811015610ae9578181015183820152602001610ad1565b50505050905001975050505050505050602060405180830381600087803b158015610b1357600080fd5b505af1158015610b27573d6000803e3d6000fd5b505050506040513d6020811015610b3d57600080fd5b5050604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b158015610b8557600080fd5b505afa158015610b99573d6000803e3d6000fd5b505050506040513d6020811015610baf57600080fd5b5051945085851115610c3357610bcb858763ffffffff611aaa16565b93506000610bf6612710610bea60085488611c0890919063ffffffff16565b9063ffffffff611c6116565b9050610c1184610c0c878463ffffffff611aaa16565b61147a565b600354610c31906001600160a01b0386811691168363ffffffff611ca316565b505b505050505b5050505050565b6001546001600160a01b0316331480610c6257506000546001600160a01b031633145b610ca1576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b816001600160a01b03166351cff8d9826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b158015610cf957600080fd5b505af1158015610d0d573d6000803e3d6000fd5b505050505050565b6001546001600160a01b031681565b6005602052600090815260409020546001600160a01b031681565b6000546001600160a01b03163314610d8c576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220805460ff19169055565b6000546001600160a01b031681565b6000546001600160a01b03163314610e19576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600855565b61271081565b600080836001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610e7d57600080fd5b505afa158015610e91573d6000803e3d6000fd5b505050506040513d6020811015610ea757600080fd5b505160408051631f1fcd5160e01b815290519192506000916001600160a01b03881691631f1fcd51916004808301926020929190829003018186803b158015610eef57600080fd5b505afa158015610f03573d6000803e3d6000fd5b505050506040513d6020811015610f1957600080fd5b50516002546040805163085e2c5b60e01b81526001600160a01b0389811660048301528085166024830152604482018790526064820189905260006084830181905292519495509092169263085e2c5b9260a4808201939291829003018186803b158015610f8657600080fd5b505afa158015610f9a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040908152811015610fc357600080fd5b815160208301805160405192949293830192919084640100000000821115610fea57600080fd5b908301906020820185811115610fff57600080fd5b825186602082028301116401000000008211171561101c57600080fd5b82525081516020918201928201910280838360005b83811015611049578181015183820152602001611031565b50505050905001604052505050508093505050509392505050565b6001600160a01b03808216600090815260056020908152604080832054815163722713f760e01b815291519394169263722713f792600480840193919291829003018186803b1580156110b657600080fd5b505afa1580156110ca573d6000803e3d6000fd5b505050506040513d60208110156110e057600080fd5b505192915050565b6001546001600160a01b031633148061110b57506000546001600160a01b031633145b61114a576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b03828116600090815260046020526040902054161561119f576040805162461bcd60e51b81526020600482015260056024820152641d985d5b1d60da1b604482015290519081900360640190fd5b6001600160a01b03918216600090815260046020526040902080546001600160a01b03191691909216179055565b6001546001600160a01b03163314806111f057506000546001600160a01b031633145b61122f576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b0380831660009081526007602090815260408083209385168352929052205460ff16151560011461129a576040805162461bcd60e51b815260206004820152600960248201526808585c1c1c9bdd995960ba1b604482015290519081900360640190fd5b6001600160a01b0380831660009081526005602052604090205416801561132357806001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156112f657600080fd5b505af115801561130a573d6000803e3d6000fd5b505050506040513d602081101561132057600080fd5b50505b506001600160a01b03918216600090815260056020526040902080546001600160a01b03191691909216179055565b6000546001600160a01b0316331461139f576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b600760209081526000928352604080842090915290825290205460ff1681565b6004602052600090815260409020546001600160a01b031681565b6000546001600160a01b03163314611458576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038083166000908152600560209081526040808320548151631f1fcd5160e01b815291519416938492631f1fcd519260048082019391829003018186803b1580156114cb57600080fd5b505afa1580156114df573d6000803e3d6000fd5b505050506040513d60208110156114f557600080fd5b505190506001600160a01b03808216908516146115ee576001600160a01b03808516600081815260066020908152604080832086861684529091529020549091169061154890828663ffffffff611ca316565b806001600160a01b031663def2489b846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b1580156115a057600080fd5b505af11580156115b4573d6000803e3d6000fd5b505050506040513d60208110156115ca57600080fd5b505193506115e86001600160a01b038316848663ffffffff611ca316565b50611608565b6116086001600160a01b038516838563ffffffff611ca316565b816001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146116ae576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6001600160a01b0391821660009081526007602090815260408083209390941682529190915220805460ff19166001179055565b6001546001600160a01b031633148061170557506000546001600160a01b031633145b611744576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b61175e6001600160a01b038316338363ffffffff611ca316565b5050565b6000546001600160a01b031633146117af576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314806117f457506000546001600160a01b031633145b611833576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b03928316600090815260066020908152604080832094861683529390529190912080546001600160a01b03191691909216179055565b60066020908152600092835260408084209091529082529020546001600160a01b031681565b6000546001600160a01b031633146118e3576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382811660009081526004602052604090205416331461195c576040805162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b604482015290519081900360640190fd5b6001600160a01b03808316600090815260056020526040808220548151632e1a7d4d60e01b8152600481018690529151931692632e1a7d4d9260248084019391929182900301818387803b158015610cf957600080fd5b6002546001600160a01b031681565b60085481565b6001546001600160a01b03163314806119eb57506000546001600160a01b031633145b611a2a576040805162461bcd60e51b815260206004820152600b60248201526a085cdd1c985d1959da5cdd60aa1b604482015290519081900360640190fd5b6001600160a01b03808216600090815260056020908152604080832054815163429c145b60e11b8152915194169363853828b693600480840194938390030190829087803b158015611a7b57600080fd5b505af1158015611a8f573d6000803e3d6000fd5b505050506040513d6020811015611aa557600080fd5b505050565b6000611aec83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611cf5565b90505b92915050565b801580611b7b575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611b4d57600080fd5b505afa158015611b61573d6000803e3d6000fd5b505050506040513d6020811015611b7757600080fd5b5051155b611bb65760405162461bcd60e51b81526004018080602001828103825260368152602001806120376036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611aa5908490611d8c565b600082611c1757506000611aef565b82820282848281611c2457fe5b0414611aec5760405162461bcd60e51b8152600401808060200182810382526021815260200180611fec6021913960400191505060405180910390fd5b6000611aec83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f4a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611aa5908490611d8c565b60008184841115611d845760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d49578181015183820152602001611d31565b50505050905090810190601f168015611d765780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611d9e826001600160a01b0316611faf565b611def576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611e2d5780518252601f199092019160209182019101611e0e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611e8f576040519150601f19603f3d011682016040523d82523d6000602084013e611e94565b606091505b509150915081611eeb576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611f4457808060200190516020811015611f0757600080fd5b5051611f445760405162461bcd60e51b815260040180806020018281038252602a81526020018061200d602a913960400191505060405180910390fd5b50505050565b60008183611f995760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d49578181015183820152602001611d31565b506000838581611fa557fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611fe357508115155b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a723158205eb4884548ea0565e2d9d681adf98ce2c5df2335bb64face86f6f8be01dbb94964736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009d75c85f864ab9149e23f27c35addae09b9b909c
-----Decoded View---------------
Arg [0] : _rewards (address): 0x9D75C85f864Ab9149E23F27C35addaE09B9B909C
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009d75c85f864ab9149e23f27c35addae09b9b909c
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.