ETH Price: $2,033.65 (+2.93%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw182422972023-09-29 15:35:35885 days ago1696001735IN
0x4E8e60cc...85df9a427
0 ETH0.0052174815.30232438
Deposit182181222023-09-26 6:19:11888 days ago1695709151IN
0x4E8e60cc...85df9a427
0.01 ETH0.002442877.12301011
Withdraw182045072023-09-24 8:36:59890 days ago1695544619IN
0x4E8e60cc...85df9a427
0 ETH0.002305526.68512709
Deposit181949652023-09-23 0:31:35891 days ago1695429095IN
0x4E8e60cc...85df9a427
0.15 ETH0.002408477.02196046
Deposit181947892023-09-22 23:56:11891 days ago1695426971IN
0x4E8e60cc...85df9a427
0.02 ETH0.002453257.15325493
Deposit181917672023-09-22 13:46:23892 days ago1695390383IN
0x4E8e60cc...85df9a427
0 ETH0.0031796410.88868833
Deposit181908872023-09-22 10:48:23892 days ago1695379703IN
0x4E8e60cc...85df9a427
50 ETH0.002222098.11960882
Deposit181903182023-09-22 8:52:35892 days ago1695372755IN
0x4E8e60cc...85df9a427
0.45 ETH0.002559789.45150027
Withdraw180918112023-09-08 12:51:11906 days ago1694177471IN
0x4E8e60cc...85df9a427
0 ETH0.0048153514.127275
Deposit180903432023-09-08 7:54:59906 days ago1694159699IN
0x4E8e60cc...85df9a427
0.25 ETH0.003187110.96226788
Deposit180435802023-09-01 18:46:35912 days ago1693593995IN
0x4E8e60cc...85df9a427
1.23 ETH0.0069276125.58107404
Deposit180416652023-09-01 12:20:47913 days ago1693570847IN
0x4E8e60cc...85df9a427
51.08 ETH0.0044172114.33768432
Deposit180341062023-08-31 10:57:35914 days ago1693479455IN
0x4E8e60cc...85df9a427
0.002 ETH0.0036307112.61112754
Deposit180284112023-08-30 15:49:35915 days ago1693410575IN
0x4E8e60cc...85df9a427
0.08 ETH0.0092809334.26797676
Deposit180168872023-08-29 1:03:11916 days ago1693270991IN
0x4E8e60cc...85df9a427
54.99 ETH0.0057251619.88111105
Deposit179835012023-08-24 8:54:23921 days ago1692867263IN
0x4E8e60cc...85df9a427
0.047 ETH0.0055915319.42112772
Deposit179776982023-08-23 13:26:35922 days ago1692797195IN
0x4E8e60cc...85df9a427
0.08 ETH0.0060508522.11295772
Deposit179630152023-08-21 12:09:35924 days ago1692619775IN
0x4E8e60cc...85df9a427
0.65 ETH0.0054482718.92195225
Withdraw179562922023-08-20 13:35:47925 days ago1692538547IN
0x4E8e60cc...85df9a427
0 ETH0.0047415113.74663107
Deposit178869932023-08-10 20:52:59934 days ago1691700779IN
0x4E8e60cc...85df9a427
0.95 ETH0.0064971822.58209514
Deposit178344522023-08-03 12:24:23942 days ago1691065463IN
0x4E8e60cc...85df9a427
200 ETH0.0128419721.46116197
Withdraw178332872023-08-03 8:29:35942 days ago1691051375IN
0x4E8e60cc...85df9a427
0 ETH0.0048847714.16698839
Deposit176892042023-07-14 4:02:47962 days ago1689307367IN
0x4E8e60cc...85df9a427
1 ETH0.005567119.34942433
Deposit176684642023-07-11 6:02:23965 days ago1689055343IN
0x4E8e60cc...85df9a427
0.07 ETH0.0041552814.44423412
Deposit176419172023-07-07 12:26:35969 days ago1688732795IN
0x4E8e60cc...85df9a427
0.001 ETH0.0060004320.85727996
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer182422972023-09-29 15:35:35885 days ago1696001735
0x4E8e60cc...85df9a427
8.92089869 ETH
Transfer182422972023-09-29 15:35:35885 days ago1696001735
0x4E8e60cc...85df9a427
8.92089869 ETH
Swap182181222023-09-26 6:19:11888 days ago1695709151
0x4E8e60cc...85df9a427
0.01 ETH
Transfer182045072023-09-24 8:36:59890 days ago1695544619
0x4E8e60cc...85df9a427
0.07070442 ETH
Transfer182045072023-09-24 8:36:59890 days ago1695544619
0x4E8e60cc...85df9a427
0.07070442 ETH
Swap181949652023-09-23 0:31:35891 days ago1695429095
0x4E8e60cc...85df9a427
0.15 ETH
Swap181947892023-09-22 23:56:11891 days ago1695426971
0x4E8e60cc...85df9a427
0.02 ETH
Swap181917672023-09-22 13:46:23892 days ago1695390383
0x4E8e60cc...85df9a427
2.7810273 ETH
Transfer181917672023-09-22 13:46:23892 days ago1695390383
0x4E8e60cc...85df9a427
2.7810273 ETH
Swap181908872023-09-22 10:48:23892 days ago1695379703
0x4E8e60cc...85df9a427
50 ETH
Swap181903182023-09-22 8:52:35892 days ago1695372755
0x4E8e60cc...85df9a427
0.45 ETH
Transfer180918112023-09-08 12:51:11906 days ago1694177471
0x4E8e60cc...85df9a427
0.04705909 ETH
Transfer180918112023-09-08 12:51:11906 days ago1694177471
0x4E8e60cc...85df9a427
0.04705909 ETH
Swap180903432023-09-08 7:54:59906 days ago1694159699
0x4E8e60cc...85df9a427
0.25 ETH
Swap180435802023-09-01 18:46:35912 days ago1693593995
0x4E8e60cc...85df9a427
1.23 ETH
Swap180416652023-09-01 12:20:47913 days ago1693570847
0x4E8e60cc...85df9a427
51.08 ETH
Swap180341062023-08-31 10:57:35914 days ago1693479455
0x4E8e60cc...85df9a427
0.002 ETH
Swap180284112023-08-30 15:49:35915 days ago1693410575
0x4E8e60cc...85df9a427
0.08 ETH
Swap180168872023-08-29 1:03:11916 days ago1693270991
0x4E8e60cc...85df9a427
54.99 ETH
Swap179835012023-08-24 8:54:23921 days ago1692867263
0x4E8e60cc...85df9a427
0.047 ETH
Swap179776982023-08-23 13:26:35922 days ago1692797195
0x4E8e60cc...85df9a427
0.08 ETH
Swap179630152023-08-21 12:09:35924 days ago1692619775
0x4E8e60cc...85df9a427
0.65 ETH
Transfer179562922023-08-20 13:35:47925 days ago1692538547
0x4E8e60cc...85df9a427
4.99576603 ETH
Transfer179562922023-08-20 13:35:47925 days ago1692538547
0x4E8e60cc...85df9a427
4.99576603 ETH
Swap178869932023-08-10 20:52:59934 days ago1691700779
0x4E8e60cc...85df9a427
0.95 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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
// 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 shares The amount of share tokens obtained.
     */
    function deposit(uint256 _wethAmount, bytes calldata _swapCalldata, uint256 _minStEthIn, address _receiver)
        external
        payable
        returns (uint256 shares)
    {
        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");
        shares = 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 shares The amount of share tokens obtained.
     */
    function depositWstETH(uint256 _amount, address _receiver) external returns (uint256 shares) {
        WSTETH_CONTRACT.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 depositSt_ = WSTETH_CONTRACT.unwrap(_amount);
        shares = 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 - 1;
    }

    receive() external payable {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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);
        }
    }
}

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

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

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

