ETH Price: $2,404.70 (-0.82%)

Contract

0x22CdAe94F135b310D2fFb01e8af05f10092a3D0B
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit208493182024-09-28 13:05:237 days ago1727528723IN
0x22CdAe94...0092a3D0B
39.99 ETH0.004158989.01744655
Deposit208458032024-09-28 1:19:357 days ago1727486375IN
0x22CdAe94...0092a3D0B
49.99 ETH0.005513559.92647897
Deposit207471312024-09-14 6:42:1121 days ago1726296131IN
0x22CdAe94...0092a3D0B
49.99 ETH0.000899331.83630713
Deposit204996502024-08-10 17:17:2356 days ago1723310243IN
0x22CdAe94...0092a3D0B
2 ETH0.000673681.91882141
Deposit204967202024-08-10 7:28:4756 days ago1723274927IN
0x22CdAe94...0092a3D0B
1.1 ETH0.000525941.41748709
Withdraw204881172024-08-09 2:40:5957 days ago1723171259IN
0x22CdAe94...0092a3D0B
0 ETH0.000860452.2310291
Withdraw204471002024-08-03 9:24:4763 days ago1722677087IN
0x22CdAe94...0092a3D0B
0 ETH0.00044371.15414363
Withdraw202945422024-07-13 2:15:5984 days ago1720836959IN
0x22CdAe94...0092a3D0B
0 ETH0.001114751.52649338
Deposit Wst ETH202850482024-07-11 18:26:2386 days ago1720722383IN
0x22CdAe94...0092a3D0B
0 ETH0.001477267.31179614
Deposit Wst ETH202850232024-07-11 18:21:2386 days ago1720722083IN
0x22CdAe94...0092a3D0B
0 ETH0.001818168.10875359
Deposit202472912024-07-06 11:53:2391 days ago1720266803IN
0x22CdAe94...0092a3D0B
0.0072 ETH0.000830062.41625208
Withdraw Wst ETH202013232024-06-30 1:48:5997 days ago1719712139IN
0x22CdAe94...0092a3D0B
0 ETH0.000345561.50610625
Withdraw201678352024-06-25 9:34:59102 days ago1719308099IN
0x22CdAe94...0092a3D0B
0 ETH0.001455923.67422156
Withdraw201598142024-06-24 6:40:23103 days ago1719211223IN
0x22CdAe94...0092a3D0B
0 ETH0.000576481.71375115
Deposit201456442024-06-22 7:06:11105 days ago1719039971IN
0x22CdAe94...0092a3D0B
0.762 ETH0.000668792.05862619
Deposit201456272024-06-22 7:02:47105 days ago1719039767IN
0x22CdAe94...0092a3D0B
0.99904689 ETH0.000710872.07860998
Deposit201455692024-06-22 6:51:11105 days ago1719039071IN
0x22CdAe94...0092a3D0B
0.99786254 ETH0.00008662.44392664
Withdraw201433272024-06-21 23:18:59105 days ago1719011939IN
0x22CdAe94...0092a3D0B
0 ETH0.001206963.12367815
Deposit201292372024-06-20 0:02:35107 days ago1718841755IN
0x22CdAe94...0092a3D0B
0.01 ETH0.001829315.63168973
Deposit201291712024-06-19 23:49:23107 days ago1718840963IN
0x22CdAe94...0092a3D0B
0.005 ETH0.001898125.5510976
Deposit201101132024-06-17 7:47:35110 days ago1718610455IN
0x22CdAe94...0092a3D0B
0.0001 ETH0.001027933.04668076
Deposit200188502024-06-04 13:47:23123 days ago1717508843IN
0x22CdAe94...0092a3D0B
10.3 ETH0.0034328910.75699762
Withdraw200007892024-06-02 1:14:59125 days ago1717290899IN
0x22CdAe94...0092a3D0B
0 ETH0.00197955
Withdraw200002072024-06-01 23:18:23125 days ago1717283903IN
0x22CdAe94...0092a3D0B
0 ETH0.002177575.50492679
Deposit199247402024-05-22 10:10:59136 days ago1716372659IN
0x22CdAe94...0092a3D0B
0.001 ETH0.002443357.17456517
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
208493182024-09-28 13:05:237 days ago1727528723
0x22CdAe94...0092a3D0B
39.99 ETH
208458032024-09-28 1:19:357 days ago1727486375
0x22CdAe94...0092a3D0B
49.99 ETH
207471312024-09-14 6:42:1121 days ago1726296131
0x22CdAe94...0092a3D0B
49.99 ETH
204996502024-08-10 17:17:2356 days ago1723310243
0x22CdAe94...0092a3D0B
2 ETH
204967202024-08-10 7:28:4756 days ago1723274927
0x22CdAe94...0092a3D0B
1.1 ETH
204881172024-08-09 2:40:5957 days ago1723171259
0x22CdAe94...0092a3D0B
6.11205447 ETH
204881172024-08-09 2:40:5957 days ago1723171259
0x22CdAe94...0092a3D0B
6.11205447 ETH
204471002024-08-03 9:24:4763 days ago1722677087
0x22CdAe94...0092a3D0B
1.76792413 ETH
204471002024-08-03 9:24:4763 days ago1722677087
0x22CdAe94...0092a3D0B
1.76792413 ETH
202945422024-07-13 2:15:5984 days ago1720836959
0x22CdAe94...0092a3D0B
74.10092946 ETH
202945422024-07-13 2:15:5984 days ago1720836959
0x22CdAe94...0092a3D0B
74.10092946 ETH
202472912024-07-06 11:53:2391 days ago1720266803
0x22CdAe94...0092a3D0B
0.0072 ETH
201678352024-06-25 9:34:59102 days ago1719308099
0x22CdAe94...0092a3D0B
0.02181348 ETH
201678352024-06-25 9:34:59102 days ago1719308099
0x22CdAe94...0092a3D0B
0.02181348 ETH
201598142024-06-24 6:40:23103 days ago1719211223
0x22CdAe94...0092a3D0B
0.11079923 ETH
201598142024-06-24 6:40:23103 days ago1719211223
0x22CdAe94...0092a3D0B
0.11079923 ETH
201456442024-06-22 7:06:11105 days ago1719039971
0x22CdAe94...0092a3D0B
0.762 ETH
201456272024-06-22 7:02:47105 days ago1719039767
0x22CdAe94...0092a3D0B
0.99904689 ETH
201433272024-06-21 23:18:59105 days ago1719011939
0x22CdAe94...0092a3D0B
0.01499383 ETH
201433272024-06-21 23:18:59105 days ago1719011939
0x22CdAe94...0092a3D0B
0.01499383 ETH
201292372024-06-20 0:02:35107 days ago1718841755
0x22CdAe94...0092a3D0B
0.01 ETH
201291712024-06-19 23:49:23107 days ago1718840963
0x22CdAe94...0092a3D0B
0.005 ETH
201101132024-06-17 7:47:35110 days ago1718610455
0x22CdAe94...0092a3D0B
0.0001 ETH
200188502024-06-04 13:47:23123 days ago1717508843
0x22CdAe94...0092a3D0B
10.3 ETH
200007892024-06-02 1:14:59125 days ago1717290899
0x22CdAe94...0092a3D0B
0.16039879 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VaultStETHWrapper

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 11 : VaultStETHWrapper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/lido/IWstETH.sol";
import "../interfaces/weth/IWETH.sol";
import "../interfaces/IStrategyVault.sol";
import "./1inch/OneinchCaller.sol";

