ETH Price: $2,627.10 (-1.63%)

Contract

0x901EbC75a0c2161b944D5C76e0769a2eaBB85542
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040148738582022-05-30 17:31:24869 days ago1653931884IN
 Create: InstaVaultWrapperImplementation
0 ETH0.0618928526.101

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
InstaVaultWrapperImplementation

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : main.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./events.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";

contract AdminModule is Events {
    using SafeERC20 for IERC20;

    /**
     * @dev Reentrancy gaurd.
     */
    modifier nonReentrant() {
        require(status != 2, "ReentrancyGuard: reentrant call");
        status = 2;
        _;
        status = 1;
    }

    /**
     * @dev Only auth gaurd.
     */
    modifier onlyAuth() {
        require(auth == msg.sender, "only auth");
        _;
    }

    /**
     * @dev Update auth.
     * @param auth_ address of new auth.
     */
    function updateAuth(address auth_) external onlyAuth {
        auth = auth_;
        emit updateAuthLog(auth_);
    }

    /**
     * @dev Update if vault or not.
     * @param vaultAddr_ address of vault.
     * @param isVault_ true for adding the vault, false for removing.
     */
    function updateVault(address vaultAddr_, bool isVault_) external onlyAuth {
        isVault[vaultAddr_] = isVault_;
        emit updateVaultLog(vaultAddr_, isVault_);
    }

    /**
     * @dev Update premium.
     * @param premium_ new premium.
     */
    function updatePremium(uint256 premium_) external onlyAuth {
        premium = premium_;
        emit updatePremiumLog(premium_);
    }

    /**
     * @dev Update premium.
     * @param premiumEth_ new premium.
     */
    function updatePremiumEth(uint256 premiumEth_) external onlyAuth {
        premiumEth = premiumEth_;
        emit updatePremiumEthLog(premiumEth_);
    }

    /**
     * @dev Function to withdraw premium collected.
     * @param tokens_ list of token addresses.
     * @param amounts_ list of corresponding amounts.
     * @param to_ address to transfer the funds to.
     */
    function withdrawPremium(
        address[] memory tokens_,
        uint256[] memory amounts_,
        address to_
    ) external onlyAuth {
        uint256 length_ = tokens_.length;
        require(amounts_.length == length_, "lengths not same");
        for (uint256 i = 0; i < length_; i++) {
            if (amounts_[i] == type(uint256).max)
                amounts_[i] = IERC20(tokens_[i]).balanceOf(address(this));
            IERC20(tokens_[i]).safeTransfer(to_, amounts_[i]);
        }
        emit withdrawPremiumLog(tokens_, amounts_, to_);
    }
}