// 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;
}

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.19;

import "@openzeppelin/contracts/utils/Address.sol";
import "../../interfaces/1inch/IAggregationRouterV5.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;
    // 1inch v5 is currently in use.
    address public constant oneInchRouter = 0x1111111254EEB25477B68fb85Ed929f73A960582;

    /**
     * @dev Separate the function signature and detailed parameters from the calldata.
     * @param _swapData The calldata of 1inch v5.
     * @return functionSignature_ The function signature of the swap method.
     * @return desc_ Detailed parameters of the swap.
     */
    function parseSwapCalldata(bytes memory _swapData)
        internal
        pure
        returns (bytes4 functionSignature_, IAggregationRouterV5.SwapDescription memory desc_)
    {
        // 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 memory variable to store the remaining bytes.
        bytes memory remainingBytes_ = new bytes(remainingLength_);
        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 in this operation.
     * @param _srcToken The token spent in this operation.
     * @param _dstToken The token received from this operation.
     * @param _swapData The calldata of 1inch v5.
     * @param _swapGetMin The minimum amount of token expected to be received from this operation.
     * @return returnAmount_ The actual amount of token spent in this operation.
     * @return spentAmount_ The actual amount of token received from this operation.
     */
    function executeSwap(
        uint256 _amount,
        address _srcToken,
        address _dstToken,
        bytes memory _swapData,
        uint256 _swapGetMin
    ) internal returns (uint256 returnAmount_, uint256 spentAmount_) {
        (bytes4 functionSignature_, IAggregationRouterV5.SwapDescription memory desc_) = parseSwapCalldata(_swapData);
        require(functionSignature_ == IAggregationRouterV5.swap.selector, "1inch: Invalid function!");
        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.");
    }
}

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