/**
 * @title VaultStETHWrapper contract
 * @author Cian
 * @dev This contract is used to convert ETH into assets that the vault can accept,
 * as well as to extract assets from the vault and convert them back into ETH.
 * It facilitates the conversion between ETH and other compatible assets within the vault.
 */
contract VaultStETHWrapper is OneinchCaller {
    using SafeERC20 for IERC20;
    using SafeERC20 for IWETH;
    using SafeERC20 for IWstETH;

    address public immutable vaultAddr;
    IStrategyVault internal immutable vault;
    address public constant WETH_ADDR = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address public constant STETH_ADDR = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;
    address public constant WSTETH_ADDR = 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0;
    IERC20 internal constant STETH_CONTRACT = IERC20(STETH_ADDR);
    IWstETH internal constant WSTETH_CONTRACT = IWstETH(WSTETH_ADDR);

    event Deposit(address sender, uint256 amount, uint256 swapGet, address receiver);
    event Withdraw(address sender, uint256 stAmount, uint256 swapGet, address receiver);
    event DepositWSTETH(address sender, uint256 stAmount, uint256 depositWst, address receiver);
    event WithdrawWSTETH(address sender, uint256 stAmount, uint256 withdrawWst, address receiver);

    constructor(address _vaultAddr) {
        vaultAddr = _vaultAddr;
        vault = IStrategyVault(_vaultAddr);
        STETH_CONTRACT.safeIncreaseAllowance(_vaultAddr, type(uint256).max);
        STETH_CONTRACT.safeIncreaseAllowance(WSTETH_ADDR, type(uint256).max);
    }

    /**
     * @dev Invest initial assets into the vault using ETH or WETH.
     * @param _wethAmount The amount of WETH to be invested.
     * @param _swapCalldata The calldata for the 1inch exchange operation.
     * @param _minStEthIn The minimum amount of token to be obtained during the 1inch exchange operation.
     * @param _receiver The recipient of the share tokens.
     * @return returnShares_ The amount of share tokens obtained.
     */
    function deposit(uint256 _wethAmount, bytes calldata _swapCalldata, uint256 _minStEthIn, address _receiver)
        external
        payable
        returns (uint256 returnShares_)
    {
        uint256 deposit_ = msg.value;
        if (_wethAmount > 0) {
            IWETH(WETH_ADDR).safeTransferFrom(msg.sender, address(this), _wethAmount);
            IWETH(WETH_ADDR).withdraw(_wethAmount);
            deposit_ += _wethAmount;
        }
        (uint256 returnAmount_, uint256 inputAmount_) =
            executeSwap(deposit_, ETH_ADDR, STETH_ADDR, _swapCalldata, _minStEthIn);
        require(inputAmount_ == deposit_, "InputInsufficient");
        returnShares_ = vault.deposit(returnAmount_, _receiver);

        emit Deposit(msg.sender, deposit_, returnAmount_, _receiver);
    }

    /**
     * @dev Invest initial assets into the vault using ETH or WETH.
     * @param _amount The amount of stETH to be withdrawn from the vault.
     * @param _swapCalldata The calldata for the 1inch exchange operation.
     * @param _minEthOut The minimum amount of token to be obtained during the 1inch exchange operation.
     * @param _receiver The recipient of the redeemed assets.
     * @param _isWeth Whether to redeem the assets in the form of WETH.
     * @return returnEthAmount_ The actual amount of ETH(WETH) redeemed.
     */
    function withdraw(
        uint256 _amount,
        bytes calldata _swapCalldata,
        uint256 _minEthOut,
        address _receiver,
        bool _isWeth
    ) external returns (uint256 returnEthAmount_) {
        uint256 stEthBalanceBefore_ = STETH_CONTRACT.balanceOf(address(this));
        uint256 withdrawFee_ = vault.getWithdrawFee(_amount);
        vault.withdraw(_amount, address(this), msg.sender);
        uint256 withdrawnAmount_ = STETH_CONTRACT.balanceOf(address(this)) - stEthBalanceBefore_;
        require(withdrawnAmount_ + withdrawFee_ <= _amount, "UnexpectedWithdrawAmount");
        STETH_CONTRACT.safeIncreaseAllowance(oneInchRouter, withdrawnAmount_);
        (returnEthAmount_,) = executeSwap(withdrawnAmount_, STETH_ADDR, ETH_ADDR, _swapCalldata, _minEthOut);
        STETH_CONTRACT.safeApprove(oneInchRouter, 0);
        if (_isWeth) {
            IWETH(WETH_ADDR).deposit{value: returnEthAmount_}();
            IWETH(WETH_ADDR).safeTransfer(_receiver, returnEthAmount_);
        } else {
            Address.sendValue(payable(_receiver), returnEthAmount_);
        }

        emit Withdraw(msg.sender, _amount, returnEthAmount_, _receiver);
    }

    /**
     * @dev Invest initial assets into the vault using wstETH.
     * @param _amount The amount of wstETH to be invested.
     * @param _receiver The recipient of the share tokens.
     * @return returnShares_ The amount of share tokens obtained.
     */
    function depositWstETH(uint256 _amount, address _receiver) external returns (uint256 returnShares_) {
        WSTETH_CONTRACT.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 depositSt_ = WSTETH_CONTRACT.unwrap(_amount);
        returnShares_ = vault.deposit(depositSt_, _receiver);

        emit DepositWSTETH(msg.sender, depositSt_, _amount, _receiver);
    }

    /**
     * @dev Invest initial assets into the vault using wstETH.
     * @param _amount The amount of stETH to be withdrawn from the vault.
     * @param _receiver The recipient of the redeemed assets.
     * @return wstAmount_ The actual amount of wstETH redeemed.
     */
    function withdrawWstETH(uint256 _amount, address _receiver) external returns (uint256 wstAmount_) {
        uint256 stEthBalanceBefore_ = STETH_CONTRACT.balanceOf(address(this));
        vault.withdraw(_amount, address(this), msg.sender);
        uint256 withdrawnAmount_ = STETH_CONTRACT.balanceOf(address(this)) - stEthBalanceBefore_;
        require(withdrawnAmount_ <= _amount, "UnexpectedWithdrawAmount");
        wstAmount_ = WSTETH_CONTRACT.wrap(withdrawnAmount_);
        WSTETH_CONTRACT.safeTransfer(_receiver, wstAmount_);

        emit WithdrawWSTETH(msg.sender, withdrawnAmount_, wstAmount_, _receiver);
    }

    /**
     * @dev When redeeming assets as ETH or WETH, the exchange is done through 1inch.
     * This method allows you to obtain the amount of tokens consumed during the exchange,
     * which can be used to request the API from 1inch.
     */
    function getWithdrawSwapAmount(uint256 amount_) external view returns (uint256 stEthSwapAmount_) {
        uint256 withdrawFee = vault.getWithdrawFee(amount_);
        stEthSwapAmount_ = amount_ - withdrawFee - 2;
    }

    receive() external payable {}
}

