Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 74 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Timelock | 30460105 | 888 days ago | IN | 0 ETH | 0.000183412407 | ||||
Set Strategy | 26050862 | 910 days ago | IN | 0 ETH | 0.000087450774 | ||||
Set Jar | 26050836 | 910 days ago | IN | 0 ETH | 0.000087448253 | ||||
Approve Strategy | 26050802 | 910 days ago | IN | 0 ETH | 0.000087448273 | ||||
Set Strategy | 24506349 | 916 days ago | IN | 0 ETH | 0.000014918408 | ||||
Set Jar | 24506321 | 916 days ago | IN | 0 ETH | 0.000014915887 | ||||
Approve Strategy | 24506307 | 916 days ago | IN | 0 ETH | 0.000014915907 | ||||
Set Strategy | 21598848 | 937 days ago | IN | 0 ETH | 0.000043802089 | ||||
Set Jar | 21598841 | 937 days ago | IN | 0 ETH | 0.000043799572 | ||||
Approve Strategy | 21598837 | 937 days ago | IN | 0 ETH | 0.000043799592 | ||||
Set Strategy | 21598752 | 937 days ago | IN | 0 ETH | 0.000061303692 | ||||
Set Jar | 21598747 | 937 days ago | IN | 0 ETH | 0.000061301175 | ||||
Approve Strategy | 21598738 | 937 days ago | IN | 0 ETH | 0.000069359847 | ||||
Set Strategy | 21598546 | 937 days ago | IN | 0 ETH | 0.000063529629 | ||||
Set Jar | 21598537 | 937 days ago | IN | 0 ETH | 0.000072595748 | ||||
Approve Strategy | 21598524 | 937 days ago | IN | 0 ETH | 0.000072595768 | ||||
Set Strategy | 21598454 | 937 days ago | IN | 0 ETH | 0.000055448901 | ||||
Set Jar | 21598450 | 937 days ago | IN | 0 ETH | 0.000055446384 | ||||
Approve Strategy | 21598444 | 937 days ago | IN | 0 ETH | 0.000055446404 | ||||
Set Strategy | 21598413 | 937 days ago | IN | 0 ETH | 0.000061891126 | ||||
Set Jar | 21598404 | 937 days ago | IN | 0 ETH | 0.00007228458 | ||||
Approve Strategy | 21598388 | 937 days ago | IN | 0 ETH | 0.0000722846 | ||||
Set Strategy | 21598364 | 937 days ago | IN | 0 ETH | 0.000071866109 | ||||
Set Jar | 21598360 | 937 days ago | IN | 0 ETH | 0.000071863592 | ||||
Approve Strategy | 21598359 | 937 days ago | IN | 0 ETH | 0.000071863612 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
107549218 | 605 days ago | 0 ETH | ||||
107549218 | 605 days ago | 0 ETH | ||||
107549218 | 605 days ago | 0 ETH | ||||
107549218 | 605 days ago | 0 ETH | ||||
107549218 | 605 days ago | 0 ETH | ||||
107549218 | 605 days ago | 0 ETH | ||||
107549218 | 605 days ago | 0 ETH | ||||
107547937 | 605 days ago | 0 ETH | ||||
107547931 | 605 days ago | 0 ETH | ||||
107546133 | 605 days ago | 0 ETH | ||||
107540735 | 606 days ago | 0 ETH | ||||
107500235 | 606 days ago | 0 ETH | ||||
107495739 | 607 days ago | 0 ETH | ||||
107493939 | 607 days ago | 0 ETH | ||||
107476880 | 607 days ago | 0 ETH | ||||
107476880 | 607 days ago | 0 ETH | ||||
107476880 | 607 days ago | 0 ETH | ||||
107476880 | 607 days ago | 0 ETH | ||||
107476880 | 607 days ago | 0 ETH | ||||
107476880 | 607 days ago | 0 ETH | ||||
107476880 | 607 days ago | 0 ETH | ||||
107462439 | 607 days ago | 0 ETH | ||||
107462435 | 607 days ago | 0 ETH | ||||
107460681 | 607 days ago | 0 ETH | ||||
107460635 | 607 days ago | 0 ETH |
Loading...
Loading
Contract Name:
ControllerV4
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIXED // File src/interfaces/controller.sol // 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 withdrawReward(address, uint256) external; function earn(address, uint256) external; function strategies(address) external view returns (address); } // File src/lib/safe-math.sol // 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; } } // File src/lib/context.sol // 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; } } // File src/lib/erc20.sol // File: contracts/GSN/Context.sol // License-Identifier: MIT pragma solidity ^0.6.0; // File: contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/token/ERC20/ERC20.sol /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File src/interfaces/jar.sol // License-Identifier: MIT pragma solidity ^0.6.2; interface IJar is IERC20 { function token() external view returns (address); function reward() external view returns (address); function claimInsurance() external; // NOTE: Only yDelegatedVault implements this function getRatio() external view returns (uint256); function depositAll() external; function balance() external view returns (uint256); function deposit(uint256) external; function withdrawAll() external; function withdraw(uint256) external; function earn() external; function decimals() external view returns (uint8); } // File src/interfaces/jar-converter.sol // License-Identifier: MIT pragma solidity ^0.6.2; interface IJarConverter { function convert( address _refundExcess, // address to send the excess amount when adding liquidity uint256 _amount, // UNI LP Amount bytes calldata _data ) external returns (uint256); } // File src/interfaces/strategy.sol // License-Identifier: MIT pragma solidity ^0.6.2; interface IStrategy { function rewards() external view returns (address); function gauge() external view returns (address); function want() external view returns (address); function timelock() external view returns (address); function deposit() external; function withdrawForSwap(uint256) external returns (uint256); function withdraw(address) external; function pendingReward() external view returns (uint256); function withdraw(uint256) external; function withdrawReward(uint256) external; function skim() external; function withdrawAll() external returns (uint256); function balanceOf() external view returns (uint256); function getHarvestable() external view returns (uint256); function harvest() external; function setTimelock(address) external; function setController(address _controller) external; function execute(address _target, bytes calldata _data) external payable returns (bytes memory response); function execute(bytes calldata _data) external payable returns (bytes memory response); } // File src/interfaces/converter.sol // License-Identifier: MIT pragma solidity ^0.6.2; interface Converter { function convert(address) external returns (uint256); } // File src/polygon/controller-v4.sol // https://github.com/iearn-finance/jars/blob/master/contracts/controllers/StrategyControllerV1.sol pragma solidity ^0.6.7; pragma experimental ABIEncoderV2; contract ControllerV4 { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; address public constant burn = 0x000000000000000000000000000000000000dEaD; address public governance; address public strategist; address public devfund; address public treasury; address public timelock; // Convenience fee 0.1% uint256 public convenienceFee = 100; uint256 public constant convenienceFeeMax = 100000; mapping(address => address) public jars; mapping(address => address) public strategies; mapping(address => mapping(address => address)) public converters; mapping(address => mapping(address => bool)) public approvedStrategies; mapping(address => bool) public approvedJarConverters; uint256 public split = 500; uint256 public constant max = 10000; constructor( address _governance, address _strategist, address _timelock, address _devfund, address _treasury ) public { governance = _governance; strategist = _strategist; timelock = _timelock; devfund = _devfund; treasury = _treasury; } function setDevFund(address _devfund) public { require(msg.sender == governance, "!governance"); devfund = _devfund; } function setTreasury(address _treasury) public { require(msg.sender == governance, "!governance"); treasury = _treasury; } function setStrategist(address _strategist) public { require(msg.sender == governance, "!governance"); strategist = _strategist; } function setSplit(uint256 _split) public { require(msg.sender == governance, "!governance"); require(_split <= max, "numerator cannot be greater than denominator"); split = _split; } function setGovernance(address _governance) public { require(msg.sender == governance, "!governance"); governance = _governance; } function setTimelock(address _timelock) public { require(msg.sender == timelock, "!timelock"); timelock = _timelock; } function setJar(address _token, address _jar) public { require( msg.sender == strategist || msg.sender == governance, "!strategist" ); jars[_token] = _jar; } function approveJarConverter(address _converter) public { require(msg.sender == governance, "!governance"); approvedJarConverters[_converter] = true; } function revokeJarConverter(address _converter) public { require(msg.sender == governance, "!governance"); approvedJarConverters[_converter] = false; } function approveStrategy(address _token, address _strategy) public { require(msg.sender == timelock, "!timelock"); approvedStrategies[_token][_strategy] = true; } function revokeStrategy(address _token, address _strategy) public { require(msg.sender == governance, "!governance"); require(strategies[_token] != _strategy, "cannot revoke active strategy"); approvedStrategies[_token][_strategy] = false; } function setConvenienceFee(uint256 _convenienceFee) external { require(msg.sender == timelock, "!timelock"); convenienceFee = _convenienceFee; } function setStrategy(address _token, address _strategy) public { require( msg.sender == strategist || msg.sender == governance, "!strategist" ); require(approvedStrategies[_token][_strategy] == true, "!approved"); address _current = strategies[_token]; if (_current != address(0)) { IStrategy(_current).withdrawAll(); } strategies[_token] = _strategy; } function earn(address _token, uint256 _amount) public { address _strategy = strategies[_token]; address _want = IStrategy(_strategy).want(); if (_want != _token) { address converter = converters[_token][_want]; IERC20(_token).safeTransfer(converter, _amount); _amount = Converter(converter).convert(_strategy); IERC20(_want).safeTransfer(_strategy, _amount); } else { IERC20(_token).safeTransfer(_strategy, _amount); } IStrategy(_strategy).deposit(); } function balanceOf(address _token) external view returns (uint256) { return IStrategy(strategies[_token]).balanceOf(); } function withdrawAll(address _token) public { require( msg.sender == strategist || msg.sender == governance, "!strategist" ); IStrategy(strategies[_token]).withdrawAll(); } function inCaseTokensGetStuck(address _token, uint256 _amount) public { require( msg.sender == strategist || msg.sender == governance, "!governance" ); IERC20(_token).safeTransfer(msg.sender, _amount); } function inCaseStrategyTokenGetStuck(address _strategy, address _token) public { require( msg.sender == strategist || msg.sender == governance, "!governance" ); IStrategy(_strategy).withdraw(_token); } function withdraw(address _token, uint256 _amount) public { require(msg.sender == jars[_token], "!jar"); IStrategy(strategies[_token]).withdraw(_amount); } function _execute(address _target, bytes memory _data) internal returns (bytes memory response) { require(_target != address(0), "!target"); // call contract in current context assembly { let succeeded := delegatecall( sub(gas(), 5000), _target, add(_data, 0x20), mload(_data), 0, 0 ) let size := returndatasize() response := mload(0x40) mstore( 0x40, add(response, and(add(add(size, 0x20), 0x1f), not(0x1f))) ) mstore(response, size) returndatacopy(add(response, 0x20), 0, size) switch iszero(succeeded) case 1 { // throw if delegatecall failed revert(add(response, 0x20), size) } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_strategist","type":"address"},{"internalType":"address","name":"_timelock","type":"address"},{"internalType":"address","name":"_devfund","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_converter","type":"address"}],"name":"approveJarConverter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"approveStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedJarConverters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"approvedStrategies","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"convenienceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"convenienceFeeMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"converters","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devfund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseStrategyTokenGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"jars","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_converter","type":"address"}],"name":"revokeJarConverter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"revokeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_convenienceFee","type":"uint256"}],"name":"setConvenienceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devfund","type":"address"}],"name":"setDevFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_jar","type":"address"}],"name":"setJar","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_split","type":"uint256"}],"name":"setSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_timelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"split","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260646005556101f4600b553480156200001c57600080fd5b506040516200160f3803806200160f8339810160408190526200003f91620000a2565b600080546001600160a01b03199081166001600160a01b039788161790915560018054821695871695909517909455600480548516938616939093179092556002805484169185169190911790556003805490921692169190911790556200013a565b600080600080600060a08688031215620000ba578081fd5b8551620000c78162000121565b6020870151909550620000da8162000121565b6040870151909450620000ed8162000121565b6060870151909350620001008162000121565b6080870151909250620001138162000121565b809150509295509295909350565b6001600160a01b03811681146200013757600080fd5b50565b6114c5806200014a6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063ab033ea91161011a578063cb35508a116100ad578063f0f442601161007c578063f0f442601461040c578063f3fef3a31461041f578063f765417614610432578063fa09e6301461043a578063fbe8b5ce1461044d57610206565b8063cb35508a146103cb578063d33219b4146103de578063e4f2494d146103e6578063f089ea8e146103f957610206565b8063c494448e116100e9578063c494448e1461037f578063c6d758cb14610392578063c7b9d530146103a5578063ca6a48c2146103b857610206565b8063ab033ea914610333578063ae4db91914610346578063b02bf4b914610359578063bdacb3031461036c57610206565b806361d027b31161019d57806370a082311161016c57806370a08231146102ea57806372cb5d97146102fd5780638d8f1e67146103105780639bcdff1f14610318578063a1578b6a1461032057610206565b806361d027b31461029a578063674e694f146102a25780636ac5db19146102b55780636ee2c86f146102ca57610206565b806344df8e70116101d957806344df8e701461026457806346560bfb1461026c578063590bbb601461027f5780635aa6e6751461029257610206565b8063197baa6d1461020b5780631dfd45af146102205780631fe4a6861461023357806339ebf82314610251575b600080fd5b61021e610219366004611152565b610455565b005b61021e61022e3660046111d5565b6104ff565b61023b61052e565b6040516102489190611221565b60405180910390f35b61023b61025f366004611113565b61053d565b61023b610558565b61021e61027a366004611152565b61055e565b61021e61028d366004611152565b6105cb565b61023b610663565b61023b610672565b61021e6102b03660046111d5565b610681565b6102bd6106d2565b604051610248919061143e565b6102dd6102d8366004611113565b6106d8565b604051610248919061124e565b6102bd6102f8366004611113565b6106ed565b61021e61030b366004611152565b61077d565b61023b6108cb565b6102bd6108da565b6102dd61032e366004611152565b6108e1565b61021e610341366004611113565b610901565b61021e610354366004611113565b61094d565b61021e61036736600461118a565b610999565b61021e61037a366004611113565b610b7a565b61021e61038d366004611152565b610bc6565b61021e6103a036600461118a565b610c24565b61021e6103b3366004611113565b610c7b565b61023b6103c6366004611113565b610cc7565b61021e6103d9366004611113565b610ce2565b61023b610d30565b61023b6103f4366004611152565b610d3f565b61021e610407366004611113565b610d65565b61021e61041a366004611113565b610db0565b61021e61042d36600461118a565b610dfc565b6102bd610e74565b61021e610448366004611113565b610e7a565b6102bd610f42565b6001546001600160a01b031633148061047857506000546001600160a01b031633145b61049d5760405162461bcd60e51b8152600401610494906112e8565b60405180910390fd5b6040516351cff8d960e01b81526001600160a01b038316906351cff8d9906104c9908490600401611221565b600060405180830381600087803b1580156104e357600080fd5b505af11580156104f7573d6000803e3d6000fd5b505050505050565b6004546001600160a01b031633146105295760405162461bcd60e51b81526004016104949061141b565b600555565b6001546001600160a01b031681565b6007602052600090815260409020546001600160a01b031681565b61dead81565b6001546001600160a01b031633148061058157506000546001600160a01b031633145b61059d5760405162461bcd60e51b8152600401610494906112c3565b6001600160a01b03918216600090815260066020526040902080546001600160a01b03191691909216179055565b6000546001600160a01b031633146105f55760405162461bcd60e51b8152600401610494906112e8565b6001600160a01b03828116600090815260076020526040902054811690821614156106325760405162461bcd60e51b81526004016104949061128c565b6001600160a01b0391821660009081526009602090815260408083209390941682529190915220805460ff19169055565b6000546001600160a01b031681565b6003546001600160a01b031681565b6000546001600160a01b031633146106ab5760405162461bcd60e51b8152600401610494906112e8565b6127108111156106cd5760405162461bcd60e51b81526004016104949061130d565b600b55565b61271081565b600a6020526000908152604090205460ff1681565b6001600160a01b03808216600090815260076020908152604080832054815163722713f760e01b815291519394169263722713f792600480840193919291829003018186803b15801561073f57600080fd5b505afa158015610753573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077791906111ed565b92915050565b6001546001600160a01b03163314806107a057506000546001600160a01b031633145b6107bc5760405162461bcd60e51b8152600401610494906112c3565b6001600160a01b0380831660009081526009602090815260408083209385168352929052205460ff1615156001146108065760405162461bcd60e51b815260040161049490611359565b6001600160a01b0380831660009081526007602052604090205416801561089c57806001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561086257600080fd5b505af1158015610876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a91906111ed565b505b506001600160a01b03918216600090815260076020526040902080546001600160a01b03191691909216179055565b6002546001600160a01b031681565b620186a081565b600960209081526000928352604080842090915290825290205460ff1681565b6000546001600160a01b0316331461092b5760405162461bcd60e51b8152600401610494906112e8565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146109775760405162461bcd60e51b8152600401610494906112e8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038083166000908152600760209081526040808320548151631f1fcd5160e01b815291519416938492631f1fcd519260048082019391829003018186803b1580156109ea57600080fd5b505afa1580156109fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a229190611136565b9050836001600160a01b0316816001600160a01b031614610b0d576001600160a01b038085166000818152600860209081526040808320868616845290915290205490911690610a73908286610f48565b60405163def2489b60e01b81526001600160a01b0382169063def2489b90610a9f908690600401611221565b602060405180830381600087803b158015610ab957600080fd5b505af1158015610acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af191906111ed565b9350610b076001600160a01b0383168486610f48565b50610b21565b610b216001600160a01b0385168385610f48565b816001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b5c57600080fd5b505af1158015610b70573d6000803e3d6000fd5b5050505050505050565b6004546001600160a01b03163314610ba45760405162461bcd60e51b81526004016104949061141b565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610bf05760405162461bcd60e51b81526004016104949061141b565b6001600160a01b0391821660009081526009602090815260408083209390941682529190915220805460ff19166001179055565b6001546001600160a01b0316331480610c4757506000546001600160a01b031633145b610c635760405162461bcd60e51b8152600401610494906112e8565b610c776001600160a01b0383163383610f48565b5050565b6000546001600160a01b03163314610ca55760405162461bcd60e51b8152600401610494906112e8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6006602052600090815260409020546001600160a01b031681565b6000546001600160a01b03163314610d0c5760405162461bcd60e51b8152600401610494906112e8565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b6004546001600160a01b031681565b60086020908152600092835260408084209091529082529020546001600160a01b031681565b6000546001600160a01b03163314610d8f5760405162461bcd60e51b8152600401610494906112e8565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b6000546001600160a01b03163314610dda5760405162461bcd60e51b8152600401610494906112e8565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03828116600090815260066020526040902054163314610e355760405162461bcd60e51b81526004016104949061137c565b6001600160a01b0380831660009081526007602052604090819020549051632e1a7d4d60e01b8152911690632e1a7d4d906104c990849060040161143e565b600b5481565b6001546001600160a01b0316331480610e9d57506000546001600160a01b031633145b610eb95760405162461bcd60e51b8152600401610494906112c3565b6001600160a01b03808216600090815260076020908152604080832054815163429c145b60e11b8152915194169363853828b693600480840194938390030190829087803b158015610f0a57600080fd5b505af1158015610f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7791906111ed565b60055481565b610f9e8363a9059cbb60e01b8484604051602401610f67929190611235565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fa3565b505050565b6060610ff8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110329092919063ffffffff16565b805190915015610f9e578080602001905181019061101691906111b5565b610f9e5760405162461bcd60e51b8152600401610494906113d1565b60606110418484600085611049565b949350505050565b60606110548561110d565b6110705760405162461bcd60e51b81526004016104949061139a565b60006060866001600160a01b0316858760405161108d9190611205565b60006040518083038185875af1925050503d80600081146110ca576040519150601f19603f3d011682016040523d82523d6000602084013e6110cf565b606091505b509150915081156110e35791506110419050565b8051156110f35780518082602001fd5b8360405162461bcd60e51b81526004016104949190611259565b3b151590565b600060208284031215611124578081fd5b813561112f81611477565b9392505050565b600060208284031215611147578081fd5b815161112f81611477565b60008060408385031215611164578081fd5b823561116f81611477565b9150602083013561117f81611477565b809150509250929050565b6000806040838503121561119c578182fd5b82356111a781611477565b946020939093013593505050565b6000602082840312156111c6578081fd5b8151801515811461112f578182fd5b6000602082840312156111e6578081fd5b5035919050565b6000602082840312156111fe578081fd5b5051919050565b60008251611217818460208701611447565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152611278816040850160208701611447565b601f01601f19169190910160400192915050565b6020808252601d908201527f63616e6e6f74207265766f6b6520616374697665207374726174656779000000604082015260600190565b6020808252600b908201526a085cdd1c985d1959da5cdd60aa1b604082015260600190565b6020808252600b908201526a21676f7665726e616e636560a81b604082015260600190565b6020808252602c908201527f6e756d657261746f722063616e6e6f742062652067726561746572207468616e60408201526b103232b737b6b4b730ba37b960a11b606082015260800190565b60208082526009908201526808585c1c1c9bdd995960ba1b604082015260600190565b60208082526004908201526310b530b960e11b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600990820152682174696d656c6f636b60b81b604082015260600190565b90815260200190565b60005b8381101561146257818101518382015260200161144a565b83811115611471576000848401525b50505050565b6001600160a01b038116811461148c57600080fd5b5056fea26469706673582212207ffa1a558fa88b5ed7aa03d0c1ff769737026e2635bd5fc50598dd50bed049d664736f6c634300060c00330000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c8063ab033ea91161011a578063cb35508a116100ad578063f0f442601161007c578063f0f442601461040c578063f3fef3a31461041f578063f765417614610432578063fa09e6301461043a578063fbe8b5ce1461044d57610206565b8063cb35508a146103cb578063d33219b4146103de578063e4f2494d146103e6578063f089ea8e146103f957610206565b8063c494448e116100e9578063c494448e1461037f578063c6d758cb14610392578063c7b9d530146103a5578063ca6a48c2146103b857610206565b8063ab033ea914610333578063ae4db91914610346578063b02bf4b914610359578063bdacb3031461036c57610206565b806361d027b31161019d57806370a082311161016c57806370a08231146102ea57806372cb5d97146102fd5780638d8f1e67146103105780639bcdff1f14610318578063a1578b6a1461032057610206565b806361d027b31461029a578063674e694f146102a25780636ac5db19146102b55780636ee2c86f146102ca57610206565b806344df8e70116101d957806344df8e701461026457806346560bfb1461026c578063590bbb601461027f5780635aa6e6751461029257610206565b8063197baa6d1461020b5780631dfd45af146102205780631fe4a6861461023357806339ebf82314610251575b600080fd5b61021e610219366004611152565b610455565b005b61021e61022e3660046111d5565b6104ff565b61023b61052e565b6040516102489190611221565b60405180910390f35b61023b61025f366004611113565b61053d565b61023b610558565b61021e61027a366004611152565b61055e565b61021e61028d366004611152565b6105cb565b61023b610663565b61023b610672565b61021e6102b03660046111d5565b610681565b6102bd6106d2565b604051610248919061143e565b6102dd6102d8366004611113565b6106d8565b604051610248919061124e565b6102bd6102f8366004611113565b6106ed565b61021e61030b366004611152565b61077d565b61023b6108cb565b6102bd6108da565b6102dd61032e366004611152565b6108e1565b61021e610341366004611113565b610901565b61021e610354366004611113565b61094d565b61021e61036736600461118a565b610999565b61021e61037a366004611113565b610b7a565b61021e61038d366004611152565b610bc6565b61021e6103a036600461118a565b610c24565b61021e6103b3366004611113565b610c7b565b61023b6103c6366004611113565b610cc7565b61021e6103d9366004611113565b610ce2565b61023b610d30565b61023b6103f4366004611152565b610d3f565b61021e610407366004611113565b610d65565b61021e61041a366004611113565b610db0565b61021e61042d36600461118a565b610dfc565b6102bd610e74565b61021e610448366004611113565b610e7a565b6102bd610f42565b6001546001600160a01b031633148061047857506000546001600160a01b031633145b61049d5760405162461bcd60e51b8152600401610494906112e8565b60405180910390fd5b6040516351cff8d960e01b81526001600160a01b038316906351cff8d9906104c9908490600401611221565b600060405180830381600087803b1580156104e357600080fd5b505af11580156104f7573d6000803e3d6000fd5b505050505050565b6004546001600160a01b031633146105295760405162461bcd60e51b81526004016104949061141b565b600555565b6001546001600160a01b031681565b6007602052600090815260409020546001600160a01b031681565b61dead81565b6001546001600160a01b031633148061058157506000546001600160a01b031633145b61059d5760405162461bcd60e51b8152600401610494906112c3565b6001600160a01b03918216600090815260066020526040902080546001600160a01b03191691909216179055565b6000546001600160a01b031633146105f55760405162461bcd60e51b8152600401610494906112e8565b6001600160a01b03828116600090815260076020526040902054811690821614156106325760405162461bcd60e51b81526004016104949061128c565b6001600160a01b0391821660009081526009602090815260408083209390941682529190915220805460ff19169055565b6000546001600160a01b031681565b6003546001600160a01b031681565b6000546001600160a01b031633146106ab5760405162461bcd60e51b8152600401610494906112e8565b6127108111156106cd5760405162461bcd60e51b81526004016104949061130d565b600b55565b61271081565b600a6020526000908152604090205460ff1681565b6001600160a01b03808216600090815260076020908152604080832054815163722713f760e01b815291519394169263722713f792600480840193919291829003018186803b15801561073f57600080fd5b505afa158015610753573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077791906111ed565b92915050565b6001546001600160a01b03163314806107a057506000546001600160a01b031633145b6107bc5760405162461bcd60e51b8152600401610494906112c3565b6001600160a01b0380831660009081526009602090815260408083209385168352929052205460ff1615156001146108065760405162461bcd60e51b815260040161049490611359565b6001600160a01b0380831660009081526007602052604090205416801561089c57806001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561086257600080fd5b505af1158015610876573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089a91906111ed565b505b506001600160a01b03918216600090815260076020526040902080546001600160a01b03191691909216179055565b6002546001600160a01b031681565b620186a081565b600960209081526000928352604080842090915290825290205460ff1681565b6000546001600160a01b0316331461092b5760405162461bcd60e51b8152600401610494906112e8565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146109775760405162461bcd60e51b8152600401610494906112e8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038083166000908152600760209081526040808320548151631f1fcd5160e01b815291519416938492631f1fcd519260048082019391829003018186803b1580156109ea57600080fd5b505afa1580156109fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a229190611136565b9050836001600160a01b0316816001600160a01b031614610b0d576001600160a01b038085166000818152600860209081526040808320868616845290915290205490911690610a73908286610f48565b60405163def2489b60e01b81526001600160a01b0382169063def2489b90610a9f908690600401611221565b602060405180830381600087803b158015610ab957600080fd5b505af1158015610acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af191906111ed565b9350610b076001600160a01b0383168486610f48565b50610b21565b610b216001600160a01b0385168385610f48565b816001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b5c57600080fd5b505af1158015610b70573d6000803e3d6000fd5b5050505050505050565b6004546001600160a01b03163314610ba45760405162461bcd60e51b81526004016104949061141b565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314610bf05760405162461bcd60e51b81526004016104949061141b565b6001600160a01b0391821660009081526009602090815260408083209390941682529190915220805460ff19166001179055565b6001546001600160a01b0316331480610c4757506000546001600160a01b031633145b610c635760405162461bcd60e51b8152600401610494906112e8565b610c776001600160a01b0383163383610f48565b5050565b6000546001600160a01b03163314610ca55760405162461bcd60e51b8152600401610494906112e8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6006602052600090815260409020546001600160a01b031681565b6000546001600160a01b03163314610d0c5760405162461bcd60e51b8152600401610494906112e8565b6001600160a01b03166000908152600a60205260409020805460ff19166001179055565b6004546001600160a01b031681565b60086020908152600092835260408084209091529082529020546001600160a01b031681565b6000546001600160a01b03163314610d8f5760405162461bcd60e51b8152600401610494906112e8565b6001600160a01b03166000908152600a60205260409020805460ff19169055565b6000546001600160a01b03163314610dda5760405162461bcd60e51b8152600401610494906112e8565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03828116600090815260066020526040902054163314610e355760405162461bcd60e51b81526004016104949061137c565b6001600160a01b0380831660009081526007602052604090819020549051632e1a7d4d60e01b8152911690632e1a7d4d906104c990849060040161143e565b600b5481565b6001546001600160a01b0316331480610e9d57506000546001600160a01b031633145b610eb95760405162461bcd60e51b8152600401610494906112c3565b6001600160a01b03808216600090815260076020908152604080832054815163429c145b60e11b8152915194169363853828b693600480840194938390030190829087803b158015610f0a57600080fd5b505af1158015610f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7791906111ed565b60055481565b610f9e8363a9059cbb60e01b8484604051602401610f67929190611235565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fa3565b505050565b6060610ff8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110329092919063ffffffff16565b805190915015610f9e578080602001905181019061101691906111b5565b610f9e5760405162461bcd60e51b8152600401610494906113d1565b60606110418484600085611049565b949350505050565b60606110548561110d565b6110705760405162461bcd60e51b81526004016104949061139a565b60006060866001600160a01b0316858760405161108d9190611205565b60006040518083038185875af1925050503d80600081146110ca576040519150601f19603f3d011682016040523d82523d6000602084013e6110cf565b606091505b509150915081156110e35791506110419050565b8051156110f35780518082602001fd5b8360405162461bcd60e51b81526004016104949190611259565b3b151590565b600060208284031215611124578081fd5b813561112f81611477565b9392505050565b600060208284031215611147578081fd5b815161112f81611477565b60008060408385031215611164578081fd5b823561116f81611477565b9150602083013561117f81611477565b809150509250929050565b6000806040838503121561119c578182fd5b82356111a781611477565b946020939093013593505050565b6000602082840312156111c6578081fd5b8151801515811461112f578182fd5b6000602082840312156111e6578081fd5b5035919050565b6000602082840312156111fe578081fd5b5051919050565b60008251611217818460208701611447565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082528251806020840152611278816040850160208701611447565b601f01601f19169190910160400192915050565b6020808252601d908201527f63616e6e6f74207265766f6b6520616374697665207374726174656779000000604082015260600190565b6020808252600b908201526a085cdd1c985d1959da5cdd60aa1b604082015260600190565b6020808252600b908201526a21676f7665726e616e636560a81b604082015260600190565b6020808252602c908201527f6e756d657261746f722063616e6e6f742062652067726561746572207468616e60408201526b103232b737b6b4b730ba37b960a11b606082015260800190565b60208082526009908201526808585c1c1c9bdd995960ba1b604082015260600190565b60208082526004908201526310b530b960e11b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600990820152682174696d656c6f636b60b81b604082015260600190565b90815260200190565b60005b8381101561146257818101518382015260200161144a565b83811115611471576000848401525b50505050565b6001600160a01b038116811461148c57600080fd5b5056fea26469706673582212207ffa1a558fa88b5ed7aa03d0c1ff769737026e2635bd5fc50598dd50bed049d664736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e50000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e5
-----Decoded View---------------
Arg [0] : _governance (address): 0x4023ef3aaa0669FaAf3A712626F4D8cCc3eAF2e5
Arg [1] : _strategist (address): 0x4023ef3aaa0669FaAf3A712626F4D8cCc3eAF2e5
Arg [2] : _timelock (address): 0x4023ef3aaa0669FaAf3A712626F4D8cCc3eAF2e5
Arg [3] : _devfund (address): 0x4023ef3aaa0669FaAf3A712626F4D8cCc3eAF2e5
Arg [4] : _treasury (address): 0x4023ef3aaa0669FaAf3A712626F4D8cCc3eAF2e5
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e5
Arg [1] : 0000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e5
Arg [2] : 0000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e5
Arg [3] : 0000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e5
Arg [4] : 0000000000000000000000004023ef3aaa0669faaf3a712626f4d8ccc3eaf2e5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.