ETH Price: $1,989.14 (+7.66%)
Gas: 0.39 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate143735722022-03-12 18:35:041445 days ago1647110104IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.029831434.96820128
Migrate143735702022-03-12 18:34:501445 days ago1647110090IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0397342241.30123392
Migrate139030982021-12-29 23:02:521518 days ago1640818972IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.08827241111.06075008
Migrate136204402021-11-15 12:54:331563 days ago1636980873IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.12859803129
Migrate134467442021-10-19 7:02:101590 days ago1634626930IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.01737139.40603521
Migrate134409972021-10-18 9:23:041591 days ago1634548984IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0253110249.44940843
Migrate133876522021-10-10 0:06:421599 days ago1633824402IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0155207650.29543159
Migrate132619012021-09-20 9:44:291619 days ago1632131069IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.01289931.6223406
Migrate132155382021-09-13 5:29:381626 days ago1631510978IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0262566853.10184173
Migrate132073322021-09-11 23:11:261627 days ago1631401886IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0208889851.05483488
Migrate131113412021-08-28 2:59:301642 days ago1630119570IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0298602364.31778617
Migrate131109802021-08-28 1:39:241642 days ago1630114764IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0451943550
Migrate131000852021-08-26 9:14:301644 days ago1629969270IN
0xEB8D98f9...a1a8D2Eaa
0 ETH0.0274702558

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
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:
YVEmpire

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-08-25
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.6;



// Part: ATokenV1

interface ATokenV1 {
    function underlyingAssetAddress() external view returns (address);

    function redeem(uint256 _amount) external;
}

// Part: ATokenV2

interface ATokenV2 {
    function UNDERLYING_ASSET_ADDRESS() external view returns (address);
}

// Part: CToken

interface CToken {
    function redeem(uint256 redeemTokens) external returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        returns (uint256);

    function underlying() external view returns (address);
}

// Part: LendingPool

interface LendingPool {
    function withdraw(
        address asset,
        uint256 amount,
        address to
    ) external;
}

// Part: OpenZeppelin/openzeppelin-contracts@4.2.0/Address

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// Part: OpenZeppelin/openzeppelin-contracts@4.2.0/IERC20

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

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

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

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

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

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

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

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

// Part: OpenZeppelin/openzeppelin-contracts@4.2.0/Math

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute.
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

// Part: Registry

interface Registry {
    function latestVault(address) external view returns (address);
}

// Part: Vault

interface Vault {
    function deposit(uint256 amount) external returns (uint256);

    function transfer(address to, uint256 amount) external;
}

// Part: OpenZeppelin/openzeppelin-contracts@4.2.0/SafeERC20