File 2 of 11 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 3 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

File 4 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 5 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 6 of 11 : IAggregationRouterV5.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @title Interface for making arbitrary calls during swap
interface IAggregationExecutor {
    /// @notice propagates information about original msg.sender and executes arbitrary data
    function execute(address msgSender) external payable; // 0x4b64e492
}

interface IAggregationRouterV5 {
    struct SwapDescription {
        IERC20 srcToken;
        IERC20 dstToken;
        address payable srcReceiver;
        address payable dstReceiver;
        uint256 amount;
        uint256 minReturnAmount;
        uint256 flags;
    }

    function swap(
        IAggregationExecutor executor,
        SwapDescription calldata desc,
        bytes calldata permit,
        bytes calldata data
    ) external payable returns (uint256 returnAmount, uint256 spentAmount);

    function uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] calldata pools)
        external
        payable
        returns (uint256 returnAmount);

    function unoswap(IERC20 srcToken, uint256 amount, uint256 minReturn, uint256[] calldata pools)
        external
        payable
        returns (uint256 returnAmount);
}

File 7 of 11 : IStrategyVault.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

interface IStrategyVault {
    function totalSupply() external view returns (uint256);

    function deposit(uint256 assets_, address receiver_) external returns (uint256 shares_);

    function withdraw(uint256 assets_, address receiver_, address owner_) external returns (uint256 shares_);

    function mint(uint256 shares_, address receiver_) external returns (uint256 assets_);

    function redeem(uint256 shares_, address receiver_, address owner_) external returns (uint256 assetsAfterFee_);

    function getWithdrawFee(uint256 _amount) external view returns (uint256 amount);
}

File 8 of 11 : IWstETH.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IWstETH is IERC20 {
    function wrap(uint256 _stETHAmount) external returns (uint256);

    function unwrap(uint256 _wstETHAmount) external returns (uint256);

    function tokensPerStEth() external view returns (uint256);

    function stEthPerToken() external view returns (uint256);

    function getStETHByWstETH(uint256 _wstETHAmount) external view returns (uint256);

    function getWstETHByStETH(uint256 _stETHAmount) external view returns (uint256);
}

File 9 of 11 : IUniswapV3Pool.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

interface IUniswapV3Pool {
    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);
}

File 10 of 11 : IWETH.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IWETH is IERC20 {
    function deposit() external payable;

    function withdraw(uint256 wad) external;
}

File 11 of 11 : OneinchCaller.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "../../interfaces/1inch/IAggregationRouterV5.sol";
import "../../interfaces/uniswapV3/IUniswapV3Pool.sol";

/**
 * @title OneinchCaller contract
 * @author Cian
 * @notice The focal point of interacting with the 1inch protocol.
 * @dev This contract will be inherited by the strategy contract and the wrapper contract,
 * used for the necessary exchange between ETH (WETH) and stETH when necessary.
 * @dev When using this contract, it is necessary to first obtain the calldata through 1inch API.
 * The contract will then extract and verify the calldata before proceeding with the exchange.
 */
