Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 12 from a total of 12 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Treasury | 12420665 | 1332 days ago | IN | 0 ETH | 0.01063118 | ||||
Set Timelock | 12420665 | 1332 days ago | IN | 0 ETH | 0.01191185 | ||||
Set Strategist | 12420665 | 1332 days ago | IN | 0 ETH | 0.01061178 | ||||
Set Governance | 12420665 | 1332 days ago | IN | 0 ETH | 0.01192199 | ||||
Set Dev Fund | 12420650 | 1332 days ago | IN | 0 ETH | 0.01277444 | ||||
Set Strategy | 12310405 | 1349 days ago | IN | 0 ETH | 0.00314617 | ||||
Approve Strategy | 12310403 | 1349 days ago | IN | 0 ETH | 0.00294462 | ||||
Set Vault | 12310403 | 1349 days ago | IN | 0 ETH | 0.00295325 | ||||
Set Strategy | 12310286 | 1349 days ago | IN | 0 ETH | 0.00324449 | ||||
Approve Strategy | 12310282 | 1349 days ago | IN | 0 ETH | 0.00322506 | ||||
Approve Strategy | 12310280 | 1349 days ago | IN | 0 ETH | 0.00322506 | ||||
Set Vault | 12310278 | 1349 days ago | IN | 0 ETH | 0.00323451 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ControllerV4
Compiler Version
v0.6.7+commit.b8d736ae
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.6.7; pragma experimental ABIEncoderV2; import "./lib/erc20.sol"; import "./lib/safe-math.sol"; import "./interfaces/onesplit.sol"; import "./interfaces/strategy.sol"; contract ControllerV4 { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; address public constant burn = 0x000000000000000000000000000000000000dEaD; address public onesplit = 0xC586BeF4a0992C495Cf22e1aeEE4E446CECDee0E; address public governance; address public strategist; address public devfund; address public treasury; address public timelock; // Convenience fee 0.1% uint256 public convenienceFee = 100; uint256 public constant convenienceFeeMax = 100000; mapping(address => address) public vaults; mapping(address => address) public strategies; mapping(address => mapping(address => bool)) public approvedStrategies; uint256 public split = 500; uint256 public constant max = 10000; constructor( address _governance, address _strategist, address _timelock, address _devfund, address _treasury ) public { governance = _governance; strategist = _strategist; timelock = _timelock; devfund = _devfund; treasury = _treasury; } function setDevFund(address _devfund) public { require(msg.sender == governance, "!governance"); devfund = _devfund; } function setTreasury(address _treasury) public { require(msg.sender == governance, "!governance"); treasury = _treasury; } function setStrategist(address _strategist) public { require(msg.sender == governance, "!governance"); strategist = _strategist; } function setSplit(uint256 _split) public { require(msg.sender == governance, "!governance"); require(_split <= max, "numerator cannot be greater than denominator"); 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 setTimelock(address _timelock) public { require(msg.sender == timelock, "!timelock"); timelock = _timelock; } 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 == timelock, "!timelock"); approvedStrategies[_token][_strategy] = true; } function revokeStrategy(address _token, address _strategy) public { require(msg.sender == governance, "!governance"); require(strategies[_token] != _strategy, "cannot revoke active strategy"); approvedStrategies[_token][_strategy] = false; } function setConvenienceFee(uint256 _convenienceFee) external { require(msg.sender == timelock, "!timelock"); convenienceFee = _convenienceFee; } 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(); require(_want == _token, "Underlying token mismatch"); 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, ) = OneSplitAudit(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) = OneSplitAudit(onesplit) .getExpectedReturn(_token, _want, _amount, parts, 0); OneSplitAudit(onesplit).swap( _token, _want, _amount, _expected, _distribution, 0 ); _after = IERC20(_want).balanceOf(address(this)); if (_after > _before) { _amount = _after.sub(_before); uint256 _treasury = _amount.mul(split).div(max); earn(_want, _amount.sub(_treasury)); IERC20(_want).safeTransfer(treasury, _treasury); } } } function withdraw(address _token, uint256 _amount) public { require(msg.sender == vaults[_token], "!vault"); IStrategy(strategies[_token]).withdraw(_amount); } function _execute(address _target, bytes memory _data) internal returns (bytes memory response) { require(_target != address(0), "!target"); // call contract in current context assembly { let succeeded := delegatecall( sub(gas(), 5000), _target, add(_data, 0x20), mload(_data), 0, 0 ) let size := returndatasize() response := mload(0x40) mstore( 0x40, add(response, and(add(add(size, 0x20), 0x1f), not(0x1f))) ) mstore(response, size) returndatacopy(add(response, 0x20), 0, size) switch iszero(succeeded) case 1 { // throw if delegatecall failed revert(add(response, 0x20), size) } } } }
// File: contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "./safe-math.sol"; import "./context.sol"; // File: contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (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); } // File: contracts/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/token/ERC20/ERC20.sol /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for 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)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, 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. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; interface OneSplitAudit { function getExpectedReturn( address fromToken, address toToken, uint256 amount, uint256 parts, uint256 featureFlags ) external view returns (uint256 returnAmount, uint256[] memory distribution); function swap( address fromToken, address toToken, uint256 amount, uint256 minReturn, uint256[] calldata distribution, uint256 featureFlags ) external payable; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; interface IStrategy { function rewards() external view returns (address); function gauge() external view returns (address); function want() external view returns (address); function timelock() external view returns (address); function deposit() external; function withdrawForSwap(uint256) external returns (uint256); function withdraw(address) external; function pendingReward() external view returns (uint256); function withdraw(uint256) external; function withdrawReward(uint256) external; function skim() external; function withdrawAll() external returns (uint256); function balanceOf() external view returns (uint256); function harvest() external; function setTimelock(address) external; function setController(address _controller) external; function execute(address _target, bytes calldata _data) external payable returns (bytes memory response); function execute(bytes calldata _data) external payable returns (bytes memory response); }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 9999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_strategist","type":"address"},{"internalType":"address","name":"_timelock","type":"address"},{"internalType":"address","name":"_devfund","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"approveStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"approvedStrategies","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"convenienceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"convenienceFeeMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devfund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseStrategyTokenGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onesplit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"revokeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_convenienceFee","type":"uint256"}],"name":"setConvenienceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devfund","type":"address"}],"name":"setDevFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_onesplit","type":"address"}],"name":"setOneSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_split","type":"uint256"}],"name":"setSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_timelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"split","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vaults","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"parts","type":"uint256"}],"name":"yearn","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600080546001600160a01b03191673c586bef4a0992c495cf22e1aeee4e446cecdee0e17905560646006556101f4600a553480156200004257600080fd5b5060405162002449380380620024498339810160408190526200006591620000c8565b600180546001600160a01b03199081166001600160a01b0397881617909155600280548216958716959095179094556005805485169386169390931790925560038054841691851691909117905560048054909216921691909117905562000160565b600080600080600060a08688031215620000e0578081fd5b8551620000ed8162000147565b6020870151909550620001008162000147565b6040870151909450620001138162000147565b6060870151909350620001268162000147565b6080870151909250620001398162000147565b809150509295509295909350565b6001600160a01b03811681146200015d57600080fd5b50565b6122d980620001706000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80639bcdff1f1161012a578063c6d758cb116100bd578063f3fef3a31161008c578063f765417611610071578063f765417614610447578063fa09e6301461044f578063fbe8b5ce1461046257610226565b8063f3fef3a31461042c578063f712adbb1461043f57610226565b8063c6d758cb146103eb578063c7b9d530146103fe578063d33219b414610411578063f0f442601461041957610226565b8063ae4db919116100f9578063ae4db9191461039f578063b02bf4b9146103b2578063bdacb303146103c5578063c494448e146103d857610226565b80639bcdff1f14610351578063a1578b6a14610359578063a622ee7c14610379578063ab033ea91461038c57610226565b806361d027b3116101bd57806370a082311161018c57806372cb5d971161017157806372cb5d97146103235780638d8f1e67146103365780638da1df4d1461033e57610226565b806370a08231146102fd578063714ccf7b1461031057610226565b806361d027b3146102ba578063674e694f146102c25780636ac5db19146102d55780636dcd64e5146102ea57610226565b806339ebf823116101f957806339ebf8231461028457806344df8e7014610297578063590bbb601461029f5780635aa6e675146102b257610226565b806304209f481461022b578063197baa6d146102405780631dfd45af146102535780631fe4a68614610266575b600080fd5b61023e610239366004611be1565b61046a565b005b61023e61024e366004611ba9565b610a1f565b61023e610261366004611c6c565b610ad9565b61026e610b08565b60405161027b9190611d5c565b60405180910390f35b61026e610292366004611b71565b610b17565b61026e610b32565b61023e6102ad366004611ba9565b610b38565b61026e610bee565b61026e610bfd565b61023e6102d0366004611c6c565b610c0c565b6102dd610c5d565b60405161027b919061220b565b6102dd6102f8366004611be1565b610c63565b6102dd61030b366004611b71565b610e25565b61023e61031e366004611ba9565b610ece565b61023e610331366004611ba9565b610f8b565b61026e6110f1565b61023e61034c366004611b71565b611100565b6102dd611164565b61036c610367366004611ba9565b61116b565b60405161027b9190611e4c565b61026e610387366004611b71565b61118b565b61023e61039a366004611b71565b6111a6565b61023e6103ad366004611b71565b61120a565b61023e6103c0366004611c21565b61126e565b61023e6103d3366004611b71565b6113b6565b61023e6103e6366004611ba9565b61141a565b61023e6103f9366004611c21565b611496565b61023e61040c366004611b71565b6114f3565b61026e611557565b61023e610427366004611b71565b611566565b61023e61043a366004611c21565b6115ca565b61026e61165b565b6102dd61166a565b61023e61045d366004611b71565b611670565b6102dd611751565b6002546001600160a01b031633148061048d57506001546001600160a01b031633145b6104b25760405162461bcd60e51b81526004016104a990611f16565b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038416906370a08231906104fa903090600401611d5c565b60206040518083038186803b15801561051257600080fd5b505afa158015610526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054a9190611c84565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081529091506001600160a01b038516906351cff8d990610592908690600401611d5c565b600060405180830381600087803b1580156105ac57600080fd5b505af11580156105c0573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152600092506001600160a01b03861691506370a082319061060c903090600401611d5c565b60206040518083038186803b15801561062457600080fd5b505afa158015610638573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065c9190611c84565b905081811115610a18576000610678828463ffffffff61175716565b90506000866001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b1580156106b557600080fd5b505afa1580156106c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ed9190611b8d565b905060606000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161071f9190611d5c565b60206040518083038186803b15801561073757600080fd5b505afa15801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611c84565b60008054919750610794916001600160a01b038b81169291169063ffffffff6117a016565b6000546107b4906001600160a01b038a811691168663ffffffff6117a016565b600080546040517f085e2c5b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163085e2c5b91610805918c9188918a918e9190600401611e02565b60006040518083038186803b15801561081d57600080fd5b505afa158015610831573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526108779190810190611c9c565b600080546040517fe2a7515e0000000000000000000000000000000000000000000000000000000081529295509293506001600160a01b039092169163e2a7515e916108cf918c9188918a9188918a91600401611d8a565b600060405180830381600087803b1580156108e957600080fd5b505af11580156108fd573d6000803e3d6000fd5b50506040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03861692506370a082319150610946903090600401611d5c565b60206040518083038186803b15801561095e57600080fd5b505afa158015610972573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109969190611c84565b945085851115610a13576109b0858763ffffffff61175716565b935060006109db6127106109cf600a548861190390919063ffffffff16565b9063ffffffff61193d16565b90506109f1846103c0878463ffffffff61175716565b600454610a11906001600160a01b0386811691168363ffffffff61197f16565b505b505050505b5050505050565b6002546001600160a01b0316331480610a4257506001546001600160a01b031633145b610a5e5760405162461bcd60e51b81526004016104a990611f16565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b038316906351cff8d990610aa3908490600401611d5c565b600060405180830381600087803b158015610abd57600080fd5b505af1158015610ad1573d6000803e3d6000fd5b505050505050565b6005546001600160a01b03163314610b035760405162461bcd60e51b81526004016104a990612177565b600655565b6002546001600160a01b031681565b6008602052600090815260409020546001600160a01b031681565b61dead81565b6001546001600160a01b03163314610b625760405162461bcd60e51b81526004016104a990611f16565b6001600160a01b0382811660009081526008602052604090205481169082161415610b9f5760405162461bcd60e51b81526004016104a990611ea8565b6001600160a01b039182166000908152600960209081526040808320939094168252919091522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6001546001600160a01b031681565b6004546001600160a01b031681565b6001546001600160a01b03163314610c365760405162461bcd60e51b81526004016104a990611f16565b612710811115610c585760405162461bcd60e51b81526004016104a990611f84565b600a55565b61271081565b600080836001600160a01b03166370a08231866040518263ffffffff1660e01b8152600401610c929190611d5c565b60206040518083038186803b158015610caa57600080fd5b505afa158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce29190611c84565b90506000856001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b158015610d1f57600080fd5b505afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d579190611b8d565b600080546040517f085e2c5b0000000000000000000000000000000000000000000000000000000081529293506001600160a01b03169163085e2c5b91610da8918991869188918b91600401611e02565b60006040518083038186803b158015610dc057600080fd5b505afa158015610dd4573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610e1a9190810190611c9c565b509695505050505050565b6001600160a01b0380821660009081526008602090815260408083205481517f722713f700000000000000000000000000000000000000000000000000000000815291519394169263722713f792600480840193919291829003018186803b158015610e9057600080fd5b505afa158015610ea4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec89190611c84565b92915050565b6002546001600160a01b0316331480610ef157506001546001600160a01b031633145b610f0d5760405162461bcd60e51b81526004016104a990611edf565b6001600160a01b038281166000908152600760205260409020541615610f455760405162461bcd60e51b81526004016104a990611f4d565b6001600160a01b03918216600090815260076020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b6002546001600160a01b0316331480610fae57506001546001600160a01b031633145b610fca5760405162461bcd60e51b81526004016104a990611edf565b6001600160a01b0380831660009081526009602090815260408083209385168352929052205460ff1615156001146110145760405162461bcd60e51b81526004016104a990612018565b6001600160a01b038083166000908152600860205260409020541680156110aa57806001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561107057600080fd5b505af1158015611084573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a89190611c84565b505b506001600160a01b03918216600090815260086020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b6003546001600160a01b031681565b6001546001600160a01b0316331461112a5760405162461bcd60e51b81526004016104a990611f16565b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b620186a081565b600960209081526000928352604080842090915290825290205460ff1681565b6007602052600090815260409020546001600160a01b031681565b6001546001600160a01b031633146111d05760405162461bcd60e51b81526004016104a990611f16565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001546001600160a01b031633146112345760405162461bcd60e51b81526004016104a990611f16565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b0380831660009081526008602090815260408083205481517f1f1fcd5100000000000000000000000000000000000000000000000000000000815291519416938492631f1fcd519260048082019391829003018186803b1580156112d857600080fd5b505afa1580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113109190611b8d565b9050836001600160a01b0316816001600160a01b0316146113435760405162461bcd60e51b81526004016104a990611fe1565b61135d6001600160a01b038516838563ffffffff61197f16565b816001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561139857600080fd5b505af11580156113ac573d6000803e3d6000fd5b5050505050505050565b6005546001600160a01b031633146113e05760405162461bcd60e51b81526004016104a990612177565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6005546001600160a01b031633146114445760405162461bcd60e51b81526004016104a990612177565b6001600160a01b039182166000908152600960209081526040808320939094168252919091522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6002546001600160a01b03163314806114b957506001546001600160a01b031633145b6114d55760405162461bcd60e51b81526004016104a990611f16565b6114ef6001600160a01b038316338363ffffffff61197f16565b5050565b6001546001600160a01b0316331461151d5760405162461bcd60e51b81526004016104a990611f16565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b6001546001600160a01b031633146115905760405162461bcd60e51b81526004016104a990611f16565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b038281166000908152600760205260409020541633146116035760405162461bcd60e51b81526004016104a9906120ac565b6001600160a01b03808316600090815260086020526040908190205490517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152911690632e1a7d4d90610aa390849060040161220b565b6000546001600160a01b031681565b600a5481565b6002546001600160a01b031633148061169357506001546001600160a01b031633145b6116af5760405162461bcd60e51b81526004016104a990611edf565b6001600160a01b0380821660009081526008602090815260408083205481517f853828b6000000000000000000000000000000000000000000000000000000008152915194169363853828b693600480840194938390030190829087803b15801561171957600080fd5b505af115801561172d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ef9190611c84565b60065481565b600061179983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061199e565b9392505050565b80158061184157506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e906117ef9030908690600401611d70565b60206040518083038186803b15801561180757600080fd5b505afa15801561181b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183f9190611c84565b155b61185d5760405162461bcd60e51b81526004016104a9906121ae565b6118fe8363095ea7b360e01b848460405160240161187c929190611e33565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119ca565b505050565b60008261191257506000610ec8565b8282028284828161191f57fe5b04146117995760405162461bcd60e51b81526004016104a99061204f565b600061179983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611a59565b6118fe8363a9059cbb60e01b848460405160240161187c929190611e33565b600081848411156119c25760405162461bcd60e51b81526004016104a99190611e57565b505050900390565b6060611a1f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a909092919063ffffffff16565b8051909150156118fe5780806020019051810190611a3d9190611c4c565b6118fe5760405162461bcd60e51b81526004016104a99061211a565b60008183611a7a5760405162461bcd60e51b81526004016104a99190611e57565b506000838581611a8657fe5b0495945050505050565b6060611a9f8484600085611aa7565b949350505050565b6060611ab285611b6b565b611ace5760405162461bcd60e51b81526004016104a9906120e3565b60006060866001600160a01b03168587604051611aeb9190611d40565b60006040518083038185875af1925050503d8060008114611b28576040519150601f19603f3d011682016040523d82523d6000602084013e611b2d565b606091505b50915091508115611b41579150611a9f9050565b805115611b515780518082602001fd5b8360405162461bcd60e51b81526004016104a99190611e57565b3b151590565b600060208284031215611b82578081fd5b81356117998161228b565b600060208284031215611b9e578081fd5b81516117998161228b565b60008060408385031215611bbb578081fd5b8235611bc68161228b565b91506020830135611bd68161228b565b809150509250929050565b600080600060608486031215611bf5578081fd5b8335611c008161228b565b92506020840135611c108161228b565b929592945050506040919091013590565b60008060408385031215611c33578182fd5b8235611c3e8161228b565b946020939093013593505050565b600060208284031215611c5d578081fd5b81518015158114611799578182fd5b600060208284031215611c7d578081fd5b5035919050565b600060208284031215611c95578081fd5b5051919050565b60008060408385031215611cae578182fd5b8251915060208084015167ffffffffffffffff811115611ccc578283fd5b80850186601f820112611cdd578384fd5b80519150611cf2611ced8361223b565b612214565b82815283810190828501858502840186018a1015611d0e578687fd5b8693505b84841015611d30578051835260019390930192918501918501611d12565b5080955050505050509250929050565b60008251611d5281846020870161225b565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b600060c082016001600160a01b03808a1684526020818a168186015288604086015287606086015260c06080860152829150865180845260e0860192508188019350845b81811015611dea57845184529382019392820192600101611dce565b50505060a09390930193909352509695505050505050565b6001600160a01b03958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152611e7681604085016020870161225b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6020808252601d908201527f63616e6e6f74207265766f6b6520616374697665207374726174656779000000604082015260600190565b6020808252600b908201527f2173747261746567697374000000000000000000000000000000000000000000604082015260600190565b6020808252600b908201527f21676f7665726e616e6365000000000000000000000000000000000000000000604082015260600190565b60208082526005908201527f7661756c74000000000000000000000000000000000000000000000000000000604082015260600190565b6020808252602c908201527f6e756d657261746f722063616e6e6f742062652067726561746572207468616e60408201527f2064656e6f6d696e61746f720000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f556e6465726c79696e6720746f6b656e206d69736d6174636800000000000000604082015260600190565b60208082526009908201527f21617070726f7665640000000000000000000000000000000000000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526006908201527f217661756c740000000000000000000000000000000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526009908201527f2174696d656c6f636b0000000000000000000000000000000000000000000000604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561223357600080fd5b604052919050565b600067ffffffffffffffff821115612251578081fd5b5060209081020190565b60005b8381101561227657818101518382015260200161225e565b83811115612285576000848401525b50505050565b6001600160a01b03811681146122a057600080fd5b5056fea26469706673582212209751a8d9421bc7fbe8d9a425ab7f7e40ec3d1bb5224a838ab8089ff3e8f2630564736f6c6343000607003300000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e04
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102265760003560e01c80639bcdff1f1161012a578063c6d758cb116100bd578063f3fef3a31161008c578063f765417611610071578063f765417614610447578063fa09e6301461044f578063fbe8b5ce1461046257610226565b8063f3fef3a31461042c578063f712adbb1461043f57610226565b8063c6d758cb146103eb578063c7b9d530146103fe578063d33219b414610411578063f0f442601461041957610226565b8063ae4db919116100f9578063ae4db9191461039f578063b02bf4b9146103b2578063bdacb303146103c5578063c494448e146103d857610226565b80639bcdff1f14610351578063a1578b6a14610359578063a622ee7c14610379578063ab033ea91461038c57610226565b806361d027b3116101bd57806370a082311161018c57806372cb5d971161017157806372cb5d97146103235780638d8f1e67146103365780638da1df4d1461033e57610226565b806370a08231146102fd578063714ccf7b1461031057610226565b806361d027b3146102ba578063674e694f146102c25780636ac5db19146102d55780636dcd64e5146102ea57610226565b806339ebf823116101f957806339ebf8231461028457806344df8e7014610297578063590bbb601461029f5780635aa6e675146102b257610226565b806304209f481461022b578063197baa6d146102405780631dfd45af146102535780631fe4a68614610266575b600080fd5b61023e610239366004611be1565b61046a565b005b61023e61024e366004611ba9565b610a1f565b61023e610261366004611c6c565b610ad9565b61026e610b08565b60405161027b9190611d5c565b60405180910390f35b61026e610292366004611b71565b610b17565b61026e610b32565b61023e6102ad366004611ba9565b610b38565b61026e610bee565b61026e610bfd565b61023e6102d0366004611c6c565b610c0c565b6102dd610c5d565b60405161027b919061220b565b6102dd6102f8366004611be1565b610c63565b6102dd61030b366004611b71565b610e25565b61023e61031e366004611ba9565b610ece565b61023e610331366004611ba9565b610f8b565b61026e6110f1565b61023e61034c366004611b71565b611100565b6102dd611164565b61036c610367366004611ba9565b61116b565b60405161027b9190611e4c565b61026e610387366004611b71565b61118b565b61023e61039a366004611b71565b6111a6565b61023e6103ad366004611b71565b61120a565b61023e6103c0366004611c21565b61126e565b61023e6103d3366004611b71565b6113b6565b61023e6103e6366004611ba9565b61141a565b61023e6103f9366004611c21565b611496565b61023e61040c366004611b71565b6114f3565b61026e611557565b61023e610427366004611b71565b611566565b61023e61043a366004611c21565b6115ca565b61026e61165b565b6102dd61166a565b61023e61045d366004611b71565b611670565b6102dd611751565b6002546001600160a01b031633148061048d57506001546001600160a01b031633145b6104b25760405162461bcd60e51b81526004016104a990611f16565b60405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038416906370a08231906104fa903090600401611d5c565b60206040518083038186803b15801561051257600080fd5b505afa158015610526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054a9190611c84565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081529091506001600160a01b038516906351cff8d990610592908690600401611d5c565b600060405180830381600087803b1580156105ac57600080fd5b505af11580156105c0573d6000803e3d6000fd5b50506040517f70a08231000000000000000000000000000000000000000000000000000000008152600092506001600160a01b03861691506370a082319061060c903090600401611d5c565b60206040518083038186803b15801561062457600080fd5b505afa158015610638573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065c9190611c84565b905081811115610a18576000610678828463ffffffff61175716565b90506000866001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b1580156106b557600080fd5b505afa1580156106c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ed9190611b8d565b905060606000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161071f9190611d5c565b60206040518083038186803b15801561073757600080fd5b505afa15801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611c84565b60008054919750610794916001600160a01b038b81169291169063ffffffff6117a016565b6000546107b4906001600160a01b038a811691168663ffffffff6117a016565b600080546040517f085e2c5b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163085e2c5b91610805918c9188918a918e9190600401611e02565b60006040518083038186803b15801561081d57600080fd5b505afa158015610831573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526108779190810190611c9c565b600080546040517fe2a7515e0000000000000000000000000000000000000000000000000000000081529295509293506001600160a01b039092169163e2a7515e916108cf918c9188918a9188918a91600401611d8a565b600060405180830381600087803b1580156108e957600080fd5b505af11580156108fd573d6000803e3d6000fd5b50506040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b03861692506370a082319150610946903090600401611d5c565b60206040518083038186803b15801561095e57600080fd5b505afa158015610972573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109969190611c84565b945085851115610a13576109b0858763ffffffff61175716565b935060006109db6127106109cf600a548861190390919063ffffffff16565b9063ffffffff61193d16565b90506109f1846103c0878463ffffffff61175716565b600454610a11906001600160a01b0386811691168363ffffffff61197f16565b505b505050505b5050505050565b6002546001600160a01b0316331480610a4257506001546001600160a01b031633145b610a5e5760405162461bcd60e51b81526004016104a990611f16565b6040517f51cff8d90000000000000000000000000000000000000000000000000000000081526001600160a01b038316906351cff8d990610aa3908490600401611d5c565b600060405180830381600087803b158015610abd57600080fd5b505af1158015610ad1573d6000803e3d6000fd5b505050505050565b6005546001600160a01b03163314610b035760405162461bcd60e51b81526004016104a990612177565b600655565b6002546001600160a01b031681565b6008602052600090815260409020546001600160a01b031681565b61dead81565b6001546001600160a01b03163314610b625760405162461bcd60e51b81526004016104a990611f16565b6001600160a01b0382811660009081526008602052604090205481169082161415610b9f5760405162461bcd60e51b81526004016104a990611ea8565b6001600160a01b039182166000908152600960209081526040808320939094168252919091522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6001546001600160a01b031681565b6004546001600160a01b031681565b6001546001600160a01b03163314610c365760405162461bcd60e51b81526004016104a990611f16565b612710811115610c585760405162461bcd60e51b81526004016104a990611f84565b600a55565b61271081565b600080836001600160a01b03166370a08231866040518263ffffffff1660e01b8152600401610c929190611d5c565b60206040518083038186803b158015610caa57600080fd5b505afa158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce29190611c84565b90506000856001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b158015610d1f57600080fd5b505afa158015610d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d579190611b8d565b600080546040517f085e2c5b0000000000000000000000000000000000000000000000000000000081529293506001600160a01b03169163085e2c5b91610da8918991869188918b91600401611e02565b60006040518083038186803b158015610dc057600080fd5b505afa158015610dd4573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610e1a9190810190611c9c565b509695505050505050565b6001600160a01b0380821660009081526008602090815260408083205481517f722713f700000000000000000000000000000000000000000000000000000000815291519394169263722713f792600480840193919291829003018186803b158015610e9057600080fd5b505afa158015610ea4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec89190611c84565b92915050565b6002546001600160a01b0316331480610ef157506001546001600160a01b031633145b610f0d5760405162461bcd60e51b81526004016104a990611edf565b6001600160a01b038281166000908152600760205260409020541615610f455760405162461bcd60e51b81526004016104a990611f4d565b6001600160a01b03918216600090815260076020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b6002546001600160a01b0316331480610fae57506001546001600160a01b031633145b610fca5760405162461bcd60e51b81526004016104a990611edf565b6001600160a01b0380831660009081526009602090815260408083209385168352929052205460ff1615156001146110145760405162461bcd60e51b81526004016104a990612018565b6001600160a01b038083166000908152600860205260409020541680156110aa57806001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561107057600080fd5b505af1158015611084573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a89190611c84565b505b506001600160a01b03918216600090815260086020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b6003546001600160a01b031681565b6001546001600160a01b0316331461112a5760405162461bcd60e51b81526004016104a990611f16565b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b620186a081565b600960209081526000928352604080842090915290825290205460ff1681565b6007602052600090815260409020546001600160a01b031681565b6001546001600160a01b031633146111d05760405162461bcd60e51b81526004016104a990611f16565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001546001600160a01b031633146112345760405162461bcd60e51b81526004016104a990611f16565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b0380831660009081526008602090815260408083205481517f1f1fcd5100000000000000000000000000000000000000000000000000000000815291519416938492631f1fcd519260048082019391829003018186803b1580156112d857600080fd5b505afa1580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113109190611b8d565b9050836001600160a01b0316816001600160a01b0316146113435760405162461bcd60e51b81526004016104a990611fe1565b61135d6001600160a01b038516838563ffffffff61197f16565b816001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561139857600080fd5b505af11580156113ac573d6000803e3d6000fd5b5050505050505050565b6005546001600160a01b031633146113e05760405162461bcd60e51b81526004016104a990612177565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6005546001600160a01b031633146114445760405162461bcd60e51b81526004016104a990612177565b6001600160a01b039182166000908152600960209081526040808320939094168252919091522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6002546001600160a01b03163314806114b957506001546001600160a01b031633145b6114d55760405162461bcd60e51b81526004016104a990611f16565b6114ef6001600160a01b038316338363ffffffff61197f16565b5050565b6001546001600160a01b0316331461151d5760405162461bcd60e51b81526004016104a990611f16565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b6001546001600160a01b031633146115905760405162461bcd60e51b81526004016104a990611f16565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b038281166000908152600760205260409020541633146116035760405162461bcd60e51b81526004016104a9906120ac565b6001600160a01b03808316600090815260086020526040908190205490517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152911690632e1a7d4d90610aa390849060040161220b565b6000546001600160a01b031681565b600a5481565b6002546001600160a01b031633148061169357506001546001600160a01b031633145b6116af5760405162461bcd60e51b81526004016104a990611edf565b6001600160a01b0380821660009081526008602090815260408083205481517f853828b6000000000000000000000000000000000000000000000000000000008152915194169363853828b693600480840194938390030190829087803b15801561171957600080fd5b505af115801561172d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ef9190611c84565b60065481565b600061179983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061199e565b9392505050565b80158061184157506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e906117ef9030908690600401611d70565b60206040518083038186803b15801561180757600080fd5b505afa15801561181b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183f9190611c84565b155b61185d5760405162461bcd60e51b81526004016104a9906121ae565b6118fe8363095ea7b360e01b848460405160240161187c929190611e33565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526119ca565b505050565b60008261191257506000610ec8565b8282028284828161191f57fe5b04146117995760405162461bcd60e51b81526004016104a99061204f565b600061179983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611a59565b6118fe8363a9059cbb60e01b848460405160240161187c929190611e33565b600081848411156119c25760405162461bcd60e51b81526004016104a99190611e57565b505050900390565b6060611a1f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a909092919063ffffffff16565b8051909150156118fe5780806020019051810190611a3d9190611c4c565b6118fe5760405162461bcd60e51b81526004016104a99061211a565b60008183611a7a5760405162461bcd60e51b81526004016104a99190611e57565b506000838581611a8657fe5b0495945050505050565b6060611a9f8484600085611aa7565b949350505050565b6060611ab285611b6b565b611ace5760405162461bcd60e51b81526004016104a9906120e3565b60006060866001600160a01b03168587604051611aeb9190611d40565b60006040518083038185875af1925050503d8060008114611b28576040519150601f19603f3d011682016040523d82523d6000602084013e611b2d565b606091505b50915091508115611b41579150611a9f9050565b805115611b515780518082602001fd5b8360405162461bcd60e51b81526004016104a99190611e57565b3b151590565b600060208284031215611b82578081fd5b81356117998161228b565b600060208284031215611b9e578081fd5b81516117998161228b565b60008060408385031215611bbb578081fd5b8235611bc68161228b565b91506020830135611bd68161228b565b809150509250929050565b600080600060608486031215611bf5578081fd5b8335611c008161228b565b92506020840135611c108161228b565b929592945050506040919091013590565b60008060408385031215611c33578182fd5b8235611c3e8161228b565b946020939093013593505050565b600060208284031215611c5d578081fd5b81518015158114611799578182fd5b600060208284031215611c7d578081fd5b5035919050565b600060208284031215611c95578081fd5b5051919050565b60008060408385031215611cae578182fd5b8251915060208084015167ffffffffffffffff811115611ccc578283fd5b80850186601f820112611cdd578384fd5b80519150611cf2611ced8361223b565b612214565b82815283810190828501858502840186018a1015611d0e578687fd5b8693505b84841015611d30578051835260019390930192918501918501611d12565b5080955050505050509250929050565b60008251611d5281846020870161225b565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b600060c082016001600160a01b03808a1684526020818a168186015288604086015287606086015260c06080860152829150865180845260e0860192508188019350845b81811015611dea57845184529382019392820192600101611dce565b50505060a09390930193909352509695505050505050565b6001600160a01b03958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152611e7681604085016020870161225b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6020808252601d908201527f63616e6e6f74207265766f6b6520616374697665207374726174656779000000604082015260600190565b6020808252600b908201527f2173747261746567697374000000000000000000000000000000000000000000604082015260600190565b6020808252600b908201527f21676f7665726e616e6365000000000000000000000000000000000000000000604082015260600190565b60208082526005908201527f7661756c74000000000000000000000000000000000000000000000000000000604082015260600190565b6020808252602c908201527f6e756d657261746f722063616e6e6f742062652067726561746572207468616e60408201527f2064656e6f6d696e61746f720000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f556e6465726c79696e6720746f6b656e206d69736d6174636800000000000000604082015260600190565b60208082526009908201527f21617070726f7665640000000000000000000000000000000000000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526006908201527f217661756c740000000000000000000000000000000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526009908201527f2174696d656c6f636b0000000000000000000000000000000000000000000000604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff8111828210171561223357600080fd5b604052919050565b600067ffffffffffffffff821115612251578081fd5b5060209081020190565b60005b8381101561227657818101518382015260200161225e565b83811115612285576000848401525b50505050565b6001600160a01b03811681146122a057600080fd5b5056fea26469706673582212209751a8d9421bc7fbe8d9a425ab7f7e40ec3d1bb5224a838ab8089ff3e8f2630564736f6c63430006070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e0400000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e04
-----Decoded View---------------
Arg [0] : _governance (address): 0x68C3a95B35C45Db5dB67ed83c43305052FAD6e04
Arg [1] : _strategist (address): 0x68C3a95B35C45Db5dB67ed83c43305052FAD6e04
Arg [2] : _timelock (address): 0x68C3a95B35C45Db5dB67ed83c43305052FAD6e04
Arg [3] : _devfund (address): 0x68C3a95B35C45Db5dB67ed83c43305052FAD6e04
Arg [4] : _treasury (address): 0x68C3a95B35C45Db5dB67ed83c43305052FAD6e04
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e04
Arg [1] : 00000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e04
Arg [2] : 00000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e04
Arg [3] : 00000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e04
Arg [4] : 00000000000000000000000068c3a95b35c45db5db67ed83c43305052fad6e04
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.