contract InstaVaultWrapperImplementation is AdminModule {
    using SafeERC20 for IERC20;

    function deleverageAndWithdraw(
        address vaultAddr_,
        uint256 deleverageAmt_,
        uint256 withdrawAmount_,
        address to_,
        uint256 unitAmt_,
        bytes memory swapData_,
        uint256 route_,
        bytes memory instaData_
    ) external nonReentrant {
        require(unitAmt_ != 0, "unitAmt_ cannot be zero");
        require(isVault[vaultAddr_], "invalid vault");
        (uint256 exchangePrice_, ) = IVault(vaultAddr_)
            .getCurrentExchangePrice();
        uint256 itokenAmt_;
        if (withdrawAmount_ == type(uint256).max) {
            itokenAmt_ = IERC20(vaultAddr_).balanceOf(msg.sender);
            withdrawAmount_ = (itokenAmt_ * exchangePrice_) / 1e18;
        } else {
            itokenAmt_ = (withdrawAmount_ * 1e18) / exchangePrice_;
        }
        IERC20(vaultAddr_).safeTransferFrom(
            msg.sender,
            address(this),
            itokenAmt_
        );
        address[] memory wethList_ = new address[](1);
        wethList_[0] = address(wethContract);
        uint256[] memory wethAmtList_ = new uint256[](1);
        wethAmtList_[0] = deleverageAmt_;
        bytes memory data_ = abi.encode(
            vaultAddr_,
            withdrawAmount_,
            to_,
            unitAmt_,
            swapData_
        );
        fla.flashLoan(wethList_, wethAmtList_, route_, data_, instaData_);
    }

    struct InstaVars {
        address vaultAddr;
        uint256 withdrawAmt;
        uint256 withdrawAmtAfterFee;
        address to;
        uint256 unitAmt;
        bytes swapData;
        uint256 withdrawalFee;
        uint256 iniWethBal;
        uint256 iniStethBal;
        uint256 finWethBal;
        uint256 finStethBal;
        uint256 iniEthBal;
        uint256 finEthBal;
        uint256 ethReceived;
        uint256 stethReceived;
        uint256 iniTokenBal;
        uint256 finTokenBal;
        bool success;
        uint256 wethCut;
        uint256 wethAmtReceivedAfterSwap;
        address tokenAddr;
        uint256 tokenPriceInBaseCurrency;
        uint256 ethPriceInBaseCurrency;
        uint256 tokenPriceInEth;
        uint256 tokenCut;
    }

    function executeOperation(
        address[] memory tokens_,
        uint256[] memory amounts_,
        uint256[] memory premiums_,
        address initiator_,
        bytes memory params_
    ) external returns (bool) {
        require(msg.sender == address(fla), "illegal-caller");
        require(initiator_ == address(this), "illegal-initiator");
        require(
            tokens_.length == 1 && tokens_[0] == address(wethContract),
            "invalid-params"
        );

        InstaVars memory v_;
        (v_.vaultAddr, v_.withdrawAmt, v_.to, v_.unitAmt, v_.swapData) = abi
            .decode(params_, (address, uint256, address, uint256, bytes));
        IVault vault_ = IVault(v_.vaultAddr);
        v_.withdrawalFee = vault_.withdrawalFee();
        v_.withdrawAmtAfterFee =
            v_.withdrawAmt -
            ((v_.withdrawAmt * v_.withdrawalFee) / 1e4);
        wethContract.safeApprove(v_.vaultAddr, amounts_[0]);
        if (v_.vaultAddr == ethVaultAddr) {
            v_.iniEthBal = address(this).balance;
            v_.iniStethBal = stethContract.balanceOf(address(this));
            vault_.deleverageAndWithdraw(
                amounts_[0],
                v_.withdrawAmt,
                address(this)
            );
            v_.finEthBal = address(this).balance;
            v_.finStethBal = stethContract.balanceOf(address(this));
            v_.ethReceived = v_.finEthBal - v_.iniEthBal;
            v_.stethReceived = v_.finStethBal - amounts_[0] - v_.iniStethBal;
            require(
                v_.ethReceived + v_.stethReceived + 1e9 >= v_.withdrawAmtAfterFee,  // Adding small margin for any potential decimal error
                "something-went-wrong"
            );

            v_.iniWethBal = wethContract.balanceOf(address(this));
            stethContract.safeApprove(oneInchAddr, amounts_[0]);
            Address.functionCall(oneInchAddr, v_.swapData, "1Inch-swap-failed");
            v_.finWethBal = wethContract.balanceOf(address(this));
            v_.wethAmtReceivedAfterSwap = v_.finWethBal - v_.iniWethBal;
            require(
                v_.wethAmtReceivedAfterSwap != 0,
                "wethAmtReceivedAfterSwap cannot be zero"
            );
            require(
                v_.wethAmtReceivedAfterSwap >=
                    (amounts_[0] * v_.unitAmt) / 1e18,
                "Too-much-slippage"
            );

            v_.wethCut =
                amounts_[0] +
                premiums_[0] -
                v_.wethAmtReceivedAfterSwap;
            v_.wethCut = v_.wethCut + ((v_.wethCut * premiumEth) / 10000);
            if (v_.wethCut < v_.ethReceived) {
                Address.sendValue(payable(v_.to), v_.ethReceived - v_.wethCut);
                stethContract.safeTransfer(v_.to, v_.stethReceived);
            } else {
                v_.wethCut -= v_.ethReceived;
                stethContract.safeTransfer(
                    v_.to,
                    v_.stethReceived - v_.wethCut
                );
            }
        } else {
            v_.tokenAddr = vault_.token();
            v_.tokenPriceInBaseCurrency = aaveOracle.getAssetPrice(
                v_.tokenAddr
            );
            v_.ethPriceInBaseCurrency = aaveOracle.getAssetPrice(
                address(wethContract)
            );
            v_.tokenPriceInEth =
                (v_.tokenPriceInBaseCurrency * 1e18) /
                v_.ethPriceInBaseCurrency;

            v_.iniTokenBal = IERC20(v_.tokenAddr).balanceOf(address(this));
            v_.iniStethBal = stethContract.balanceOf(address(this));
            vault_.deleverageAndWithdraw(
                amounts_[0],
                v_.withdrawAmt,
                address(this)
            );
            v_.finTokenBal = IERC20(v_.tokenAddr).balanceOf(address(this));
            v_.finStethBal = stethContract.balanceOf(address(this));
            require(
                v_.finTokenBal - v_.iniTokenBal >= (v_.withdrawAmtAfterFee * 99999999 / 100000000), // Adding small margin for any potential decimal error
                "something-went-wrong"
            );
            require(
                v_.finStethBal - v_.iniStethBal + 1e9 >= amounts_[0], // Adding small margin for any potential decimal error
                "something-went-wrong"
            );

            v_.iniWethBal = wethContract.balanceOf(address(this));
            stethContract.safeApprove(oneInchAddr, amounts_[0]);
            Address.functionCall(oneInchAddr, v_.swapData, "1Inch-swap-failed");
            v_.finWethBal = wethContract.balanceOf(address(this));
            v_.wethAmtReceivedAfterSwap = v_.finWethBal - v_.iniWethBal;
            require(
                v_.wethAmtReceivedAfterSwap != 0,
                "wethAmtReceivedAfterSwap cannot be zero"
            );
            require(
                v_.wethAmtReceivedAfterSwap >=
                    (amounts_[0] * v_.unitAmt) / 1e18,
                "Too-much-slippage"
            );
            v_.wethCut =
                amounts_[0] +
                premiums_[0] -
                v_.wethAmtReceivedAfterSwap;
            v_.wethCut = v_.wethCut + ((v_.wethCut * premium) / 10000);
            v_.tokenCut = (v_.tokenPriceInEth * v_.wethCut) / 1e18;
            IERC20(v_.tokenAddr).safeTransfer(
                v_.to,
                v_.withdrawAmtAfterFee - v_.tokenCut
            );
        }
        wethContract.safeTransfer(address(fla), amounts_[0] + premiums_[0]);
        return true;
    }

    // function initialize(address auth_, uint256 premium_) external {
    //     require(status == 0, "only once");
    //     auth = auth_;
    //     premium = premium_;
    //     status = 1;
    // }

    receive() external payable {}
}

File 2 of 7 : events.sol
pragma solidity ^0.8.0;
import "./variables.sol";

contract Events is Variables {
    event updateAuthLog(address auth_);

    event updateVaultLog(address vaultAddr_, bool isVault_);

    event updatePremiumLog(uint256 premium_);

    event updatePremiumEthLog(uint256 premiumEth_);

    event withdrawPremiumLog(
        address[] tokens_,
        uint256[] amounts_,
        address to_
    );
}

File 3 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

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

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

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 7 : variables.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract ConstantVariables {
    IFla internal constant fla =
        IFla(0x619Ad2D02dBeE6ebA3CDbDA3F98430410e892882);
    address internal constant oneInchAddr =
        0x1111111254fb6c44bAC0beD2854e76F90643097d;
    IERC20 internal constant wethContract =
        IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    IERC20 internal constant stethContract =
        IERC20(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84);
    address internal constant ethVaultAddr =
        0xc383a3833A87009fD9597F8184979AF5eDFad019;
    IAavePriceOracle internal constant aaveOracle =
        IAavePriceOracle(0xA50ba011c48153De246E5192C8f9258A2ba79Ca9);
}

contract Variables is ConstantVariables {
    uint256 internal status;

    address public auth;

    mapping(address => bool) public isVault;

    uint256 public premium; // premium for token vaults (in BPS)

    uint256 public premiumEth; // premium for eth vault (in BPS)
}

File 6 of 7 : interfaces.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IFla {
    function flashLoan(
        address[] memory tokens_,
        uint256[] memory amts_,
        uint256 route,
        bytes calldata data_,
        bytes calldata instaData_
    ) external;
}

interface IVault {
    function getCurrentExchangePrice()
        external
        view
        returns (uint256 exchangePrice_, uint256 newRevenue_);

