More Info
Private Name Tags
ContractCreator
Latest 23 from a total of 23 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 19805095 | 61 days ago | IN | 0 ETH | 0.0105656 | ||||
Harvest | 19502643 | 103 days ago | IN | 0 ETH | 0.01912757 | ||||
Harvest | 19418116 | 115 days ago | IN | 0 ETH | 0.05523701 | ||||
Harvest | 19291792 | 133 days ago | IN | 0 ETH | 0.0425394 | ||||
Harvest | 19121715 | 157 days ago | IN | 0 ETH | 0.02717468 | ||||
Harvest | 18929513 | 184 days ago | IN | 0 ETH | 0.02621444 | ||||
Harvest | 18840821 | 196 days ago | IN | 0 ETH | 0.03646283 | ||||
Harvest | 18739466 | 210 days ago | IN | 0 ETH | 0.03621256 | ||||
Harvest | 18664483 | 221 days ago | IN | 0 ETH | 0.05599016 | ||||
Harvest | 18606762 | 229 days ago | IN | 0 ETH | 0.03887637 | ||||
Harvest | 18554357 | 236 days ago | IN | 0 ETH | 0.03433272 | ||||
Harvest | 18501361 | 244 days ago | IN | 0 ETH | 0.02161376 | ||||
Harvest | 18459124 | 250 days ago | IN | 0 ETH | 0.02061948 | ||||
Harvest | 18411207 | 256 days ago | IN | 0 ETH | 0.01432305 | ||||
Harvest | 18357578 | 264 days ago | IN | 0 ETH | 0.01375363 | ||||
Harvest | 18310545 | 270 days ago | IN | 0 ETH | 0.01071413 | ||||
Harvest | 18271945 | 276 days ago | IN | 0 ETH | 0.03755757 | ||||
Harvest | 18196965 | 286 days ago | IN | 0 ETH | 0.01250213 | ||||
Revoke Role | 18175812 | 289 days ago | IN | 0 ETH | 0.00023714 | ||||
Grant Role | 18175812 | 289 days ago | IN | 0 ETH | 0.00045148 | ||||
Grant Role | 18175812 | 289 days ago | IN | 0 ETH | 0.00045138 | ||||
Grant Role | 18175811 | 289 days ago | IN | 0 ETH | 0.00045603 | ||||
0x6101a060 | 18175810 | 289 days ago | IN | Create: StrategyPETHConvex | 0 ETH | 0.01811947 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
19805095 | 61 days ago | 3.93554723 ETH | ||||
19805095 | 61 days ago | 0.9838868 ETH | ||||
19805095 | 61 days ago | 4.77548081 ETH | ||||
19805095 | 61 days ago | 0.14395322 ETH | ||||
19502643 | 103 days ago | 3.99514137 ETH | ||||
19502643 | 103 days ago | 0.99878534 ETH | ||||
19502643 | 103 days ago | 4.82406244 ETH | ||||
19502643 | 103 days ago | 0.16986428 ETH | ||||
19418116 | 115 days ago | 5.6241478 ETH | ||||
19418116 | 115 days ago | 1.40603695 ETH | ||||
19418116 | 115 days ago | 6.78193472 ETH | ||||
19418116 | 115 days ago | 0.24825003 ETH | ||||
19291792 | 133 days ago | 6.14981333 ETH | ||||
19291792 | 133 days ago | 1.53745333 ETH | ||||
19291792 | 133 days ago | 7.33512435 ETH | ||||
19291792 | 133 days ago | 0.35214231 ETH | ||||
19121715 | 157 days ago | 8.50849775 ETH | ||||
19121715 | 157 days ago | 2.12712443 ETH | ||||
19121715 | 157 days ago | 10.1862655 ETH | ||||
19121715 | 157 days ago | 0.44935668 ETH | ||||
18929513 | 184 days ago | 6.06031639 ETH | ||||
18929513 | 184 days ago | 1.51507909 ETH | ||||
18929513 | 184 days ago | 7.26599894 ETH | ||||
18929513 | 184 days ago | 0.30939655 ETH | ||||
18840821 | 196 days ago | 3.52755457 ETH |
Loading...
Loading
Contract Name:
StrategyPETHConvex
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 300 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../../../utils/RateLib.sol"; import "../../../interfaces/ICurve.sol"; import "../../../interfaces/IWETH.sol"; import "../../../interfaces/I3CRVZap.sol"; import "../../../interfaces/IBooster.sol"; import "../../../interfaces/IBaseRewardPool.sol"; import "../../../interfaces/IPETHVaultForDAO.sol"; import "../../../interfaces/IStrategy.sol"; /// @title JPEG'd PEWTH Convex autocompounding strategy /// @notice This strategy autocompounds Convex rewards from the PETH/ETH Curve pool. /// @dev The strategy deposits either ETH or PETH in the Curve pool depending on which one has lower liquidity. /// The strategy sells reward tokens for ETH. If the pool has less PETH than ETH, this contract uses the /// ETH to mint PETH contract StrategyPETHConvex is AccessControl, IStrategy { using SafeERC20 for IERC20; using SafeERC20 for ICurve; using RateLib for RateLib.Rate; error ZeroAddress(); event Harvested(uint256 wantEarned); bytes32 public constant STRATEGIST_ROLE = keccak256("STRATEGIST_ROLE"); bytes32 public constant VAULT_ROLE = keccak256("VAULT_ROLE"); ICurve public immutable WANT; IWETH public immutable WETH; IERC20 public immutable CVX; IERC20 public immutable CRV; ICurve public immutable CVX_ETH; ICurve public immutable CRV_ETH; IBooster public immutable CVX_BOOSTER; IBaseRewardPool public immutable REWARD_POOL; uint256 public immutable CVX_PETH_PID; address public feeRecipient; /// @notice The performance fee to be sent to the DAO/strategists RateLib.Rate public performanceFee; /// @notice lifetime strategy earnings denominated in `want` token uint256 public earned; constructor( address _want, address _weth, address _cvx, address _crv, address _cvxETH, address _crvETH, address _booster, address _rewardPool, uint256 _pid, address _feeAddress, RateLib.Rate memory _performanceFee ) { if ( _want == address(0) || _weth == address(0) || _cvx == address(0) || _crv == address(0) || _cvxETH == address(0) || _crvETH == address(0) || _booster == address(0) || _rewardPool == address(0) || _feeAddress == address(0) ) revert ZeroAddress(); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); setFeeRecipient(_feeAddress); setPerformanceFee(_performanceFee); WANT = ICurve(_want); WETH = IWETH(_weth); CVX = IERC20(_cvx); CRV = IERC20(_crv); CVX_ETH = ICurve(_cvxETH); CRV_ETH = ICurve(_crvETH); CVX_BOOSTER = IBooster(_booster); REWARD_POOL = IBaseRewardPool(_rewardPool); CVX_PETH_PID = _pid; IERC20(_want).safeApprove(_booster, type(uint256).max); IERC20(_weth).safeApprove(_want, type(uint256).max); IERC20(_cvx).safeApprove(_cvxETH, type(uint256).max); IERC20(_crv).safeApprove(_crvETH, type(uint256).max); } receive() external payable {} /// @notice Allows the DAO to set the performance fee /// @param _performanceFee The new performance fee function setPerformanceFee( RateLib.Rate memory _performanceFee ) public onlyRole(DEFAULT_ADMIN_ROLE) { if (!_performanceFee.isValid() || !_performanceFee.isBelowOne()) revert RateLib.InvalidRate(); performanceFee = _performanceFee; } function setFeeRecipient( address _newRecipient ) public onlyRole(DEFAULT_ADMIN_ROLE) { if (_newRecipient == address(0)) revert ZeroAddress(); feeRecipient = _newRecipient; } /// @return The amount of `want` tokens held by this contract function heldAssets() public view returns (uint256) { return WANT.balanceOf(address(this)); } /// @return The amount of `want` tokens deposited in the Convex pool by this contract function depositedAssets() public view returns (uint256) { return REWARD_POOL.balanceOf(address(this)); } /// @return The total amount of `want` tokens this contract manages (held + deposited) function totalAssets() external view override returns (uint256) { return heldAssets() + depositedAssets(); } /// @notice Allows anyone to deposit the total amount of `want` tokens in this contract into Convex function deposit() public override { CVX_BOOSTER.depositAll(CVX_PETH_PID, true); } /// @notice Controller only function that allows to withdraw non-strategy tokens (e.g tokens sent accidentally). /// CVX and CRV can be withdrawn with this function. function withdraw( address _to, address _asset ) external override onlyRole(STRATEGIST_ROLE) { if (_to == address(0)) revert ZeroAddress(); if (_asset == address(WANT)) revert(); uint256 _balance = IERC20(_asset).balanceOf(address(this)); IERC20(_asset).safeTransfer(_to, _balance); } /// @notice Allows the controller to withdraw `want` tokens. Normally used with a vault withdrawal /// @param _to The address to send the tokens to /// @param _amount The amount of `want` tokens to withdraw function withdraw( address _to, uint256 _amount ) external override onlyRole(VAULT_ROLE) { uint256 _balance = WANT.balanceOf(address(this)); //if the contract doesn't have enough want, withdraw from Convex if (_balance < _amount) { unchecked { REWARD_POOL.withdrawAndUnwrap(_amount - _balance, false); } } WANT.safeTransfer(_to, _amount); } /// @notice Allows the controller to withdraw all `want` tokens. Normally used when migrating strategies function withdrawAll() external override onlyRole(VAULT_ROLE) { REWARD_POOL.withdrawAllAndUnwrap(true); uint256 _balance = WANT.balanceOf(address(this)); WANT.safeTransfer(msg.sender, _balance); } /// @notice Allows members of the `STRATEGIST_ROLE` to compound Convex rewards into Curve /// @param _minOutCurve The minimum amount of `want` tokens to receive function harvest(uint256 _minOutCurve) external onlyRole(STRATEGIST_ROLE) { REWARD_POOL.getReward(address(this), true); //Prevent `Stack too deep` errors { uint256 _cvxBalance = CVX.balanceOf(address(this)); if (_cvxBalance > 0) //minOut is not needed here, we already have it on the Curve deposit CVX_ETH.exchange(1, 0, _cvxBalance, 0, true); uint256 _crvBalance = CRV.balanceOf(address(this)); if (_crvBalance > 0) //minOut is not needed here, we already have it on the Curve deposit CRV_ETH.exchange(2, 1, _crvBalance, 0, true); if (address(this).balance == 0) revert(); } //take the performance fee uint256 _fee = (address(this).balance * performanceFee.numerator) / performanceFee.denominator; (bool _success, bytes memory _result) = feeRecipient.call{ value: _fee }(""); if (!_success) { assembly { revert(add(_result, 32), mload(_result)) } } uint256 _ethAmount = address(this).balance; WETH.deposit{ value: _ethAmount }(); WANT.add_liquidity([_ethAmount, 0], _minOutCurve); uint256 _wantBalance = heldAssets(); deposit(); earned += _wantBalance; emit Harvested(_wantBalance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @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 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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"); (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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; interface I3CRVZap { function add_liquidity( address _pool, uint256[4] calldata _deposit_amounts, uint256 _min_mint_amount ) external returns (uint256); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; interface IBaseRewardPool { function withdrawAndUnwrap( uint256 amount, bool claim ) external returns (bool); function withdrawAllAndUnwrap(bool claim) external; function getReward( address _account, bool _claimExtras ) external returns (bool); function donate(uint256 _amount) external returns (bool); function balanceOf(address) external view returns (uint256); function extraRewards(uint256) external view returns (address); function extraRewardsLength() external view returns (uint256); function rewardToken() external view returns (address); function earned(address account) external view returns (uint256); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; interface IBooster { function depositAll(uint256 _pid, bool _stake) external returns (bool); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface ICurve is IERC20 { function balances(uint256 index) external view returns (uint256); function exchange( uint256 i, uint256 j, uint256 _dx, uint256 _min_dy ) external payable returns (uint256); function exchange( uint256 i, uint256 j, uint256 _dx, uint256 _min_dy, bool use_eth ) external payable returns (uint256); function add_liquidity( uint256[2] calldata _amounts, uint256 _min_mint_amount ) external returns (uint256); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; interface IPETHVaultForDAO { function deposit() external payable; function borrow(uint256 amount) external; function repay(uint256 amount) external; function withdraw(uint256 amount) external; }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; interface IStrategy { function deposit() external; function withdraw(address _to, address _asset) external; function withdraw(address _to, uint256 _amount) external; function withdrawAll() external; function totalAssets() external view returns (uint256); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IWETH is IERC20 { function deposit() external payable; function withdraw(uint wad) external; }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; library RateLib { error InvalidRate(); struct Rate { uint128 numerator; uint128 denominator; } function isValid(Rate memory _rate) internal pure returns (bool) { return _rate.denominator != 0; } function isZero(Rate memory _rate) internal pure returns (bool) { return _rate.numerator == 0; } function isAboveOne(Rate memory _rate) internal pure returns (bool) { return _rate.numerator > _rate.denominator; } function isBelowOne(Rate memory _rate) internal pure returns (bool) { return _rate.denominator > _rate.numerator; } function isOne(Rate memory _rate) internal pure returns (bool) { return _rate.numerator == _rate.denominator; } function greaterThan( Rate memory _r1, Rate memory _r2 ) internal pure returns (bool) { return _r1.numerator * _r2.denominator > _r2.numerator * _r1.denominator; } function sum( Rate memory _r1, Rate memory _r2 ) internal pure returns (Rate memory) { return Rate({ numerator: _r1.numerator * _r2.denominator + _r1.denominator * _r2.numerator, denominator: _r1.denominator * _r2.denominator }); } function calculate( Rate memory _rate, uint256 _num ) internal pure returns (uint256) { return (_num * _rate.numerator) / _rate.denominator; } }
{ "optimizer": { "enabled": true, "runs": 300 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_cvx","type":"address"},{"internalType":"address","name":"_crv","type":"address"},{"internalType":"address","name":"_cvxETH","type":"address"},{"internalType":"address","name":"_crvETH","type":"address"},{"internalType":"address","name":"_booster","type":"address"},{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_feeAddress","type":"address"},{"components":[{"internalType":"uint128","name":"numerator","type":"uint128"},{"internalType":"uint128","name":"denominator","type":"uint128"}],"internalType":"struct RateLib.Rate","name":"_performanceFee","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidRate","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"wantEarned","type":"uint256"}],"name":"Harvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"CRV","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CRV_ETH","outputs":[{"internalType":"contract ICurve","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVX","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVX_BOOSTER","outputs":[{"internalType":"contract IBooster","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVX_ETH","outputs":[{"internalType":"contract ICurve","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CVX_PETH_PID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_POOL","outputs":[{"internalType":"contract IBaseRewardPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STRATEGIST_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WANT","outputs":[{"internalType":"contract ICurve","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minOutCurve","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"heldAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint128","name":"numerator","type":"uint128"},{"internalType":"uint128","name":"denominator","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint128","name":"numerator","type":"uint128"},{"internalType":"uint128","name":"denominator","type":"uint128"}],"internalType":"struct RateLib.Rate","name":"_performanceFee","type":"tuple"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_asset","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101a06040523480156200001257600080fd5b5060405162002e1138038062002e11833981016040819052620000359162000a73565b6001600160a01b038b1615806200005357506001600160a01b038a16155b806200006657506001600160a01b038916155b806200007957506001600160a01b038816155b806200008c57506001600160a01b038716155b806200009f57506001600160a01b038616155b80620000b257506001600160a01b038516155b80620000c557506001600160a01b038416155b80620000d857506001600160a01b038216155b15620000f75760405163d92e233d60e01b815260040160405180910390fd5b620001046000336200021a565b6200010f826200022a565b6200011a8162000283565b60608b811b6001600160601b03199081166080528b821b811660a0528a821b811660c05289821b811660e05288821b81166101005287821b81166101205286821b8116610140529085901b1661016052610180839052620001946001600160a01b038c168660001962000308602090811b6200149e17901c565b620001bb8b6000198c6001600160a01b03166200030860201b6200149e179092919060201c565b620001e2876000198b6001600160a01b03166200030860201b6200149e179092919060201c565b62000209866000198a6001600160a01b03166200030860201b6200149e179092919060201c565b505050505050505050505062000d52565b6200022682826200046b565b5050565b60006200023881336200050b565b6001600160a01b038216620002605760405163d92e233d60e01b815260040160405180910390fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006200029181336200050b565b620002a782620005a660201b620015fc1760201c565b1580620002c75750620002c582620005b860201b6200160e1760201c565b155b15620002e657604051636a43f8d160e01b815260040160405180910390fd5b5080516020909101516001600160801b03908116600160801b02911617600255565b801580620003965750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156200035957600080fd5b505afa1580156200036e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000394919062000bcd565b155b6200040e5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b1790915262000466918591620005d116565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000226576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620004c73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620002265762000555816001600160a01b03166014620006af60201b620016271760201c565b6200056b83602062001627620006af821b17811c565b6040516020016200057e92919062000c04565b60408051601f198184030181529082905262461bcd60e51b8252620004059160040162000c7d565b602001516001600160801b0316151590565b80516020909101516001600160801b0391821691161190565b60006200062d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620008ab60201b62001810179092919060201c565b8051909150156200046657808060200190518101906200064e919062000bab565b620004665760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000405565b60606000620006c083600262000ccd565b620006cd90600262000cb2565b6001600160401b03811115620006f357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156200071e576020820181803683370190505b509050600360fc1b816000815181106200074857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200078657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000620007ac84600262000ccd565b620007b990600162000cb2565b90505b600181111562000853576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620007fd57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106200082257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936200084b8162000d22565b9050620007bc565b508315620008a45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000405565b9392505050565b6060620008bc8484600085620008c4565b949350505050565b606082471015620009275760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000405565b6001600160a01b0385163b620009805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000405565b600080866001600160a01b031685876040516200099e919062000be6565b60006040518083038185875af1925050503d8060008114620009dd576040519150601f19603f3d011682016040523d82523d6000602084013e620009e2565b606091505b509092509050620009f582828662000a00565b979650505050505050565b6060831562000a11575081620008a4565b82511562000a225782518084602001fd5b8160405162461bcd60e51b815260040162000405919062000c7d565b80516001600160a01b038116811462000a5657600080fd5b919050565b80516001600160801b038116811462000a5657600080fd5b60008060008060008060008060008060008b8d0361018081121562000a96578788fd5b62000aa18d62000a3e565b9b5062000ab160208e0162000a3e565b9a5062000ac160408e0162000a3e565b995062000ad160608e0162000a3e565b985062000ae160808e0162000a3e565b975062000af160a08e0162000a3e565b965062000b0160c08e0162000a3e565b955062000b1160e08e0162000a3e565b94506101008d0151935062000b2a6101208e0162000a3e565b9250604061013f198201121562000b3f578182fd5b50604080519081016001600160401b038111828210171562000b6f57634e487b7160e01b83526041600452602483fd5b60405262000b816101408e0162000a5b565b815262000b926101608e0162000a5b565b6020820152809150509295989b509295989b9093969950565b60006020828403121562000bbd578081fd5b81518015158114620008a4578182fd5b60006020828403121562000bdf578081fd5b5051919050565b6000825162000bfa81846020870162000cef565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000c3e81601785016020880162000cef565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000c7181602884016020880162000cef565b01602801949350505050565b602081526000825180602084015262000c9e81604085016020870162000cef565b601f01601f19169190910160400192915050565b6000821982111562000cc85762000cc862000d3c565b500190565b600081600019048311821515161562000cea5762000cea62000d3c565b500290565b60005b8381101562000d0c57818101518382015260200162000cf2565b8381111562000d1c576000848401525b50505050565b60008162000d345762000d3462000d3c565b506000190190565b634e487b7160e01b600052601160045260246000fd5b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6101405160601c6101605160601c61018051611fb862000e59600039600081816102520152610ae0015260008181610502015281816108d601528181610a2201528181610c0101526112bd0152600081816102860152610b0d0152600081816106b20152610eb40152600081816103ad0152610d5a01526000818161049a0152610df80152600081816103790152610c9e01526000818161059f0152610fe30152600081816106080152818161076401528181610951015281816109e30152818161107b015281816112130152818161135001526113d10152611fb86000f3fe6080604052600436106101dc5760003560e01c8063945c914211610102578063d547741f11610095578063e74b981b11610064578063e74b981b14610660578063f3fef3a314610680578063f475a9d8146106a0578063f940e385146106d457600080fd5b8063d547741f146105d6578063d5fdfae6146105f6578063d6f192621461062a578063ddc632621461064057600080fd5b8063a378a324116100d1578063a378a32414610539578063a85658db1461056d578063ad5c46481461058d578063d0e30db0146105c157600080fd5b8063945c91421461048857806398c4f1ac146104bc57806399f91c28146104f0578063a217fddf1461052457600080fd5b806336568abe1161017a578063853828b611610149578063853828b6146103cf578063861b3030146103e457806387788782146103f957806391d148541461044457600080fd5b806336568abe146103275780634690484014610347578063759cb53b1461036757806380dbd9031461039b57600080fd5b80631fdde5c3116101b65780631fdde5c314610274578063248a9ca3146102c0578063257c5908146102f05780632f2ff15d1461030557600080fd5b806301e1d114146101e857806301ffc9a71461021057806313b9e04a1461024057600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506101fd6106f4565b6040519081526020015b60405180910390f35b34801561021c57600080fd5b5061023061022b366004611d30565b610715565b6040519015158152602001610207565b34801561024c57600080fd5b506101fd7f000000000000000000000000000000000000000000000000000000000000000081565b34801561028057600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610207565b3480156102cc57600080fd5b506101fd6102db366004611cf6565b60009081526020819052604090206001015490565b3480156102fc57600080fd5b506101fd61074c565b34801561031157600080fd5b50610325610320366004611d0e565b6107e7565b005b34801561033357600080fd5b50610325610342366004611d0e565b610812565b34801561035357600080fd5b506001546102a8906001600160a01b031681565b34801561037357600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b3480156103a757600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b3480156103db57600080fd5b50610325610895565b3480156103f057600080fd5b506101fd610a0a565b34801561040557600080fd5b50600254610424906001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610207565b34801561045057600080fd5b5061023061045f366004611d0e565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561049457600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c857600080fd5b506101fd7f31e0210044b4f6757ce6aa31f9c6e8d4896d24a755014887391a926c5224d95981565b3480156104fc57600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b34801561053057600080fd5b506101fd600081565b34801561054557600080fd5b506101fd7f17a8e30262c1f919c33056d877a3c22b95c2f5e4dac44683c1c2323cd79fbdb081565b34801561057957600080fd5b50610325610588366004611d58565b610a59565b34801561059957600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105cd57600080fd5b50610325610ad1565b3480156105e257600080fd5b506103256105f1366004611d0e565b610b94565b34801561060257600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b34801561063657600080fd5b506101fd60035481565b34801561064c57600080fd5b5061032561065b366004611cf6565b610bba565b34801561066c57600080fd5b5061032561067b366004611c61565b61116d565b34801561068c57600080fd5b5061032561069b366004611cad565b6111d0565b3480156106ac57600080fd5b506102a87f000000000000000000000000000000000000000000000000000000000000000081565b3480156106e057600080fd5b506103256106ef366004611c7b565b61137d565b60006106fe610a0a565b61070661074c565b6107109190611ed2565b905090565b60006001600160e01b03198216637965db0b60e01b148061074657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a08231906024015b60206040518083038186803b1580156107af57600080fd5b505afa1580156107c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107109190611dbe565b6000828152602081905260409020600101546108038133611827565b61080d83836118a5565b505050565b6001600160a01b03811633146108875760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108918282611943565b5050565b7f31e0210044b4f6757ce6aa31f9c6e8d4896d24a755014887391a926c5224d9596108c08133611827565b6040516324f81cd160e11b8152600160048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906349f039a290602401600060405180830381600087803b15801561092257600080fd5b505af1158015610936573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a082319060240160206040518083038186803b15801561099c57600080fd5b505afa1580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d49190611dbe565b90506108916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633836119c2565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401610797565b6000610a658133611827565b60208201516001600160801b03161580610a915750815160208301516001600160801b03918216911611155b15610aaf57604051636a43f8d160e01b815260040160405180910390fd5b5080516020909101516001600160801b03908116600160801b02911617600255565b60405163303acfe760e11b81527f00000000000000000000000000000000000000000000000000000000000000006004820152600160248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906360759fce90604401602060405180830381600087803b158015610b5957600080fd5b505af1158015610b6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b919190611cd6565b50565b600082815260208190526040902060010154610bb08133611827565b61080d8383611943565b7f17a8e30262c1f919c33056d877a3c22b95c2f5e4dac44683c1c2323cd79fbdb0610be58133611827565b604051637050ccd960e01b8152306004820152600160248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637050ccd990604401602060405180830381600087803b158015610c4d57600080fd5b505af1158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190611cd6565b506040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610ce857600080fd5b505afa158015610cfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d209190611dbe565b90508015610de05760405163394747c560e01b815260016004820181905260006024830181905260448301849052606483015260848201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063394747c59060a401602060405180830381600087803b158015610da657600080fd5b505af1158015610dba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dde9190611dbe565b505b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610e4257600080fd5b505afa158015610e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7a9190611dbe565b90508015610f3a5760405163394747c560e01b815260026004820152600160248201819052604482018390526000606483015260848201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063394747c59060a401602060405180830381600087803b158015610f0057600080fd5b505af1158015610f14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f389190611dbe565b505b47610f4457600080fd5b50506002546000906001600160801b03600160801b8204811691610f69911647611f0a565b610f739190611eea565b60015460405191925060009182916001600160a01b03169084908381818185875af1925050503d8060008114610fc5576040519150601f19603f3d011682016040523d82523d6000602084013e610fca565b606091505b509150915081610fdc57805160208201fd5b60004790507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561103c57600080fd5b505af1158015611050573d6000803e3d6000fd5b5050604080518082018252858152600060208201529051630b4c7e4d60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169450630b4c7e4d93506110b392508a90600401611e67565b602060405180830381600087803b1580156110cd57600080fd5b505af11580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111059190611dbe565b50600061111061074c565b905061111a610ad1565b806003600082825461112c9190611ed2565b90915550506040518181527f8e55ccfc9778ff8eba1646d765cf1982537ce0f9257054a17b48aad7452501839060200160405180910390a150505050505050565b60006111798133611827565b6001600160a01b0382166111a05760405163d92e233d60e01b815260040160405180910390fd5b506001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b7f31e0210044b4f6757ce6aa31f9c6e8d4896d24a755014887391a926c5224d9596111fb8133611827565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561125d57600080fd5b505afa158015611271573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112959190611dbe565b90508281101561134357604051636197390160e11b81528184036004820152600060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063c32e720290604401602060405180830381600087803b15801561130957600080fd5b505af115801561131d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113419190611cd6565b505b6113776001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685856119c2565b50505050565b7f17a8e30262c1f919c33056d877a3c22b95c2f5e4dac44683c1c2323cd79fbdb06113a88133611827565b6001600160a01b0383166113cf5760405163d92e233d60e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561140e57600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561145057600080fd5b505afa158015611464573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114889190611dbe565b90506113776001600160a01b03841685836119c2565b8015806115275750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156114ed57600080fd5b505afa158015611501573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115259190611dbe565b155b6115995760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161087e565b6040516001600160a01b03831660248201526044810182905261080d90849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526119f2565b602001516001600160801b0316151590565b80516020909101516001600160801b0391821691161190565b60606000611636836002611f0a565b611641906002611ed2565b67ffffffffffffffff81111561166757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611691576020820181803683370190505b509050600360fc1b816000815181106116ba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106116f757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061171b846002611f0a565b611726906001611ed2565b90505b60018111156117ba576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061176857634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061178c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936117b381611f55565b9050611729565b5083156118095760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161087e565b9392505050565b606061181f8484600085611ac4565b949350505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661089157611863816001600160a01b03166014611627565b61186e836020611627565b60405160200161187f929190611df2565b60408051601f198184030181529082905262461bcd60e51b825261087e91600401611e9f565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610891576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556118ff3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610891576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b03831660248201526044810182905261080d90849063a9059cbb60e01b906064016115c5565b6000611a47826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118109092919063ffffffff16565b80519091501561080d5780806020019051810190611a659190611cd6565b61080d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161087e565b606082471015611b255760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161087e565b6001600160a01b0385163b611b7c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161087e565b600080866001600160a01b03168587604051611b989190611dd6565b60006040518083038185875af1925050503d8060008114611bd5576040519150601f19603f3d011682016040523d82523d6000602084013e611bda565b606091505b5091509150611bea828286611bf5565b979650505050505050565b60608315611c04575081611809565b825115611c145782518084602001fd5b8160405162461bcd60e51b815260040161087e9190611e9f565b80356001600160a01b0381168114611c4557600080fd5b919050565b80356001600160801b0381168114611c4557600080fd5b600060208284031215611c72578081fd5b61180982611c2e565b60008060408385031215611c8d578081fd5b611c9683611c2e565b9150611ca460208401611c2e565b90509250929050565b60008060408385031215611cbf578182fd5b611cc883611c2e565b946020939093013593505050565b600060208284031215611ce7578081fd5b81518015158114611809578182fd5b600060208284031215611d07578081fd5b5035919050565b60008060408385031215611d20578182fd5b82359150611ca460208401611c2e565b600060208284031215611d41578081fd5b81356001600160e01b031981168114611809578182fd5b600060408284031215611d69578081fd5b6040516040810181811067ffffffffffffffff82111715611d9857634e487b7160e01b83526041600452602483fd5b604052611da483611c4a565b8152611db260208401611c4a565b60208201529392505050565b600060208284031215611dcf578081fd5b5051919050565b60008251611de8818460208701611f29565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611e2a816017850160208801611f29565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611e5b816028840160208801611f29565b01602801949350505050565b60608101818460005b6002811015611e8f578151835260209283019290910190600101611e70565b5050508260408301529392505050565b6020815260008251806020840152611ebe816040850160208701611f29565b601f01601f19169190910160400192915050565b60008219821115611ee557611ee5611f6c565b500190565b600082611f0557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f2457611f24611f6c565b500290565b60005b83811015611f44578181015183820152602001611f2c565b838111156113775750506000910152565b600081611f6457611f64611f6c565b506000190190565b634e487b7160e01b600052601160045260246000fdfea26469706673582212201f97a0db569a42210fc298c27d9296445b44000b2761915794770a0a12a221be64736f6c634300080400330000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000b576491f1e6e5e62f1d8f26062ee822b40b0e0d40000000000000000000000004ebdf703948ddcea3b11f675b4d1fba9d2414a14000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae310000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c00000000000000000000000000000000000000000000000000000000000000df000000000000000000000000d2436479caa12aaaeafef89081a5967f602fcaa300000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000064
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c8063945c914211610102578063d547741f11610095578063e74b981b11610064578063e74b981b14610660578063f3fef3a314610680578063f475a9d8146106a0578063f940e385146106d457600080fd5b8063d547741f146105d6578063d5fdfae6146105f6578063d6f192621461062a578063ddc632621461064057600080fd5b8063a378a324116100d1578063a378a32414610539578063a85658db1461056d578063ad5c46481461058d578063d0e30db0146105c157600080fd5b8063945c91421461048857806398c4f1ac146104bc57806399f91c28146104f0578063a217fddf1461052457600080fd5b806336568abe1161017a578063853828b611610149578063853828b6146103cf578063861b3030146103e457806387788782146103f957806391d148541461044457600080fd5b806336568abe146103275780634690484014610347578063759cb53b1461036757806380dbd9031461039b57600080fd5b80631fdde5c3116101b65780631fdde5c314610274578063248a9ca3146102c0578063257c5908146102f05780632f2ff15d1461030557600080fd5b806301e1d114146101e857806301ffc9a71461021057806313b9e04a1461024057600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506101fd6106f4565b6040519081526020015b60405180910390f35b34801561021c57600080fd5b5061023061022b366004611d30565b610715565b6040519015158152602001610207565b34801561024c57600080fd5b506101fd7f00000000000000000000000000000000000000000000000000000000000000df81565b34801561028057600080fd5b506102a87f000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae3181565b6040516001600160a01b039091168152602001610207565b3480156102cc57600080fd5b506101fd6102db366004611cf6565b60009081526020819052604090206001015490565b3480156102fc57600080fd5b506101fd61074c565b34801561031157600080fd5b50610325610320366004611d0e565b6107e7565b005b34801561033357600080fd5b50610325610342366004611d0e565b610812565b34801561035357600080fd5b506001546102a8906001600160a01b031681565b34801561037357600080fd5b506102a87f0000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b3480156103a757600080fd5b506102a87f000000000000000000000000b576491f1e6e5e62f1d8f26062ee822b40b0e0d481565b3480156103db57600080fd5b50610325610895565b3480156103f057600080fd5b506101fd610a0a565b34801561040557600080fd5b50600254610424906001600160801b0380821691600160801b90041682565b604080516001600160801b03938416815292909116602083015201610207565b34801561045057600080fd5b5061023061045f366004611d0e565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561049457600080fd5b506102a87f000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd5281565b3480156104c857600080fd5b506101fd7f31e0210044b4f6757ce6aa31f9c6e8d4896d24a755014887391a926c5224d95981565b3480156104fc57600080fd5b506102a87f0000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c81565b34801561053057600080fd5b506101fd600081565b34801561054557600080fd5b506101fd7f17a8e30262c1f919c33056d877a3c22b95c2f5e4dac44683c1c2323cd79fbdb081565b34801561057957600080fd5b50610325610588366004611d58565b610a59565b34801561059957600080fd5b506102a87f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3480156105cd57600080fd5b50610325610ad1565b3480156105e257600080fd5b506103256105f1366004611d0e565b610b94565b34801561060257600080fd5b506102a87f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b81565b34801561063657600080fd5b506101fd60035481565b34801561064c57600080fd5b5061032561065b366004611cf6565b610bba565b34801561066c57600080fd5b5061032561067b366004611c61565b61116d565b34801561068c57600080fd5b5061032561069b366004611cad565b6111d0565b3480156106ac57600080fd5b506102a87f0000000000000000000000004ebdf703948ddcea3b11f675b4d1fba9d2414a1481565b3480156106e057600080fd5b506103256106ef366004611c7b565b61137d565b60006106fe610a0a565b61070661074c565b6107109190611ed2565b905090565b60006001600160e01b03198216637965db0b60e01b148061074657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b6001600160a01b0316906370a08231906024015b60206040518083038186803b1580156107af57600080fd5b505afa1580156107c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107109190611dbe565b6000828152602081905260409020600101546108038133611827565b61080d83836118a5565b505050565b6001600160a01b03811633146108875760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6108918282611943565b5050565b7f31e0210044b4f6757ce6aa31f9c6e8d4896d24a755014887391a926c5224d9596108c08133611827565b6040516324f81cd160e11b8152600160048201527f0000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c6001600160a01b0316906349f039a290602401600060405180830381600087803b15801561092257600080fd5b505af1158015610936573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b6001600160a01b031691506370a082319060240160206040518083038186803b15801561099c57600080fd5b505afa1580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d49190611dbe565b90506108916001600160a01b037f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b1633836119c2565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c6001600160a01b0316906370a0823190602401610797565b6000610a658133611827565b60208201516001600160801b03161580610a915750815160208301516001600160801b03918216911611155b15610aaf57604051636a43f8d160e01b815260040160405180910390fd5b5080516020909101516001600160801b03908116600160801b02911617600255565b60405163303acfe760e11b81527f00000000000000000000000000000000000000000000000000000000000000df6004820152600160248201527f000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae316001600160a01b0316906360759fce90604401602060405180830381600087803b158015610b5957600080fd5b505af1158015610b6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b919190611cd6565b50565b600082815260208190526040902060010154610bb08133611827565b61080d8383611943565b7f17a8e30262c1f919c33056d877a3c22b95c2f5e4dac44683c1c2323cd79fbdb0610be58133611827565b604051637050ccd960e01b8152306004820152600160248201527f0000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c6001600160a01b031690637050ccd990604401602060405180830381600087803b158015610c4d57600080fd5b505af1158015610c61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c859190611cd6565b506040516370a0823160e01b81523060048201526000907f0000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6001600160a01b0316906370a082319060240160206040518083038186803b158015610ce857600080fd5b505afa158015610cfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d209190611dbe565b90508015610de05760405163394747c560e01b815260016004820181905260006024830181905260448301849052606483015260848201527f000000000000000000000000b576491f1e6e5e62f1d8f26062ee822b40b0e0d46001600160a01b03169063394747c59060a401602060405180830381600087803b158015610da657600080fd5b505af1158015610dba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dde9190611dbe565b505b6040516370a0823160e01b81523060048201526000907f000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd526001600160a01b0316906370a082319060240160206040518083038186803b158015610e4257600080fd5b505afa158015610e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7a9190611dbe565b90508015610f3a5760405163394747c560e01b815260026004820152600160248201819052604482018390526000606483015260848201527f0000000000000000000000004ebdf703948ddcea3b11f675b4d1fba9d2414a146001600160a01b03169063394747c59060a401602060405180830381600087803b158015610f0057600080fd5b505af1158015610f14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f389190611dbe565b505b47610f4457600080fd5b50506002546000906001600160801b03600160801b8204811691610f69911647611f0a565b610f739190611eea565b60015460405191925060009182916001600160a01b03169084908381818185875af1925050503d8060008114610fc5576040519150601f19603f3d011682016040523d82523d6000602084013e610fca565b606091505b509150915081610fdc57805160208201fd5b60004790507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561103c57600080fd5b505af1158015611050573d6000803e3d6000fd5b5050604080518082018252858152600060208201529051630b4c7e4d60e01b81526001600160a01b037f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b169450630b4c7e4d93506110b392508a90600401611e67565b602060405180830381600087803b1580156110cd57600080fd5b505af11580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111059190611dbe565b50600061111061074c565b905061111a610ad1565b806003600082825461112c9190611ed2565b90915550506040518181527f8e55ccfc9778ff8eba1646d765cf1982537ce0f9257054a17b48aad7452501839060200160405180910390a150505050505050565b60006111798133611827565b6001600160a01b0382166111a05760405163d92e233d60e01b815260040160405180910390fd5b506001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b7f31e0210044b4f6757ce6aa31f9c6e8d4896d24a755014887391a926c5224d9596111fb8133611827565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b6001600160a01b0316906370a082319060240160206040518083038186803b15801561125d57600080fd5b505afa158015611271573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112959190611dbe565b90508281101561134357604051636197390160e11b81528184036004820152600060248201527f0000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c6001600160a01b03169063c32e720290604401602060405180830381600087803b15801561130957600080fd5b505af115801561131d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113419190611cd6565b505b6113776001600160a01b037f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b1685856119c2565b50505050565b7f17a8e30262c1f919c33056d877a3c22b95c2f5e4dac44683c1c2323cd79fbdb06113a88133611827565b6001600160a01b0383166113cf5760405163d92e233d60e01b815260040160405180910390fd5b7f0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b6001600160a01b0316826001600160a01b0316141561140e57600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561145057600080fd5b505afa158015611464573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114889190611dbe565b90506113776001600160a01b03841685836119c2565b8015806115275750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156114ed57600080fd5b505afa158015611501573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115259190611dbe565b155b6115995760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161087e565b6040516001600160a01b03831660248201526044810182905261080d90849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526119f2565b602001516001600160801b0316151590565b80516020909101516001600160801b0391821691161190565b60606000611636836002611f0a565b611641906002611ed2565b67ffffffffffffffff81111561166757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611691576020820181803683370190505b509050600360fc1b816000815181106116ba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106116f757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061171b846002611f0a565b611726906001611ed2565b90505b60018111156117ba576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061176857634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061178c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936117b381611f55565b9050611729565b5083156118095760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161087e565b9392505050565b606061181f8484600085611ac4565b949350505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661089157611863816001600160a01b03166014611627565b61186e836020611627565b60405160200161187f929190611df2565b60408051601f198184030181529082905262461bcd60e51b825261087e91600401611e9f565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610891576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556118ff3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610891576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b03831660248201526044810182905261080d90849063a9059cbb60e01b906064016115c5565b6000611a47826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118109092919063ffffffff16565b80519091501561080d5780806020019051810190611a659190611cd6565b61080d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161087e565b606082471015611b255760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161087e565b6001600160a01b0385163b611b7c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161087e565b600080866001600160a01b03168587604051611b989190611dd6565b60006040518083038185875af1925050503d8060008114611bd5576040519150601f19603f3d011682016040523d82523d6000602084013e611bda565b606091505b5091509150611bea828286611bf5565b979650505050505050565b60608315611c04575081611809565b825115611c145782518084602001fd5b8160405162461bcd60e51b815260040161087e9190611e9f565b80356001600160a01b0381168114611c4557600080fd5b919050565b80356001600160801b0381168114611c4557600080fd5b600060208284031215611c72578081fd5b61180982611c2e565b60008060408385031215611c8d578081fd5b611c9683611c2e565b9150611ca460208401611c2e565b90509250929050565b60008060408385031215611cbf578182fd5b611cc883611c2e565b946020939093013593505050565b600060208284031215611ce7578081fd5b81518015158114611809578182fd5b600060208284031215611d07578081fd5b5035919050565b60008060408385031215611d20578182fd5b82359150611ca460208401611c2e565b600060208284031215611d41578081fd5b81356001600160e01b031981168114611809578182fd5b600060408284031215611d69578081fd5b6040516040810181811067ffffffffffffffff82111715611d9857634e487b7160e01b83526041600452602483fd5b604052611da483611c4a565b8152611db260208401611c4a565b60208201529392505050565b600060208284031215611dcf578081fd5b5051919050565b60008251611de8818460208701611f29565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611e2a816017850160208801611f29565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611e5b816028840160208801611f29565b01602801949350505050565b60608101818460005b6002811015611e8f578151835260209283019290910190600101611e70565b5050508260408301529392505050565b6020815260008251806020840152611ebe816040850160208701611f29565b601f01601f19169190910160400192915050565b60008219821115611ee557611ee5611f6c565b500190565b600082611f0557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f2457611f24611f6c565b500290565b60005b83811015611f44578181015183820152602001611f2c565b838111156113775750506000910152565b600081611f6457611f64611f6c565b506000190190565b634e487b7160e01b600052601160045260246000fdfea26469706673582212201f97a0db569a42210fc298c27d9296445b44000b2761915794770a0a12a221be64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52000000000000000000000000b576491f1e6e5e62f1d8f26062ee822b40b0e0d40000000000000000000000004ebdf703948ddcea3b11f675b4d1fba9d2414a14000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae310000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c00000000000000000000000000000000000000000000000000000000000000df000000000000000000000000d2436479caa12aaaeafef89081a5967f602fcaa300000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000064
-----Decoded View---------------
Arg [0] : _want (address): 0x1C5F80b6B68A9E1Ef25926EeE00b5255791b996B
Arg [1] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _cvx (address): 0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B
Arg [3] : _crv (address): 0xD533a949740bb3306d119CC777fa900bA034cd52
Arg [4] : _cvxETH (address): 0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4
Arg [5] : _crvETH (address): 0x4eBdF703948ddCEA3B11f675B4D1Fba9d2414A14
Arg [6] : _booster (address): 0xF403C135812408BFbE8713b5A23a04b3D48AAE31
Arg [7] : _rewardPool (address): 0x5A20643fc0c2c39aB28aFAC727f8A2cB6a1D616C
Arg [8] : _pid (uint256): 223
Arg [9] : _feeAddress (address): 0xd2436479caA12AaAeAFef89081a5967f602FcAa3
Arg [10] : _performanceFee (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000001c5f80b6b68a9e1ef25926eee00b5255791b996b
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 0000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b
Arg [3] : 000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52
Arg [4] : 000000000000000000000000b576491f1e6e5e62f1d8f26062ee822b40b0e0d4
Arg [5] : 0000000000000000000000004ebdf703948ddcea3b11f675b4d1fba9d2414a14
Arg [6] : 000000000000000000000000f403c135812408bfbe8713b5a23a04b3d48aae31
Arg [7] : 0000000000000000000000005a20643fc0c2c39ab28afac727f8a2cb6a1d616c
Arg [8] : 00000000000000000000000000000000000000000000000000000000000000df
Arg [9] : 000000000000000000000000d2436479caa12aaaeafef89081a5967f602fcaa3
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000064
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.