Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 622 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit From U C... | 21351443 | 16 days ago | IN | 0 ETH | 0.00956004 | ||||
Claim From Vault... | 21249302 | 30 days ago | IN | 0 ETH | 0.00654581 | ||||
Deposit From U C... | 20555391 | 127 days ago | IN | 0 ETH | 0.00142349 | ||||
Deposit From U C... | 20498932 | 135 days ago | IN | 0 ETH | 0.0007217 | ||||
Deposit From U C... | 20168333 | 181 days ago | IN | 0 ETH | 0.00191002 | ||||
Deposit From U C... | 20141285 | 185 days ago | IN | 0 ETH | 0.00469275 | ||||
Deposit From U C... | 20139413 | 185 days ago | IN | 0 ETH | 0.00308361 | ||||
Deposit From Crv | 20124289 | 187 days ago | IN | 0 ETH | 0.00011505 | ||||
Deposit From Crv | 20124286 | 187 days ago | IN | 0 ETH | 0.00207456 | ||||
Deposit From Crv | 20121758 | 188 days ago | IN | 0 ETH | 0.00293219 | ||||
Deposit From Crv | 20113969 | 189 days ago | IN | 0 ETH | 0.0042881 | ||||
Claim From Vault... | 20112036 | 189 days ago | IN | 0 ETH | 0.00909484 | ||||
Claim From Vault... | 20111752 | 189 days ago | IN | 0 ETH | 0.00554759 | ||||
Claim From Vault... | 20111674 | 189 days ago | IN | 0 ETH | 0.00462358 | ||||
Claim From Vault... | 20111661 | 189 days ago | IN | 0 ETH | 0.00367494 | ||||
Deposit From U C... | 20110773 | 189 days ago | IN | 0 ETH | 0.00371623 | ||||
Deposit From U C... | 20110763 | 189 days ago | IN | 0 ETH | 0.00352135 | ||||
Deposit From Crv | 20109596 | 189 days ago | IN | 0 ETH | 0.00151662 | ||||
Claim From Vault... | 20106185 | 190 days ago | IN | 0 ETH | 0.00229498 | ||||
Claim From Vault... | 20104959 | 190 days ago | IN | 0 ETH | 0.00367017 | ||||
Claim From Vault... | 20104405 | 190 days ago | IN | 0 ETH | 0.00208601 | ||||
Deposit From Crv | 20104338 | 190 days ago | IN | 0 ETH | 0.00190651 | ||||
Deposit From Crv | 20103512 | 190 days ago | IN | 0 ETH | 0.00219497 | ||||
Claim From Vault... | 20103144 | 190 days ago | IN | 0 ETH | 0.00192706 | ||||
Claim From Vault... | 20100691 | 191 days ago | IN | 0 ETH | 0.00188312 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20129471 | 187 days ago | 0.17156946 ETH | ||||
20129471 | 187 days ago | 0.17156946 ETH | ||||
20129307 | 187 days ago | 0.0155931 ETH | ||||
20129307 | 187 days ago | 0.0155931 ETH | ||||
20112036 | 189 days ago | 0.07130525 ETH | ||||
20112036 | 189 days ago | 0.07130525 ETH | ||||
20111752 | 189 days ago | 0.05046359 ETH | ||||
20111752 | 189 days ago | 0.05046359 ETH | ||||
20111674 | 189 days ago | 0.0229393 ETH | ||||
20111674 | 189 days ago | 0.0229393 ETH | ||||
20111661 | 189 days ago | 0.0229393 ETH | ||||
20111661 | 189 days ago | 0.0229393 ETH | ||||
20109622 | 189 days ago | 0.78966643 ETH | ||||
20109622 | 189 days ago | 0.78966643 ETH | ||||
20106185 | 190 days ago | 0.61729304 ETH | ||||
20106185 | 190 days ago | 0.61729304 ETH | ||||
20104959 | 190 days ago | 0.14733924 ETH | ||||
20104959 | 190 days ago | 0.14733924 ETH | ||||
20099391 | 191 days ago | 0.01761615 ETH | ||||
20099391 | 191 days ago | 0.01761615 ETH | ||||
20095623 | 191 days ago | 0.06519711 ETH | ||||
20095623 | 191 days ago | 0.06519711 ETH | ||||
20091271 | 192 days ago | 0.06184612 ETH | ||||
20091271 | 192 days ago | 0.06184612 ETH | ||||
20089819 | 192 days ago | 0.63258461 ETH |
Loading...
Loading
Contract Name:
stkCvxCrvZaps
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "SafeERC20.sol"; import "ERC20.sol"; import "IGenericVault.sol"; import "ICurveV2Pool.sol"; import "ICurveFactoryPool.sol"; import "ICurveTriCrypto.sol"; import "ICVXLocker.sol"; import "IUniV2Router.sol"; import "ITriPool.sol"; import "IBooster.sol"; import "IRewards.sol"; import "IUnionVault.sol"; import "ICurveTriCryptoFactoryNG.sol"; contract stkCvxCrvZaps { using SafeERC20 for IERC20; address public immutable vault; address private constant CONVEX_LOCKER = 0x72a19342e8F1838460eBFCCEf09F6585e32db86E; address private constant CVXCRV_STAKING_CONTRACT = 0x3Fe65692bfCD0e6CF84cB1E7d24108E434A7587e; address private constant CURVE_TRICRV_POOL = 0x4eBdF703948ddCEA3B11f675B4D1Fba9d2414A14; address private constant CURVE_CVX_ETH_POOL = 0xB576491F1E6e5E62f1d8F26062Ee822B40B0E0d4; address private constant CURVE_CVXCRV_CRV_POOL = 0x971add32Ea87f10bD192671630be3BE8A11b8623; address private constant CRV_TOKEN = 0xD533a949740bb3306d119CC777fa900bA034cd52; address private constant CVXCRV_TOKEN = 0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7; address private constant CVX_TOKEN = 0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B; address private constant UNION_CRV = 0x4eBaD8DbD4EdBd74DB0278714FbD67eBc76B89B7; address private constant WETH_TOKEN = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; address private constant USDT_TOKEN = 0xdAC17F958D2ee523a2206206994597C13D831ec7; address private constant TRICRYPTO = 0xD51a44d3FaE010294C616388b506AcdA1bfAAE46; address private constant TRIPOOL = 0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7; address private constant TRICRV = 0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490; address private constant BOOSTER = 0xF403C135812408BFbE8713b5A23a04b3D48AAE31; address private constant CONVEX_TRIPOOL_TOKEN = 0x30D9410ED1D5DA1F6C8391af5338C93ab8d4035C; address private constant CONVEX_TRIPOOL_REWARDS = 0x689440f2Ff927E1f24c72F1087E1FAF471eCe1c8; uint256 private constant TRICRV_ETH_INDEX = 1; uint256 private constant TRICRV_CRV_INDEX = 2; int128 private constant CVXCRV_CRV_INDEX = 0; int128 private constant CVXCRV_CVXCRV_INDEX = 1; uint256 private constant CVXETH_ETH_INDEX = 0; uint256 private constant CVXETH_CVX_INDEX = 1; ICurveV2Pool cvxEthSwap = ICurveV2Pool(CURVE_CVX_ETH_POOL); ICurveTriCryptoFactoryNG crvEthSwap = ICurveTriCryptoFactoryNG(CURVE_TRICRV_POOL); ITriPool triPool = ITriPool(TRIPOOL); IBooster booster = IBooster(BOOSTER); IRewards triPoolRewards = IRewards(CONVEX_TRIPOOL_REWARDS); ICurveFactoryPool crvCvxCrvSwap = ICurveFactoryPool(CURVE_CVXCRV_CRV_POOL); ICurveTriCrypto triCryptoSwap = ICurveTriCrypto(TRICRYPTO); ICVXLocker locker = ICVXLocker(CONVEX_LOCKER); constructor(address _vault) { vault = _vault; } /// @notice Set approvals for the contracts used when swapping & staking function setApprovals() external { IERC20(CVXCRV_TOKEN).safeApprove(CVXCRV_STAKING_CONTRACT, 0); IERC20(CVXCRV_TOKEN).safeApprove( CVXCRV_STAKING_CONTRACT, type(uint256).max ); IERC20(CVXCRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 0); IERC20(CVXCRV_TOKEN).safeApprove( CURVE_CVXCRV_CRV_POOL, type(uint256).max ); IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, 0); IERC20(CRV_TOKEN).safeApprove(CURVE_CVXCRV_CRV_POOL, type(uint256).max); IERC20(TRICRV).safeApprove(BOOSTER, 0); IERC20(TRICRV).safeApprove(BOOSTER, type(uint256).max); IERC20(USDT_TOKEN).safeApprove(TRIPOOL, 0); IERC20(USDT_TOKEN).safeApprove(TRIPOOL, type(uint256).max); IERC20(CONVEX_TRIPOOL_TOKEN).safeApprove(CONVEX_TRIPOOL_REWARDS, 0); IERC20(CONVEX_TRIPOOL_TOKEN).safeApprove( CONVEX_TRIPOOL_REWARDS, type(uint256).max ); IERC20(CVXCRV_TOKEN).safeApprove(vault, 0); IERC20(CVXCRV_TOKEN).safeApprove(vault, type(uint256).max); IERC20(CVX_TOKEN).safeApprove(CONVEX_LOCKER, 0); IERC20(CVX_TOKEN).safeApprove(CONVEX_LOCKER, type(uint256).max); IERC20(CRV_TOKEN).safeApprove(CURVE_TRICRV_POOL, 0); IERC20(CRV_TOKEN).safeApprove(CURVE_TRICRV_POOL, type(uint256).max); } /// @notice Swap CRV for cvxCRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _crvToCvxCrv( uint256 amount, address recipient, uint256 minAmountOut ) internal returns (uint256) { return crvCvxCrvSwap.exchange( CVXCRV_CRV_INDEX, CVXCRV_CVXCRV_INDEX, amount, minAmountOut, recipient ); } /// @notice Swap cvxCRV for CRV on Curve /// @param amount - amount to swap /// @param recipient - where swapped tokens will be sent to /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _cvxCrvToCrv( uint256 amount, address recipient, uint256 minAmountOut ) internal returns (uint256) { return crvCvxCrvSwap.exchange( CVXCRV_CVXCRV_INDEX, CVXCRV_CRV_INDEX, amount, minAmountOut, recipient ); } /// @notice Swap CRV for native ETH on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of ETH obtained after the swap function _crvToEth(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return crvEthSwap.exchange{value: 0}( TRICRV_CRV_INDEX, TRICRV_ETH_INDEX, amount, minAmountOut, true ); } /// @notice Swap native ETH for CRV on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _ethToCrv(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return crvEthSwap.exchange{value: amount}( TRICRV_ETH_INDEX, TRICRV_CRV_INDEX, amount, minAmountOut, true ); } /// @notice Swap native ETH for CVX on Curve /// @param amount - amount to swap /// @param minAmountOut - minimum expected amount of output tokens /// @return amount of CRV obtained after the swap function _ethToCvx(uint256 amount, uint256 minAmountOut) internal returns (uint256) { return cvxEthSwap.exchange_underlying{value: amount}( CVXETH_ETH_INDEX, CVXETH_CVX_INDEX, amount, minAmountOut ); } ///////////////////////////////////////////////////////////// /// @notice Deposit into the pounder from ETH /// @param minAmountOut - min amount of lp tokens expected /// @param to - address to stake on behalf of function depositFromEth(uint256 minAmountOut, address to) external payable notToZeroAddress(to) { require(msg.value > 0, "cheap"); _depositFromEth(msg.value, minAmountOut, to); } /// @notice Internal function to deposit ETH to the pounder /// @param amount - amount of ETH /// @param minAmountOut - min amount of lp tokens expected /// @param to - address to stake on behalf of function _depositFromEth( uint256 amount, uint256 minAmountOut, address to ) internal { uint256 _crvAmount = _ethToCrv(amount, 0); _crvToCvxCrv(_crvAmount, address(this), minAmountOut); IGenericVault(vault).depositAll(to); } /// @notice Deposit into the pounder from CRV /// @param amount - amount of CRV /// @param minAmountOut - min amount of cvxCRV expected /// @param to - address to stake on behalf of function depositFromCrv( uint256 amount, uint256 minAmountOut, address to ) external notToZeroAddress(to) { IERC20(CRV_TOKEN).safeTransferFrom(msg.sender, address(this), amount); _crvToCvxCrv(amount, address(this), minAmountOut); IGenericVault(vault).depositAll(to); } /// @notice Deposit into the pounder from legacy uCRV /// @param amount - amount of uCRV /// @param minAmountOut - min amount of cvxCRV expected /// @param to - address to stake on behalf of function depositFromUCrv( uint256 amount, uint256 minAmountOut, address to ) external notToZeroAddress(to) { IERC20(UNION_CRV).safeTransferFrom(msg.sender, address(this), amount); IUnionVault(UNION_CRV).withdrawAll(address(this)); IGenericVault(vault).depositAll(to); } /// @notice Deposit into the pounder from any token via Uni interface /// @notice Use at your own risk /// @dev Zap contract needs approval for spending of inputToken /// @param amount - min amount of input token /// @param minAmountOut - min amount of cvxCRV expected /// @param router - address of the router to use. e.g. 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F for Sushi /// @param inputToken - address of the token to swap from, needs to have an ETH pair on router used /// @param to - address to stake on behalf of function depositViaUniV2EthPair( uint256 amount, uint256 minAmountOut, address router, address inputToken, address to ) external notToZeroAddress(to) { require(router != address(0)); IERC20(inputToken).safeTransferFrom(msg.sender, address(this), amount); address[] memory _path = new address[](2); _path[0] = inputToken; _path[1] = WETH_TOKEN; IERC20(inputToken).safeApprove(router, 0); IERC20(inputToken).safeApprove(router, amount); IUniV2Router(router).swapExactTokensForETH( amount, 1, _path, address(this), block.timestamp + 1 ); _depositFromEth(address(this).balance, minAmountOut, to); } /// @notice Retrieves a user's vault shares and withdraw all /// @param _amount - amount of shares to retrieve /// @return amount withdrawn function _claimAndWithdraw(uint256 _amount) internal returns (uint256) { IERC20(vault).safeTransferFrom(msg.sender, address(this), _amount); return IGenericVault(vault).withdrawAll(address(this)); } /// @notice Claim as native ETH /// @param amount - amount to withdraw /// @param minAmountOut - minimum amount of ETH expected /// @param to - address to send ETH to /// @return amount of ETH withdrawn function claimFromVaultAsEth( uint256 amount, uint256 minAmountOut, address to ) public notToZeroAddress(to) returns (uint256) { uint256 _ethAmount = _claimAsEth(amount, minAmountOut); (bool success, ) = to.call{value: _ethAmount}(""); require(success, "ETH transfer failed"); return _ethAmount; } /// @notice Withdraw as native CRV /// @param amount - amount to withdraw /// @param to - address that will receive the CRV /// @param minAmountOut - min amount of CRV expected /// @return amount of CRV withdrawn function claimFromVaultAsCrv( uint256 amount, uint256 minAmountOut, address to ) public returns (uint256) { uint256 _cvxCrvAmount = _claimAndWithdraw(amount); return _cvxCrvToCrv(_cvxCrvAmount, to, minAmountOut); } /// @notice Withdraw as native ETH (internal) /// @param _amount - amount to withdraw /// @param _minAmountOut - min amount of ETH expected /// @return amount of ETH withdrawn function _claimAsEth(uint256 _amount, uint256 _minAmountOut) internal returns (uint256) { uint256 _crvAmount = claimFromVaultAsCrv(_amount, 0, address(this)); return _crvToEth(_crvAmount, _minAmountOut); } /// @notice Claim to any token via a univ2 router /// @notice Use at your own risk /// @param amount - amount of uFXS to unstake /// @param minAmountOut - min amount of output token expected /// @param router - address of the router to use. e.g. 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F for Sushi /// @param outputToken - address of the token to swap to /// @param to - address of the final recipient of the swapped tokens function claimFromVaultViaUniV2EthPair( uint256 amount, uint256 minAmountOut, address router, address outputToken, address to ) public notToZeroAddress(to) { require(router != address(0)); _claimAsEth(amount, 0); address[] memory _path = new address[](2); _path[0] = WETH_TOKEN; _path[1] = outputToken; IUniV2Router(router).swapExactETHForTokens{ value: address(this).balance }(minAmountOut, _path, to, block.timestamp + 1); } /// @notice Claim as USDT via Tricrypto /// @param amount - the amount of uFXS to unstake /// @param minAmountOut - the min expected amount of USDT to receive /// @param to - the adress that will receive the USDT /// @return amount of USDT obtained function claimFromVaultAsUsdt( uint256 amount, uint256 minAmountOut, address to ) public notToZeroAddress(to) returns (uint256) { uint256 _ethAmount = claimFromVaultAsEth(amount, 0, address(this)); _swapEthToUsdt(_ethAmount, minAmountOut); uint256 _usdtAmount = IERC20(USDT_TOKEN).balanceOf(address(this)); IERC20(USDT_TOKEN).safeTransfer(to, _usdtAmount); return _usdtAmount; } /// @notice swap ETH to USDT via Curve's tricrypto /// @param amount - the amount of ETH to swap /// @param minAmountOut - the minimum amount expected function _swapEthToUsdt(uint256 amount, uint256 minAmountOut) internal { triCryptoSwap.exchange{value: amount}( 2, // ETH 0, // USDT amount, minAmountOut, true ); } /// @notice Unstake from the Pounder to stables and stake on 3pool convex for yield /// @param amount - amount of uCRV to unstake /// @param minAmountOut - minimum amount of 3CRV (NOT USDT!) /// @param to - address on behalf of which to stake function claimFromVaultAndStakeIn3PoolConvex( uint256 amount, uint256 minAmountOut, address to ) public notToZeroAddress(to) { // claim as USDT uint256 _usdtAmount = claimFromVaultAsUsdt(amount, 0, address(this)); // add USDT to Tripool triPool.add_liquidity([0, 0, _usdtAmount], minAmountOut); // deposit on Convex booster.depositAll(9, false); // stake on behalf of user triPoolRewards.stakeFor( to, IERC20(CONVEX_TRIPOOL_TOKEN).balanceOf(address(this)) ); } /// @notice Claim as CVX via CurveCVX /// @param amount - the amount of uFXS to unstake /// @param minAmountOut - the min expected amount of USDT to receive /// @param to - the adress that will receive the CVX /// @param lock - whether to lock the CVX or not /// @return amount of CVX obtained function claimFromVaultAsCvx( uint256 amount, uint256 minAmountOut, address to, bool lock ) public notToZeroAddress(to) returns (uint256) { uint256 _ethAmount = _claimAsEth(amount, 0); uint256 _cvxAmount = _ethToCvx(_ethAmount, minAmountOut); if (lock) { locker.lock(to, _cvxAmount, 0); } else { IERC20(CVX_TOKEN).safeTransfer(to, _cvxAmount); } return _cvxAmount; } modifier notToZeroAddress(address _to) { require(_to != address(0), "Invalid address!"); _; } receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; import "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' // 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) + 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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.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 `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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; import "IERC20Metadata.sol"; import "Context.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, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); 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] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); 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); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += 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 += amount; _balances[account] += 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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= 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 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 { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IGenericVault { function withdraw(address _to, uint256 _shares) external returns (uint256 withdrawn); function withdrawAll(address _to) external returns (uint256 withdrawn); function depositAll(address _to) external returns (uint256 _shares); function deposit(address _to, uint256 _amount) external returns (uint256 _shares); function harvest() external; function balanceOfUnderlying(address user) external view returns (uint256 amount); function totalUnderlying() external view returns (uint256 total); function totalSupply() external view returns (uint256 total); function underlying() external view returns (address); function strategy() external view returns (address); function platform() external view returns (address); function setPlatform(address _platform) external; function setPlatformFee(uint256 _fee) external; function setCallIncentive(uint256 _incentive) external; function setWithdrawalPenalty(uint256 _penalty) external; function setApprovals() external; function callIncentive() external view returns (uint256); function withdrawalPenalty() external view returns (uint256); function platformFee() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ICurveV2Pool { function get_dy( uint256 i, uint256 j, uint256 dx ) external view returns (uint256); function calc_token_amount(uint256[2] calldata amounts) external view returns (uint256); function exchange_underlying( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external payable returns (uint256); function add_liquidity(uint256[2] calldata amounts, uint256 min_mint_amount) external returns (uint256); function lp_price() 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 exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth, address receiver ) external payable returns (uint256); function price_oracle() external view returns (uint256); function remove_liquidity_one_coin( uint256 token_amount, uint256 i, uint256 min_amount, bool use_eth, address receiver ) external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ICurveFactoryPool { function get_dy( int128 i, int128 j, uint256 dx ) external view returns (uint256); function get_balances() external view returns (uint256[2] memory); function add_liquidity( uint256[2] memory _amounts, uint256 _min_mint_amount, address _receiver ) external returns (uint256); function exchange( int128 i, int128 j, uint256 _dx, uint256 _min_dy, address _receiver ) external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ICurveTriCrypto { function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth ) external payable; function get_dy( uint256 i, uint256 j, uint256 dx ) external view returns (uint256); function price_oracle(uint256 k) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ICVXLocker { function lock( address _account, uint256 _amount, uint256 _spendRatio ) external; function balances(address _user) external view returns ( uint112 locked, uint112 boosted, uint32 nextUnlockIndex ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IUniV2Router { function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function getAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ITriPool { function add_liquidity(uint256[3] calldata amounts, uint256 min_mint_amount) external; function get_virtual_price() external view returns (uint256); function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IBooster { function depositAll(uint256 _pid, bool _stake) external returns (bool); function deposit( uint256 _pid, uint256 _amount, bool _stake ) external returns (bool); function withdraw(uint256 _pid, uint256 _amount) external returns (bool); function withdrawAll(uint256 _pid) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IRewards { function balanceOf(address) external view returns (uint256); function stake(address, uint256) external; function stakeFor(address, uint256) external; function withdraw(address, uint256) external; function exit(address) external; function getReward(address) external; function queueNewRewards(uint256) external; function notifyRewardAmount(uint256) external; function addExtraReward(address) external; function stakingToken() external view returns (address); function rewardToken() external view returns (address); function earned(address account) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IUnionVault { enum Option { Claim, ClaimAsETH, ClaimAsCRV, ClaimAsCVX, ClaimAndStake } function withdraw(address _to, uint256 _shares) external returns (uint256 withdrawn); function withdrawAll(address _to) external returns (uint256 withdrawn); function withdrawAs( address _to, uint256 _shares, Option option ) external; function withdrawAs( address _to, uint256 _shares, Option option, uint256 minAmountOut ) external; function withdrawAllAs(address _to, Option option) external; function withdrawAllAs( address _to, Option option, uint256 minAmountOut ) external; function depositAll(address _to) external returns (uint256 _shares); function deposit(address _to, uint256 _amount) external returns (uint256 _shares); function harvest() external; function balanceOfUnderlying(address user) external view returns (uint256 amount); function outstanding3CrvRewards() external view returns (uint256 total); function outstandingCvxRewards() external view returns (uint256 total); function outstandingCrvRewards() external view returns (uint256 total); function totalUnderlying() external view returns (uint256 total); function underlying() external view returns (address); function setPlatform(address _platform) external; function setPlatformFee(uint256 _fee) external; function setCallIncentive(uint256 _incentive) external; function setWithdrawalPenalty(uint256 _penalty) external; function withdrawalPenalty() external view returns (uint256); function setApprovals() external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface ICurveTriCryptoFactoryNG { function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth ) external payable returns (uint256); function exchange( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth, address receiver ) external payable returns (uint256); function get_dy( uint256 i, uint256 j, uint256 dx ) external view returns (uint256); function price_oracle(uint256 k) external view returns (uint256); }
{ "evmVersion": "london", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "StrategyZaps.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"claimFromVaultAndStakeIn3PoolConvex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"claimFromVaultAsCrv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"lock","type":"bool"}],"name":"claimFromVaultAsCvx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"claimFromVaultAsEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"claimFromVaultAsUsdt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"claimFromVaultViaUniV2EthPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"depositFromCrv","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"depositFromEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"depositFromUCrv","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"depositViaUniV2EthPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052600080546001600160a01b031990811673b576491f1e6e5e62f1d8f26062ee822b40b0e0d417909155600180548216734ebdf703948ddcea3b11f675b4d1fba9d2414a1417905560028054821673bebc44782c7db0a1a60cb6fe97d0b483032ff1c717905560038054821673f403c135812408bfbe8713b5a23a04b3d48aae3117905560048054821673689440f2ff927e1f24c72f1087e1faf471ece1c817905560058054821673971add32ea87f10bd192671630be3be8a11b862317905560068054821673d51a44d3fae010294c616388b506acda1bfaae46179055600780549091167372a19342e8f1838460ebfccef09f6585e32db86e17905534801561010c57600080fd5b50604051611dbd380380611dbd83398101604081905261012b9161013c565b6001600160a01b031660805261016c565b60006020828403121561014e57600080fd5b81516001600160a01b038116811461016557600080fd5b9392505050565b608051611c136101aa600039600081816102260152818161034a01528181610d6e01528181610dae015281816113b501526113f20152611c136000f3fe6080604052600436106100ab5760003560e01c80638702ca5c116100645780638702ca5c1461017f5780638757b15b1461019f578063a8d9693d146101b4578063dbc199d7146101d4578063f3bb2ca1146101f4578063fbfa77cf1461021457600080fd5b806326600ecb146100b757806331247e06146100cc57806343a7887e146100ec57806377212cf31461010c578063775491dc1461012c57806379e8aeeb1461015f57600080fd5b366100b257005b600080fd5b6100ca6100c53660046117f4565b610260565b005b3480156100d857600080fd5b506100ca6100e7366004611820565b6102d8565b3480156100f857600080fd5b506100ca610107366004611820565b6103cd565b34801561011857600080fd5b506100ca610127366004611820565b610605565b34801561013857600080fd5b5061014c610147366004611820565b6106d0565b6040519081526020015b60405180910390f35b34801561016b57600080fd5b506100ca61017a366004611855565b6107c3565b34801561018b57600080fd5b506100ca61019a366004611855565b610970565b3480156101ab57600080fd5b506100ca610ade565b3480156101c057600080fd5b5061014c6101cf366004611820565b610ea9565b3480156101e057600080fd5b5061014c6101ef366004611820565b610ecd565b34801561020057600080fd5b5061014c61020f3660046118bd565b610fa7565b34801561022057600080fd5b506102487f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610156565b806001600160a01b0381166102905760405162461bcd60e51b815260040161028790611905565b60405180910390fd5b600034116102c85760405162461bcd60e51b8152602060048201526005602482015264063686561760dc1b6044820152606401610287565b6102d334848461108f565b505050565b806001600160a01b0381166102ff5760405162461bcd60e51b815260040161028790611905565b61031f73d533a949740bb3306d119cc777fa900ba034cd523330876110a9565b61032a84308561111a565b50604051639f0d5f2760e01b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639f0d5f2790602401602060405180830381600087803b15801561038e57600080fd5b505af11580156103a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c6919061192f565b5050505050565b806001600160a01b0381166103f45760405162461bcd60e51b815260040161028790611905565b6000610402856000306106d0565b60025460408051606081018252600080825260208201528082018490529051634515cef360e01b81529293506001600160a01b0390911691634515cef39161044e918890600401611948565b600060405180830381600087803b15801561046857600080fd5b505af115801561047c573d6000803e3d6000fd5b505060035460405163303acfe760e11b815260096004820152600060248201526001600160a01b0390911692506360759fce9150604401602060405180830381600087803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105059190611980565b50600480546040516370a0823160e01b815230928101929092526001600160a01b031690632ee409089085907330d9410ed1d5da1f6c8391af5338c93ab8d4035c906370a082319060240160206040518083038186803b15801561056857600080fd5b505afa15801561057c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a0919061192f565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156105e657600080fd5b505af11580156105fa573d6000803e3d6000fd5b505050505050505050565b806001600160a01b03811661062c5760405162461bcd60e51b815260040161028790611905565b61064c734ebad8dbd4edbd74db0278714fbd67ebc76b89b73330876110a9565b604051630fa09e6360e41b8152306004820152734ebad8dbd4edbd74db0278714fbd67ebc76b89b79063fa09e63090602401602060405180830381600087803b15801561069857600080fd5b505af11580156106ac573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032a919061192f565b6000816001600160a01b0381166106f95760405162461bcd60e51b815260040161028790611905565b600061070786600030610ecd565b905061071381866111c0565b6040516370a0823160e01b815230600482015260009073dac17f958d2ee523a2206206994597c13d831ec7906370a082319060240160206040518083038186803b15801561076057600080fd5b505afa158015610774573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610798919061192f565b90506107b973dac17f958d2ee523a2206206994597c13d831ec78683611237565b9695505050505050565b806001600160a01b0381166107ea5760405162461bcd60e51b815260040161028790611905565b6001600160a01b0384166107fd57600080fd5b6108126001600160a01b0384163330896110a9565b6040805160028082526060820183526000926020830190803683370190505090508381600081518110610847576108476119b3565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061088f5761088f6119b3565b6001600160a01b0392831660209182029290920101526108b3908516866000611267565b6108c76001600160a01b0385168689611267565b6001600160a01b0385166318cbafe588600184306108e542846119c9565b6040518663ffffffff1660e01b8152600401610905959493929190611a33565b600060405180830381600087803b15801561091f57600080fd5b505af1158015610933573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261095b9190810190611a6f565b5061096747878561108f565b50505050505050565b806001600160a01b0381166109975760405162461bcd60e51b815260040161028790611905565b6001600160a01b0384166109aa57600080fd5b6109b586600061138b565b5060408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816000815181106109ff576109ff6119b3565b60200260200101906001600160a01b031690816001600160a01b0316815250508381600181518110610a3357610a336119b3565b6001600160a01b0392831660209182029290920101528516637ff36ab547888487610a5f4260016119c9565b6040518663ffffffff1660e01b8152600401610a7e9493929190611b2d565b6000604051808303818588803b158015610a9757600080fd5b505af1158015610aab573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610ad49190810190611a6f565b5050505050505050565b610b127362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e6000611267565b610b477362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e600019611267565b610b7b7362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b86236000611267565b610bb07362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b8623600019611267565b610be473d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b86236000611267565b610c1973d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b8623600019611267565b610c4d736c3f90f043a72fa612cbac8115ee7e52bde6e49073f403c135812408bfbe8713b5a23a04b3d48aae316000611267565b610c82736c3f90f043a72fa612cbac8115ee7e52bde6e49073f403c135812408bfbe8713b5a23a04b3d48aae31600019611267565b610cb673dac17f958d2ee523a2206206994597c13d831ec773bebc44782c7db0a1a60cb6fe97d0b483032ff1c76000611267565b610ceb73dac17f958d2ee523a2206206994597c13d831ec773bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019611267565b610d1f7330d9410ed1d5da1f6c8391af5338c93ab8d4035c73689440f2ff927e1f24c72f1087e1faf471ece1c86000611267565b610d547330d9410ed1d5da1f6c8391af5338c93ab8d4035c73689440f2ff927e1f24c72f1087e1faf471ece1c8600019611267565b610d947362b9c7356a2dc64a1969e19c23e4f579f9810aa77f00000000000000000000000000000000000000000000000000000000000000006000611267565b610dd57362b9c7356a2dc64a1969e19c23e4f579f9810aa77f0000000000000000000000000000000000000000000000000000000000000000600019611267565b610e09734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e6000611267565b610e3e734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e600019611267565b610e7273d533a949740bb3306d119cc777fa900ba034cd52734ebdf703948ddcea3b11f675b4d1fba9d2414a146000611267565b610ea773d533a949740bb3306d119cc777fa900ba034cd52734ebdf703948ddcea3b11f675b4d1fba9d2414a14600019611267565b565b600080610eb5856113a6565b9050610ec281848661147c565b9150505b9392505050565b6000816001600160a01b038116610ef65760405162461bcd60e51b815260040161028790611905565b6000610f02868661138b565b90506000846001600160a01b03168260405160006040518083038185875af1925050503d8060008114610f51576040519150601f19603f3d011682016040523d82523d6000602084013e610f56565b606091505b5050905080610f9d5760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610287565b5095945050505050565b6000826001600160a01b038116610fd05760405162461bcd60e51b815260040161028790611905565b6000610fdd87600061138b565b90506000610feb82886114cc565b905084156110655760075460405163e2ab691d60e01b81526001600160a01b03888116600483015260248201849052600060448301529091169063e2ab691d90606401600060405180830381600087803b15801561104857600080fd5b505af115801561105c573d6000803e3d6000fd5b50505050611084565b611084734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b8783611237565b979650505050505050565b600061109c846000611563565b905061032a81308561111a565b6040516001600160a01b03808516602483015283166044820152606481018290526111149085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526115b7565b50505050565b60055460405163ddc1f59d60e01b81526000600482018190526001602483015260448201869052606482018490526001600160a01b0385811660848401529092169063ddc1f59d9060a4015b602060405180830381600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b8919061192f565b949350505050565b60065460405163394747c560e01b815260026004820152600060248201526044810184905260648101839052600160848201526001600160a01b039091169063394747c590849060a4016000604051808303818588803b15801561122357600080fd5b505af1158015610967573d6000803e3d6000fd5b6040516001600160a01b0383166024820152604481018290526102d390849063a9059cbb60e01b906064016110dd565b8015806112f05750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156112b657600080fd5b505afa1580156112ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ee919061192f565b155b61135b5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610287565b6040516001600160a01b0383166024820152604481018290526102d390849063095ea7b360e01b906064016110dd565b60008061139a84600030610ea9565b90506111b88184611689565b60006113dd6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856110a9565b604051630fa09e6360e41b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063fa09e63090602401602060405180830381600087803b15801561143e57600080fd5b505af1158015611452573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611476919061192f565b92915050565b60055460405163ddc1f59d60e01b81526001600482015260006024820181905260448201869052606482018490526001600160a01b0385811660848401529092169063ddc1f59d9060a401611166565b600080546040516365b2489b60e01b8152600481018390526001602482015260448101859052606481018490526001600160a01b03909116906365b2489b9085906084015b6020604051808303818588803b15801561152a57600080fd5b505af115801561153e573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610ec6919061192f565b6001805460405163394747c560e01b81526004810183905260026024820152604481018590526064810184905260848101929092526000916001600160a01b039091169063394747c590859060a401611511565b600061160c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116dd9092919063ffffffff16565b8051909150156102d3578080602001905181019061162a9190611980565b6102d35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610287565b6001805460405163394747c560e01b81526002600482015260248101839052604481018590526064810184905260848101929092526000916001600160a01b039091169063394747c590839060a401611511565b60606111b8848460008585843b6117365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610287565b600080866001600160a01b031685876040516117529190611b8e565b60006040518083038185875af1925050503d806000811461178f576040519150601f19603f3d011682016040523d82523d6000602084013e611794565b606091505b5091509150611084828286606083156117ae575081610ec6565b8251156117be5782518084602001fd5b8160405162461bcd60e51b81526004016102879190611baa565b80356001600160a01b03811681146117ef57600080fd5b919050565b6000806040838503121561180757600080fd5b82359150611817602084016117d8565b90509250929050565b60008060006060848603121561183557600080fd5b833592506020840135915061184c604085016117d8565b90509250925092565b600080600080600060a0868803121561186d57600080fd5b8535945060208601359350611884604087016117d8565b9250611892606087016117d8565b91506118a0608087016117d8565b90509295509295909350565b80151581146118ba57600080fd5b50565b600080600080608085870312156118d357600080fd5b84359350602085013592506118ea604086016117d8565b915060608501356118fa816118ac565b939692955090935050565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60006020828403121561194157600080fd5b5051919050565b60808101818460005b6003811015611970578151835260209283019290910190600101611951565b5050508260608301529392505050565b60006020828403121561199257600080fd5b8151610ec6816118ac565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600082198211156119ea57634e487b7160e01b600052601160045260246000fd5b500190565b600081518084526020808501945080840160005b83811015611a285781516001600160a01b031687529582019590820190600101611a03565b509495945050505050565b85815284602082015260a060408201526000611a5260a08301866119ef565b6001600160a01b0394909416606083015250608001529392505050565b60006020808385031215611a8257600080fd5b825167ffffffffffffffff80821115611a9a57600080fd5b818501915085601f830112611aae57600080fd5b815181811115611ac057611ac061199d565b8060051b604051601f19603f83011681018181108582111715611ae557611ae561199d565b604052918252848201925083810185019188831115611b0357600080fd5b938501935b82851015611b2157845184529385019392850192611b08565b98975050505050505050565b848152608060208201526000611b4660808301866119ef565b6001600160a01b03949094166040830152506060015292915050565b60005b83811015611b7d578181015183820152602001611b65565b838111156111145750506000910152565b60008251611ba0818460208701611b62565b9190910192915050565b6020815260008251806020840152611bc9816040850160208701611b62565b601f01601f1916919091016040019291505056fea264697066735822122028682693412cfe89bcafbb3f8591dd49a0527fddd5c1a1c3dbe51057cb81f4b064736f6c63430008090033000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b7
Deployed Bytecode
0x6080604052600436106100ab5760003560e01c80638702ca5c116100645780638702ca5c1461017f5780638757b15b1461019f578063a8d9693d146101b4578063dbc199d7146101d4578063f3bb2ca1146101f4578063fbfa77cf1461021457600080fd5b806326600ecb146100b757806331247e06146100cc57806343a7887e146100ec57806377212cf31461010c578063775491dc1461012c57806379e8aeeb1461015f57600080fd5b366100b257005b600080fd5b6100ca6100c53660046117f4565b610260565b005b3480156100d857600080fd5b506100ca6100e7366004611820565b6102d8565b3480156100f857600080fd5b506100ca610107366004611820565b6103cd565b34801561011857600080fd5b506100ca610127366004611820565b610605565b34801561013857600080fd5b5061014c610147366004611820565b6106d0565b6040519081526020015b60405180910390f35b34801561016b57600080fd5b506100ca61017a366004611855565b6107c3565b34801561018b57600080fd5b506100ca61019a366004611855565b610970565b3480156101ab57600080fd5b506100ca610ade565b3480156101c057600080fd5b5061014c6101cf366004611820565b610ea9565b3480156101e057600080fd5b5061014c6101ef366004611820565b610ecd565b34801561020057600080fd5b5061014c61020f3660046118bd565b610fa7565b34801561022057600080fd5b506102487f000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b781565b6040516001600160a01b039091168152602001610156565b806001600160a01b0381166102905760405162461bcd60e51b815260040161028790611905565b60405180910390fd5b600034116102c85760405162461bcd60e51b8152602060048201526005602482015264063686561760dc1b6044820152606401610287565b6102d334848461108f565b505050565b806001600160a01b0381166102ff5760405162461bcd60e51b815260040161028790611905565b61031f73d533a949740bb3306d119cc777fa900ba034cd523330876110a9565b61032a84308561111a565b50604051639f0d5f2760e01b81526001600160a01b0383811660048301527f000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b71690639f0d5f2790602401602060405180830381600087803b15801561038e57600080fd5b505af11580156103a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c6919061192f565b5050505050565b806001600160a01b0381166103f45760405162461bcd60e51b815260040161028790611905565b6000610402856000306106d0565b60025460408051606081018252600080825260208201528082018490529051634515cef360e01b81529293506001600160a01b0390911691634515cef39161044e918890600401611948565b600060405180830381600087803b15801561046857600080fd5b505af115801561047c573d6000803e3d6000fd5b505060035460405163303acfe760e11b815260096004820152600060248201526001600160a01b0390911692506360759fce9150604401602060405180830381600087803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105059190611980565b50600480546040516370a0823160e01b815230928101929092526001600160a01b031690632ee409089085907330d9410ed1d5da1f6c8391af5338c93ab8d4035c906370a082319060240160206040518083038186803b15801561056857600080fd5b505afa15801561057c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a0919061192f565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156105e657600080fd5b505af11580156105fa573d6000803e3d6000fd5b505050505050505050565b806001600160a01b03811661062c5760405162461bcd60e51b815260040161028790611905565b61064c734ebad8dbd4edbd74db0278714fbd67ebc76b89b73330876110a9565b604051630fa09e6360e41b8152306004820152734ebad8dbd4edbd74db0278714fbd67ebc76b89b79063fa09e63090602401602060405180830381600087803b15801561069857600080fd5b505af11580156106ac573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032a919061192f565b6000816001600160a01b0381166106f95760405162461bcd60e51b815260040161028790611905565b600061070786600030610ecd565b905061071381866111c0565b6040516370a0823160e01b815230600482015260009073dac17f958d2ee523a2206206994597c13d831ec7906370a082319060240160206040518083038186803b15801561076057600080fd5b505afa158015610774573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610798919061192f565b90506107b973dac17f958d2ee523a2206206994597c13d831ec78683611237565b9695505050505050565b806001600160a01b0381166107ea5760405162461bcd60e51b815260040161028790611905565b6001600160a01b0384166107fd57600080fd5b6108126001600160a01b0384163330896110a9565b6040805160028082526060820183526000926020830190803683370190505090508381600081518110610847576108476119b3565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061088f5761088f6119b3565b6001600160a01b0392831660209182029290920101526108b3908516866000611267565b6108c76001600160a01b0385168689611267565b6001600160a01b0385166318cbafe588600184306108e542846119c9565b6040518663ffffffff1660e01b8152600401610905959493929190611a33565b600060405180830381600087803b15801561091f57600080fd5b505af1158015610933573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261095b9190810190611a6f565b5061096747878561108f565b50505050505050565b806001600160a01b0381166109975760405162461bcd60e51b815260040161028790611905565b6001600160a01b0384166109aa57600080fd5b6109b586600061138b565b5060408051600280825260608201835260009260208301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816000815181106109ff576109ff6119b3565b60200260200101906001600160a01b031690816001600160a01b0316815250508381600181518110610a3357610a336119b3565b6001600160a01b0392831660209182029290920101528516637ff36ab547888487610a5f4260016119c9565b6040518663ffffffff1660e01b8152600401610a7e9493929190611b2d565b6000604051808303818588803b158015610a9757600080fd5b505af1158015610aab573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610ad49190810190611a6f565b5050505050505050565b610b127362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e6000611267565b610b477362b9c7356a2dc64a1969e19c23e4f579f9810aa7733fe65692bfcd0e6cf84cb1e7d24108e434a7587e600019611267565b610b7b7362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b86236000611267565b610bb07362b9c7356a2dc64a1969e19c23e4f579f9810aa773971add32ea87f10bd192671630be3be8a11b8623600019611267565b610be473d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b86236000611267565b610c1973d533a949740bb3306d119cc777fa900ba034cd5273971add32ea87f10bd192671630be3be8a11b8623600019611267565b610c4d736c3f90f043a72fa612cbac8115ee7e52bde6e49073f403c135812408bfbe8713b5a23a04b3d48aae316000611267565b610c82736c3f90f043a72fa612cbac8115ee7e52bde6e49073f403c135812408bfbe8713b5a23a04b3d48aae31600019611267565b610cb673dac17f958d2ee523a2206206994597c13d831ec773bebc44782c7db0a1a60cb6fe97d0b483032ff1c76000611267565b610ceb73dac17f958d2ee523a2206206994597c13d831ec773bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019611267565b610d1f7330d9410ed1d5da1f6c8391af5338c93ab8d4035c73689440f2ff927e1f24c72f1087e1faf471ece1c86000611267565b610d547330d9410ed1d5da1f6c8391af5338c93ab8d4035c73689440f2ff927e1f24c72f1087e1faf471ece1c8600019611267565b610d947362b9c7356a2dc64a1969e19c23e4f579f9810aa77f000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b76000611267565b610dd57362b9c7356a2dc64a1969e19c23e4f579f9810aa77f000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b7600019611267565b610e09734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e6000611267565b610e3e734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b7372a19342e8f1838460ebfccef09f6585e32db86e600019611267565b610e7273d533a949740bb3306d119cc777fa900ba034cd52734ebdf703948ddcea3b11f675b4d1fba9d2414a146000611267565b610ea773d533a949740bb3306d119cc777fa900ba034cd52734ebdf703948ddcea3b11f675b4d1fba9d2414a14600019611267565b565b600080610eb5856113a6565b9050610ec281848661147c565b9150505b9392505050565b6000816001600160a01b038116610ef65760405162461bcd60e51b815260040161028790611905565b6000610f02868661138b565b90506000846001600160a01b03168260405160006040518083038185875af1925050503d8060008114610f51576040519150601f19603f3d011682016040523d82523d6000602084013e610f56565b606091505b5050905080610f9d5760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606401610287565b5095945050505050565b6000826001600160a01b038116610fd05760405162461bcd60e51b815260040161028790611905565b6000610fdd87600061138b565b90506000610feb82886114cc565b905084156110655760075460405163e2ab691d60e01b81526001600160a01b03888116600483015260248201849052600060448301529091169063e2ab691d90606401600060405180830381600087803b15801561104857600080fd5b505af115801561105c573d6000803e3d6000fd5b50505050611084565b611084734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b8783611237565b979650505050505050565b600061109c846000611563565b905061032a81308561111a565b6040516001600160a01b03808516602483015283166044820152606481018290526111149085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526115b7565b50505050565b60055460405163ddc1f59d60e01b81526000600482018190526001602483015260448201869052606482018490526001600160a01b0385811660848401529092169063ddc1f59d9060a4015b602060405180830381600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b8919061192f565b949350505050565b60065460405163394747c560e01b815260026004820152600060248201526044810184905260648101839052600160848201526001600160a01b039091169063394747c590849060a4016000604051808303818588803b15801561122357600080fd5b505af1158015610967573d6000803e3d6000fd5b6040516001600160a01b0383166024820152604481018290526102d390849063a9059cbb60e01b906064016110dd565b8015806112f05750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156112b657600080fd5b505afa1580156112ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ee919061192f565b155b61135b5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610287565b6040516001600160a01b0383166024820152604481018290526102d390849063095ea7b360e01b906064016110dd565b60008061139a84600030610ea9565b90506111b88184611689565b60006113dd6001600160a01b037f000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b7163330856110a9565b604051630fa09e6360e41b81523060048201527f000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b76001600160a01b03169063fa09e63090602401602060405180830381600087803b15801561143e57600080fd5b505af1158015611452573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611476919061192f565b92915050565b60055460405163ddc1f59d60e01b81526001600482015260006024820181905260448201869052606482018490526001600160a01b0385811660848401529092169063ddc1f59d9060a401611166565b600080546040516365b2489b60e01b8152600481018390526001602482015260448101859052606481018490526001600160a01b03909116906365b2489b9085906084015b6020604051808303818588803b15801561152a57600080fd5b505af115801561153e573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610ec6919061192f565b6001805460405163394747c560e01b81526004810183905260026024820152604481018590526064810184905260848101929092526000916001600160a01b039091169063394747c590859060a401611511565b600061160c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116dd9092919063ffffffff16565b8051909150156102d3578080602001905181019061162a9190611980565b6102d35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610287565b6001805460405163394747c560e01b81526002600482015260248101839052604481018590526064810184905260848101929092526000916001600160a01b039091169063394747c590839060a401611511565b60606111b8848460008585843b6117365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610287565b600080866001600160a01b031685876040516117529190611b8e565b60006040518083038185875af1925050503d806000811461178f576040519150601f19603f3d011682016040523d82523d6000602084013e611794565b606091505b5091509150611084828286606083156117ae575081610ec6565b8251156117be5782518084602001fd5b8160405162461bcd60e51b81526004016102879190611baa565b80356001600160a01b03811681146117ef57600080fd5b919050565b6000806040838503121561180757600080fd5b82359150611817602084016117d8565b90509250929050565b60008060006060848603121561183557600080fd5b833592506020840135915061184c604085016117d8565b90509250925092565b600080600080600060a0868803121561186d57600080fd5b8535945060208601359350611884604087016117d8565b9250611892606087016117d8565b91506118a0608087016117d8565b90509295509295909350565b80151581146118ba57600080fd5b50565b600080600080608085870312156118d357600080fd5b84359350602085013592506118ea604086016117d8565b915060608501356118fa816118ac565b939692955090935050565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60006020828403121561194157600080fd5b5051919050565b60808101818460005b6003811015611970578151835260209283019290910190600101611951565b5050508260608301529392505050565b60006020828403121561199257600080fd5b8151610ec6816118ac565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600082198211156119ea57634e487b7160e01b600052601160045260246000fd5b500190565b600081518084526020808501945080840160005b83811015611a285781516001600160a01b031687529582019590820190600101611a03565b509495945050505050565b85815284602082015260a060408201526000611a5260a08301866119ef565b6001600160a01b0394909416606083015250608001529392505050565b60006020808385031215611a8257600080fd5b825167ffffffffffffffff80821115611a9a57600080fd5b818501915085601f830112611aae57600080fd5b815181811115611ac057611ac061199d565b8060051b604051601f19603f83011681018181108582111715611ae557611ae561199d565b604052918252848201925083810185019188831115611b0357600080fd5b938501935b82851015611b2157845184529385019392850192611b08565b98975050505050505050565b848152608060208201526000611b4660808301866119ef565b6001600160a01b03949094166040830152506060015292915050565b60005b83811015611b7d578181015183820152602001611b65565b838111156111145750506000910152565b60008251611ba0818460208701611b62565b9190910192915050565b6020815260008251806020840152611bc9816040850160208701611b62565b601f01601f1916919091016040019291505056fea264697066735822122028682693412cfe89bcafbb3f8591dd49a0527fddd5c1a1c3dbe51057cb81f4b064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b7
-----Decoded View---------------
Arg [0] : _vault (address): 0xde2bEF0A01845257b4aEf2A2EAa48f6EAeAfa8B7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000de2bef0a01845257b4aef2a2eaa48f6eaeafa8b7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.