Contract Security Audit

Contract ABI

API
[{"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":[{"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":"shares","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":"shares","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"}]

60c06040523480156200001157600080fd5b50604051620028983803806200289883398101604081905262000034916200040b565b6001600160a01b038116608081905260a0526200006973ae7ab96520de3a18e5e111b5eaab095312d7fe8482600019620000a7565b620000a073ae7ab96520de3a18e5e111b5eaab095312d7fe84737f39c581f595b53c5cb19bd0b3f8da6c935e2ca0600019620000a7565b506200051c565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015620000f9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200011f91906200043d565b6200012b919062000457565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b1790915291925062000187918691906200018d16565b50505050565b6040805180820190915260208082527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490820152600090620001dc906001600160a01b03851690849062000267565b805190915015620002625780806020019051810190620001fd91906200047f565b620002625760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b505050565b606062000278848460008562000280565b949350505050565b606082471015620002e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000259565b600080866001600160a01b03168587604051620003019190620004c9565b60006040518083038185875af1925050503d806000811462000340576040519150601f19603f3d011682016040523d82523d6000602084013e62000345565b606091505b509092509050620003598783838762000364565b979650505050505050565b60608315620003d8578251600003620003d0576001600160a01b0385163b620003d05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000259565b508162000278565b620002788383815115620003ef5781518083602001fd5b8060405162461bcd60e51b8152600401620002599190620004e7565b6000602082840312156200041e57600080fd5b81516001600160a01b03811681146200043657600080fd5b9392505050565b6000602082840312156200045057600080fd5b5051919050565b808201808211156200047957634e487b7160e01b600052601160045260246000fd5b92915050565b6000602082840312156200049257600080fd5b815180151581146200043657600080fd5b60005b83811015620004c0578181015183820152602001620004a6565b50506000910152565b60008251620004dd818460208701620004a3565b9190910192915050565b602081526000825180602084015262000508816040850160208701620004a3565b601f01601f19169190910160400192915050565b60805160a051612333620005656000396000818161036e015281816104170152818161085101528181610b1f01528181610d6d0152610f490152600061024901526123336000f3fe6080604052600436106100c05760003560e01c80635243318f11610074578063ac3af2081161004e578063ac3af2081461020f578063d27567f214610237578063e107e0271461026b57600080fd5b80635243318f1461019f5780637753f47b146101bf57806382dfc5f7146101e757600080fd5b806332ca494b116100a557806332ca494b1461014c578063385b5dde1461016c5780634d4479951461018c57600080fd5b8063259f8d1a146100cc5780632973e0ee146100ff57600080fd5b366100c757005b600080fd5b3480156100d857600080fd5b506100ec6100e7366004611e14565b610293565b6040519081526020015b60405180910390f35b34801561010b57600080fd5b5061012773ae7ab96520de3a18e5e111b5eaab095312d7fe8481565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100f6565b34801561015857600080fd5b506100ec610167366004611e90565b610782565b34801561017857600080fd5b506100ec610187366004611ec0565b610ad6565b6100ec61019a366004611ed9565b610ba9565b3480156101ab57600080fd5b506100ec6101ba366004611e90565b610e46565b3480156101cb57600080fd5b5061012773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156101f357600080fd5b5061012773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561021b57600080fd5b50610127731111111254eeb25477b68fb85ed929f73a96058281565b34801561024357600080fd5b506101277f000000000000000000000000000000000000000000000000000000000000000081565b34801561027757600080fd5b50610127737f39c581f595b53c5cb19bd0b3f8da6c935e2ca081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610300573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103249190611f44565b6040517f29c23e4a000000000000000000000000000000000000000000000000000000008152600481018a905290915060009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906329c23e4a90602401602060405180830381865afa1580156103b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d99190611f44565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018b90523060248201523360448201529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b460af94906064016020604051808303816000875af1158015610475573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104999190611f44565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610507573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052b9190611f44565b6105359190611f8c565b9050896105428383611f9f565b11156105955760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e74000000000000000060448201526064015b60405180910390fd5b6105c873ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a9605828361101f565b6106348173ae7ab96520de3a18e5e111b5eaab095312d7fe8473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508e92506111a1915050565b50935061066b73ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a960582600061150d565b841561070e5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106cd57600080fd5b505af11580156106e1573d6000803e3d6000fd5b50610709935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2925089915087905061167a565b610718565b61071886856116d0565b60408051338152602081018c905290810185905273ffffffffffffffffffffffffffffffffffffffff871660608201527f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21329060800160405180910390a15050509695505050505050565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156107ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108139190611f44565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018690523060248201523360448201529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063b460af94906064016020604051808303816000875af11580156108af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d39190611f44565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090829073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610941573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109659190611f44565b61096f9190611f8c565b9050848111156109c15760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e740000000000000000604482015260640161058c565b6040517fea598cb000000000000000000000000000000000000000000000000000000000815260048101829052737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063ea598cb0906024016020604051808303816000875af1158015610a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a509190611f44565b9250610a71737f39c581f595b53c5cb19bd0b3f8da6c935e2ca0858561167a565b604080513381526020810183905290810184905273ffffffffffffffffffffffffffffffffffffffff851660608201527fc7386ec3f25f56e2da6c8dab443965b897395e4b467b63c7b9c7685fdc2bc3ec9060800160405180910390a1505092915050565b6040517f29c23e4a00000000000000000000000000000000000000000000000000000000815260048101829052600090819073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906329c23e4a90602401602060405180830381865afa158015610b66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8a9190611f44565b90506001610b988285611f8c565b610ba29190611f8c565b9392505050565b6000348615610c5f57610bd273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc233308a6117f6565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810188905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610c3857600080fd5b505af1158015610c4c573d6000803e3d6000fd5b505050508681610c5c9190611f9f565b90505b600080610cce8373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ae7ab96520de3a18e5e111b5eaab095312d7fe848b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92506111a1915050565b91509150828114610d215760405162461bcd60e51b815260206004820152601160248201527f496e707574496e73756666696369656e74000000000000000000000000000000604482015260640161058c565b6040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff86811660248301527f00000000000000000000000000000000000000000000000000000000000000001690636e553f65906044016020604051808303816000875af1158015610db6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dda9190611f44565b604080513381526020810186905290810184905273ffffffffffffffffffffffffffffffffffffffff871660608201529094507f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b479060800160405180910390a150505095945050505050565b6000610e68737f39c581f595b53c5cb19bd0b3f8da6c935e2ca03330866117f6565b6040517fde0e9a3e00000000000000000000000000000000000000000000000000000000815260048101849052600090737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063de0e9a3e906024016020604051808303816000875af1158015610ed6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efa9190611f44565b6040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810182905273ffffffffffffffffffffffffffffffffffffffff85811660248301529192507f000000000000000000000000000000000000000000000000000000000000000090911690636e553f65906044016020604051808303816000875af1158015610f94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb89190611f44565b604080513381526020810184905290810186905273ffffffffffffffffffffffffffffffffffffffff851660608201529092507f211758cf6d7b0555308f48d3e29ce5d681588df0d68864e6ff9b8d9cab6e9cce9060800160405180910390a15092915050565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190611f44565b6110c49190611f9f565b60405173ffffffffffffffffffffffffffffffffffffffff851660248201526044810182905290915061119b9085907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611854565b50505050565b6000806000806111b086611946565b90925090507fffffffff0000000000000000000000000000000000000000000000000000000082167f12aa3caf00000000000000000000000000000000000000000000000000000000146112465760405162461bcd60e51b815260206004820152601860248201527f31696e63683a20496e76616c69642066756e6374696f6e210000000000000000604482015260640161058c565b806060015173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16146112c55760405162461bcd60e51b815260206004820152601860248201527f31696e63683a20496e76616c6964207265636569766572210000000000000000604482015260640161058c565b805173ffffffffffffffffffffffffffffffffffffffff898116911614801561131d5750806020015173ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16145b6113695760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e210000000000000000000000604482015260640161058c565b80608001518910156113bd5760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e742100000000604482015260640161058c565b60607fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8a16016114225761141b731111111254eeb25477b68fb85ed929f73a960582888c611b68565b9050611443565b611440731111111254eeb25477b68fb85ed929f73a96058288611b96565b90505b808060200190518101906114579190611fb2565b608084015191965094508411156114b05760405162461bcd60e51b815260206004820152601e60248201527f31696e63683a20756e6578706563746564207370656e74416d6f756e742e0000604482015260640161058c565b858510156115005760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e00604482015260640161058c565b5050509550959350505050565b8015806115ad57506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ab9190611f44565b155b61161f5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161058c565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526116759084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611119565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526116759084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611119565b804710156117205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161058c565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461177a576040519150601f19603f3d011682016040523d82523d6000602084013e61177f565b606091505b50509050806116755760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161058c565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261119b9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611119565b60006118b6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611be39092919063ffffffff16565b80519091501561167557808060200190518101906118d49190611fd6565b6116755760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161058c565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260188360038151811061199357611993611ff3565b016020015184517fff0000000000000000000000000000000000000000000000000000000000000090911690911c90601090859060029081106119d8576119d8611ff3565b016020015185517fff0000000000000000000000000000000000000000000000000000000000000090911690911c9060089086906001908110611a1d57611a1d611ff3565b016020015186517fff0000000000000000000000000000000000000000000000000000000000000090911690911c908690600090611a5d57611a5d611ff3565b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161717179150600060048451611a9f9190611f8c565b905060008167ffffffffffffffff811115611abc57611abc612022565b6040519080825280601f01601f191660200182016040528015611ae6576020820181803683370190505b5090506024850160208201835b601f811115611b315782518252602092830192909101907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001611af3565b60018160080260020a03905080835116825250505080806020019051810190611b5a9190612144565b509597909650945050505050565b6060611b8e8484846040518060600160405280602981526020016122d560299139611bee565b949350505050565b6060611bda838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250611bee565b90505b92915050565b6060611b8e84846000855b606082471015611c665760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161058c565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611c8f9190612267565b60006040518083038185875af1925050503d8060008114611ccc576040519150601f19603f3d011682016040523d82523d6000602084013e611cd1565b606091505b5091509150611ce287838387611ced565b979650505050505050565b60608315611d69578251600003611d625773ffffffffffffffffffffffffffffffffffffffff85163b611d625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161058c565b5081611b8e565b611b8e8383815115611d7e5781518083602001fd5b8060405162461bcd60e51b815260040161058c9190612283565b60008083601f840112611daa57600080fd5b50813567ffffffffffffffff811115611dc257600080fd5b602083019150836020828501011115611dda57600080fd5b9250929050565b73ffffffffffffffffffffffffffffffffffffffff81168114611e0357600080fd5b50565b8015158114611e0357600080fd5b60008060008060008060a08789031215611e2d57600080fd5b86359550602087013567ffffffffffffffff811115611e4b57600080fd5b611e5789828a01611d98565b909650945050604087013592506060870135611e7281611de1565b91506080870135611e8281611e06565b809150509295509295509295565b60008060408385031215611ea357600080fd5b823591506020830135611eb581611de1565b809150509250929050565b600060208284031215611ed257600080fd5b5035919050565b600080600080600060808688031215611ef157600080fd5b85359450602086013567ffffffffffffffff811115611f0f57600080fd5b611f1b88828901611d98565b909550935050604086013591506060860135611f3681611de1565b809150509295509295909350565b600060208284031215611f5657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115611bdd57611bdd611f5d565b80820180821115611bdd57611bdd611f5d565b60008060408385031215611fc557600080fd5b505080516020909101519092909150565b600060208284031215611fe857600080fd5b8151610ba281611e06565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160e0810167ffffffffffffffff8111828210171561207457612074612022565b60405290565b60005b8381101561209557818101518382015260200161207d565b50506000910152565b600082601f8301126120af57600080fd5b815167ffffffffffffffff808211156120ca576120ca612022565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561211057612110612022565b8160405283815286602085880101111561212957600080fd5b61213a84602083016020890161207a565b9695505050505050565b60008060008084860361014081121561215c57600080fd5b855161216781611de1565b945060e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08201121561219957600080fd5b506121a2612051565b60208601516121b081611de1565b815260408601516121c081611de1565b602082015260608601516121d381611de1565b604082015260808601516121e681611de1565b8060608301525060a0860151608082015260c086015160a082015260e086015160c08201528093505061010085015167ffffffffffffffff8082111561222b57600080fd5b6122378883890161209e565b935061012087015191508082111561224e57600080fd5b5061225b8782880161209e565b91505092959194509250565b6000825161227981846020870161207a565b9190910192915050565b60208152600082518060208401526122a281604085016020870161207a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a264697066735822122036f554dfb1108379c5adfe32bcbb3ea37457a2e8ac23a93717f6f54b34cea4db64736f6c63430008130033000000000000000000000000cdd374f491fbf3f4fcf6e9023c99043774005137

Deployed Bytecode

0x6080604052600436106100c05760003560e01c80635243318f11610074578063ac3af2081161004e578063ac3af2081461020f578063d27567f214610237578063e107e0271461026b57600080fd5b80635243318f1461019f5780637753f47b146101bf57806382dfc5f7146101e757600080fd5b806332ca494b116100a557806332ca494b1461014c578063385b5dde1461016c5780634d4479951461018c57600080fd5b8063259f8d1a146100cc5780632973e0ee146100ff57600080fd5b366100c757005b600080fd5b3480156100d857600080fd5b506100ec6100e7366004611e14565b610293565b6040519081526020015b60405180910390f35b34801561010b57600080fd5b5061012773ae7ab96520de3a18e5e111b5eaab095312d7fe8481565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100f6565b34801561015857600080fd5b506100ec610167366004611e90565b610782565b34801561017857600080fd5b506100ec610187366004611ec0565b610ad6565b6100ec61019a366004611ed9565b610ba9565b3480156101ab57600080fd5b506100ec6101ba366004611e90565b610e46565b3480156101cb57600080fd5b5061012773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b3480156101f357600080fd5b5061012773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561021b57600080fd5b50610127731111111254eeb25477b68fb85ed929f73a96058281565b34801561024357600080fd5b506101277f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513781565b34801561027757600080fd5b50610127737f39c581f595b53c5cb19bd0b3f8da6c935e2ca081565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610300573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103249190611f44565b6040517f29c23e4a000000000000000000000000000000000000000000000000000000008152600481018a905290915060009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513716906329c23e4a90602401602060405180830381865afa1580156103b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d99190611f44565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018b90523060248201523360448201529091507f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513773ffffffffffffffffffffffffffffffffffffffff169063b460af94906064016020604051808303816000875af1158015610475573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104999190611f44565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610507573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052b9190611f44565b6105359190611f8c565b9050896105428383611f9f565b11156105955760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e74000000000000000060448201526064015b60405180910390fd5b6105c873ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a9605828361101f565b6106348173ae7ab96520de3a18e5e111b5eaab095312d7fe8473eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508e92506111a1915050565b50935061066b73ae7ab96520de3a18e5e111b5eaab095312d7fe84731111111254eeb25477b68fb85ed929f73a960582600061150d565b841561070e5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106cd57600080fd5b505af11580156106e1573d6000803e3d6000fd5b50610709935073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2925089915087905061167a565b610718565b61071886856116d0565b60408051338152602081018c905290810185905273ffffffffffffffffffffffffffffffffffffffff871660608201527f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21329060800160405180910390a15050509695505050505050565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156107ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108139190611f44565b6040517fb460af94000000000000000000000000000000000000000000000000000000008152600481018690523060248201523360448201529091507f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513773ffffffffffffffffffffffffffffffffffffffff169063b460af94906064016020604051808303816000875af11580156108af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d39190611f44565b506040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090829073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610941573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109659190611f44565b61096f9190611f8c565b9050848111156109c15760405162461bcd60e51b815260206004820152601860248201527f556e65787065637465645769746864726177416d6f756e740000000000000000604482015260640161058c565b6040517fea598cb000000000000000000000000000000000000000000000000000000000815260048101829052737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063ea598cb0906024016020604051808303816000875af1158015610a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a509190611f44565b9250610a71737f39c581f595b53c5cb19bd0b3f8da6c935e2ca0858561167a565b604080513381526020810183905290810184905273ffffffffffffffffffffffffffffffffffffffff851660608201527fc7386ec3f25f56e2da6c8dab443965b897395e4b467b63c7b9c7685fdc2bc3ec9060800160405180910390a1505092915050565b6040517f29c23e4a00000000000000000000000000000000000000000000000000000000815260048101829052600090819073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513716906329c23e4a90602401602060405180830381865afa158015610b66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8a9190611f44565b90506001610b988285611f8c565b610ba29190611f8c565b9392505050565b6000348615610c5f57610bd273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc233308a6117f6565b6040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526004810188905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90602401600060405180830381600087803b158015610c3857600080fd5b505af1158015610c4c573d6000803e3d6000fd5b505050508681610c5c9190611f9f565b90505b600080610cce8373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ae7ab96520de3a18e5e111b5eaab095312d7fe848b8b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d92506111a1915050565b91509150828114610d215760405162461bcd60e51b815260206004820152601160248201527f496e707574496e73756666696369656e74000000000000000000000000000000604482015260640161058c565b6040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff86811660248301527f000000000000000000000000cdd374f491fbf3f4fcf6e9023c990437740051371690636e553f65906044016020604051808303816000875af1158015610db6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dda9190611f44565b604080513381526020810186905290810184905273ffffffffffffffffffffffffffffffffffffffff871660608201529094507f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b479060800160405180910390a150505095945050505050565b6000610e68737f39c581f595b53c5cb19bd0b3f8da6c935e2ca03330866117f6565b6040517fde0e9a3e00000000000000000000000000000000000000000000000000000000815260048101849052600090737f39c581f595b53c5cb19bd0b3f8da6c935e2ca09063de0e9a3e906024016020604051808303816000875af1158015610ed6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efa9190611f44565b6040517f6e553f650000000000000000000000000000000000000000000000000000000081526004810182905273ffffffffffffffffffffffffffffffffffffffff85811660248301529192507f000000000000000000000000cdd374f491fbf3f4fcf6e9023c9904377400513790911690636e553f65906044016020604051808303816000875af1158015610f94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb89190611f44565b604080513381526020810184905290810186905273ffffffffffffffffffffffffffffffffffffffff851660608201529092507f211758cf6d7b0555308f48d3e29ce5d681588df0d68864e6ff9b8d9cab6e9cce9060800160405180910390a15092915050565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015611096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ba9190611f44565b6110c49190611f9f565b60405173ffffffffffffffffffffffffffffffffffffffff851660248201526044810182905290915061119b9085907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611854565b50505050565b6000806000806111b086611946565b90925090507fffffffff0000000000000000000000000000000000000000000000000000000082167f12aa3caf00000000000000000000000000000000000000000000000000000000146112465760405162461bcd60e51b815260206004820152601860248201527f31696e63683a20496e76616c69642066756e6374696f6e210000000000000000604482015260640161058c565b806060015173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16146112c55760405162461bcd60e51b815260206004820152601860248201527f31696e63683a20496e76616c6964207265636569766572210000000000000000604482015260640161058c565b805173ffffffffffffffffffffffffffffffffffffffff898116911614801561131d5750806020015173ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16145b6113695760405162461bcd60e51b815260206004820152601560248201527f31696e63683a20496e76616c696420746f6b656e210000000000000000000000604482015260640161058c565b80608001518910156113bd5760405162461bcd60e51b815260206004820152601c60248201527f31696e63683a20496e76616c696420696e70757420616d6f756e742100000000604482015260640161058c565b60607fffffffffffffffffffffffff111111111111111111111111111111111111111273ffffffffffffffffffffffffffffffffffffffff8a16016114225761141b731111111254eeb25477b68fb85ed929f73a960582888c611b68565b9050611443565b611440731111111254eeb25477b68fb85ed929f73a96058288611b96565b90505b808060200190518101906114579190611fb2565b608084015191965094508411156114b05760405162461bcd60e51b815260206004820152601e60248201527f31696e63683a20756e6578706563746564207370656e74416d6f756e742e0000604482015260640161058c565b858510156115005760405162461bcd60e51b815260206004820152601f60248201527f31696e63683a20756e65787065637465642072657475726e416d6f756e742e00604482015260640161058c565b5050509550959350505050565b8015806115ad57506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611587573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ab9190611f44565b155b61161f5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161058c565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526116759084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401611119565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526116759084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611119565b804710156117205760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161058c565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461177a576040519150601f19603f3d011682016040523d82523d6000602084013e61177f565b606091505b50509050806116755760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161058c565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261119b9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611119565b60006118b6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611be39092919063ffffffff16565b80519091501561167557808060200190518101906118d49190611fd6565b6116755760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161058c565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260188360038151811061199357611993611ff3565b016020015184517fff0000000000000000000000000000000000000000000000000000000000000090911690911c90601090859060029081106119d8576119d8611ff3565b016020015185517fff0000000000000000000000000000000000000000000000000000000000000090911690911c9060089086906001908110611a1d57611a1d611ff3565b016020015186517fff0000000000000000000000000000000000000000000000000000000000000090911690911c908690600090611a5d57611a5d611ff3565b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161717179150600060048451611a9f9190611f8c565b905060008167ffffffffffffffff811115611abc57611abc612022565b6040519080825280601f01601f191660200182016040528015611ae6576020820181803683370190505b5090506024850160208201835b601f811115611b315782518252602092830192909101907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001611af3565b60018160080260020a03905080835116825250505080806020019051810190611b5a9190612144565b509597909650945050505050565b6060611b8e8484846040518060600160405280602981526020016122d560299139611bee565b949350505050565b6060611bda838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250611bee565b90505b92915050565b6060611b8e84846000855b606082471015611c665760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161058c565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611c8f9190612267565b60006040518083038185875af1925050503d8060008114611ccc576040519150601f19603f3d011682016040523d82523d6000602084013e611cd1565b606091505b5091509150611ce287838387611ced565b979650505050505050565b60608315611d69578251600003611d625773ffffffffffffffffffffffffffffffffffffffff85163b611d625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161058c565b5081611b8e565b611b8e8383815115611d7e5781518083602001fd5b8060405162461bcd60e51b815260040161058c9190612283565b60008083601f840112611daa57600080fd5b50813567ffffffffffffffff811115611dc257600080fd5b602083019150836020828501011115611dda57600080fd5b9250929050565b73ffffffffffffffffffffffffffffffffffffffff81168114611e0357600080fd5b50565b8015158114611e0357600080fd5b60008060008060008060a08789031215611e2d57600080fd5b86359550602087013567ffffffffffffffff811115611e4b57600080fd5b611e5789828a01611d98565b909650945050604087013592506060870135611e7281611de1565b91506080870135611e8281611e06565b809150509295509295509295565b60008060408385031215611ea357600080fd5b823591506020830135611eb581611de1565b809150509250929050565b600060208284031215611ed257600080fd5b5035919050565b600080600080600060808688031215611ef157600080fd5b85359450602086013567ffffffffffffffff811115611f0f57600080fd5b611f1b88828901611d98565b909550935050604086013591506060860135611f3681611de1565b809150509295509295909350565b600060208284031215611f5657600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115611bdd57611bdd611f5d565b80820180821115611bdd57611bdd611f5d565b60008060408385031215611fc557600080fd5b505080516020909101519092909150565b600060208284031215611fe857600080fd5b8151610ba281611e06565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160e0810167ffffffffffffffff8111828210171561207457612074612022565b60405290565b60005b8381101561209557818101518382015260200161207d565b50506000910152565b600082601f8301126120af57600080fd5b815167ffffffffffffffff808211156120ca576120ca612022565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561211057612110612022565b8160405283815286602085880101111561212957600080fd5b61213a84602083016020890161207a565b9695505050505050565b60008060008084860361014081121561215c57600080fd5b855161216781611de1565b945060e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08201121561219957600080fd5b506121a2612051565b60208601516121b081611de1565b815260408601516121c081611de1565b602082015260608601516121d381611de1565b604082015260808601516121e681611de1565b8060608301525060a0860151608082015260c086015160a082015260e086015160c08201528093505061010085015167ffffffffffffffff8082111561222b57600080fd5b6122378883890161209e565b935061012087015191508082111561224e57600080fd5b5061225b8782880161209e565b91505092959194509250565b6000825161227981846020870161207a565b9190910192915050565b60208152600082518060208401526122a281604085016020870161207a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a264697066735822122036f554dfb1108379c5adfe32bcbb3ea37457a2e8ac23a93717f6f54b34cea4db64736f6c63430008130033

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 Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.