/**
 * @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: YVEmpire.sol

contract YVEmpire {
    Registry constant registry = Registry(0x50c1a2eA0a861A967D9d0FFE2AE4012c2E053804);
    LendingPool constant lendingPool =
        LendingPool(0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9);

    enum Service {
        Compound,
        Aavev1,
        Aavev2
    }
    struct Swap {
        Service service;
        address coin;
    }

    function migrate(Swap[] calldata swaps) public {
        for (uint256 i = 0; i < swaps.length; i++) {
            if (swaps[i].service == Service.Compound) {
                swapCompound(swaps[i].coin);
            } else if (swaps[i].service == Service.Aavev1) {
                swapAaveV1(swaps[i].coin);
            } else if (swaps[i].service == Service.Aavev2) {
                swapAaveV2(swaps[i].coin);
            }
        }
    }

    function transferToSelf(address coin) internal returns (uint256) {
        IERC20 token = IERC20(coin);
        uint256 amount = Math.min(
            token.balanceOf(msg.sender),
            token.allowance(msg.sender, address(this))
        );
        require(amount > 0, "!amount");
        SafeERC20.safeTransferFrom(token, msg.sender, address(this), amount);
        return amount;
    }

    function approve(
        IERC20 token,
        address spender,
        uint256 amount
    ) internal {
        if (token.allowance(address(this), spender) < amount) {
            SafeERC20.safeApprove(token, spender, type(uint256).max);
        }
    }

    function depositIntoVault(IERC20 token) internal {
        uint256 balance = token.balanceOf(address(this));
        Vault vault = Vault(registry.latestVault(address(token)));
        approve(token, address(vault), balance);
        uint256 vaultBalance = vault.deposit(balance);
        vault.transfer(msg.sender, vaultBalance);
    }

    function swapCompound(address coin) internal {
        uint256 amount = transferToSelf(coin);
        CToken cToken = CToken(coin);
        IERC20 underlying = IERC20(cToken.underlying());
        require(cToken.redeem(amount) == 0, "!redeem");

        depositIntoVault(underlying);
    }

    function swapAaveV1(address coin) internal {
        transferToSelf(coin);
        ATokenV1 aToken = ATokenV1(coin);
        IERC20 underlying = IERC20(aToken.underlyingAssetAddress());
        aToken.redeem(type(uint256).max);

        depositIntoVault(underlying);
    }

    function swapAaveV2(address coin) internal {
        transferToSelf(coin);
        IERC20 underlying = IERC20(ATokenV2(coin).UNDERLYING_ASSET_ADDRESS());
        lendingPool.withdraw(
            address(underlying),
            type(uint256).max,
            address(this)
        );
        depositIntoVault(underlying);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"components":[{"internalType":"enum YVEmpire.Service","name":"service","type":"uint8"},{"internalType":"address","name":"coin","type":"address"}],"internalType":"struct YVEmpire.Swap[]","name":"swaps","type":"tuple[]"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50610f01806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80632950f6ec14610030575b600080fd5b61004361003e366004610d12565b610045565b005b60005b818110156101c057600083838381811061006457610064610e9d565b61007a9260206040909202019081019150610da9565b600281111561008b5761008b610e87565b14156100c8576100c38383838181106100a6576100a6610e9d565b90506040020160200160208101906100be9190610cd8565b6101c5565b6101ae565b60018383838181106100dc576100dc610e9d565b6100f29260206040909202019081019150610da9565b600281111561010357610103610e87565b141561013b576100c383838381811061011e5761011e610e9d565b90506040020160200160208101906101369190610cd8565b610312565b600283838381811061014f5761014f610e9d565b6101659260206040909202019081019150610da9565b600281111561017657610176610e87565b14156101ae576101ae83838381811061019157610191610e9d565b90506040020160200160208101906101a99190610cd8565b6103fb565b806101b881610e5e565b915050610048565b505050565b60006101d082610503565b905060008290506000816001600160a01b0316636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561021257600080fd5b505afa158015610226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024a9190610cf5565b60405163db006a7560e01b8152600481018590529091506001600160a01b0383169063db006a7590602401602060405180830381600087803b15801561028f57600080fd5b505af11580156102a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c79190610dca565b156103035760405162461bcd60e51b81526020600482015260076024820152662172656465656d60c81b60448201526064015b60405180910390fd5b61030c81610656565b50505050565b61031b81610503565b5060008190506000816001600160a01b03166389d1a0fc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561035c57600080fd5b505afa158015610370573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103949190610cf5565b60405163db006a7560e01b815260001960048201529091506001600160a01b0383169063db006a7590602401600060405180830381600087803b1580156103da57600080fd5b505af11580156103ee573d6000803e3d6000fd5b505050506101c081610656565b61040481610503565b506000816001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561044057600080fd5b505afa158015610454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104789190610cf5565b604051631a4ca37b60e21b81526001600160a01b03821660048201526000196024820152306044820152909150737d2768de32b0b80b7a3454c06bdac94a69ddc7a9906369328dec90606401600060405180830381600087803b1580156104de57600080fd5b505af11580156104f2573d6000803e3d6000fd5b505050506104ff81610656565b5050565b6040516370a0823160e01b815233600482015260009082908290610607906001600160a01b038416906370a082319060240160206040518083038186803b15801561054d57600080fd5b505afa158015610561573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105859190610dca565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0385169063dd62ed3e9060440160206040518083038186803b1580156105ca57600080fd5b505afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106029190610dca565b610854565b9050600081116106435760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b60448201526064016102fa565b61064f8233308461086a565b9392505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561069857600080fd5b505afa1580156106ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d09190610dca565b604051630e177dc760e41b81526001600160a01b03841660048201529091506000907350c1a2ea0a861a967d9d0ffe2ae4012c2e0538049063e177dc709060240160206040518083038186803b15801561072957600080fd5b505afa15801561073d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107619190610cf5565b905061076e8382846108d5565b60405163b6b55f2560e01b8152600481018390526000906001600160a01b0383169063b6b55f2590602401602060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190610dca565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401600060405180830381600087803b15801561083657600080fd5b505af115801561084a573d6000803e3d6000fd5b5050505050505050565b6000818310610863578161064f565b5090919050565b6040516001600160a01b038085166024830152831660448201526064810182905261030c9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261096a565b604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015282919085169063dd62ed3e9060440160206040518083038186803b15801561091f57600080fd5b505afa158015610933573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190610dca565b10156101c0576101c08383600019610a3c565b60006109bf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b609092919063ffffffff16565b8051909150156101c057808060200190518101906109dd9190610d87565b6101c05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102fa565b801580610ac55750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610a8b57600080fd5b505afa158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190610dca565b155b610b305760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102fa565b6040516001600160a01b0383166024820152604481018290526101c090849063095ea7b360e01b9060640161089e565b6060610b6f8484600085610b77565b949350505050565b606082471015610bd85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102fa565b843b610c265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102fa565b600080866001600160a01b03168587604051610c429190610de3565b60006040518083038185875af1925050503d8060008114610c7f576040519150601f19603f3d011682016040523d82523d6000602084013e610c84565b606091505b5091509150610c94828286610c9f565b979650505050505050565b60608315610cae57508161064f565b825115610cbe5782518084602001fd5b8160405162461bcd60e51b81526004016102fa9190610dff565b600060208284031215610cea57600080fd5b813561064f81610eb3565b600060208284031215610d0757600080fd5b815161064f81610eb3565b60008060208385031215610d2557600080fd5b823567ffffffffffffffff80821115610d3d57600080fd5b818501915085601f830112610d5157600080fd5b813581811115610d6057600080fd5b8660208260061b8501011115610d7557600080fd5b60209290920196919550909350505050565b600060208284031215610d9957600080fd5b8151801515811461064f57600080fd5b600060208284031215610dbb57600080fd5b81356003811061064f57600080fd5b600060208284031215610ddc57600080fd5b5051919050565b60008251610df5818460208701610e32565b9190910192915050565b6020815260008251806020840152610e1e816040850160208701610e32565b601f01601f19169190910160400192915050565b60005b83811015610e4d578181015183820152602001610e35565b8381111561030c5750506000910152565b6000600019821415610e8057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114610ec857600080fd5b5056fea2646970667358221220ea0fd29fae3b1cda9d509fabeb5f668f0cece8e2d7182ee4d70cf5cb1884ca5564736f6c63430008060033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80632950f6ec14610030575b600080fd5b61004361003e366004610d12565b610045565b005b60005b818110156101c057600083838381811061006457610064610e9d565b61007a9260206040909202019081019150610da9565b600281111561008b5761008b610e87565b14156100c8576100c38383838181106100a6576100a6610e9d565b90506040020160200160208101906100be9190610cd8565b6101c5565b6101ae565b60018383838181106100dc576100dc610e9d565b6100f29260206040909202019081019150610da9565b600281111561010357610103610e87565b141561013b576100c383838381811061011e5761011e610e9d565b90506040020160200160208101906101369190610cd8565b610312565b600283838381811061014f5761014f610e9d565b6101659260206040909202019081019150610da9565b600281111561017657610176610e87565b14156101ae576101ae83838381811061019157610191610e9d565b90506040020160200160208101906101a99190610cd8565b6103fb565b806101b881610e5e565b915050610048565b505050565b60006101d082610503565b905060008290506000816001600160a01b0316636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561021257600080fd5b505afa158015610226573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024a9190610cf5565b60405163db006a7560e01b8152600481018590529091506001600160a01b0383169063db006a7590602401602060405180830381600087803b15801561028f57600080fd5b505af11580156102a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c79190610dca565b156103035760405162461bcd60e51b81526020600482015260076024820152662172656465656d60c81b60448201526064015b60405180910390fd5b61030c81610656565b50505050565b61031b81610503565b5060008190506000816001600160a01b03166389d1a0fc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561035c57600080fd5b505afa158015610370573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103949190610cf5565b60405163db006a7560e01b815260001960048201529091506001600160a01b0383169063db006a7590602401600060405180830381600087803b1580156103da57600080fd5b505af11580156103ee573d6000803e3d6000fd5b505050506101c081610656565b61040481610503565b506000816001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561044057600080fd5b505afa158015610454573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104789190610cf5565b604051631a4ca37b60e21b81526001600160a01b03821660048201526000196024820152306044820152909150737d2768de32b0b80b7a3454c06bdac94a69ddc7a9906369328dec90606401600060405180830381600087803b1580156104de57600080fd5b505af11580156104f2573d6000803e3d6000fd5b505050506104ff81610656565b5050565b6040516370a0823160e01b815233600482015260009082908290610607906001600160a01b038416906370a082319060240160206040518083038186803b15801561054d57600080fd5b505afa158015610561573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105859190610dca565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0385169063dd62ed3e9060440160206040518083038186803b1580156105ca57600080fd5b505afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106029190610dca565b610854565b9050600081116106435760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b60448201526064016102fa565b61064f8233308461086a565b9392505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561069857600080fd5b505afa1580156106ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d09190610dca565b604051630e177dc760e41b81526001600160a01b03841660048201529091506000907350c1a2ea0a861a967d9d0ffe2ae4012c2e0538049063e177dc709060240160206040518083038186803b15801561072957600080fd5b505afa15801561073d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107619190610cf5565b905061076e8382846108d5565b60405163b6b55f2560e01b8152600481018390526000906001600160a01b0383169063b6b55f2590602401602060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190610dca565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401600060405180830381600087803b15801561083657600080fd5b505af115801561084a573d6000803e3d6000fd5b5050505050505050565b6000818310610863578161064f565b5090919050565b6040516001600160a01b038085166024830152831660448201526064810182905261030c9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261096a565b604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015282919085169063dd62ed3e9060440160206040518083038186803b15801561091f57600080fd5b505afa158015610933573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109579190610dca565b10156101c0576101c08383600019610a3c565b60006109bf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b609092919063ffffffff16565b8051909150156101c057808060200190518101906109dd9190610d87565b6101c05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102fa565b801580610ac55750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b158015610a8b57600080fd5b505afa158015610a9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac39190610dca565b155b610b305760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102fa565b6040516001600160a01b0383166024820152604481018290526101c090849063095ea7b360e01b9060640161089e565b6060610b6f8484600085610b77565b949350505050565b606082471015610bd85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102fa565b843b610c265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102fa565b600080866001600160a01b03168587604051610c429190610de3565b60006040518083038185875af1925050503d8060008114610c7f576040519150601f19603f3d011682016040523d82523d6000602084013e610c84565b606091505b5091509150610c94828286610c9f565b979650505050505050565b60608315610cae57508161064f565b825115610cbe5782518084602001fd5b8160405162461bcd60e51b81526004016102fa9190610dff565b600060208284031215610cea57600080fd5b813561064f81610eb3565b600060208284031215610d0757600080fd5b815161064f81610eb3565b60008060208385031215610d2557600080fd5b823567ffffffffffffffff80821115610d3d57600080fd5b818501915085601f830112610d5157600080fd5b813581811115610d6057600080fd5b8660208260061b8501011115610d7557600080fd5b60209290920196919550909350505050565b600060208284031215610d9957600080fd5b8151801515811461064f57600080fd5b600060208284031215610dbb57600080fd5b81356003811061064f57600080fd5b600060208284031215610ddc57600080fd5b5051919050565b60008251610df5818460208701610e32565b9190910192915050565b6020815260008251806020840152610e1e816040850160208701610e32565b601f01601f19169190910160400192915050565b60005b83811015610e4d578181015183820152602001610e35565b8381111561030c5750506000910152565b6000600019821415610e8057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114610ec857600080fd5b5056fea2646970667358221220ea0fd29fae3b1cda9d509fabeb5f668f0cece8e2d7182ee4d70cf5cb1884ca5564736f6c63430008060033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.