    function deleverageAndWithdraw(
        uint256 deleverageAmt_,
        uint256 withdrawAmount_,
        address to_
    ) external;

    function token() external view returns (address);

    function withdrawalFee() external view returns (uint256);
}

interface IAavePriceOracle {
    function getAssetPrice(address _asset) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"auth_","type":"address"}],"name":"updateAuthLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"premiumEth_","type":"uint256"}],"name":"updatePremiumEthLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"premium_","type":"uint256"}],"name":"updatePremiumLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vaultAddr_","type":"address"},{"indexed":false,"internalType":"bool","name":"isVault_","type":"bool"}],"name":"updateVaultLog","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"tokens_","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts_","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"to_","type":"address"}],"name":"withdrawPremiumLog","type":"event"},{"inputs":[],"name":"auth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vaultAddr_","type":"address"},{"internalType":"uint256","name":"deleverageAmt_","type":"uint256"},{"internalType":"uint256","name":"withdrawAmount_","type":"uint256"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"unitAmt_","type":"uint256"},{"internalType":"bytes","name":"swapData_","type":"bytes"},{"internalType":"uint256","name":"route_","type":"uint256"},{"internalType":"bytes","name":"instaData_","type":"bytes"}],"name":"deleverageAndWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens_","type":"address[]"},{"internalType":"uint256[]","name":"amounts_","type":"uint256[]"},{"internalType":"uint256[]","name":"premiums_","type":"uint256[]"},{"internalType":"address","name":"initiator_","type":"address"},{"internalType":"bytes","name":"params_","type":"bytes"}],"name":"executeOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isVault","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premium","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premiumEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"auth_","type":"address"}],"name":"updateAuth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"premium_","type":"uint256"}],"name":"updatePremium","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"premiumEth_","type":"uint256"}],"name":"updatePremiumEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vaultAddr_","type":"address"},{"internalType":"bool","name":"isVault_","type":"bool"}],"name":"updateVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens_","type":"address[]"},{"internalType":"uint256[]","name":"amounts_","type":"uint256[]"},{"internalType":"address","name":"to_","type":"address"}],"name":"withdrawPremium","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506129f1806100206000396000f3fe6080604052600436106100a05760003560e01c8063950909891161006457806395090989146101735780639a3dc5a014610193578063b5c7400b146101b7578063b8d07f4f146101d7578063de9375f2146101f7578063e0a73a931461022f57600080fd5b80632f6d1ddc146100ac57806362c58d4d146100ce578063652b9b41146100ee578063891a842c14610133578063920f5c841461015357600080fd5b366100a757005b600080fd5b3480156100b857600080fd5b506100cc6100c7366004612434565b610245565b005b3480156100da57600080fd5b506100cc6100e9366004612384565b610443565b3480156100fa57600080fd5b5061011e61010936600461225d565b60026020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561013f57600080fd5b506100cc61014e36600461258b565b6107ea565b34801561015f57600080fd5b5061011e61016e3660046124ac565b610850565b34801561017f57600080fd5b506100cc61018e36600461234b565b611a95565b34801561019f57600080fd5b506101a960045481565b60405190815260200161012a565b3480156101c357600080fd5b506100cc6101d236600461258b565b611b22565b3480156101e357600080fd5b506100cc6101f236600461225d565b611b81565b34801561020357600080fd5b50600154610217906001600160a01b031681565b6040516001600160a01b03909116815260200161012a565b34801561023b57600080fd5b506101a960035481565b6001546001600160a01b031633146102785760405162461bcd60e51b815260040161026f90612787565b60405180910390fd5b8251825181146102bd5760405162461bcd60e51b815260206004820152601060248201526f6c656e67746873206e6f742073616d6560801b604482015260640161026f565b60005b81811015610401576000198482815181106102dd576102dd612969565b6020026020010151141561039f578481815181106102fd576102fd612969565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561034857600080fd5b505afa15801561035c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038091906125a4565b84828151811061039257610392612969565b6020026020010181815250505b6103ef838583815181106103b5576103b5612969565b60200260200101518784815181106103cf576103cf612969565b60200260200101516001600160a01b0316611bf99092919063ffffffff16565b806103f981612938565b9150506102c0565b507fa7a475dffdfc397f5a5ab26e3a623a27f1dd6536ac287d5cc8b83748b432d3da848484604051610435939291906126d7565b60405180910390a150505050565b600054600214156104965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161026f565b6002600055836104e85760405162461bcd60e51b815260206004820152601760248201527f756e6974416d745f2063616e6e6f74206265207a65726f000000000000000000604482015260640161026f565b6001600160a01b03881660009081526002602052604090205460ff166105405760405162461bcd60e51b815260206004820152600d60248201526c1a5b9d985b1a59081d985d5b1d609a1b604482015260640161026f565b6000886001600160a01b031663cc4a01586040518163ffffffff1660e01b8152600401604080518083038186803b15801561057a57600080fd5b505afa15801561058e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b291906125bd565b509050600060001988141561065e576040516370a0823160e01b81523360048201526001600160a01b038b16906370a082319060240160206040518083038186803b15801561060057600080fd5b505afa158015610614573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063891906125a4565b9050670de0b6b3a764000061064d83836128d6565b61065791906128b4565b975061067e565b8161067189670de0b6b3a76400006128d6565b61067b91906128b4565b90505b6106936001600160a01b038b16333084611c61565b6040805160018082528183019092526000916020808301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816000815181106106dd576106dd612969565b6001600160a01b0392909216602092830291909101909101526040805160018082528183019092526000918160200160208202803683370190505090508a8160008151811061072e5761072e612969565b60200260200101818152505060008c8b8b8b8b60405160200161075595949392919061269d565b60408051601f198184030181529082905263095627e960e01b8252915073619ad2d02dbee6eba3cdbda3f98430410e8928829063095627e9906107a490869086908c9087908d90600401612715565b600060405180830381600087803b1580156107be57600080fd5b505af11580156107d2573d6000803e3d6000fd5b50506001600055505050505050505050505050505050565b6001546001600160a01b031633146108145760405162461bcd60e51b815260040161026f90612787565b60048190556040518181527f6126793158d95f94b6d6163b8ed2c185633e26b192ca504e15e31a66a5c83865906020015b60405180910390a150565b60003373619ad2d02dbee6eba3cdbda3f98430410e892882146108a65760405162461bcd60e51b815260206004820152600e60248201526d34b63632b3b0b616b1b0b63632b960911b604482015260640161026f565b6001600160a01b03831630146108f25760405162461bcd60e51b815260206004820152601160248201527034b63632b3b0b616b4b734ba34b0ba37b960791b604482015260640161026f565b85516001148015610942575073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03168660008151811061092f5761092f612969565b60200260200101516001600160a01b0316145b61097f5760405162461bcd60e51b815260206004820152600e60248201526d696e76616c69642d706172616d7360901b604482015260640161026f565b610a5b60405180610320016040528060006001600160a01b03168152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081526020016000815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081525090565b82806020019051810190610a6f9190612297565b60a086015260808501526001600160a01b03908116606085015260208085019290925291909116808352604080516322f1fa3160e21b8152905191928392638bc7e8c4926004808201939291829003018186803b158015610acf57600080fd5b505afa158015610ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0791906125a4565b60c08301819052602083015161271091610b20916128d6565b610b2a91906128b4565b8260200151610b3991906128f5565b604083015281518751610b8d91908990600090610b5857610b58612969565b602002602001015173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316611c9f9092919063ffffffff16565b81516001600160a01b031673c383a3833a87009fd9597f8184979af5edfad01914156111bc57476101608301526040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b158015610c0457600080fd5b505afa158015610c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3c91906125a4565b82610100018181525050806001600160a01b0316633b3fdb5c88600081518110610c6857610c68612969565b602090810291909101810151908501516040516001600160e01b031960e085901b16815260048101929092526024820152306044820152606401600060405180830381600087803b158015610cbc57600080fd5b505af1158015610cd0573d6000803e3d6000fd5b50504761018085015250506040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b158015610d2557600080fd5b505afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d91906125a4565b610140830152610160820151610180830151610d7991906128f5565b6101a083015261010082015187518890600090610d9857610d98612969565b6020026020010151836101400151610db091906128f5565b610dba91906128f5565b6101c0830181905260408301516101a08401519091610dd89161289c565b610de690633b9aca0061289c565b1015610e045760405162461bcd60e51b815260040161026f906127aa565b6040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b158015610e4e57600080fd5b505afa158015610e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8691906125a4565b8260e0018181525050610eef731111111254fb6c44bac0bed2854e76f90643097d88600081518110610eba57610eba612969565b602002602001015173ae7ab96520de3a18e5e111b5eaab095312d7fe846001600160a01b0316611c9f9092919063ffffffff16565b610f3b731111111254fb6c44bac0bed2854e76f90643097d8360a00151604051806040016040528060118152602001700c525b98da0b5cddd85c0b59985a5b1959607a1b815250611dc3565b506040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b158015610f8657600080fd5b505afa158015610f9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fbe91906125a4565b610120830181905260e0830151610fd4916128f5565b6102608301819052610ff85760405162461bcd60e51b815260040161026f906127d8565b670de0b6b3a764000082608001518860008151811061101957611019612969565b602002602001015161102b91906128d6565b61103591906128b4565b826102600151101561107d5760405162461bcd60e51b8152602060048201526011602482015270546f6f2d6d7563682d736c69707061676560781b604482015260640161026f565b8161026001518660008151811061109657611096612969565b6020026020010151886000815181106110b1576110b1612969565b60200260200101516110c3919061289c565b6110cd91906128f5565b6102408301819052600454612710916110e691906128d6565b6110f091906128b4565b826102400151611100919061289c565b61024083018190526101a08301511115611166576111378260600151836102400151846101a0015161113291906128f5565b611ddc565b60608201516101c08301516111619173ae7ab96520de3a18e5e111b5eaab095312d7fe8491611bf9565b611a13565b816101a00151826102400181815161117e91906128f5565b90525060608201516102408301516101c084015161116192916111a0916128f5565b73ae7ab96520de3a18e5e111b5eaab095312d7fe849190611bf9565b806001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111f557600080fd5b505afa158015611209573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122d919061227a565b6001600160a01b0316610280830181905260405163b3596f0760e01b8152600481019190915273a50ba011c48153de246e5192c8f9258a2ba79ca99063b3596f079060240160206040518083038186803b15801561128a57600080fd5b505afa15801561129e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c291906125a4565b6102a083015260405163b3596f0760e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2600482015273a50ba011c48153de246e5192c8f9258a2ba79ca99063b3596f079060240160206040518083038186803b15801561132657600080fd5b505afa15801561133a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135e91906125a4565b6102c083018190526102a083015161137e90670de0b6b3a76400006128d6565b61138891906128b4565b6102e08301526102808201516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156113d457600080fd5b505afa1580156113e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140c91906125a4565b6101e08301526040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b15801561145c57600080fd5b505afa158015611470573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149491906125a4565b82610100018181525050806001600160a01b0316633b3fdb5c886000815181106114c0576114c0612969565b602090810291909101810151908501516040516001600160e01b031960e085901b16815260048101929092526024820152306044820152606401600060405180830381600087803b15801561151457600080fd5b505af1158015611528573d6000803e3d6000fd5b5050506102808301516040516370a0823160e01b81523060048201526001600160a01b0390911691506370a082319060240160206040518083038186803b15801561157257600080fd5b505afa158015611586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115aa91906125a4565b6102008301526040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b1580156115fa57600080fd5b505afa15801561160e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163291906125a4565b61014083015260408201516305f5e10090611651906305f5e0ff6128d6565b61165b91906128b4565b826101e0015183610200015161167191906128f5565b101561168f5760405162461bcd60e51b815260040161026f906127aa565b866000815181106116a2576116a2612969565b60200260200101518261010001518361014001516116c091906128f5565b6116ce90633b9aca0061289c565b10156116ec5760405162461bcd60e51b815260040161026f906127aa565b6040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b15801561173657600080fd5b505afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e91906125a4565b8260e00181815250506117a2731111111254fb6c44bac0bed2854e76f90643097d88600081518110610eba57610eba612969565b6117ee731111111254fb6c44bac0bed2854e76f90643097d8360a00151604051806040016040528060118152602001700c525b98da0b5cddd85c0b59985a5b1959607a1b815250611dc3565b506040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b15801561183957600080fd5b505afa15801561184d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187191906125a4565b610120830181905260e0830151611887916128f5565b61026083018190526118ab5760405162461bcd60e51b815260040161026f906127d8565b670de0b6b3a76400008260800151886000815181106118cc576118cc612969565b60200260200101516118de91906128d6565b6118e891906128b4565b82610260015110156119305760405162461bcd60e51b8152602060048201526011602482015270546f6f2d6d7563682d736c69707061676560781b604482015260640161026f565b8161026001518660008151811061194957611949612969565b60200260200101518860008151811061196457611964612969565b6020026020010151611976919061289c565b61198091906128f5565b61024083018190526003546127109161199991906128d6565b6119a391906128b4565b8261024001516119b3919061289c565b61024083018190526102e0830151670de0b6b3a7640000916119d4916128d6565b6119de91906128b4565b610300830181905260608301516040840151611a13926119fd916128f5565b6102808501516001600160a01b03169190611bf9565b611a8773619ad2d02dbee6eba3cdbda3f98430410e89288287600081518110611a3e57611a3e612969565b602002602001015189600081518110611a5957611a59612969565b6020026020010151611a6b919061289c565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29190611bf9565b506001979650505050505050565b6001546001600160a01b03163314611abf5760405162461bcd60e51b815260040161026f90612787565b6001600160a01b038216600081815260026020908152604091829020805460ff19168515159081179091558251938452908301527f88490b2997e8c4c998cf0e9013805975fa98575039f705681428d26bd9656acc910160405180910390a15050565b6001546001600160a01b03163314611b4c5760405162461bcd60e51b815260040161026f90612787565b60038190556040518181527fac7454b1ee3dc42f2c6ba7fe6f0240b9b48715858de8b3b379813cf552aaec5d90602001610845565b6001546001600160a01b03163314611bab5760405162461bcd60e51b815260040161026f90612787565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f509c071d3a1b897053dd874d2e7934477cd754e3dfef8f7dc66297e0407024ab90602001610845565b6040516001600160a01b038316602482015260448101829052611c5c90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ef5565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611c999085906323b872dd60e01b90608401611c25565b50505050565b801580611d285750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611cee57600080fd5b505afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2691906125a4565b155b611d935760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161026f565b6040516001600160a01b038316602482015260448101829052611c5c90849063095ea7b360e01b90606401611c25565b6060611dd28484600085611fc7565b90505b9392505050565b80471015611e2c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161026f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611e79576040519150601f19603f3d011682016040523d82523d6000602084013e611e7e565b606091505b5050905080611c5c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161026f565b6000611f4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611dc39092919063ffffffff16565b805190915015611c5c5780806020019051810190611f68919061256e565b611c5c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161026f565b6060824710156120285760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161026f565b6001600160a01b0385163b61207f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161026f565b600080866001600160a01b0316858760405161209b9190612681565b60006040518083038185875af1925050503d80600081146120d8576040519150601f19603f3d011682016040523d82523d6000602084013e6120dd565b606091505b50915091506120ed8282866120f8565b979650505050505050565b60608315612107575081611dd5565b8251156121175782518084602001fd5b8160405162461bcd60e51b815260040161026f9190612774565b600082601f83011261214257600080fd5b8135602061215761215283612850565b61281f565b80838252828201915082860187848660051b890101111561217757600080fd5b60005b8581101561219f57813561218d81612995565b8452928401929084019060010161217a565b5090979650505050505050565b600082601f8301126121bd57600080fd5b813560206121cd61215283612850565b80838252828201915082860187848660051b89010111156121ed57600080fd5b60005b8581101561219f578135845292840192908401906001016121f0565b600082601f83011261221d57600080fd5b813561222b61215282612874565b81815284602083860101111561224057600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561226f57600080fd5b8135611dd581612995565b60006020828403121561228c57600080fd5b8151611dd581612995565b600080600080600060a086880312156122af57600080fd5b85516122ba81612995565b6020870151604088015191965094506122d281612995565b60608701516080880151919450925067ffffffffffffffff8111156122f657600080fd5b8601601f8101881361230757600080fd5b805161231561215282612874565b81815289602083850101111561232a57600080fd5b61233b82602083016020860161290c565b8093505050509295509295909350565b6000806040838503121561235e57600080fd5b823561236981612995565b91506020830135612379816129ad565b809150509250929050565b600080600080600080600080610100898b0312156123a157600080fd5b88356123ac81612995565b9750602089013596506040890135955060608901356123ca81612995565b94506080890135935060a089013567ffffffffffffffff808211156123ee57600080fd5b6123fa8c838d0161220c565b945060c08b0135935060e08b013591508082111561241757600080fd5b506124248b828c0161220c565b9150509295985092959890939650565b60008060006060848603121561244957600080fd5b833567ffffffffffffffff8082111561246157600080fd5b61246d87838801612131565b9450602086013591508082111561248357600080fd5b50612490868287016121ac565b92505060408401356124a181612995565b809150509250925092565b600080600080600060a086880312156124c457600080fd5b853567ffffffffffffffff808211156124dc57600080fd5b6124e889838a01612131565b965060208801359150808211156124fe57600080fd5b61250a89838a016121ac565b9550604088013591508082111561252057600080fd5b61252c89838a016121ac565b94506060880135915061253e82612995565b9092506080870135908082111561255457600080fd5b506125618882890161220c565b9150509295509295909350565b60006020828403121561258057600080fd5b8151611dd5816129ad565b60006020828403121561259d57600080fd5b5035919050565b6000602082840312156125b657600080fd5b5051919050565b600080604083850312156125d057600080fd5b505080516020909101519092909150565b600081518084526020808501945080840160005b8381101561261a5781516001600160a01b0316875295820195908201906001016125f5565b509495945050505050565b600081518084526020808501945080840160005b8381101561261a57815187529582019590820190600101612639565b6000815180845261266d81602086016020860161290c565b601f01601f19169290920160200192915050565b6000825161269381846020870161290c565b9190910192915050565b6001600160a01b03868116825260208201869052841660408201526060810183905260a0608082018190526000906120ed90830184612655565b6060815260006126ea60608301866125e1565b82810360208401526126fc8186612625565b91505060018060a01b0383166040830152949350505050565b60a08152600061272860a08301886125e1565b828103602084015261273a8188612625565b905085604084015282810360608401526127548186612655565b905082810360808401526127688185612655565b98975050505050505050565b602081526000611dd56020830184612655565b6020808252600990820152680dedcd8f240c2eae8d60bb1b604082015260600190565b602080825260149082015273736f6d657468696e672d77656e742d77726f6e6760601b604082015260600190565b60208082526027908201527f77657468416d7452656365697665644166746572537761702063616e6e6f74206040820152666265207a65726f60c81b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156128485761284861297f565b604052919050565b600067ffffffffffffffff82111561286a5761286a61297f565b5060051b60200190565b600067ffffffffffffffff82111561288e5761288e61297f565b50601f01601f191660200190565b600082198211156128af576128af612953565b500190565b6000826128d157634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156128f0576128f0612953565b500290565b60008282101561290757612907612953565b500390565b60005b8381101561292757818101518382015260200161290f565b83811115611c995750506000910152565b600060001982141561294c5761294c612953565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146129aa57600080fd5b50565b80151581146129aa57600080fdfea26469706673582212205edcc8a95c7249948aba4f7b8d1b3566cb6c83c8d785fe2710a5cb6dd3b0b48264736f6c63430008060033

