More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 68 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 16144605 | 720 days ago | IN | 0 ETH | 0.00739818 | ||||
Harvest | 14215059 | 1016 days ago | IN | 0 ETH | 0.04542283 | ||||
Harvest | 13965101 | 1054 days ago | IN | 0 ETH | 0.04183355 | ||||
Harvest | 13887238 | 1066 days ago | IN | 0 ETH | 0.02823935 | ||||
Harvest | 13832900 | 1075 days ago | IN | 0 ETH | 0.02078113 | ||||
Harvest | 13767616 | 1085 days ago | IN | 0 ETH | 0.06044636 | ||||
Harvest | 13553481 | 1119 days ago | IN | 0 ETH | 0.04831973 | ||||
Harvest | 13448412 | 1135 days ago | IN | 0 ETH | 0.02448349 | ||||
Harvest | 13294220 | 1159 days ago | IN | 0 ETH | 0.01458765 | ||||
Harvest | 13189730 | 1176 days ago | IN | 0 ETH | 0.04504067 | ||||
Harvest | 13143211 | 1183 days ago | IN | 0 ETH | 0.06986281 | ||||
Harvest | 13091895 | 1191 days ago | IN | 0 ETH | 0.03834602 | ||||
Harvest | 13029472 | 1200 days ago | IN | 0 ETH | 0.01511407 | ||||
Harvest | 12994792 | 1206 days ago | IN | 0 ETH | 0.0240084 | ||||
Harvest | 12984407 | 1207 days ago | IN | 0 ETH | 0.01851191 | ||||
Harvest | 12936717 | 1215 days ago | IN | 0 ETH | 0.01600838 | ||||
Harvest | 12906272 | 1220 days ago | IN | 0 ETH | 0.00844369 | ||||
Harvest | 12889011 | 1222 days ago | IN | 0 ETH | 0.00703641 | ||||
Harvest | 12875882 | 1224 days ago | IN | 0 ETH | 0.00829147 | ||||
Harvest | 12859980 | 1227 days ago | IN | 0 ETH | 0.00857592 | ||||
Harvest | 12841902 | 1230 days ago | IN | 0 ETH | 0.01407283 | ||||
Harvest | 12810941 | 1235 days ago | IN | 0 ETH | 0.00670867 | ||||
Harvest | 12800502 | 1236 days ago | IN | 0 ETH | 0.00703641 | ||||
Harvest | 12789205 | 1238 days ago | IN | 0 ETH | 0.01372147 | ||||
Harvest | 12765397 | 1242 days ago | IN | 0 ETH | 0.00369494 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
StrategySushiEthUsdtLp
Compiler Version
v0.6.7+commit.b8d736ae
Optimization Enabled:
Yes with 999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-18 */ // hevm: flattened sources of src/strategies/sushiswap/strategy-sushi-eth-usdt-lp.sol pragma solidity >=0.6.0 <0.7.0 >=0.6.2 <0.7.0 >=0.6.7 <0.7.0; ////// src/interfaces/controller.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.0; */ interface IController { function jars(address) external view returns (address); function rewards() external view returns (address); function devfund() external view returns (address); function treasury() external view returns (address); function balanceOf(address) external view returns (uint256); function withdraw(address, uint256) external; function earn(address, uint256) external; } ////// src/lib/context.sol // 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; } } ////// src/lib/safe-math.sol // 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; } } ////// src/lib/erc20.sol // 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_1 { /** * @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_1 { 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_1 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20_1 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_1 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_1 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_1 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_1 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"); } } } ////// src/interfaces/jar.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.2; */ /* import "../lib/erc20.sol"; */ interface IJar is IERC20_1 { function token() external view returns (address); function claimInsurance() external; // NOTE: Only yDelegatedVault implements this function getRatio() external view returns (uint256); function depositAll() external; function deposit(uint256) external; function withdrawAll() external; function withdraw(uint256) external; function earn() external; function decimals() external view returns (uint8); } ////// src/interfaces/masterchef.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.7; */ interface IMasterchef { function BONUS_MULTIPLIER() external view returns (uint256); function add( uint256 _allocPoint, address _lpToken, bool _withUpdate ) external; function bonusEndBlock() external view returns (uint256); function deposit(uint256 _pid, uint256 _amount) external; function dev(address _devaddr) external; function devFundDivRate() external view returns (uint256); function devaddr() external view returns (address); function emergencyWithdraw(uint256 _pid) external; function getMultiplier(uint256 _from, uint256 _to) external view returns (uint256); function massUpdatePools() external; function owner() external view returns (address); function pendingPickle(uint256 _pid, address _user) external view returns (uint256); function pickle() external view returns (address); function picklePerBlock() external view returns (uint256); function poolInfo(uint256) external view returns ( address lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accPicklePerShare ); function poolLength() external view returns (uint256); function renounceOwnership() external; function set( uint256 _pid, uint256 _allocPoint, bool _withUpdate ) external; function setBonusEndBlock(uint256 _bonusEndBlock) external; function setDevFundDivRate(uint256 _devFundDivRate) external; function setPicklePerBlock(uint256 _picklePerBlock) external; function startBlock() external view returns (uint256); function totalAllocPoint() external view returns (uint256); function transferOwnership(address newOwner) external; function updatePool(uint256 _pid) external; function userInfo(uint256, address) external view returns (uint256 amount, uint256 rewardDebt); function withdraw(uint256 _pid, uint256 _amount) external; } ////// src/interfaces/staking-rewards.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.2; */ interface IStakingRewards { function balanceOf(address account) external view returns (uint256); function earned(address account) external view returns (uint256); function exit() external; function getReward() external; function getRewardForDuration() external view returns (uint256); function lastTimeRewardApplicable() external view returns (uint256); function lastUpdateTime() external view returns (uint256); function notifyRewardAmount(uint256 reward) external; function periodFinish() external view returns (uint256); function rewardPerToken() external view returns (uint256); function rewardPerTokenStored() external view returns (uint256); function rewardRate() external view returns (uint256); function rewards(address) external view returns (uint256); function rewardsDistribution() external view returns (address); function rewardsDuration() external view returns (uint256); function rewardsToken() external view returns (address); function stake(uint256 amount) external; function stakeWithPermit( uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; function stakingToken() external view returns (address); function totalSupply() external view returns (uint256); function userRewardPerTokenPaid(address) external view returns (uint256); function withdraw(uint256 amount) external; } interface IStakingRewardsFactory { function deploy(address stakingToken, uint256 rewardAmount) external; function isOwner() external view returns (bool); function notifyRewardAmount(address stakingToken) external; function notifyRewardAmounts() external; function owner() external view returns (address); function renounceOwnership() external; function rewardsToken() external view returns (address); function stakingRewardsGenesis() external view returns (uint256); function stakingRewardsInfoByStakingToken(address) external view returns (address stakingRewards, uint256 rewardAmount); function stakingTokens(uint256) external view returns (address); function transferOwnership(address newOwner) external; } ////// src/interfaces/sushi-chef.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.7; */ // interface for Sushiswap MasterChef contract interface ISushiChef { function BONUS_MULTIPLIER() external view returns (uint256); function add( uint256 _allocPoint, address _lpToken, bool _withUpdate ) external; function bonusEndBlock() external view returns (uint256); function deposit(uint256 _pid, uint256 _amount) external; function dev(address _devaddr) external; function devFundDivRate() external view returns (uint256); function devaddr() external view returns (address); function emergencyWithdraw(uint256 _pid) external; function getMultiplier(uint256 _from, uint256 _to) external view returns (uint256); function massUpdatePools() external; function owner() external view returns (address); function pendingSushi(uint256 _pid, address _user) external view returns (uint256); function sushi() external view returns (address); function sushiPerBlock() external view returns (uint256); function poolInfo(uint256) external view returns ( address lpToken, uint256 allocPoint, uint256 lastRewardBlock, uint256 accsushiPerShare ); function poolLength() external view returns (uint256); function renounceOwnership() external; function set( uint256 _pid, uint256 _allocPoint, bool _withUpdate ) external; function setBonusEndBlock(uint256 _bonusEndBlock) external; function setDevFundDivRate(uint256 _devFundDivRate) external; function setsushiPerBlock(uint256 _sushiPerBlock) external; function startBlock() external view returns (uint256); function totalAllocPoint() external view returns (uint256); function transferOwnership(address newOwner) external; function updatePool(uint256 _pid) external; function userInfo(uint256, address) external view returns (uint256 amount, uint256 rewardDebt); function withdraw(uint256 _pid, uint256 _amount) external; } ////// src/interfaces/uniswapv2.sol // SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.2; */ interface UniswapRouterV2 { function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); } interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns ( uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast ); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn(address to) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; } interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function createPair(address tokenA, address tokenB) external returns (address pair); } ////// src/strategies/strategy-base.sol /* pragma solidity ^0.6.7; */ /* import "../lib/erc20.sol"; */ /* import "../lib/safe-math.sol"; */ /* import "../interfaces/jar.sol"; */ /* import "../interfaces/staking-rewards.sol"; */ /* import "../interfaces/masterchef.sol"; */ /* import "../interfaces/uniswapv2.sol"; */ /* import "../interfaces/controller.sol"; */ // Strategy Contract Basics abstract contract StrategyBase { using SafeERC20 for IERC20_1; using Address for address; using SafeMath for uint256; // Perfomance fees - start with 20% uint256 public performanceTreasuryFee = 2000; uint256 public constant performanceTreasuryMax = 10000; uint256 public performanceDevFee = 0; uint256 public constant performanceDevMax = 10000; // Withdrawal fee 0% // - 0% to treasury // - 0% to dev fund uint256 public withdrawalTreasuryFee = 0; uint256 public constant withdrawalTreasuryMax = 100000; uint256 public withdrawalDevFundFee = 0; uint256 public constant withdrawalDevFundMax = 100000; // Tokens address public want; address public constant weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; // User accounts address public governance; address public controller; address public strategist; address public timelock; // Dex address public univ2Router2 = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; address public sushiRouter = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; constructor( address _want, address _governance, address _strategist, address _controller, address _timelock ) public { require(_want != address(0)); require(_governance != address(0)); require(_strategist != address(0)); require(_controller != address(0)); require(_timelock != address(0)); want = _want; governance = _governance; strategist = _strategist; controller = _controller; timelock = _timelock; } // **** Modifiers **** // modifier onlyBenevolent { require( msg.sender == tx.origin || msg.sender == governance || msg.sender == strategist ); _; } // **** Views **** // function balanceOfWant() public view returns (uint256) { return IERC20_1(want).balanceOf(address(this)); } function balanceOfPool() public virtual view returns (uint256); function balanceOf() public view returns (uint256) { return balanceOfWant().add(balanceOfPool()); } function getName() external virtual pure returns (string memory); // **** Setters **** // function setWithdrawalDevFundFee(uint256 _withdrawalDevFundFee) external { require(msg.sender == timelock, "!timelock"); withdrawalDevFundFee = _withdrawalDevFundFee; } function setWithdrawalTreasuryFee(uint256 _withdrawalTreasuryFee) external { require(msg.sender == timelock, "!timelock"); withdrawalTreasuryFee = _withdrawalTreasuryFee; } function setPerformanceDevFee(uint256 _performanceDevFee) external { require(msg.sender == timelock, "!timelock"); performanceDevFee = _performanceDevFee; } function setPerformanceTreasuryFee(uint256 _performanceTreasuryFee) external { require(msg.sender == timelock, "!timelock"); performanceTreasuryFee = _performanceTreasuryFee; } function setStrategist(address _strategist) external { require(msg.sender == governance, "!governance"); strategist = _strategist; } function setGovernance(address _governance) external { require(msg.sender == governance, "!governance"); governance = _governance; } function setTimelock(address _timelock) external { require(msg.sender == timelock, "!timelock"); timelock = _timelock; } function setController(address _controller) external { require(msg.sender == timelock, "!timelock"); controller = _controller; } // **** State mutations **** // function deposit() public virtual; // Controller only function for creating additional rewards from dust function withdraw(IERC20_1 _asset) external returns (uint256 balance) { require(msg.sender == controller, "!controller"); require(want != address(_asset), "want"); balance = _asset.balanceOf(address(this)); _asset.safeTransfer(controller, balance); } // Withdraw partial funds, normally used with a jar withdrawal function withdraw(uint256 _amount) external { require(msg.sender == controller, "!controller"); uint256 _balance = IERC20_1(want).balanceOf(address(this)); if (_balance < _amount) { _amount = _withdrawSome(_amount.sub(_balance)); _amount = _amount.add(_balance); } uint256 _feeDev = _amount.mul(withdrawalDevFundFee).div( withdrawalDevFundMax ); IERC20_1(want).safeTransfer(IController(controller).devfund(), _feeDev); uint256 _feeTreasury = _amount.mul(withdrawalTreasuryFee).div( withdrawalTreasuryMax ); IERC20_1(want).safeTransfer( IController(controller).treasury(), _feeTreasury ); address _jar = IController(controller).jars(address(want)); require(_jar != address(0), "!jar"); // additional protection so we don't burn the funds IERC20_1(want).safeTransfer(_jar, _amount.sub(_feeDev).sub(_feeTreasury)); } // Withdraw funds, used to swap between strategies function withdrawForSwap(uint256 _amount) external returns (uint256 balance) { require(msg.sender == controller, "!controller"); _withdrawSome(_amount); balance = IERC20_1(want).balanceOf(address(this)); address _jar = IController(controller).jars(address(want)); require(_jar != address(0), "!jar"); IERC20_1(want).safeTransfer(_jar, balance); } // Withdraw all funds, normally used when migrating strategies function withdrawAll() external returns (uint256 balance) { require(msg.sender == controller, "!controller"); _withdrawAll(); balance = IERC20_1(want).balanceOf(address(this)); address _jar = IController(controller).jars(address(want)); require(_jar != address(0), "!jar"); // additional protection so we don't burn the funds IERC20_1(want).safeTransfer(_jar, balance); } function _withdrawAll() internal { _withdrawSome(balanceOfPool()); } function _withdrawSome(uint256 _amount) internal virtual returns (uint256); function harvest() public virtual; // **** Emergency functions **** function execute(address _target, bytes memory _data) public payable returns (bytes memory response) { require(msg.sender == timelock, "!timelock"); 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) } } } // **** Internal functions **** function _swapUniswap( address _from, address _to, uint256 _amount ) internal { require(_to != address(0)); // Swap with uniswap IERC20_1(_from).safeApprove(univ2Router2, 0); IERC20_1(_from).safeApprove(univ2Router2, _amount); address[] memory path; if (_from == weth || _to == weth) { path = new address[](2); path[0] = _from; path[1] = _to; } else { path = new address[](3); path[0] = _from; path[1] = weth; path[2] = _to; } UniswapRouterV2(univ2Router2).swapExactTokensForTokens( _amount, 0, path, address(this), now.add(60) ); } function _swapSushiswap( address _from, address _to, uint256 _amount ) internal { require(_to != address(0)); // Swap with uniswap IERC20_1(_from).safeApprove(sushiRouter, 0); IERC20_1(_from).safeApprove(sushiRouter, _amount); address[] memory path; if (_from == weth || _to == weth) { path = new address[](2); path[0] = _from; path[1] = _to; } else { path = new address[](3); path[0] = _from; path[1] = weth; path[2] = _to; } UniswapRouterV2(sushiRouter).swapExactTokensForTokens( _amount, 0, path, address(this), now.add(60) ); } function _distributePerformanceFeesAndDeposit() internal { uint256 _want = IERC20_1(want).balanceOf(address(this)); if (_want > 0) { // Treasury fees IERC20_1(want).safeTransfer( IController(controller).treasury(), _want.mul(performanceTreasuryFee).div(performanceTreasuryMax) ); // Performance fee IERC20_1(want).safeTransfer( IController(controller).devfund(), _want.mul(performanceDevFee).div(performanceDevMax) ); deposit(); } } } ////// src/strategies/strategy-sushi-farm-base.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.7; */ /* import "./strategy-base.sol"; */ /* import "../interfaces/sushi-chef.sol"; */ abstract contract StrategySushiFarmBase is StrategyBase { // Token addresses address public constant sushi = 0x6B3595068778DD592e39A122f4f5a5cF09C90fE2; address public constant masterChef = 0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd; // WETH/<token1> pair address public token1; // How much SUSHI tokens to keep? uint256 public keepSUSHI = 0; uint256 public constant keepSUSHIMax = 10000; uint256 public poolId; constructor( address _token1, uint256 _poolId, address _lp, address _governance, address _strategist, address _controller, address _timelock ) public StrategyBase( _lp, _governance, _strategist, _controller, _timelock ) { poolId = _poolId; token1 = _token1; } function balanceOfPool() public override view returns (uint256) { (uint256 amount, ) = ISushiChef(masterChef).userInfo(poolId, address(this)); return amount; } function getHarvestable() external view returns (uint256) { return ISushiChef(masterChef).pendingSushi(poolId, address(this)); } // **** Setters **** function deposit() public override { uint256 _want = IERC20_1(want).balanceOf(address(this)); if (_want > 0) { IERC20_1(want).safeApprove(masterChef, 0); IERC20_1(want).safeApprove(masterChef, _want); ISushiChef(masterChef).deposit(poolId, _want); } } function _withdrawSome(uint256 _amount) internal override returns (uint256) { ISushiChef(masterChef).withdraw(poolId, _amount); return _amount; } // **** Setters **** function setKeepSUSHI(uint256 _keepSUSHI) external { require(msg.sender == timelock, "!timelock"); keepSUSHI = _keepSUSHI; } // **** State Mutations **** function harvest() public override onlyBenevolent { // Anyone can harvest it at any given time. // I understand the possibility of being frontrun // But ETH is a dark forest, and I wanna see how this plays out // i.e. will be be heavily frontrunned? // if so, a new strategy will be deployed. // Collects SUSHI tokens ISushiChef(masterChef).deposit(poolId, 0); uint256 _sushi = IERC20_1(sushi).balanceOf(address(this)); if (_sushi > 0) { // 10% is locked up for future gov uint256 _keepSUSHI = _sushi.mul(keepSUSHI).div(keepSUSHIMax); IERC20_1(sushi).safeTransfer( IController(controller).treasury(), _keepSUSHI ); _swapSushiswap(sushi, weth, _sushi.sub(_keepSUSHI)); } // Swap half WETH for DAI uint256 _weth = IERC20_1(weth).balanceOf(address(this)); if (_weth > 0) { _swapSushiswap(weth, token1, _weth.div(2)); } // Adds in liquidity for ETH/DAI _weth = IERC20_1(weth).balanceOf(address(this)); uint256 _token1 = IERC20_1(token1).balanceOf(address(this)); if (_weth > 0 && _token1 > 0) { IERC20_1(weth).safeApprove(sushiRouter, 0); IERC20_1(weth).safeApprove(sushiRouter, _weth); IERC20_1(token1).safeApprove(sushiRouter, 0); IERC20_1(token1).safeApprove(sushiRouter, _token1); UniswapRouterV2(sushiRouter).addLiquidity( weth, token1, _weth, _token1, 0, 0, address(this), now + 60 ); // Donates DUST IERC20_1(weth).transfer( IController(controller).treasury(), IERC20_1(weth).balanceOf(address(this)) ); IERC20_1(token1).safeTransfer( IController(controller).treasury(), IERC20_1(token1).balanceOf(address(this)) ); } // We want to get back SUSHI LP tokens _distributePerformanceFeesAndDeposit(); } } ////// src/strategies/sushiswap/strategy-sushi-eth-usdt-lp.sol // SPDX-License-Identifier: MIT /* pragma solidity ^0.6.7; */ /* import "../strategy-sushi-farm-base.sol"; */ contract StrategySushiEthUsdtLp is StrategySushiFarmBase { // Token/ETH pool id in MasterChef contract uint256 public sushi_usdt_poolId = 0; // Token addresses address public sushi_eth_usdt_lp = 0x06da0fd433C1A5d7a4faa01111c044910A184553; address public usdt = 0xdAC17F958D2ee523a2206206994597C13D831ec7; constructor( address _governance, address _strategist, address _controller, address _timelock ) public StrategySushiFarmBase( usdt, sushi_usdt_poolId, sushi_eth_usdt_lp, _governance, _strategist, _controller, _timelock ) {} // **** Views **** function getName() external override pure returns (string memory) { return "StrategySushiEthUsdtLp"; } }
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":"_controller","type":"address"},{"internalType":"address","name":"_timelock","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bytes","name":"response","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getHarvestable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keepSUSHI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keepSUSHIMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masterChef","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceDevMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceTreasuryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keepSUSHI","type":"uint256"}],"name":"setKeepSUSHI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceDevFee","type":"uint256"}],"name":"setPerformanceDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceTreasuryFee","type":"uint256"}],"name":"setPerformanceTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_timelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawalDevFundFee","type":"uint256"}],"name":"setWithdrawalDevFundFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawalTreasuryFee","type":"uint256"}],"name":"setWithdrawalTreasuryFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushi","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushi_eth_usdt_lp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushi_usdt_poolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"univ2Router2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20_1","name":"_asset","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawForSwap","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalDevFundFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalDevFundMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalTreasuryMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526107d06000908155600181905560028190556003819055600980546001600160a01b0319908116737a250d5630b4cf539739df2c5dacb4c659f2488d17909155600a8054821673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f179055600c829055600e91909155600f805482167306da0fd433c1a5d7a4faa01111c044910a1845531790556010805490911673dac17f958d2ee523a2206206994597c13d831ec7179055348015620000b757600080fd5b50604051620030fb380380620030fb83398181016040526080811015620000dd57600080fd5b50805160208201516040830151606090930151601054600e54600f54949593946001600160a01b039283169216868686868484848484846200011e57600080fd5b6001600160a01b0384166200013257600080fd5b6001600160a01b0383166200014657600080fd5b6001600160a01b0382166200015a57600080fd5b6001600160a01b0381166200016e57600080fd5b600480546001600160a01b03199081166001600160a01b03978816179091556005805482169587169590951790945560078054851693861693909317909255600680548416918516919091179055600880548316918416919091179055600d97909755600b805490971697169690961790945550612efd9750879650620001fe95506000945050505050396000f3fe6080604052600436106102fd5760003560e01c80635aa6e6751161018f578063b9e37489116100e1578063c99142f11161008a578063d33219b411610064578063d33219b4146108ce578063f77c4791146108e3578063fe1f8f7a146105c2576102fd565b8063c99142f11461052f578063d0e30db0146108a4578063d21220a7146108b9576102fd565b8063c6223e26116100bb578063c6223e261461081d578063c65e324214610847578063c7b9d53014610871576102fd565b8063b9e37489146107c0578063bdacb303146107d5578063c1a3d44c14610808576102fd565b8063853828b61161014357806392eefe9b1161011d57806392eefe9b14610730578063ab033ea914610763578063ab73e43314610796576102fd565b8063853828b6146106f157806388993f22146107065780638ccdbb701461071b576102fd565b80636d13582c116101745780636d13582c1461069d578063722713f7146106b257806382378594146106c7576102fd565b80635aa6e67514610673578063665b815514610688576102fd565b80632e1a7d4d116102535780634fe809cc116101fc578063575a86b2116101d6578063575a86b21461061f57806359274a041461063457806359739ec41461065e576102fd565b80634fe809cc1461052f57806351cff8d9146105d757806351f3d0b81461060a576102fd565b80633fc8cef31161022d5780633fc8cef3146105985780634641257d146105ad578063479119be146105c2576102fd565b80632e1a7d4d146105445780632f48ab7d1461056e5780633e0dc34e14610583576102fd565b80631cff79cd116102b5578063249fb9b41161028f578063249fb9b4146104ee57806324e766621461051a57806326e886c61461052f576102fd565b80631cff79cd1461040e5780631f1fcd51146104c45780631fe4a686146104d9576102fd565b80631148a213116102e65780631148a2131461035a578063115880861461036f57806317d7de7c14610384576102fd565b80630547104d146103025780630a08790314610329575b600080fd5b34801561030e57600080fd5b506103176108f8565b60408051918252519081900360200190f35b34801561033557600080fd5b5061033e6109a1565b604080516001600160a01b039092168252519081900360200190f35b34801561036657600080fd5b506103176109b9565b34801561037b57600080fd5b506103176109bf565b34801561039057600080fd5b50610399610a68565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d35781810151838201526020016103bb565b50505050905090810190601f1680156104005780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103996004803603604081101561042457600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561044f57600080fd5b82018360208201111561046157600080fd5b8035906020019184600183028401116401000000008311171561048357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a9f945050505050565b3480156104d057600080fd5b5061033e610b98565b3480156104e557600080fd5b5061033e610ba7565b3480156104fa57600080fd5b506105186004803603602081101561051157600080fd5b5035610bb6565b005b34801561052657600080fd5b5061033e610c06565b34801561053b57600080fd5b50610317610c15565b34801561055057600080fd5b506105186004803603602081101561056757600080fd5b5035610c1b565b34801561057a57600080fd5b5061033e610f58565b34801561058f57600080fd5b50610317610f67565b3480156105a457600080fd5b5061033e610f6d565b3480156105b957600080fd5b50610518610f85565b3480156105ce57600080fd5b506103176117ca565b3480156105e357600080fd5b50610317600480360360208110156105fa57600080fd5b50356001600160a01b03166117d1565b34801561061657600080fd5b50610317611920565b34801561062b57600080fd5b5061033e611926565b34801561064057600080fd5b506105186004803603602081101561065757600080fd5b503561193e565b34801561066a57600080fd5b5061031761198e565b34801561067f57600080fd5b5061033e611994565b34801561069457600080fd5b506103176119a3565b3480156106a957600080fd5b5061033e6119a9565b3480156106be57600080fd5b506103176119b8565b3480156106d357600080fd5b50610518600480360360208110156106ea57600080fd5b50356119de565b3480156106fd57600080fd5b50610317611a2e565b34801561071257600080fd5b50610317611be8565b34801561072757600080fd5b50610317611bee565b34801561073c57600080fd5b506105186004803603602081101561075357600080fd5b50356001600160a01b0316611bf4565b34801561076f57600080fd5b506105186004803603602081101561078657600080fd5b50356001600160a01b0316611c6e565b3480156107a257600080fd5b50610518600480360360208110156107b957600080fd5b5035611cea565b3480156107cc57600080fd5b5061033e611d3a565b3480156107e157600080fd5b50610518600480360360208110156107f857600080fd5b50356001600160a01b0316611d49565b34801561081457600080fd5b50610317611dc3565b34801561082957600080fd5b506103176004803603602081101561084057600080fd5b5035611e12565b34801561085357600080fd5b506105186004803603602081101561086a57600080fd5b5035611fd0565b34801561087d57600080fd5b506105186004803603602081101561089457600080fd5b50356001600160a01b0316612020565b3480156108b057600080fd5b5061051861209c565b3480156108c557600080fd5b5061033e6121fd565b3480156108da57600080fd5b5061033e61220c565b3480156108ef57600080fd5b5061033e61221b565b600d54604080517f195426ec00000000000000000000000000000000000000000000000000000000815260048101929092523060248301525160009173c2edad668740f1aa35e4d8f227fb8e17dca888cd9163195426ec91604480820192602092909190829003018186803b15801561097057600080fd5b505afa158015610984573d6000803e3d6000fd5b505050506040513d602081101561099a57600080fd5b5051905090565b736b3595068778dd592e39a122f4f5a5cf09c90fe281565b600e5481565b600d54604080517f93f1a40b00000000000000000000000000000000000000000000000000000000815260048101929092523060248301528051600092839273c2edad668740f1aa35e4d8f227fb8e17dca888cd926393f1a40b926044808201939291829003018186803b158015610a3657600080fd5b505afa158015610a4a573d6000803e3d6000fd5b505050506040513d6040811015610a6057600080fd5b505191505090565b60408051808201909152601681527f53747261746567795375736869457468557364744c7000000000000000000000602082015290565b6008546060906001600160a01b03163314610aed576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6001600160a01b038316610b48576040805162461bcd60e51b815260206004820152600760248201527f2174617267657400000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600080835160208501866113885a03f43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018114610b8857610b8f565b8160208501fd5b50505092915050565b6004546001600160a01b031681565b6007546001600160a01b031681565b6008546001600160a01b03163314610c01576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600055565b600f546001600160a01b031681565b61271081565b6006546001600160a01b03163314610c68576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610cb757600080fd5b505afa158015610ccb573d6000803e3d6000fd5b505050506040513d6020811015610ce157600080fd5b5051905081811015610d1a57610d05610d00838363ffffffff61222a16565b612275565b9150610d17828263ffffffff6122f916565b91505b6000610d44620186a0610d386003548661235390919063ffffffff16565b9063ffffffff6123ac16565b9050610ddc600660009054906101000a90046001600160a01b03166001600160a01b0316638d8f1e676040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9757600080fd5b505afa158015610dab573d6000803e3d6000fd5b505050506040513d6020811015610dc157600080fd5b50516004546001600160a01b0316908363ffffffff6123ee16565b6000610dfa620186a0610d386002548761235390919063ffffffff16565b9050610e4d600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9757600080fd5b6006546004805460408051636535246160e11b81526001600160a01b039283169381019390935251600093919091169163ca6a48c2916024808301926020929190829003018186803b158015610ea257600080fd5b505afa158015610eb6573d6000803e3d6000fd5b505050506040513d6020811015610ecc57600080fd5b505190506001600160a01b038116610f14576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b610f5181610f3884610f2c898863ffffffff61222a16565b9063ffffffff61222a16565b6004546001600160a01b0316919063ffffffff6123ee16565b5050505050565b6010546001600160a01b031681565b600d5481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b33321480610f9d57506005546001600160a01b031633145b80610fb257506007546001600160a01b031633145b610fbb57600080fd5b73c2edad668740f1aa35e4d8f227fb8e17dca888cd6001600160a01b031663e2bbb158600d5460006040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561102057600080fd5b505af1158015611034573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905160009350736b3595068778dd592e39a122f4f5a5cf09c90fe292506370a0823191602480820192602092909190829003018186803b15801561108d57600080fd5b505afa1580156110a1573d6000803e3d6000fd5b505050506040513d60208110156110b757600080fd5b5051905080156111c35760006110de612710610d38600c548561235390919063ffffffff16565b905061117f600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d602081101561115b57600080fd5b5051736b3595068778dd592e39a122f4f5a5cf09c90fe2908363ffffffff6123ee16565b6111c1736b3595068778dd592e39a122f4f5a5cf09c90fe273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26111bc858563ffffffff61222a16565b61246e565b505b604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b15801561121857600080fd5b505afa15801561122c573d6000803e3d6000fd5b505050506040513d602081101561124257600080fd5b50519050801561128357600b546112839073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906001600160a01b03166111bc84600263ffffffff6123ac16565b604080516370a0823160e01b8152306004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b1580156112d457600080fd5b505afa1580156112e8573d6000803e3d6000fd5b505050506040513d60208110156112fe57600080fd5b5051600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561135157600080fd5b505afa158015611365573d6000803e3d6000fd5b505050506040513d602081101561137b57600080fd5b50519050811580159061138e5750600081115b156117bd57600a546113c69073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906001600160a01b0316600063ffffffff6127ea16565b600a546113f89073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906001600160a01b03168463ffffffff6127ea16565b600a54600b5461141c916001600160a01b039182169116600063ffffffff6127ea16565b600a54600b5461143f916001600160a01b0391821691168363ffffffff6127ea16565b600a54600b54604080517fe8e3370000000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201526001600160a01b039283166024820152604481018690526064810185905260006084820181905260a482018190523060c4830152603c420160e48301529151929093169263e8e33700926101048083019360609383900390910190829087803b1580156114f257600080fd5b505af1158015611506573d6000803e3d6000fd5b505050506040513d606081101561151c57600080fd5b5050600654604080516361d027b360e01b8152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29263a9059cbb926001600160a01b03909116916361d027b391600480820192602092909190829003018186803b15801561157f57600080fd5b505afa158015611593573d6000803e3d6000fd5b505050506040513d60208110156115a957600080fd5b5051604080516370a0823160e01b8152306004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b1580156115fc57600080fd5b505afa158015611610573d6000803e3d6000fd5b505050506040513d602081101561162657600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561168f57600080fd5b505af11580156116a3573d6000803e3d6000fd5b505050506040513d60208110156116b957600080fd5b5050600654604080516361d027b360e01b815290516117bd926001600160a01b0316916361d027b3916004808301926020929190829003018186803b15801561170157600080fd5b505afa158015611715573d6000803e3d6000fd5b505050506040513d602081101561172b57600080fd5b5051600b54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561177857600080fd5b505afa15801561178c573d6000803e3d6000fd5b505050506040513d60208110156117a257600080fd5b5051600b546001600160a01b0316919063ffffffff6123ee16565b6117c5612944565b505050565b620186a081565b6006546000906001600160a01b03163314611821576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6004546001600160a01b0383811691161415611886576040805162461bcd60e51b8152602060048083019190915260248201527f77616e7400000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156118cc57600080fd5b505afa1580156118e0573d6000803e3d6000fd5b505050506040513d60208110156118f657600080fd5b505160065490915061191b906001600160a01b0384811691168363ffffffff6123ee16565b919050565b60035481565b73c2edad668740f1aa35e4d8f227fb8e17dca888cd81565b6008546001600160a01b03163314611989576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600c55565b60005481565b6005546001600160a01b031681565b600c5481565b600a546001600160a01b031681565b60006119d96119c56109bf565b6119cd611dc3565b9063ffffffff6122f916565b905090565b6008546001600160a01b03163314611a29576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600255565b6006546000906001600160a01b03163314611a7e576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611a86612b04565b60048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611ad257600080fd5b505afa158015611ae6573d6000803e3d6000fd5b505050506040513d6020811015611afc57600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b158015611b5557600080fd5b505afa158015611b69573d6000803e3d6000fd5b505050506040513d6020811015611b7f57600080fd5b505190506001600160a01b038116611bc7576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b600454611be4906001600160a01b0316828463ffffffff6123ee16565b5090565b60015481565b60025481565b6008546001600160a01b03163314611c3f576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611cbb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611d35576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600355565b6009546001600160a01b031681565b6008546001600160a01b03163314611d94576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561097057600080fd5b6006546000906001600160a01b03163314611e62576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611e6b82612275565b5060048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611eb857600080fd5b505afa158015611ecc573d6000803e3d6000fd5b505050506040513d6020811015611ee257600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b158015611f3b57600080fd5b505afa158015611f4f573d6000803e3d6000fd5b505050506040513d6020811015611f6557600080fd5b505190506001600160a01b038116611fad576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b600454611fca906001600160a01b0316828463ffffffff6123ee16565b50919050565b6008546001600160a01b0316331461201b576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600155565b6005546001600160a01b0316331461206d576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156120eb57600080fd5b505afa1580156120ff573d6000803e3d6000fd5b505050506040513d602081101561211557600080fd5b5051905080156121fa57600454612151906001600160a01b031673c2edad668740f1aa35e4d8f227fb8e17dca888cd600063ffffffff6127ea16565b600454612182906001600160a01b031673c2edad668740f1aa35e4d8f227fb8e17dca888cd8363ffffffff6127ea16565b73c2edad668740f1aa35e4d8f227fb8e17dca888cd6001600160a01b031663e2bbb158600d54836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b1580156121e657600080fd5b505af1158015610f51573d6000803e3d6000fd5b50565b600b546001600160a01b031681565b6008546001600160a01b031681565b6006546001600160a01b031681565b600061226c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612b0f565b90505b92915050565b600073c2edad668740f1aa35e4d8f227fb8e17dca888cd6001600160a01b031663441a3e70600d54846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b1580156122db57600080fd5b505af11580156122ef573d6000803e3d6000fd5b5093949350505050565b60008282018381101561226c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826123625750600061226f565b8282028284828161236f57fe5b041461226c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612e476021913960400191505060405180910390fd5b600061226c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612ba6565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526117c5908490612c0b565b6001600160a01b03821661248157600080fd5b600a546124a2906001600160a01b038581169116600063ffffffff6127ea16565b600a546124c2906001600160a01b0385811691168363ffffffff6127ea16565b60606001600160a01b03841673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2148061250b57506001600160a01b03831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2145b15612591576040805160028082526060820183529091602083019080368337019050509050838160008151811061253e57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050828160018151811061256c57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612651565b60408051600380825260808201909252906020820160608036833701905050905083816000815181106125c057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061260257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050828160028151811061263057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600a546001600160a01b03166338ed1739836000843061267842603c63ffffffff6122f916565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156126f15781810151838201526020016126d9565b505050509050019650505050505050600060405180830381600087803b15801561271a57600080fd5b505af115801561272e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561275757600080fd5b810190808051604051939291908464010000000082111561277757600080fd5b90830190602082018581111561278c57600080fd5b82518660208202830111640100000000821117156127a957600080fd5b82525081516020918201928201910280838360005b838110156127d65781810151838201526020016127be565b505050509050016040525050505050505050565b8015806128895750604080517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561285b57600080fd5b505afa15801561286f573d6000803e3d6000fd5b505050506040513d602081101561288557600080fd5b5051155b6128c45760405162461bcd60e51b8152600401808060200182810382526036815260200180612e926036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526117c5908490612c0b565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561299357600080fd5b505afa1580156129a7573d6000803e3d6000fd5b505050506040513d60208110156129bd57600080fd5b5051905080156121fa57600654604080516361d027b360e01b81529051612a55926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015612a0d57600080fd5b505afa158015612a21573d6000803e3d6000fd5b505050506040513d6020811015612a3757600080fd5b5051600054610f389061271090610d3890869063ffffffff61235316565b600654604080517f8d8f1e670000000000000000000000000000000000000000000000000000000081529051612afc926001600160a01b031691638d8f1e67916004808301926020929190829003018186803b158015612ab457600080fd5b505afa158015612ac8573d6000803e3d6000fd5b505050506040513d6020811015612ade57600080fd5b5051600154610f389061271090610d3890869063ffffffff61235316565b6121fa61209c565b6121fa610d006109bf565b60008184841115612b9e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b63578181015183820152602001612b4b565b50505050905090810190601f168015612b905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612bf55760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612b63578181015183820152602001612b4b565b506000838581612c0157fe5b0495945050505050565b6060612c60826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612cbc9092919063ffffffff16565b8051909150156117c557808060200190516020811015612c7f57600080fd5b50516117c55760405162461bcd60e51b815260040180806020018281038252602a815260200180612e68602a913960400191505060405180910390fd5b6060612ccb8484600085612cd3565b949350505050565b6060612cde85612e40565b612d2f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612d6e5780518252601f199092019160209182019101612d4f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612dd0576040519150601f19603f3d011682016040523d82523d6000602084013e612dd5565b606091505b50915091508115612de9579150612ccb9050565b805115612df95780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612b63578181015183820152602001612b4b565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220fc8004131eaf9f050a420063aa245a0aabc29444dde9a8027874e68a0bc4208b64736f6c63430006070033000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d30000000000000000000000001cbf903de5d688eda7d6d895ea2f0a8f2a521e990000000000000000000000006847259b2b3a4c17e7c43c54409810af48ba5210000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d3
Deployed Bytecode
0x6080604052600436106102fd5760003560e01c80635aa6e6751161018f578063b9e37489116100e1578063c99142f11161008a578063d33219b411610064578063d33219b4146108ce578063f77c4791146108e3578063fe1f8f7a146105c2576102fd565b8063c99142f11461052f578063d0e30db0146108a4578063d21220a7146108b9576102fd565b8063c6223e26116100bb578063c6223e261461081d578063c65e324214610847578063c7b9d53014610871576102fd565b8063b9e37489146107c0578063bdacb303146107d5578063c1a3d44c14610808576102fd565b8063853828b61161014357806392eefe9b1161011d57806392eefe9b14610730578063ab033ea914610763578063ab73e43314610796576102fd565b8063853828b6146106f157806388993f22146107065780638ccdbb701461071b576102fd565b80636d13582c116101745780636d13582c1461069d578063722713f7146106b257806382378594146106c7576102fd565b80635aa6e67514610673578063665b815514610688576102fd565b80632e1a7d4d116102535780634fe809cc116101fc578063575a86b2116101d6578063575a86b21461061f57806359274a041461063457806359739ec41461065e576102fd565b80634fe809cc1461052f57806351cff8d9146105d757806351f3d0b81461060a576102fd565b80633fc8cef31161022d5780633fc8cef3146105985780634641257d146105ad578063479119be146105c2576102fd565b80632e1a7d4d146105445780632f48ab7d1461056e5780633e0dc34e14610583576102fd565b80631cff79cd116102b5578063249fb9b41161028f578063249fb9b4146104ee57806324e766621461051a57806326e886c61461052f576102fd565b80631cff79cd1461040e5780631f1fcd51146104c45780631fe4a686146104d9576102fd565b80631148a213116102e65780631148a2131461035a578063115880861461036f57806317d7de7c14610384576102fd565b80630547104d146103025780630a08790314610329575b600080fd5b34801561030e57600080fd5b506103176108f8565b60408051918252519081900360200190f35b34801561033557600080fd5b5061033e6109a1565b604080516001600160a01b039092168252519081900360200190f35b34801561036657600080fd5b506103176109b9565b34801561037b57600080fd5b506103176109bf565b34801561039057600080fd5b50610399610a68565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d35781810151838201526020016103bb565b50505050905090810190601f1680156104005780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103996004803603604081101561042457600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561044f57600080fd5b82018360208201111561046157600080fd5b8035906020019184600183028401116401000000008311171561048357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610a9f945050505050565b3480156104d057600080fd5b5061033e610b98565b3480156104e557600080fd5b5061033e610ba7565b3480156104fa57600080fd5b506105186004803603602081101561051157600080fd5b5035610bb6565b005b34801561052657600080fd5b5061033e610c06565b34801561053b57600080fd5b50610317610c15565b34801561055057600080fd5b506105186004803603602081101561056757600080fd5b5035610c1b565b34801561057a57600080fd5b5061033e610f58565b34801561058f57600080fd5b50610317610f67565b3480156105a457600080fd5b5061033e610f6d565b3480156105b957600080fd5b50610518610f85565b3480156105ce57600080fd5b506103176117ca565b3480156105e357600080fd5b50610317600480360360208110156105fa57600080fd5b50356001600160a01b03166117d1565b34801561061657600080fd5b50610317611920565b34801561062b57600080fd5b5061033e611926565b34801561064057600080fd5b506105186004803603602081101561065757600080fd5b503561193e565b34801561066a57600080fd5b5061031761198e565b34801561067f57600080fd5b5061033e611994565b34801561069457600080fd5b506103176119a3565b3480156106a957600080fd5b5061033e6119a9565b3480156106be57600080fd5b506103176119b8565b3480156106d357600080fd5b50610518600480360360208110156106ea57600080fd5b50356119de565b3480156106fd57600080fd5b50610317611a2e565b34801561071257600080fd5b50610317611be8565b34801561072757600080fd5b50610317611bee565b34801561073c57600080fd5b506105186004803603602081101561075357600080fd5b50356001600160a01b0316611bf4565b34801561076f57600080fd5b506105186004803603602081101561078657600080fd5b50356001600160a01b0316611c6e565b3480156107a257600080fd5b50610518600480360360208110156107b957600080fd5b5035611cea565b3480156107cc57600080fd5b5061033e611d3a565b3480156107e157600080fd5b50610518600480360360208110156107f857600080fd5b50356001600160a01b0316611d49565b34801561081457600080fd5b50610317611dc3565b34801561082957600080fd5b506103176004803603602081101561084057600080fd5b5035611e12565b34801561085357600080fd5b506105186004803603602081101561086a57600080fd5b5035611fd0565b34801561087d57600080fd5b506105186004803603602081101561089457600080fd5b50356001600160a01b0316612020565b3480156108b057600080fd5b5061051861209c565b3480156108c557600080fd5b5061033e6121fd565b3480156108da57600080fd5b5061033e61220c565b3480156108ef57600080fd5b5061033e61221b565b600d54604080517f195426ec00000000000000000000000000000000000000000000000000000000815260048101929092523060248301525160009173c2edad668740f1aa35e4d8f227fb8e17dca888cd9163195426ec91604480820192602092909190829003018186803b15801561097057600080fd5b505afa158015610984573d6000803e3d6000fd5b505050506040513d602081101561099a57600080fd5b5051905090565b736b3595068778dd592e39a122f4f5a5cf09c90fe281565b600e5481565b600d54604080517f93f1a40b00000000000000000000000000000000000000000000000000000000815260048101929092523060248301528051600092839273c2edad668740f1aa35e4d8f227fb8e17dca888cd926393f1a40b926044808201939291829003018186803b158015610a3657600080fd5b505afa158015610a4a573d6000803e3d6000fd5b505050506040513d6040811015610a6057600080fd5b505191505090565b60408051808201909152601681527f53747261746567795375736869457468557364744c7000000000000000000000602082015290565b6008546060906001600160a01b03163314610aed576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6001600160a01b038316610b48576040805162461bcd60e51b815260206004820152600760248201527f2174617267657400000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600080835160208501866113885a03f43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018114610b8857610b8f565b8160208501fd5b50505092915050565b6004546001600160a01b031681565b6007546001600160a01b031681565b6008546001600160a01b03163314610c01576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600055565b600f546001600160a01b031681565b61271081565b6006546001600160a01b03163314610c68576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610cb757600080fd5b505afa158015610ccb573d6000803e3d6000fd5b505050506040513d6020811015610ce157600080fd5b5051905081811015610d1a57610d05610d00838363ffffffff61222a16565b612275565b9150610d17828263ffffffff6122f916565b91505b6000610d44620186a0610d386003548661235390919063ffffffff16565b9063ffffffff6123ac16565b9050610ddc600660009054906101000a90046001600160a01b03166001600160a01b0316638d8f1e676040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9757600080fd5b505afa158015610dab573d6000803e3d6000fd5b505050506040513d6020811015610dc157600080fd5b50516004546001600160a01b0316908363ffffffff6123ee16565b6000610dfa620186a0610d386002548761235390919063ffffffff16565b9050610e4d600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b158015610d9757600080fd5b6006546004805460408051636535246160e11b81526001600160a01b039283169381019390935251600093919091169163ca6a48c2916024808301926020929190829003018186803b158015610ea257600080fd5b505afa158015610eb6573d6000803e3d6000fd5b505050506040513d6020811015610ecc57600080fd5b505190506001600160a01b038116610f14576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b610f5181610f3884610f2c898863ffffffff61222a16565b9063ffffffff61222a16565b6004546001600160a01b0316919063ffffffff6123ee16565b5050505050565b6010546001600160a01b031681565b600d5481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b33321480610f9d57506005546001600160a01b031633145b80610fb257506007546001600160a01b031633145b610fbb57600080fd5b73c2edad668740f1aa35e4d8f227fb8e17dca888cd6001600160a01b031663e2bbb158600d5460006040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561102057600080fd5b505af1158015611034573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905160009350736b3595068778dd592e39a122f4f5a5cf09c90fe292506370a0823191602480820192602092909190829003018186803b15801561108d57600080fd5b505afa1580156110a1573d6000803e3d6000fd5b505050506040513d60208110156110b757600080fd5b5051905080156111c35760006110de612710610d38600c548561235390919063ffffffff16565b905061117f600660009054906101000a90046001600160a01b03166001600160a01b03166361d027b36040518163ffffffff1660e01b815260040160206040518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d602081101561115b57600080fd5b5051736b3595068778dd592e39a122f4f5a5cf09c90fe2908363ffffffff6123ee16565b6111c1736b3595068778dd592e39a122f4f5a5cf09c90fe273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26111bc858563ffffffff61222a16565b61246e565b505b604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b15801561121857600080fd5b505afa15801561122c573d6000803e3d6000fd5b505050506040513d602081101561124257600080fd5b50519050801561128357600b546112839073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906001600160a01b03166111bc84600263ffffffff6123ac16565b604080516370a0823160e01b8152306004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b1580156112d457600080fd5b505afa1580156112e8573d6000803e3d6000fd5b505050506040513d60208110156112fe57600080fd5b5051600b54604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561135157600080fd5b505afa158015611365573d6000803e3d6000fd5b505050506040513d602081101561137b57600080fd5b50519050811580159061138e5750600081115b156117bd57600a546113c69073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906001600160a01b0316600063ffffffff6127ea16565b600a546113f89073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906001600160a01b03168463ffffffff6127ea16565b600a54600b5461141c916001600160a01b039182169116600063ffffffff6127ea16565b600a54600b5461143f916001600160a01b0391821691168363ffffffff6127ea16565b600a54600b54604080517fe8e3370000000000000000000000000000000000000000000000000000000000815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260048201526001600160a01b039283166024820152604481018690526064810185905260006084820181905260a482018190523060c4830152603c420160e48301529151929093169263e8e33700926101048083019360609383900390910190829087803b1580156114f257600080fd5b505af1158015611506573d6000803e3d6000fd5b505050506040513d606081101561151c57600080fd5b5050600654604080516361d027b360e01b8152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29263a9059cbb926001600160a01b03909116916361d027b391600480820192602092909190829003018186803b15801561157f57600080fd5b505afa158015611593573d6000803e3d6000fd5b505050506040513d60208110156115a957600080fd5b5051604080516370a0823160e01b8152306004820152905173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a08231916024808301926020929190829003018186803b1580156115fc57600080fd5b505afa158015611610573d6000803e3d6000fd5b505050506040513d602081101561162657600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561168f57600080fd5b505af11580156116a3573d6000803e3d6000fd5b505050506040513d60208110156116b957600080fd5b5050600654604080516361d027b360e01b815290516117bd926001600160a01b0316916361d027b3916004808301926020929190829003018186803b15801561170157600080fd5b505afa158015611715573d6000803e3d6000fd5b505050506040513d602081101561172b57600080fd5b5051600b54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561177857600080fd5b505afa15801561178c573d6000803e3d6000fd5b505050506040513d60208110156117a257600080fd5b5051600b546001600160a01b0316919063ffffffff6123ee16565b6117c5612944565b505050565b620186a081565b6006546000906001600160a01b03163314611821576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6004546001600160a01b0383811691161415611886576040805162461bcd60e51b8152602060048083019190915260248201527f77616e7400000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b1580156118cc57600080fd5b505afa1580156118e0573d6000803e3d6000fd5b505050506040513d60208110156118f657600080fd5b505160065490915061191b906001600160a01b0384811691168363ffffffff6123ee16565b919050565b60035481565b73c2edad668740f1aa35e4d8f227fb8e17dca888cd81565b6008546001600160a01b03163314611989576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600c55565b60005481565b6005546001600160a01b031681565b600c5481565b600a546001600160a01b031681565b60006119d96119c56109bf565b6119cd611dc3565b9063ffffffff6122f916565b905090565b6008546001600160a01b03163314611a29576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600255565b6006546000906001600160a01b03163314611a7e576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611a86612b04565b60048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611ad257600080fd5b505afa158015611ae6573d6000803e3d6000fd5b505050506040513d6020811015611afc57600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b158015611b5557600080fd5b505afa158015611b69573d6000803e3d6000fd5b505050506040513d6020811015611b7f57600080fd5b505190506001600160a01b038116611bc7576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b600454611be4906001600160a01b0316828463ffffffff6123ee16565b5090565b60015481565b60025481565b6008546001600160a01b03163314611c3f576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611cbb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611d35576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600355565b6009546001600160a01b031681565b6008546001600160a01b03163314611d94576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561097057600080fd5b6006546000906001600160a01b03163314611e62576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b611e6b82612275565b5060048054604080516370a0823160e01b81523093810193909352516001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015611eb857600080fd5b505afa158015611ecc573d6000803e3d6000fd5b505050506040513d6020811015611ee257600080fd5b50516006546004805460408051636535246160e11b81526001600160a01b03928316938101939093525193945060009392169163ca6a48c291602480820192602092909190829003018186803b158015611f3b57600080fd5b505afa158015611f4f573d6000803e3d6000fd5b505050506040513d6020811015611f6557600080fd5b505190506001600160a01b038116611fad576040805162461bcd60e51b8152602060048083019190915260248201526310b530b960e11b604482015290519081900360640190fd5b600454611fca906001600160a01b0316828463ffffffff6123ee16565b50919050565b6008546001600160a01b0316331461201b576040805162461bcd60e51b81526020600482015260096024820152682174696d656c6f636b60b81b604482015290519081900360640190fd5b600155565b6005546001600160a01b0316331461206d576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156120eb57600080fd5b505afa1580156120ff573d6000803e3d6000fd5b505050506040513d602081101561211557600080fd5b5051905080156121fa57600454612151906001600160a01b031673c2edad668740f1aa35e4d8f227fb8e17dca888cd600063ffffffff6127ea16565b600454612182906001600160a01b031673c2edad668740f1aa35e4d8f227fb8e17dca888cd8363ffffffff6127ea16565b73c2edad668740f1aa35e4d8f227fb8e17dca888cd6001600160a01b031663e2bbb158600d54836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b1580156121e657600080fd5b505af1158015610f51573d6000803e3d6000fd5b50565b600b546001600160a01b031681565b6008546001600160a01b031681565b6006546001600160a01b031681565b600061226c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612b0f565b90505b92915050565b600073c2edad668740f1aa35e4d8f227fb8e17dca888cd6001600160a01b031663441a3e70600d54846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b1580156122db57600080fd5b505af11580156122ef573d6000803e3d6000fd5b5093949350505050565b60008282018381101561226c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826123625750600061226f565b8282028284828161236f57fe5b041461226c5760405162461bcd60e51b8152600401808060200182810382526021815260200180612e476021913960400191505060405180910390fd5b600061226c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612ba6565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526117c5908490612c0b565b6001600160a01b03821661248157600080fd5b600a546124a2906001600160a01b038581169116600063ffffffff6127ea16565b600a546124c2906001600160a01b0385811691168363ffffffff6127ea16565b60606001600160a01b03841673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2148061250b57506001600160a01b03831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2145b15612591576040805160028082526060820183529091602083019080368337019050509050838160008151811061253e57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050828160018151811061256c57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050612651565b60408051600380825260808201909252906020820160608036833701905050905083816000815181106125c057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061260257fe5b60200260200101906001600160a01b031690816001600160a01b031681525050828160028151811061263057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250505b600a546001600160a01b03166338ed1739836000843061267842603c63ffffffff6122f916565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156126f15781810151838201526020016126d9565b505050509050019650505050505050600060405180830381600087803b15801561271a57600080fd5b505af115801561272e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561275757600080fd5b810190808051604051939291908464010000000082111561277757600080fd5b90830190602082018581111561278c57600080fd5b82518660208202830111640100000000821117156127a957600080fd5b82525081516020918201928201910280838360005b838110156127d65781810151838201526020016127be565b505050509050016040525050505050505050565b8015806128895750604080517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561285b57600080fd5b505afa15801561286f573d6000803e3d6000fd5b505050506040513d602081101561288557600080fd5b5051155b6128c45760405162461bcd60e51b8152600401808060200182810382526036815260200180612e926036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526117c5908490612c0b565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561299357600080fd5b505afa1580156129a7573d6000803e3d6000fd5b505050506040513d60208110156129bd57600080fd5b5051905080156121fa57600654604080516361d027b360e01b81529051612a55926001600160a01b0316916361d027b3916004808301926020929190829003018186803b158015612a0d57600080fd5b505afa158015612a21573d6000803e3d6000fd5b505050506040513d6020811015612a3757600080fd5b5051600054610f389061271090610d3890869063ffffffff61235316565b600654604080517f8d8f1e670000000000000000000000000000000000000000000000000000000081529051612afc926001600160a01b031691638d8f1e67916004808301926020929190829003018186803b158015612ab457600080fd5b505afa158015612ac8573d6000803e3d6000fd5b505050506040513d6020811015612ade57600080fd5b5051600154610f389061271090610d3890869063ffffffff61235316565b6121fa61209c565b6121fa610d006109bf565b60008184841115612b9e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b63578181015183820152602001612b4b565b50505050905090810190601f168015612b905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612bf55760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612b63578181015183820152602001612b4b565b506000838581612c0157fe5b0495945050505050565b6060612c60826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612cbc9092919063ffffffff16565b8051909150156117c557808060200190516020811015612c7f57600080fd5b50516117c55760405162461bcd60e51b815260040180806020018281038252602a815260200180612e68602a913960400191505060405180910390fd5b6060612ccb8484600085612cd3565b949350505050565b6060612cde85612e40565b612d2f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612d6e5780518252601f199092019160209182019101612d4f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612dd0576040519150601f19603f3d011682016040523d82523d6000602084013e612dd5565b606091505b50915091508115612de9579150612ccb9050565b805115612df95780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612b63578181015183820152602001612b4b565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220fc8004131eaf9f050a420063aa245a0aabc29444dde9a8027874e68a0bc4208b64736f6c63430006070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d30000000000000000000000001cbf903de5d688eda7d6d895ea2f0a8f2a521e990000000000000000000000006847259b2b3a4c17e7c43c54409810af48ba5210000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d3
-----Decoded View---------------
Arg [0] : _governance (address): 0xD92c7fAa0Ca0e6AE4918f3a83d9832d9CAEAA0d3
Arg [1] : _strategist (address): 0x1CbF903De5D688eDa7D6D895ea2F0a8F2A521E99
Arg [2] : _controller (address): 0x6847259b2B3A4c17e7c43C54409810aF48bA5210
Arg [3] : _timelock (address): 0xD92c7fAa0Ca0e6AE4918f3a83d9832d9CAEAA0d3
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d3
Arg [1] : 0000000000000000000000001cbf903de5d688eda7d6d895ea2f0a8f2a521e99
Arg [2] : 0000000000000000000000006847259b2b3a4c17e7c43c54409810af48ba5210
Arg [3] : 000000000000000000000000d92c7faa0ca0e6ae4918f3a83d9832d9caeaa0d3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $1.17 | 68.4531 | $80.09 |
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.