contract OneinchCaller {
    address public constant ETH_ADDR = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    address public constant W_ETH_ADDR = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    // 1inch v5 protocol is currently in use.
    address public constant oneInchRouter = 0x1111111254EEB25477B68fb85Ed929f73A960582;
    uint256 private constant _UNIV3_ONE_FOR_ZERO_MASK = 1 << 255;

    /**
     * @dev Separate the function signature and detailed parameters in the calldata.
     * @param _swapData Calldata of 1inch.
     * @return functionSignature_ Function signature of the swap method.
     */
    function parseSwapCalldata(bytes memory _swapData)
        internal
        pure
        returns (bytes4 functionSignature_, bytes memory remainingBytes_)
    {
        // Extract function signature.(first 4 bytes of data)
        functionSignature_ = bytes4(_swapData[0]) | (bytes4(_swapData[1]) >> 8) | (bytes4(_swapData[2]) >> 16)
            | (bytes4(_swapData[3]) >> 24);

        uint256 remainingLength_ = _swapData.length - 4;
        // Create a variable to store the remaining bytes.
        remainingBytes_ = new bytes(remainingLength_);
        // IAggregationRouterV5.SwapDescription memory desc_;
        assembly {
            let src := add(_swapData, 0x24) // source data pointer (skip 4 bytes)
            let dst := add(remainingBytes_, 0x20) // destination data pointer
            let size := remainingLength_ // size to copy

            for {} gt(size, 31) {} {
                mstore(dst, mload(src))
                src := add(src, 0x20)
                dst := add(dst, 0x20)
                size := sub(size, 0x20)
            }
            let mask := sub(exp(2, mul(8, size)), 1)
            mstore(dst, and(mload(src), mask))
        }
        // (, desc_,,) =
        //     abi.decode(remainingBytes_, (IAggregationExecutor, IAggregationRouterV5.SwapDescription, bytes, bytes));
    }

    /**
     * @dev Executes the swap operation and verify the validity of the parameters and results.
     * @param _amount The maximum amount of currency spent.
     * @param _srcToken The token to be spent.
     * @param _dstToken The token to be received.
     * @param _swapData Calldata of 1inch.
     * @param _swapGetMin Minimum amount of the token to be received.
     * @return returnAmount_ Actual amount of the token spent.
     * @return spentAmount_ Actual amount of the token received.
     */
    function executeSwap(
        uint256 _amount,
        address _srcToken,
        address _dstToken,
        bytes memory _swapData,
        uint256 _swapGetMin
    ) internal returns (uint256 returnAmount_, uint256 spentAmount_) {
        (bytes4 functionSignature_, bytes memory remainingBytes_) = parseSwapCalldata(_swapData);
        if (functionSignature_ == IAggregationRouterV5.swap.selector) {
            (, IAggregationRouterV5.SwapDescription memory desc_,,) =
                abi.decode(remainingBytes_, (IAggregationExecutor, IAggregationRouterV5.SwapDescription, bytes, bytes));
            require(address(this) == desc_.dstReceiver, "1inch: Invalid receiver!");
            require(IERC20(_srcToken) == desc_.srcToken && IERC20(_dstToken) == desc_.dstToken, "1inch: Invalid token!");
            require(_amount >= desc_.amount, "1inch: Invalid input amount!");
            bytes memory returnData_;
            if (_srcToken == ETH_ADDR) {
                returnData_ = Address.functionCallWithValue(oneInchRouter, _swapData, _amount);
            } else {
                returnData_ = Address.functionCall(oneInchRouter, _swapData);
            }
            (returnAmount_, spentAmount_) = abi.decode(returnData_, (uint256, uint256));
            require(spentAmount_ <= desc_.amount, "1inch: unexpected spentAmount.");
            require(returnAmount_ >= _swapGetMin, "1inch: unexpected returnAmount.");
        } else if (functionSignature_ == IAggregationRouterV5.unoswap.selector) {
            (IERC20 srcTokenFromCalldata_, uint256 inputAmount_,,) =
                abi.decode(remainingBytes_, (IERC20, uint256, uint256, uint256[]));
            require(_amount >= inputAmount_, "1inch: Invalid input amount!");
            spentAmount_ = inputAmount_;
            uint256 dstTokenBefore_ =
                _dstToken == ETH_ADDR ? address(this).balance : IERC20(_dstToken).balanceOf(address(this));
            if (_srcToken == ETH_ADDR) {
                require(address(srcTokenFromCalldata_) == address(0), "1inch: Invalid token!");
                Address.functionCallWithValue(oneInchRouter, _swapData, _amount);
            } else {
                require(_srcToken == address(srcTokenFromCalldata_), "1inch: Invalid token!");
                Address.functionCall(oneInchRouter, _swapData);
            }
            returnAmount_ = _dstToken == ETH_ADDR
                ? (address(this).balance - dstTokenBefore_)
                : (IERC20(_dstToken).balanceOf(address(this)) - dstTokenBefore_);
            require(returnAmount_ > 0 && returnAmount_ >= _swapGetMin, "1inch: unexpected returnAmount.");
        } else if (functionSignature_ == IAggregationRouterV5.uniswapV3Swap.selector) {
            (uint256 inputAmount_,, uint256[] memory pools_) =
                abi.decode(remainingBytes_, (uint256, uint256, uint256[]));
            require(_amount >= inputAmount_, "1inch: Invalid input amount!");
            spentAmount_ = inputAmount_;
            address srcTokenFromCalldata_ = (pools_[0] & _UNIV3_ONE_FOR_ZERO_MASK == 0)
                ? IUniswapV3Pool(address(uint160(pools_[0]))).token0()
                : IUniswapV3Pool(address(uint160(pools_[0]))).token1();
            uint256 dstTokenBefore_ =
                _dstToken == ETH_ADDR ? address(this).balance : IERC20(_dstToken).balanceOf(address(this));
            if (_srcToken == ETH_ADDR) {
                require(srcTokenFromCalldata_ == W_ETH_ADDR, "1inch: Invalid token!");
                Address.functionCallWithValue(oneInchRouter, _swapData, _amount);
            } else {
                require(_srcToken == srcTokenFromCalldata_, "1inch: Invalid token!");
                Address.functionCall(oneInchRouter, _swapData);
            }
            returnAmount_ = _dstToken == ETH_ADDR
                ? (address(this).balance - dstTokenBefore_)
                : (IERC20(_dstToken).balanceOf(address(this)) - dstTokenBefore_);
            require(returnAmount_ > 0 && returnAmount_ >= _swapGetMin, "1inch: unexpected returnAmount.");
        } else {
            revert("1inch: Invalid function signature!");
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vaultAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"swapGet","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"stAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositWst","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"DepositWSTETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"stAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"swapGet","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"stAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"withdrawWst","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"}],"name":"WithdrawWSTETH","type":"event"},{"inputs":[],"name":"ETH_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STETH_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WSTETH_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"W_ETH_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wethAmount","type":"uint256"},{"internalType":"bytes","name":"_swapCalldata","type":"bytes"},{"internalType":"uint256","name":"_minStEthIn","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"returnShares_","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"depositWstETH","outputs":[{"internalType":"uint256","name":"returnShares_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"getWithdrawSwapAmount","outputs":[{"internalType":"uint256","name":"stEthSwapAmount_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneInchRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_swapCalldata","type":"bytes"},{"internalType":"uint256","name":"_minEthOut","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"bool","name":"_isWeth","type":"bool"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"returnEthAmount_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"withdrawWstETH","outputs":[{"internalType":"uint256","name":"wstAmount_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b50604051620030ab380380620030ab833981016040819052620000349162000415565b6001600160a01b038116608081905260a0526200006973ae7ab96520de3a18e5e111b5eaab095312d7fe8482600019620000a7565b620000a073ae7ab96520de3a18e5e111b5eaab095312d7fe84737f39c581f595b53c5cb19bd0b3f8da6c935e2ca0600019620000a7565b5062000526565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015620000f8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200011e919062000447565b90506200018e8463095ea7b360e01b856200013a868662000461565b6040516001600160a01b039092166024830152604482015260640160408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b03938416179052906200019416565b50505050565b6040805180820190915260208082527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490820152600090620001e3906001600160a01b03851690849062000271565b90508051600014806200020757508080602001905181019062000207919062000489565b6200026c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b505050565b60606200028284846000856200028a565b949350505050565b606082471015620002ed5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000263565b600080866001600160a01b031685876040516200030b9190620004d3565b60006040518083038185875af1925050503d80600081146200034a576040519150601f19603f3d011682016040523d82523d6000602084013e6200034f565b606091505b50909250905062000363878383876200036e565b979650505050505050565b60608315620003e2578251600003620003da576001600160a01b0385163b620003da5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000263565b508162000282565b620002828383815115620003f95781518083602001fd5b8060405162461bcd60e51b8152600401620002639190620004f1565b6000602082840312156200042857600080fd5b81516001600160a01b03811681146200044057600080fd5b9392505050565b6000602082840312156200045a57600080fd5b5051919050565b808201808211156200048357634e487b7160e01b600052601160045260246000fd5b92915050565b6000602082840312156200049c57600080fd5b815180151581146200044057600080fd5b60005b83811015620004ca578181015183820152602001620004b0565b50506000910152565b60008251620004e7818460208701620004ad565b9190910192915050565b602081526000825180602084015262000512816040850160208701620004ad565b601f01601f19169190910160400192915050565b60805160a051612b3c6200056f6000396000818161035f015281816104080152818161081b01528181610ac201528181610d030152610ec5015260006102470152612b3c6000f3fe6080604052600436106100cb5760003560e01c80637753f47b11610074578063d27567f21161004e578063d27567f214610235578063e107e02714610269578063eb0ffe74146101e557600080fd5b80637753f47b146101bd57806382dfc5f7146101e5578063ac3af2081461020d57600080fd5b8063385b5dde116100a5578063385b5dde1461016a5780634d4479951461018a5780635243318f1461019d57600080fd5b8063259f8d1a146100d75780632973e0ee1461010a57806332ca494b1461014a57600080fd5b366100d257005b600080fd5b3480156100e357600080fd5b506100f76100f236600461252f565b610291565b6040519081526020015b60405180910390f35b34801561011657600080fd5b5061013273ae7ab96520de3a18e5e111b5eaab095312d7fe8481565b6040516001600160a01b039091168152602001610101565b34801561015657600080fd5b506100f76101653660046125ab565b61074c565b34801561017657600080fd5b506100f76101853660046125db565b610a86565b6100f76101983660046125f4565b610b4c565b3480156101a957600080fd5b506100f76101b83660046125ab565b610dcf565b3480156101c957600080fd5b5061013273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156101f157600080fd5b5061013273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561021957600080fd5b50610132731111111254eeb25477b68fb85ed929f73a96058281565b34801561024157600080fd5b506101327f000000000000000000000000000000000000000000000000000000000000000081565b34801561027557600080fd5b50610132737f39c581f595b53c5cb19bd0b3f8da6c935e2ca081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156102fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610322919061265f565b6040517f29c23e4a000000000000000000000000000000000000000000000000000000008152600481018a90529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906329c23e4a90602401602060405180830381865afa1580156103a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ca919061265f565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018b90523060248201523360448201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b460af94906064016020604051808303816000875af1158015610459573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047d919061265f565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156104eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050f919061265f565b61051991906126a7565b90508961052683836126ba565b11156105795760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e74000000000000000060448201526064015b60405180910390fd5b6105ac73ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a96058283610f8e565b6106188173ae7ab96520de3a18e5e111b5eaab095312d7fe8473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508e92506110d3915050565b50935061064f73ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a9605826000611d0a565b84156106e55773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106a457600080fd5b505af11580156106b8573d6000803e3d6000fd5b506106e0935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29250899150879050611e5d565b6106ef565b6106ef8685611ea6565b60408051338152602081018c90529081018590526001600160a01b03871660608201527f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21329060800160405180910390a15050509695505050505050565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156107b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107dd919061265f565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018690523060248201523360448201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b460af94906064016020604051808303816000875af115801561086c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610890919061265f565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090829073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156108fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610922919061265f565b61092c91906126a7565b90508481111561097e5760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e7400000000000000006044820152606401610570565b6040517fea598cb000000000000000000000000000000000000000000000000000000000815260048101829052737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063ea598cb0906024016020604051808303816000875af11580156109e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0d919061265f565b9250610a2e737f39c581f595b53c5cb19bd0b3f8da6c935e2ca08585611e5d565b60408051338152602081018390529081018490526001600160a01b03851660608201527fc7386ec3f25f56e2da6c8dab443965b897395e4b467b63c7b9c7685fdc2bc3ec9060800160405180910390a1505092915050565b6040517f29c23e4a0000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906329c23e4a90602401602060405180830381865afa158015610b09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2d919061265f565b90506002610b3b82856126a7565b610b4591906126a7565b9392505050565b6000348615610c0257610b7573c02aaa39b223fe8d0a0e5c4f27ead9083c756cc233308a611fbf565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810188905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610bdb57600080fd5b505af1158015610bef573d6000803e3d6000fd5b505050508681610bff91906126ba565b90505b600080610c718373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ae7ab96520de3a18e5e111b5eaab095312d7fe848b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92506110d3915050565b91509150828114610cc45760405162461bcd60e51b815260206004820152601160248201527f496e707574496e73756666696369656e740000000000000000000000000000006044820152606401610570565b6040517f6e553f65000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b0386811660248301527f00000000000000000000000000000000000000000000000000000000000000001690636e553f65906044016020604051808303816000875af1158015610d4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d70919061265f565b60408051338152602081018690529081018490526001600160a01b03871660608201529094507f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b479060800160405180910390a150505095945050505050565b6000610df1737f39c581f595b53c5cb19bd0b3f8da6c935e2ca0333086611fbf565b6040517fde0e9a3e00000000000000000000000000000000000000000000000000000000815260048101849052600090737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063de0e9a3e906024016020604051808303816000875af1158015610e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e83919061265f565b6040517f6e553f65000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b0385811660248301529192507f000000000000000000000000000000000000000000000000000000000000000090911690636e553f65906044016020604051808303816000875af1158015610f10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f34919061265f565b60408051338152602081018490529081018690526001600160a01b03851660608201529092507f211758cf6d7b0555308f48d3e29ce5d681588df0d68864e6ff9b8d9cab6e9cce9060800160405180910390a15092915050565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610ff7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101b919061265f565b90506110cd847f095ea7b3000000000000000000000000000000000000000000000000000000008561104d86866126ba565b6040516001600160a01b03909216602483015260448201526064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612010565b50505050565b6000806000806110e2866120f8565b90925090507fed55c351000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316016113be5760008180602001905181019061114691906127de565b505091505080606001516001600160a01b0316306001600160a01b0316146111b05760405162461bcd60e51b815260206004820152601860248201527f31696e63683a20496e76616c69642072656365697665722100000000000000006044820152606401610570565b80516001600160a01b038a811691161480156111e1575080602001516001600160a01b0316886001600160a01b0316145b61122d5760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b80608001518a10156112815760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e7421000000006044820152606401610570565b60607fffffffffffffffffffffffff11111111111111111111111111111111111111126001600160a01b038b16016112d9576112d2731111111254eeb25477b68fb85ed929f73a960582898d6122aa565b90506112fa565b6112f7731111111254eeb25477b68fb85ed929f73a960582896122d8565b90505b8080602001905181019061130e91906128e3565b608084015191975095508511156113675760405162461bcd60e51b815260206004820152601e60248201527f31696e63683a20756e6578706563746564207370656e74416d6f756e742e00006044820152606401610570565b868610156113b75760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e006044820152606401610570565b5050611cfe565b7ffafd4e3b000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083160161177a576000808280602001905181019061141e919061297c565b505091509150808b10156114745760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e7421000000006044820152606401610570565b93508360006001600160a01b038a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611523576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038b16906370a0823190602401602060405180830381865afa1580156114fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151e919061265f565b611525565b475b90507fffffffffffffffffffffffff11111111111111111111111111111111111111126001600160a01b038c16016115d3576001600160a01b038316156115ae5760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b6115cd731111111254eeb25477b68fb85ed929f73a9605828a8e6122aa565b50611654565b826001600160a01b03168b6001600160a01b0316146116345760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b611652731111111254eeb25477b68fb85ed929f73a9605828a6122d8565b505b6001600160a01b038a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461170a576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906001600160a01b038c16906370a0823190602401602060405180830381865afa1580156116d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116fb919061265f565b61170591906126a7565b611714565b61171481476126a7565b96506000871180156117265750878710155b6117725760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e006044820152606401610570565b505050611cfe565b7f1bb6fdd2000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831601611c9057600080828060200190518101906117da91906129d5565b9250509150818b101561182f5760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e7421000000006044820152606401610570565b81945060007f80000000000000000000000000000000000000000000000000000000000000008260008151811061186857611868612a25565b6020026020010151166000146118f9578160008151811061188b5761188b612a25565b60200260200101516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f49190612a54565b611975565b8160008151811061190c5761190c612a25565b60200260200101516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611951573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119759190612a54565b905060006001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611a23576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038c16906370a0823190602401602060405180830381865afa1580156119fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1e919061265f565b611a25565b475b90507fffffffffffffffffffffffff11111111111111111111111111111111111111126001600160a01b038d1601611ae8576001600160a01b03821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214611ac35760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b611ae2731111111254eeb25477b68fb85ed929f73a9605828b8f6122aa565b50611b69565b816001600160a01b03168c6001600160a01b031614611b495760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b611b67731111111254eeb25477b68fb85ed929f73a9605828b6122d8565b505b6001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611c1f576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906001600160a01b038d16906370a0823190602401602060405180830381865afa158015611bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c10919061265f565b611c1a91906126a7565b611c29565b611c2981476126a7565b9750600088118015611c3b5750888810155b611c875760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e006044820152606401610570565b50505050611cfe565b60405162461bcd60e51b815260206004820152602260248201527f31696e63683a20496e76616c69642066756e6374696f6e207369676e6174757260448201527f65210000000000000000000000000000000000000000000000000000000000006064820152608401610570565b50509550959350505050565b801580611d9d57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611d77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9b919061265f565b155b611e0f5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610570565b6040516001600160a01b038316602482015260448101829052611e589084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611069565b505050565b6040516001600160a01b038316602482015260448101829052611e589084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611069565b80471015611ef65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610570565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f43576040519150601f19603f3d011682016040523d82523d6000602084013e611f48565b606091505b5050905080611e585760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610570565b6040516001600160a01b03808516602483015283166044820152606481018290526110cd9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611069565b6000612065826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123259092919063ffffffff16565b90508051600014806120865750808060200190518101906120869190612a71565b611e585760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610570565b6000606060188360038151811061211157612111612a25565b016020015184517fff0000000000000000000000000000000000000000000000000000000000000090911690911c906010908590600290811061215657612156612a25565b016020015185517fff0000000000000000000000000000000000000000000000000000000000000090911690911c906008908690600190811061219b5761219b612a25565b016020015186517fff0000000000000000000000000000000000000000000000000000000000000090911690911c9086906000906121db576121db612a25565b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916171717915060006004845161221d91906126a7565b90508067ffffffffffffffff811115612238576122386126cd565b6040519080825280601f01601f191660200182016040528015612262576020820181803683370190505b5091506024840160208301825b601f81111561228f578251825260209283019290910190601f190161226f565b60018160080260020a03905080835116825250505050915091565b60606122d0848484604051806060016040528060298152602001612ade60299139612330565b949350505050565b606061231c838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250612330565b90505b92915050565b60606122d084846000855b6060824710156123a85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610570565b600080866001600160a01b031685876040516123c49190612a8e565b60006040518083038185875af1925050503d8060008114612401576040519150601f19603f3d011682016040523d82523d6000602084013e612406565b606091505b509150915061241787838387612422565b979650505050505050565b6060831561249157825160000361248a576001600160a01b0385163b61248a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610570565b50816122d0565b6122d083838151156124a65781518083602001fd5b8060405162461bcd60e51b81526004016105709190612aaa565b60008083601f8401126124d257600080fd5b50813567ffffffffffffffff8111156124ea57600080fd5b60208301915083602082850101111561250257600080fd5b9250929050565b6001600160a01b038116811461251e57600080fd5b50565b801515811461251e57600080fd5b60008060008060008060a0878903121561254857600080fd5b86359550602087013567ffffffffffffffff81111561256657600080fd5b61257289828a016124c0565b90965094505060408701359250606087013561258d81612509565b9150608087013561259d81612521565b809150509295509295509295565b600080604083850312156125be57600080fd5b8235915060208301356125d081612509565b809150509250929050565b6000602082840312156125ed57600080fd5b5035919050565b60008060008060006080868803121561260c57600080fd5b85359450602086013567ffffffffffffffff81111561262a57600080fd5b612636888289016124c0565b90955093505060408601359150606086013561265181612509565b809150509295509295909350565b60006020828403121561267157600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561231f5761231f612678565b8082018082111561231f5761231f612678565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160e0810167ffffffffffffffff8111828210171561271f5761271f6126cd565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561274e5761274e6126cd565b604052919050565b60005b83811015612771578181015183820152602001612759565b50506000910152565b600082601f83011261278b57600080fd5b815167ffffffffffffffff8111156127a5576127a56126cd565b6127b86020601f19601f84011601612725565b8181528460208386010111156127cd57600080fd5b6122d0826020830160208701612756565b6000806000808486036101408112156127f657600080fd5b855161280181612509565b945060e0601f198201121561281557600080fd5b5061281e6126fc565b602086015161282c81612509565b8152604086015161283c81612509565b6020820152606086015161284f81612509565b6040820152608086015161286281612509565b8060608301525060a0860151608082015260c086015160a082015260e086015160c08201528093505061010085015167ffffffffffffffff808211156128a757600080fd5b6128b38883890161277a565b93506101208701519150808211156128ca57600080fd5b506128d78782880161277a565b91505092959194509250565b600080604083850312156128f657600080fd5b505080516020909101519092909150565b600082601f83011261291857600080fd5b8151602067ffffffffffffffff821115612934576129346126cd565b8160051b612943828201612725565b928352848101820192828101908785111561295d57600080fd5b83870192505b8483101561241757825182529183019190830190612963565b6000806000806080858703121561299257600080fd5b845161299d81612509565b809450506020850151925060408501519150606085015167ffffffffffffffff8111156129c957600080fd5b6128d787828801612907565b6000806000606084860312156129ea57600080fd5b8351925060208401519150604084015167ffffffffffffffff811115612a0f57600080fd5b612a1b86828701612907565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215612a6657600080fd5b8151610b4581612509565b600060208284031215612a8357600080fd5b8151610b4581612521565b60008251612aa0818460208701612756565b9190910192915050565b6020815260008251806020840152612ac9816040850160208701612756565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220ce472a9e68d284175148a98773c497f45d62ce93e17576c594347d1a070c844764736f6c63430008130033000000000000000000000000cdd374f491fbf3f4fcf6e9023c99043774005137

Deployed Bytecode

0x6080604052600436106100cb5760003560e01c80637753f47b11610074578063d27567f21161004e578063d27567f214610235578063e107e02714610269578063eb0ffe74146101e557600080fd5b80637753f47b146101bd57806382dfc5f7146101e5578063ac3af2081461020d57600080fd5b8063385b5dde116100a5578063385b5dde1461016a5780634d4479951461018a5780635243318f1461019d57600080fd5b8063259f8d1a146100d75780632973e0ee1461010a57806332ca494b1461014a57600080fd5b366100d257005b600080fd5b3480156100e357600080fd5b506100f76100f236600461252f565b610291565b6040519081526020015b60405180910390f35b34801561011657600080fd5b5061013273ae7ab96520de3a18e5e111b5eaab095312d7fe8481565b6040516001600160a01b039091168152602001610101565b34801561015657600080fd5b506100f76101653660046125ab565b61074c565b34801561017657600080fd5b506100f76101853660046125db565b610a86565b6100f76101983660046125f4565b610b4c565b3480156101a957600080fd5b506100f76101b83660046125ab565b610dcf565b3480156101c957600080fd5b5061013273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156101f157600080fd5b5061013273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561021957600080fd5b50610132731111111254eeb25477b68fb85ed929f73a96058281565b34801561024157600080fd5b506101327f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513781565b34801561027557600080fd5b50610132737f39c581f595b53c5cb19bd0b3f8da6c935e2ca081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156102fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610322919061265f565b6040517f29c23e4a000000000000000000000000000000000000000000000000000000008152600481018a90529091506000906001600160a01b037f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513716906329c23e4a90602401602060405180830381865afa1580156103a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ca919061265f565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018b90523060248201523360448201529091507f000000000000000000000000cdd374f491fbf3f4fcf6e9023c990437740051376001600160a01b03169063b460af94906064016020604051808303816000875af1158015610459573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047d919061265f565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156104eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050f919061265f565b61051991906126a7565b90508961052683836126ba565b11156105795760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e74000000000000000060448201526064015b60405180910390fd5b6105ac73ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a96058283610f8e565b6106188173ae7ab96520de3a18e5e111b5eaab095312d7fe8473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508e92506110d3915050565b50935061064f73ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a9605826000611d0a565b84156106e55773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106a457600080fd5b505af11580156106b8573d6000803e3d6000fd5b506106e0935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29250899150879050611e5d565b6106ef565b6106ef8685611ea6565b60408051338152602081018c90529081018590526001600160a01b03871660608201527f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21329060800160405180910390a15050509695505050505050565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156107b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107dd919061265f565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018690523060248201523360448201529091507f000000000000000000000000cdd374f491fbf3f4fcf6e9023c990437740051376001600160a01b03169063b460af94906064016020604051808303816000875af115801561086c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610890919061265f565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090829073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156108fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610922919061265f565b61092c91906126a7565b90508481111561097e5760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e7400000000000000006044820152606401610570565b6040517fea598cb000000000000000000000000000000000000000000000000000000000815260048101829052737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063ea598cb0906024016020604051808303816000875af11580156109e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0d919061265f565b9250610a2e737f39c581f595b53c5cb19bd0b3f8da6c935e2ca08585611e5d565b60408051338152602081018390529081018490526001600160a01b03851660608201527fc7386ec3f25f56e2da6c8dab443965b897395e4b467b63c7b9c7685fdc2bc3ec9060800160405180910390a1505092915050565b6040517f29c23e4a0000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513716906329c23e4a90602401602060405180830381865afa158015610b09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2d919061265f565b90506002610b3b82856126a7565b610b4591906126a7565b9392505050565b6000348615610c0257610b7573c02aaa39b223fe8d0a0e5c4f27ead9083c756cc233308a611fbf565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810188905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610bdb57600080fd5b505af1158015610bef573d6000803e3d6000fd5b505050508681610bff91906126ba565b90505b600080610c718373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ae7ab96520de3a18e5e111b5eaab095312d7fe848b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92506110d3915050565b91509150828114610cc45760405162461bcd60e51b815260206004820152601160248201527f496e707574496e73756666696369656e740000000000000000000000000000006044820152606401610570565b6040517f6e553f65000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b0386811660248301527f000000000000000000000000cdd374f491fbf3f4fcf6e9023c990437740051371690636e553f65906044016020604051808303816000875af1158015610d4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d70919061265f565b60408051338152602081018690529081018490526001600160a01b03871660608201529094507f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b479060800160405180910390a150505095945050505050565b6000610df1737f39c581f595b53c5cb19bd0b3f8da6c935e2ca0333086611fbf565b6040517fde0e9a3e00000000000000000000000000000000000000000000000000000000815260048101849052600090737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063de0e9a3e906024016020604051808303816000875af1158015610e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e83919061265f565b6040517f6e553f65000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b0385811660248301529192507f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513790911690636e553f65906044016020604051808303816000875af1158015610f10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f34919061265f565b60408051338152602081018490529081018690526001600160a01b03851660608201529092507f211758cf6d7b0555308f48d3e29ce5d681588df0d68864e6ff9b8d9cab6e9cce9060800160405180910390a15092915050565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015610ff7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101b919061265f565b90506110cd847f095ea7b3000000000000000000000000000000000000000000000000000000008561104d86866126ba565b6040516001600160a01b03909216602483015260448201526064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612010565b50505050565b6000806000806110e2866120f8565b90925090507fed55c351000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316016113be5760008180602001905181019061114691906127de565b505091505080606001516001600160a01b0316306001600160a01b0316146111b05760405162461bcd60e51b815260206004820152601860248201527f31696e63683a20496e76616c69642072656365697665722100000000000000006044820152606401610570565b80516001600160a01b038a811691161480156111e1575080602001516001600160a01b0316886001600160a01b0316145b61122d5760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b80608001518a10156112815760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e7421000000006044820152606401610570565b60607fffffffffffffffffffffffff11111111111111111111111111111111111111126001600160a01b038b16016112d9576112d2731111111254eeb25477b68fb85ed929f73a960582898d6122aa565b90506112fa565b6112f7731111111254eeb25477b68fb85ed929f73a960582896122d8565b90505b8080602001905181019061130e91906128e3565b608084015191975095508511156113675760405162461bcd60e51b815260206004820152601e60248201527f31696e63683a20756e6578706563746564207370656e74416d6f756e742e00006044820152606401610570565b868610156113b75760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e006044820152606401610570565b5050611cfe565b7ffafd4e3b000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083160161177a576000808280602001905181019061141e919061297c565b505091509150808b10156114745760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e7421000000006044820152606401610570565b93508360006001600160a01b038a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611523576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038b16906370a0823190602401602060405180830381865afa1580156114fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151e919061265f565b611525565b475b90507fffffffffffffffffffffffff11111111111111111111111111111111111111126001600160a01b038c16016115d3576001600160a01b038316156115ae5760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b6115cd731111111254eeb25477b68fb85ed929f73a9605828a8e6122aa565b50611654565b826001600160a01b03168b6001600160a01b0316146116345760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b611652731111111254eeb25477b68fb85ed929f73a9605828a6122d8565b505b6001600160a01b038a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461170a576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906001600160a01b038c16906370a0823190602401602060405180830381865afa1580156116d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116fb919061265f565b61170591906126a7565b611714565b61171481476126a7565b96506000871180156117265750878710155b6117725760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e006044820152606401610570565b505050611cfe565b7f1bb6fdd2000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831601611c9057600080828060200190518101906117da91906129d5565b9250509150818b101561182f5760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e7421000000006044820152606401610570565b81945060007f80000000000000000000000000000000000000000000000000000000000000008260008151811061186857611868612a25565b6020026020010151166000146118f9578160008151811061188b5761188b612a25565b60200260200101516001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156118d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f49190612a54565b611975565b8160008151811061190c5761190c612a25565b60200260200101516001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611951573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119759190612a54565b905060006001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611a23576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038c16906370a0823190602401602060405180830381865afa1580156119fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1e919061265f565b611a25565b475b90507fffffffffffffffffffffffff11111111111111111111111111111111111111126001600160a01b038d1601611ae8576001600160a01b03821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc214611ac35760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b611ae2731111111254eeb25477b68fb85ed929f73a9605828b8f6122aa565b50611b69565b816001600160a01b03168c6001600160a01b031614611b495760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e2100000000000000000000006044820152606401610570565b611b67731111111254eeb25477b68fb85ed929f73a9605828b6122d8565b505b6001600160a01b038b1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611c1f576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906001600160a01b038d16906370a0823190602401602060405180830381865afa158015611bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c10919061265f565b611c1a91906126a7565b611c29565b611c2981476126a7565b9750600088118015611c3b5750888810155b611c875760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e006044820152606401610570565b50505050611cfe565b60405162461bcd60e51b815260206004820152602260248201527f31696e63683a20496e76616c69642066756e6374696f6e207369676e6174757260448201527f65210000000000000000000000000000000000000000000000000000000000006064820152608401610570565b50509550959350505050565b801580611d9d57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611d77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9b919061265f565b155b611e0f5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610570565b6040516001600160a01b038316602482015260448101829052611e589084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611069565b505050565b6040516001600160a01b038316602482015260448101829052611e589084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611069565b80471015611ef65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610570565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611f43576040519150601f19603f3d011682016040523d82523d6000602084013e611f48565b606091505b5050905080611e585760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610570565b6040516001600160a01b03808516602483015283166044820152606481018290526110cd9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611069565b6000612065826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123259092919063ffffffff16565b90508051600014806120865750808060200190518101906120869190612a71565b611e585760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610570565b6000606060188360038151811061211157612111612a25565b016020015184517fff0000000000000000000000000000000000000000000000000000000000000090911690911c906010908590600290811061215657612156612a25565b016020015185517fff0000000000000000000000000000000000000000000000000000000000000090911690911c906008908690600190811061219b5761219b612a25565b016020015186517fff0000000000000000000000000000000000000000000000000000000000000090911690911c9086906000906121db576121db612a25565b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916171717915060006004845161221d91906126a7565b90508067ffffffffffffffff811115612238576122386126cd565b6040519080825280601f01601f191660200182016040528015612262576020820181803683370190505b5091506024840160208301825b601f81111561228f578251825260209283019290910190601f190161226f565b60018160080260020a03905080835116825250505050915091565b60606122d0848484604051806060016040528060298152602001612ade60299139612330565b949350505050565b606061231c838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250612330565b90505b92915050565b60606122d084846000855b6060824710156123a85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610570565b600080866001600160a01b031685876040516123c49190612a8e565b60006040518083038185875af1925050503d8060008114612401576040519150601f19603f3d011682016040523d82523d6000602084013e612406565b606091505b509150915061241787838387612422565b979650505050505050565b6060831561249157825160000361248a576001600160a01b0385163b61248a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610570565b50816122d0565b6122d083838151156124a65781518083602001fd5b8060405162461bcd60e51b81526004016105709190612aaa565b60008083601f8401126124d257600080fd5b50813567ffffffffffffffff8111156124ea57600080fd5b60208301915083602082850101111561250257600080fd5b9250929050565b6001600160a01b038116811461251e57600080fd5b50565b801515811461251e57600080fd5b60008060008060008060a0878903121561254857600080fd5b86359550602087013567ffffffffffffffff81111561256657600080fd5b61257289828a016124c0565b90965094505060408701359250606087013561258d81612509565b9150608087013561259d81612521565b809150509295509295509295565b600080604083850312156125be57600080fd5b8235915060208301356125d081612509565b809150509250929050565b6000602082840312156125ed57600080fd5b5035919050565b60008060008060006080868803121561260c57600080fd5b85359450602086013567ffffffffffffffff81111561262a57600080fd5b612636888289016124c0565b90955093505060408601359150606086013561265181612509565b809150509295509295909350565b60006020828403121561267157600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561231f5761231f612678565b8082018082111561231f5761231f612678565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160e0810167ffffffffffffffff8111828210171561271f5761271f6126cd565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561274e5761274e6126cd565b604052919050565b60005b83811015612771578181015183820152602001612759565b50506000910152565b600082601f83011261278b57600080fd5b815167ffffffffffffffff8111156127a5576127a56126cd565b6127b86020601f19601f84011601612725565b8181528460208386010111156127cd57600080fd5b6122d0826020830160208701612756565b6000806000808486036101408112156127f657600080fd5b855161280181612509565b945060e0601f198201121561281557600080fd5b5061281e6126fc565b602086015161282c81612509565b8152604086015161283c81612509565b6020820152606086015161284f81612509565b6040820152608086015161286281612509565b8060608301525060a0860151608082015260c086015160a082015260e086015160c08201528093505061010085015167ffffffffffffffff808211156128a757600080fd5b6128b38883890161277a565b93506101208701519150808211156128ca57600080fd5b506128d78782880161277a565b91505092959194509250565b600080604083850312156128f657600080fd5b505080516020909101519092909150565b600082601f83011261291857600080fd5b8151602067ffffffffffffffff821115612934576129346126cd565b8160051b612943828201612725565b928352848101820192828101908785111561295d57600080fd5b83870192505b8483101561241757825182529183019190830190612963565b6000806000806080858703121561299257600080fd5b845161299d81612509565b809450506020850151925060408501519150606085015167ffffffffffffffff8111156129c957600080fd5b6128d787828801612907565b6000806000606084860312156129ea57600080fd5b8351925060208401519150604084015167ffffffffffffffff811115612a0f57600080fd5b612a1b86828701612907565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215612a6657600080fd5b8151610b4581612509565b600060208284031215612a8357600080fd5b8151610b4581612521565b60008251612aa0818460208701612756565b9190910192915050565b6020815260008251806020840152612ac9816040850160208701612756565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220ce472a9e68d284175148a98773c497f45d62ce93e17576c594347d1a070c844764736f6c63430008130033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000cdd374f491fbf3f4fcf6e9023c99043774005137

-----Decoded View---------------
Arg [0] : _vaultAddr (address): 0xcDd374F491fBF3f4FcF6E9023c99043774005137

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000cdd374f491fbf3f4fcf6e9023c99043774005137


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.