Deployed Bytecode

0x6080604052600436106100a05760003560e01c8063950909891161006457806395090989146101735780639a3dc5a014610193578063b5c7400b146101b7578063b8d07f4f146101d7578063de9375f2146101f7578063e0a73a931461022f57600080fd5b80632f6d1ddc146100ac57806362c58d4d146100ce578063652b9b41146100ee578063891a842c14610133578063920f5c841461015357600080fd5b366100a757005b600080fd5b3480156100b857600080fd5b506100cc6100c7366004612434565b610245565b005b3480156100da57600080fd5b506100cc6100e9366004612384565b610443565b3480156100fa57600080fd5b5061011e61010936600461225d565b60026020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561013f57600080fd5b506100cc61014e36600461258b565b6107ea565b34801561015f57600080fd5b5061011e61016e3660046124ac565b610850565b34801561017f57600080fd5b506100cc61018e36600461234b565b611a95565b34801561019f57600080fd5b506101a960045481565b60405190815260200161012a565b3480156101c357600080fd5b506100cc6101d236600461258b565b611b22565b3480156101e357600080fd5b506100cc6101f236600461225d565b611b81565b34801561020357600080fd5b50600154610217906001600160a01b031681565b6040516001600160a01b03909116815260200161012a565b34801561023b57600080fd5b506101a960035481565b6001546001600160a01b031633146102785760405162461bcd60e51b815260040161026f90612787565b60405180910390fd5b8251825181146102bd5760405162461bcd60e51b815260206004820152601060248201526f6c656e67746873206e6f742073616d6560801b604482015260640161026f565b60005b81811015610401576000198482815181106102dd576102dd612969565b6020026020010151141561039f578481815181106102fd576102fd612969565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561034857600080fd5b505afa15801561035c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038091906125a4565b84828151811061039257610392612969565b6020026020010181815250505b6103ef838583815181106103b5576103b5612969565b60200260200101518784815181106103cf576103cf612969565b60200260200101516001600160a01b0316611bf99092919063ffffffff16565b806103f981612938565b9150506102c0565b507fa7a475dffdfc397f5a5ab26e3a623a27f1dd6536ac287d5cc8b83748b432d3da848484604051610435939291906126d7565b60405180910390a150505050565b600054600214156104965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161026f565b6002600055836104e85760405162461bcd60e51b815260206004820152601760248201527f756e6974416d745f2063616e6e6f74206265207a65726f000000000000000000604482015260640161026f565b6001600160a01b03881660009081526002602052604090205460ff166105405760405162461bcd60e51b815260206004820152600d60248201526c1a5b9d985b1a59081d985d5b1d609a1b604482015260640161026f565b6000886001600160a01b031663cc4a01586040518163ffffffff1660e01b8152600401604080518083038186803b15801561057a57600080fd5b505afa15801561058e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b291906125bd565b509050600060001988141561065e576040516370a0823160e01b81523360048201526001600160a01b038b16906370a082319060240160206040518083038186803b15801561060057600080fd5b505afa158015610614573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063891906125a4565b9050670de0b6b3a764000061064d83836128d6565b61065791906128b4565b975061067e565b8161067189670de0b6b3a76400006128d6565b61067b91906128b4565b90505b6106936001600160a01b038b16333084611c61565b6040805160018082528183019092526000916020808301908036833701905050905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816000815181106106dd576106dd612969565b6001600160a01b0392909216602092830291909101909101526040805160018082528183019092526000918160200160208202803683370190505090508a8160008151811061072e5761072e612969565b60200260200101818152505060008c8b8b8b8b60405160200161075595949392919061269d565b60408051601f198184030181529082905263095627e960e01b8252915073619ad2d02dbee6eba3cdbda3f98430410e8928829063095627e9906107a490869086908c9087908d90600401612715565b600060405180830381600087803b1580156107be57600080fd5b505af11580156107d2573d6000803e3d6000fd5b50506001600055505050505050505050505050505050565b6001546001600160a01b031633146108145760405162461bcd60e51b815260040161026f90612787565b60048190556040518181527f6126793158d95f94b6d6163b8ed2c185633e26b192ca504e15e31a66a5c83865906020015b60405180910390a150565b60003373619ad2d02dbee6eba3cdbda3f98430410e892882146108a65760405162461bcd60e51b815260206004820152600e60248201526d34b63632b3b0b616b1b0b63632b960911b604482015260640161026f565b6001600160a01b03831630146108f25760405162461bcd60e51b815260206004820152601160248201527034b63632b3b0b616b4b734ba34b0ba37b960791b604482015260640161026f565b85516001148015610942575073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03168660008151811061092f5761092f612969565b60200260200101516001600160a01b0316145b61097f5760405162461bcd60e51b815260206004820152600e60248201526d696e76616c69642d706172616d7360901b604482015260640161026f565b610a5b60405180610320016040528060006001600160a01b03168152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600081526020016000815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081525090565b82806020019051810190610a6f9190612297565b60a086015260808501526001600160a01b03908116606085015260208085019290925291909116808352604080516322f1fa3160e21b8152905191928392638bc7e8c4926004808201939291829003018186803b158015610acf57600080fd5b505afa158015610ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0791906125a4565b60c08301819052602083015161271091610b20916128d6565b610b2a91906128b4565b8260200151610b3991906128f5565b604083015281518751610b8d91908990600090610b5857610b58612969565b602002602001015173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316611c9f9092919063ffffffff16565b81516001600160a01b031673c383a3833a87009fd9597f8184979af5edfad01914156111bc57476101608301526040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b158015610c0457600080fd5b505afa158015610c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3c91906125a4565b82610100018181525050806001600160a01b0316633b3fdb5c88600081518110610c6857610c68612969565b602090810291909101810151908501516040516001600160e01b031960e085901b16815260048101929092526024820152306044820152606401600060405180830381600087803b158015610cbc57600080fd5b505af1158015610cd0573d6000803e3d6000fd5b50504761018085015250506040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b158015610d2557600080fd5b505afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d91906125a4565b610140830152610160820151610180830151610d7991906128f5565b6101a083015261010082015187518890600090610d9857610d98612969565b6020026020010151836101400151610db091906128f5565b610dba91906128f5565b6101c0830181905260408301516101a08401519091610dd89161289c565b610de690633b9aca0061289c565b1015610e045760405162461bcd60e51b815260040161026f906127aa565b6040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b158015610e4e57600080fd5b505afa158015610e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8691906125a4565b8260e0018181525050610eef731111111254fb6c44bac0bed2854e76f90643097d88600081518110610eba57610eba612969565b602002602001015173ae7ab96520de3a18e5e111b5eaab095312d7fe846001600160a01b0316611c9f9092919063ffffffff16565b610f3b731111111254fb6c44bac0bed2854e76f90643097d8360a00151604051806040016040528060118152602001700c525b98da0b5cddd85c0b59985a5b1959607a1b815250611dc3565b506040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b158015610f8657600080fd5b505afa158015610f9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fbe91906125a4565b610120830181905260e0830151610fd4916128f5565b6102608301819052610ff85760405162461bcd60e51b815260040161026f906127d8565b670de0b6b3a764000082608001518860008151811061101957611019612969565b602002602001015161102b91906128d6565b61103591906128b4565b826102600151101561107d5760405162461bcd60e51b8152602060048201526011602482015270546f6f2d6d7563682d736c69707061676560781b604482015260640161026f565b8161026001518660008151811061109657611096612969565b6020026020010151886000815181106110b1576110b1612969565b60200260200101516110c3919061289c565b6110cd91906128f5565b6102408301819052600454612710916110e691906128d6565b6110f091906128b4565b826102400151611100919061289c565b61024083018190526101a08301511115611166576111378260600151836102400151846101a0015161113291906128f5565b611ddc565b60608201516101c08301516111619173ae7ab96520de3a18e5e111b5eaab095312d7fe8491611bf9565b611a13565b816101a00151826102400181815161117e91906128f5565b90525060608201516102408301516101c084015161116192916111a0916128f5565b73ae7ab96520de3a18e5e111b5eaab095312d7fe849190611bf9565b806001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111f557600080fd5b505afa158015611209573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122d919061227a565b6001600160a01b0316610280830181905260405163b3596f0760e01b8152600481019190915273a50ba011c48153de246e5192c8f9258a2ba79ca99063b3596f079060240160206040518083038186803b15801561128a57600080fd5b505afa15801561129e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c291906125a4565b6102a083015260405163b3596f0760e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2600482015273a50ba011c48153de246e5192c8f9258a2ba79ca99063b3596f079060240160206040518083038186803b15801561132657600080fd5b505afa15801561133a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135e91906125a4565b6102c083018190526102a083015161137e90670de0b6b3a76400006128d6565b61138891906128b4565b6102e08301526102808201516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156113d457600080fd5b505afa1580156113e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140c91906125a4565b6101e08301526040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b15801561145c57600080fd5b505afa158015611470573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149491906125a4565b82610100018181525050806001600160a01b0316633b3fdb5c886000815181106114c0576114c0612969565b602090810291909101810151908501516040516001600160e01b031960e085901b16815260048101929092526024820152306044820152606401600060405180830381600087803b15801561151457600080fd5b505af1158015611528573d6000803e3d6000fd5b5050506102808301516040516370a0823160e01b81523060048201526001600160a01b0390911691506370a082319060240160206040518083038186803b15801561157257600080fd5b505afa158015611586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115aa91906125a4565b6102008301526040516370a0823160e01b815230600482015273ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a082319060240160206040518083038186803b1580156115fa57600080fd5b505afa15801561160e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163291906125a4565b61014083015260408201516305f5e10090611651906305f5e0ff6128d6565b61165b91906128b4565b826101e0015183610200015161167191906128f5565b101561168f5760405162461bcd60e51b815260040161026f906127aa565b866000815181106116a2576116a2612969565b60200260200101518261010001518361014001516116c091906128f5565b6116ce90633b9aca0061289c565b10156116ec5760405162461bcd60e51b815260040161026f906127aa565b6040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b15801561173657600080fd5b505afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e91906125a4565b8260e00181815250506117a2731111111254fb6c44bac0bed2854e76f90643097d88600081518110610eba57610eba612969565b6117ee731111111254fb6c44bac0bed2854e76f90643097d8360a00151604051806040016040528060118152602001700c525b98da0b5cddd85c0b59985a5b1959607a1b815250611dc3565b506040516370a0823160e01b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a082319060240160206040518083038186803b15801561183957600080fd5b505afa15801561184d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187191906125a4565b610120830181905260e0830151611887916128f5565b61026083018190526118ab5760405162461bcd60e51b815260040161026f906127d8565b670de0b6b3a76400008260800151886000815181106118cc576118cc612969565b60200260200101516118de91906128d6565b6118e891906128b4565b82610260015110156119305760405162461bcd60e51b8152602060048201526011602482015270546f6f2d6d7563682d736c69707061676560781b604482015260640161026f565b8161026001518660008151811061194957611949612969565b60200260200101518860008151811061196457611964612969565b6020026020010151611976919061289c565b61198091906128f5565b61024083018190526003546127109161199991906128d6565b6119a391906128b4565b8261024001516119b3919061289c565b61024083018190526102e0830151670de0b6b3a7640000916119d4916128d6565b6119de91906128b4565b610300830181905260608301516040840151611a13926119fd916128f5565b6102808501516001600160a01b03169190611bf9565b611a8773619ad2d02dbee6eba3cdbda3f98430410e89288287600081518110611a3e57611a3e612969565b602002602001015189600081518110611a5957611a59612969565b6020026020010151611a6b919061289c565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29190611bf9565b506001979650505050505050565b6001546001600160a01b03163314611abf5760405162461bcd60e51b815260040161026f90612787565b6001600160a01b038216600081815260026020908152604091829020805460ff19168515159081179091558251938452908301527f88490b2997e8c4c998cf0e9013805975fa98575039f705681428d26bd9656acc910160405180910390a15050565b6001546001600160a01b03163314611b4c5760405162461bcd60e51b815260040161026f90612787565b60038190556040518181527fac7454b1ee3dc42f2c6ba7fe6f0240b9b48715858de8b3b379813cf552aaec5d90602001610845565b6001546001600160a01b03163314611bab5760405162461bcd60e51b815260040161026f90612787565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f509c071d3a1b897053dd874d2e7934477cd754e3dfef8f7dc66297e0407024ab90602001610845565b6040516001600160a01b038316602482015260448101829052611c5c90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ef5565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611c999085906323b872dd60e01b90608401611c25565b50505050565b801580611d285750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015611cee57600080fd5b505afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2691906125a4565b155b611d935760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840161026f565b6040516001600160a01b038316602482015260448101829052611c5c90849063095ea7b360e01b90606401611c25565b6060611dd28484600085611fc7565b90505b9392505050565b80471015611e2c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161026f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611e79576040519150601f19603f3d011682016040523d82523d6000602084013e611e7e565b606091505b5050905080611c5c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161026f565b6000611f4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611dc39092919063ffffffff16565b805190915015611c5c5780806020019051810190611f68919061256e565b611c5c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161026f565b6060824710156120285760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161026f565b6001600160a01b0385163b61207f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161026f565b600080866001600160a01b0316858760405161209b9190612681565b60006040518083038185875af1925050503d80600081146120d8576040519150601f19603f3d011682016040523d82523d6000602084013e6120dd565b606091505b50915091506120ed8282866120f8565b979650505050505050565b60608315612107575081611dd5565b8251156121175782518084602001fd5b8160405162461bcd60e51b815260040161026f9190612774565b600082601f83011261214257600080fd5b8135602061215761215283612850565b61281f565b80838252828201915082860187848660051b890101111561217757600080fd5b60005b8581101561219f57813561218d81612995565b8452928401929084019060010161217a565b5090979650505050505050565b600082601f8301126121bd57600080fd5b813560206121cd61215283612850565b80838252828201915082860187848660051b89010111156121ed57600080fd5b60005b8581101561219f578135845292840192908401906001016121f0565b600082601f83011261221d57600080fd5b813561222b61215282612874565b81815284602083860101111561224057600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561226f57600080fd5b8135611dd581612995565b60006020828403121561228c57600080fd5b8151611dd581612995565b600080600080600060a086880312156122af57600080fd5b85516122ba81612995565b6020870151604088015191965094506122d281612995565b60608701516080880151919450925067ffffffffffffffff8111156122f657600080fd5b8601601f8101881361230757600080fd5b805161231561215282612874565b81815289602083850101111561232a57600080fd5b61233b82602083016020860161290c565b8093505050509295509295909350565b6000806040838503121561235e57600080fd5b823561236981612995565b91506020830135612379816129ad565b809150509250929050565b600080600080600080600080610100898b0312156123a157600080fd5b88356123ac81612995565b9750602089013596506040890135955060608901356123ca81612995565b94506080890135935060a089013567ffffffffffffffff808211156123ee57600080fd5b6123fa8c838d0161220c565b945060c08b0135935060e08b013591508082111561241757600080fd5b506124248b828c0161220c565b9150509295985092959890939650565b60008060006060848603121561244957600080fd5b833567ffffffffffffffff8082111561246157600080fd5b61246d87838801612131565b9450602086013591508082111561248357600080fd5b50612490868287016121ac565b92505060408401356124a181612995565b809150509250925092565b600080600080600060a086880312156124c457600080fd5b853567ffffffffffffffff808211156124dc57600080fd5b6124e889838a01612131565b965060208801359150808211156124fe57600080fd5b61250a89838a016121ac565b9550604088013591508082111561252057600080fd5b61252c89838a016121ac565b94506060880135915061253e82612995565b9092506080870135908082111561255457600080fd5b506125618882890161220c565b9150509295509295909350565b60006020828403121561258057600080fd5b8151611dd5816129ad565b60006020828403121561259d57600080fd5b5035919050565b6000602082840312156125b657600080fd5b5051919050565b600080604083850312156125d057600080fd5b505080516020909101519092909150565b600081518084526020808501945080840160005b8381101561261a5781516001600160a01b0316875295820195908201906001016125f5565b509495945050505050565b600081518084526020808501945080840160005b8381101561261a57815187529582019590820190600101612639565b6000815180845261266d81602086016020860161290c565b601f01601f19169290920160200192915050565b6000825161269381846020870161290c565b9190910192915050565b6001600160a01b03868116825260208201869052841660408201526060810183905260a0608082018190526000906120ed90830184612655565b6060815260006126ea60608301866125e1565b82810360208401526126fc8186612625565b91505060018060a01b0383166040830152949350505050565b60a08152600061272860a08301886125e1565b828103602084015261273a8188612625565b905085604084015282810360608401526127548186612655565b905082810360808401526127688185612655565b98975050505050505050565b602081526000611dd56020830184612655565b6020808252600990820152680dedcd8f240c2eae8d60bb1b604082015260600190565b602080825260149082015273736f6d657468696e672d77656e742d77726f6e6760601b604082015260600190565b60208082526027908201527f77657468416d7452656365697665644166746572537761702063616e6e6f74206040820152666265207a65726f60c81b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156128485761284861297f565b604052919050565b600067ffffffffffffffff82111561286a5761286a61297f565b5060051b60200190565b600067ffffffffffffffff82111561288e5761288e61297f565b50601f01601f191660200190565b600082198211156128af576128af612953565b500190565b6000826128d157634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156128f0576128f0612953565b500290565b60008282101561290757612907612953565b500390565b60005b8381101561292757818101518382015260200161290f565b83811115611c995750506000910152565b600060001982141561294c5761294c612953565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146129aa57600080fd5b50565b80151581146129aa57600080fdfea26469706673582212205edcc8a95c7249948aba4f7b8d1b3566cb6c83c8d785fe2710a5cb6dd3b0b48264736f6c63430008060033

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  ]

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.