ETH Price: $2,433.87 (-2.20%)

Contract

0x04462c8ad55a3d970fd9b4944A2f4C7c15700883
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00
Transaction Hash
Method
Block
From
To
0x60806040140232582022-01-17 13:17:36994 days ago1642425456IN
 Create: CvxDistributor
0 ETH0.1228106790

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
143137322022-03-03 11:24:36949 days ago1646306676
0x04462c8a...c15700883
0.00030408 ETH
143137322022-03-03 11:24:36949 days ago1646306676
0x04462c8a...c15700883
0.03105375 ETH
143137322022-03-03 11:24:36949 days ago1646306676
0x04462c8a...c15700883
0.03135784 ETH
143063532022-03-02 7:56:40950 days ago1646207800
0x04462c8a...c15700883
0.00115539 ETH
143063532022-03-02 7:56:40950 days ago1646207800
0x04462c8a...c15700883
0.03515543 ETH
143063532022-03-02 7:56:40950 days ago1646207800
0x04462c8a...c15700883
0.03631083 ETH
142926552022-02-28 5:08:46952 days ago1646024926
0x04462c8a...c15700883
0.00161315 ETH
142926552022-02-28 5:08:46952 days ago1646024926
0x04462c8a...c15700883
0.05094554 ETH
142926552022-02-28 5:08:46952 days ago1646024926
0x04462c8a...c15700883
0.0525587 ETH
142877192022-02-27 10:38:46953 days ago1645958326
0x04462c8a...c15700883
0.00094632 ETH
142877192022-02-27 10:38:46953 days ago1645958326
0x04462c8a...c15700883
0.02851474 ETH
142877192022-02-27 10:38:46953 days ago1645958326
0x04462c8a...c15700883
0.02946107 ETH
142848982022-02-27 0:09:07954 days ago1645920547
0x04462c8a...c15700883
0.00198862 ETH
142848982022-02-27 0:09:07954 days ago1645920547
0x04462c8a...c15700883
0.03630725 ETH
142848982022-02-27 0:09:07954 days ago1645920547
0x04462c8a...c15700883
0.03829587 ETH
142812562022-02-26 10:46:19954 days ago1645872379
0x04462c8a...c15700883
0.0003183 ETH
142812562022-02-26 10:46:19954 days ago1645872379
0x04462c8a...c15700883
0.03022815 ETH
142812562022-02-26 10:46:19954 days ago1645872379
0x04462c8a...c15700883
0.03054646 ETH
142785472022-02-26 0:35:38955 days ago1645835738
0x04462c8a...c15700883
0.00402286 ETH
142785472022-02-26 0:35:38955 days ago1645835738
0x04462c8a...c15700883
0.04518452 ETH
142785472022-02-26 0:35:38955 days ago1645835738
0x04462c8a...c15700883
0.04920739 ETH
142703522022-02-24 18:11:11956 days ago1645726271
0x04462c8a...c15700883
0.00294429 ETH
142703522022-02-24 18:11:11956 days ago1645726271
0x04462c8a...c15700883
0.04112327 ETH
142703522022-02-24 18:11:11956 days ago1645726271
0x04462c8a...c15700883
0.04406757 ETH
142661292022-02-24 2:30:41956 days ago1645669841
0x04462c8a...c15700883
0.00415808 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CvxDistributor

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : CvxDistributor.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.11;

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

interface ICvxStaking {
    function distribute() external;
}

interface IRouter {
    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);
}

interface IPokeMe {
    function getFeeDetails() external view returns (uint256, address);

    function gelato() external view returns (address payable);
}

contract CvxDistributor {
    using SafeERC20 for IERC20;

    address public constant GELATO =
        address(0x3CACa7b48D0573D793d3b0279b5F0029180E83b6);
    address public constant WETH =
        address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    address public constant CVXCRV =
        address(0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7);
    address public constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    ICvxStaking public constant cvxStaking =
        ICvxStaking(0xE096ccEc4a1D36F191189Fe61E803d8B2044DFC3);
    IRouter public constant sushiRouter =
        IRouter(0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F);
    IPokeMe public constant pokeMe =
        IPokeMe(0xB3f5503f93d5Ef84b06993a1975B9D21B962892F);

    constructor() {
        IERC20(CVXCRV).approve(address(sushiRouter), 2**256 - 1);
    }

    receive() external payable {}

    function distribute() external {
        require(msg.sender == address(pokeMe), "Only PokeMe");

        address[] memory path = new address[](2);
        path[0] = CVXCRV;
        path[1] = WETH;

        cvxStaking.distribute();

        uint256 cvxCrvBalance = IERC20(CVXCRV).balanceOf(address(this));

        uint256[] memory amounts = sushiRouter.getAmountsOut(
            cvxCrvBalance,
            path
        );
        uint256 amountOutMin = (amounts[amounts.length - 1] * 95) / 100;

        sushiRouter.swapExactTokensForETH(
            cvxCrvBalance,
            amountOutMin,
            path,
            address(this),
            block.timestamp
        );

        uint256 fee;

        (fee, ) = pokeMe.getFeeDetails();

        _transfer(fee, ETH, GELATO);
        _transfer(address(this).balance, ETH, tx.origin);
    }

    function _transfer(
        uint256 _amount,
        address _paymentToken,
        address _to
    ) internal {
        if (_paymentToken == ETH) {
            (bool success, ) = _to.call{value: _amount}("");
            require(success, "_transfer: ETH transfer failed");
        } else {
            SafeERC20.safeTransfer(IERC20(_paymentToken), GELATO, _amount);
        }
    }

    function claimTokens(uint256 _amount, address _token) external {
        _transfer(_amount, _token, GELATO);
    }
}

File 2 of 4 : SafeERC20.sol
// SPDX-License-Identifier: MIT

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 3 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 4 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        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);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CVXCRV","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GELATO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cvxStaking","outputs":[{"internalType":"contract ICvxStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pokeMe","outputs":[{"internalType":"contract IPokeMe","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sushiRouter","outputs":[{"internalType":"contract IRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b507362b9c7356a2dc64a1969e19c23e4f579f9810aa773ffffffffffffffffffffffffffffffffffffffff1663095ea7b373d9e1ce17f2641f24ae83637ab66a2cca9c378b9f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016200009792919062000180565b6020604051808303816000875af1158015620000b7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000dd9190620001ef565b5062000221565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200011182620000e4565b9050919050565b620001238162000104565b82525050565b6000819050919050565b6000819050919050565b6000819050919050565b600062000168620001626200015c8462000129565b6200013d565b62000133565b9050919050565b6200017a8162000147565b82525050565b600060408201905062000197600083018562000118565b620001a660208301846200016f565b9392505050565b600080fd5b60008115159050919050565b620001c981620001b2565b8114620001d557600080fd5b50565b600081519050620001e981620001be565b92915050565b600060208284031215620002085762000207620001ad565b5b60006200021884828501620001d8565b91505092915050565b61172880620002316000396000f3fe60806040526004361061008a5760003560e01c80638322fff2116100595780638322fff214610140578063ad5c46481461016b578063c84eee0d14610196578063e4fc6b6d146101c1578063eff557a7146101d857610091565b8063145787e91461009657806323797ff0146100c15780636d13582c146100ec5780636e164e231461011757610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab610203565b6040516100b89190610c58565b60405180910390f35b3480156100cd57600080fd5b506100d661021b565b6040516100e39190610c94565b60405180910390f35b3480156100f857600080fd5b50610101610233565b60405161010e9190610cd0565b60405180910390f35b34801561012357600080fd5b5061013e60048036038101906101399190610d61565b61024b565b005b34801561014c57600080fd5b5061015561026e565b6040516101629190610c94565b60405180910390f35b34801561017757600080fd5b50610180610286565b60405161018d9190610c94565b60405180910390f35b3480156101a257600080fd5b506101ab61029e565b6040516101b89190610dc2565b60405180910390f35b3480156101cd57600080fd5b506101d66102b6565b005b3480156101e457600080fd5b506101ed6107af565b6040516101fa9190610c94565b60405180910390f35b73e096ccec4a1d36f191189fe61e803d8b2044dfc381565b7362b9c7356a2dc64a1969e19c23e4f579f9810aa781565b73d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b61026a8282733caca7b48d0573d793d3b0279b5f0029180e83b66107c7565b5050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b73b3f5503f93d5ef84b06993a1975b9d21b962892f81565b73b3f5503f93d5ef84b06993a1975b9d21b962892f73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032f90610e3a565b60405180910390fd5b6000600267ffffffffffffffff81111561035557610354610e5a565b5b6040519080825280602002602001820160405280156103835781602001602082028036833780820191505090505b5090507362b9c7356a2dc64a1969e19c23e4f579f9810aa7816000815181106103af576103ae610e89565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061041257610411610e89565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073e096ccec4a1d36f191189fe61e803d8b2044dfc373ffffffffffffffffffffffffffffffffffffffff1663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156104a857600080fd5b505af11580156104bc573d6000803e3d6000fd5b5050505060007362b9c7356a2dc64a1969e19c23e4f579f9810aa773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161050f9190610c94565b602060405180830381865afa15801561052c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105509190610ecd565b9050600073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff1663d06ca61f83856040518363ffffffff1660e01b81526004016105a3929190610fc7565b600060405180830381865afa1580156105c0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906105e99190611121565b905060006064605f83600185516106009190611199565b8151811061061157610610610e89565b5b602002602001015161062391906111cd565b61062d9190611256565b905073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166318cbafe584838730426040518663ffffffff1660e01b8152600401610684959493929190611287565b6000604051808303816000875af11580156106a3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906106cc9190611121565b50600073b3f5503f93d5ef84b06993a1975b9d21b962892f73ffffffffffffffffffffffffffffffffffffffff1663b810c6366040518163ffffffff1660e01b81526004016040805180830381865afa15801561072d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075191906112f6565b50809150506107898173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee733caca7b48d0573d793d3b0279b5f0029180e83b66107c7565b6107a84773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee326107c7565b5050505050565b733caca7b48d0573d793d3b0279b5f0029180e83b681565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108c15760008173ffffffffffffffffffffffffffffffffffffffff168460405161083590611367565b60006040518083038185875af1925050503d8060008114610872576040519150601f19603f3d011682016040523d82523d6000602084013e610877565b606091505b50509050806108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b2906113c8565b60405180910390fd5b506108e1565b6108e082733caca7b48d0573d793d3b0279b5f0029180e83b6856108e6565b5b505050565b6109678363a9059cbb60e01b84846040516024016109059291906113e8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061096c565b505050565b60006109ce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610a339092919063ffffffff16565b9050600081511115610a2e57808060200190518101906109ee9190611449565b610a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a24906114e8565b60405180910390fd5b5b505050565b6060610a428484600085610a4b565b90509392505050565b606082471015610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a879061157a565b60405180910390fd5b610a9985610b5f565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf906115e6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610b019190611675565b60006040518083038185875af1925050503d8060008114610b3e576040519150601f19603f3d011682016040523d82523d6000602084013e610b43565b606091505b5091509150610b53828286610b72565b92505050949350505050565b600080823b905060008111915050919050565b60608315610b8257829050610bd2565b600083511115610b955782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc991906116d0565b60405180910390fd5b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610c1e610c19610c1484610bd9565b610bf9565b610bd9565b9050919050565b6000610c3082610c03565b9050919050565b6000610c4282610c25565b9050919050565b610c5281610c37565b82525050565b6000602082019050610c6d6000830184610c49565b92915050565b6000610c7e82610bd9565b9050919050565b610c8e81610c73565b82525050565b6000602082019050610ca96000830184610c85565b92915050565b6000610cba82610c25565b9050919050565b610cca81610caf565b82525050565b6000602082019050610ce56000830184610cc1565b92915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610d1281610cff565b8114610d1d57600080fd5b50565b600081359050610d2f81610d09565b92915050565b610d3e81610c73565b8114610d4957600080fd5b50565b600081359050610d5b81610d35565b92915050565b60008060408385031215610d7857610d77610cf5565b5b6000610d8685828601610d20565b9250506020610d9785828601610d4c565b9150509250929050565b6000610dac82610c25565b9050919050565b610dbc81610da1565b82525050565b6000602082019050610dd76000830184610db3565b92915050565b600082825260208201905092915050565b7f4f6e6c7920506f6b654d65000000000000000000000000000000000000000000600082015250565b6000610e24600b83610ddd565b9150610e2f82610dee565b602082019050919050565b60006020820190508181036000830152610e5381610e17565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050610ec781610d09565b92915050565b600060208284031215610ee357610ee2610cf5565b5b6000610ef184828501610eb8565b91505092915050565b610f0381610cff565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b610f3e81610c73565b82525050565b6000610f508383610f35565b60208301905092915050565b6000602082019050919050565b6000610f7482610f09565b610f7e8185610f14565b9350610f8983610f25565b8060005b83811015610fba578151610fa18882610f44565b9750610fac83610f5c565b925050600181019050610f8d565b5085935050505092915050565b6000604082019050610fdc6000830185610efa565b8181036020830152610fee8184610f69565b90509392505050565b600080fd5b6000601f19601f8301169050919050565b61101682610ffc565b810181811067ffffffffffffffff8211171561103557611034610e5a565b5b80604052505050565b6000611048610ceb565b9050611054828261100d565b919050565b600067ffffffffffffffff82111561107457611073610e5a565b5b602082029050602081019050919050565b600080fd5b600061109d61109884611059565b61103e565b905080838252602082019050602084028301858111156110c0576110bf611085565b5b835b818110156110e957806110d58882610eb8565b8452602084019350506020810190506110c2565b5050509392505050565b600082601f83011261110857611107610ff7565b5b815161111884826020860161108a565b91505092915050565b60006020828403121561113757611136610cf5565b5b600082015167ffffffffffffffff81111561115557611154610cfa565b5b611161848285016110f3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006111a482610cff565b91506111af83610cff565b9250828210156111c2576111c161116a565b5b828203905092915050565b60006111d882610cff565b91506111e383610cff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561121c5761121b61116a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061126182610cff565b915061126c83610cff565b92508261127c5761127b611227565b5b828204905092915050565b600060a08201905061129c6000830188610efa565b6112a96020830187610efa565b81810360408301526112bb8186610f69565b90506112ca6060830185610c85565b6112d76080830184610efa565b9695505050505050565b6000815190506112f081610d35565b92915050565b6000806040838503121561130d5761130c610cf5565b5b600061131b85828601610eb8565b925050602061132c858286016112e1565b9150509250929050565b600081905092915050565b50565b6000611351600083611336565b915061135c82611341565b600082019050919050565b600061137282611344565b9150819050919050565b7f5f7472616e736665723a20455448207472616e73666572206661696c65640000600082015250565b60006113b2601e83610ddd565b91506113bd8261137c565b602082019050919050565b600060208201905081810360008301526113e1816113a5565b9050919050565b60006040820190506113fd6000830185610c85565b61140a6020830184610efa565b9392505050565b60008115159050919050565b61142681611411565b811461143157600080fd5b50565b6000815190506114438161141d565b92915050565b60006020828403121561145f5761145e610cf5565b5b600061146d84828501611434565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006114d2602a83610ddd565b91506114dd82611476565b604082019050919050565b60006020820190508181036000830152611501816114c5565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611564602683610ddd565b915061156f82611508565b604082019050919050565b6000602082019050818103600083015261159381611557565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006115d0601d83610ddd565b91506115db8261159a565b602082019050919050565b600060208201905081810360008301526115ff816115c3565b9050919050565b600081519050919050565b60005b8381101561162f578082015181840152602081019050611614565b8381111561163e576000848401525b50505050565b600061164f82611606565b6116598185611336565b9350611669818560208601611611565b80840191505092915050565b60006116818284611644565b915081905092915050565b600081519050919050565b60006116a28261168c565b6116ac8185610ddd565b93506116bc818560208601611611565b6116c581610ffc565b840191505092915050565b600060208201905081810360008301526116ea8184611697565b90509291505056fea2646970667358221220a52c8ccb3388e9d8b1878f6f18f7f25a7e8159e5eb508fdbe8085cee74913d4064736f6c634300080b0033

Deployed Bytecode

0x60806040526004361061008a5760003560e01c80638322fff2116100595780638322fff214610140578063ad5c46481461016b578063c84eee0d14610196578063e4fc6b6d146101c1578063eff557a7146101d857610091565b8063145787e91461009657806323797ff0146100c15780636d13582c146100ec5780636e164e231461011757610091565b3661009157005b600080fd5b3480156100a257600080fd5b506100ab610203565b6040516100b89190610c58565b60405180910390f35b3480156100cd57600080fd5b506100d661021b565b6040516100e39190610c94565b60405180910390f35b3480156100f857600080fd5b50610101610233565b60405161010e9190610cd0565b60405180910390f35b34801561012357600080fd5b5061013e60048036038101906101399190610d61565b61024b565b005b34801561014c57600080fd5b5061015561026e565b6040516101629190610c94565b60405180910390f35b34801561017757600080fd5b50610180610286565b60405161018d9190610c94565b60405180910390f35b3480156101a257600080fd5b506101ab61029e565b6040516101b89190610dc2565b60405180910390f35b3480156101cd57600080fd5b506101d66102b6565b005b3480156101e457600080fd5b506101ed6107af565b6040516101fa9190610c94565b60405180910390f35b73e096ccec4a1d36f191189fe61e803d8b2044dfc381565b7362b9c7356a2dc64a1969e19c23e4f579f9810aa781565b73d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b61026a8282733caca7b48d0573d793d3b0279b5f0029180e83b66107c7565b5050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b73b3f5503f93d5ef84b06993a1975b9d21b962892f81565b73b3f5503f93d5ef84b06993a1975b9d21b962892f73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032f90610e3a565b60405180910390fd5b6000600267ffffffffffffffff81111561035557610354610e5a565b5b6040519080825280602002602001820160405280156103835781602001602082028036833780820191505090505b5090507362b9c7356a2dc64a1969e19c23e4f579f9810aa7816000815181106103af576103ae610e89565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061041257610411610e89565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073e096ccec4a1d36f191189fe61e803d8b2044dfc373ffffffffffffffffffffffffffffffffffffffff1663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156104a857600080fd5b505af11580156104bc573d6000803e3d6000fd5b5050505060007362b9c7356a2dc64a1969e19c23e4f579f9810aa773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161050f9190610c94565b602060405180830381865afa15801561052c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105509190610ecd565b9050600073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff1663d06ca61f83856040518363ffffffff1660e01b81526004016105a3929190610fc7565b600060405180830381865afa1580156105c0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906105e99190611121565b905060006064605f83600185516106009190611199565b8151811061061157610610610e89565b5b602002602001015161062391906111cd565b61062d9190611256565b905073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f73ffffffffffffffffffffffffffffffffffffffff166318cbafe584838730426040518663ffffffff1660e01b8152600401610684959493929190611287565b6000604051808303816000875af11580156106a3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906106cc9190611121565b50600073b3f5503f93d5ef84b06993a1975b9d21b962892f73ffffffffffffffffffffffffffffffffffffffff1663b810c6366040518163ffffffff1660e01b81526004016040805180830381865afa15801561072d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075191906112f6565b50809150506107898173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee733caca7b48d0573d793d3b0279b5f0029180e83b66107c7565b6107a84773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee326107c7565b5050505050565b733caca7b48d0573d793d3b0279b5f0029180e83b681565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108c15760008173ffffffffffffffffffffffffffffffffffffffff168460405161083590611367565b60006040518083038185875af1925050503d8060008114610872576040519150601f19603f3d011682016040523d82523d6000602084013e610877565b606091505b50509050806108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b2906113c8565b60405180910390fd5b506108e1565b6108e082733caca7b48d0573d793d3b0279b5f0029180e83b6856108e6565b5b505050565b6109678363a9059cbb60e01b84846040516024016109059291906113e8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061096c565b505050565b60006109ce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610a339092919063ffffffff16565b9050600081511115610a2e57808060200190518101906109ee9190611449565b610a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a24906114e8565b60405180910390fd5b5b505050565b6060610a428484600085610a4b565b90509392505050565b606082471015610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a879061157a565b60405180910390fd5b610a9985610b5f565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf906115e6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610b019190611675565b60006040518083038185875af1925050503d8060008114610b3e576040519150601f19603f3d011682016040523d82523d6000602084013e610b43565b606091505b5091509150610b53828286610b72565b92505050949350505050565b600080823b905060008111915050919050565b60608315610b8257829050610bd2565b600083511115610b955782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc991906116d0565b60405180910390fd5b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610c1e610c19610c1484610bd9565b610bf9565b610bd9565b9050919050565b6000610c3082610c03565b9050919050565b6000610c4282610c25565b9050919050565b610c5281610c37565b82525050565b6000602082019050610c6d6000830184610c49565b92915050565b6000610c7e82610bd9565b9050919050565b610c8e81610c73565b82525050565b6000602082019050610ca96000830184610c85565b92915050565b6000610cba82610c25565b9050919050565b610cca81610caf565b82525050565b6000602082019050610ce56000830184610cc1565b92915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610d1281610cff565b8114610d1d57600080fd5b50565b600081359050610d2f81610d09565b92915050565b610d3e81610c73565b8114610d4957600080fd5b50565b600081359050610d5b81610d35565b92915050565b60008060408385031215610d7857610d77610cf5565b5b6000610d8685828601610d20565b9250506020610d9785828601610d4c565b9150509250929050565b6000610dac82610c25565b9050919050565b610dbc81610da1565b82525050565b6000602082019050610dd76000830184610db3565b92915050565b600082825260208201905092915050565b7f4f6e6c7920506f6b654d65000000000000000000000000000000000000000000600082015250565b6000610e24600b83610ddd565b9150610e2f82610dee565b602082019050919050565b60006020820190508181036000830152610e5381610e17565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050610ec781610d09565b92915050565b600060208284031215610ee357610ee2610cf5565b5b6000610ef184828501610eb8565b91505092915050565b610f0381610cff565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b610f3e81610c73565b82525050565b6000610f508383610f35565b60208301905092915050565b6000602082019050919050565b6000610f7482610f09565b610f7e8185610f14565b9350610f8983610f25565b8060005b83811015610fba578151610fa18882610f44565b9750610fac83610f5c565b925050600181019050610f8d565b5085935050505092915050565b6000604082019050610fdc6000830185610efa565b8181036020830152610fee8184610f69565b90509392505050565b600080fd5b6000601f19601f8301169050919050565b61101682610ffc565b810181811067ffffffffffffffff8211171561103557611034610e5a565b5b80604052505050565b6000611048610ceb565b9050611054828261100d565b919050565b600067ffffffffffffffff82111561107457611073610e5a565b5b602082029050602081019050919050565b600080fd5b600061109d61109884611059565b61103e565b905080838252602082019050602084028301858111156110c0576110bf611085565b5b835b818110156110e957806110d58882610eb8565b8452602084019350506020810190506110c2565b5050509392505050565b600082601f83011261110857611107610ff7565b5b815161111884826020860161108a565b91505092915050565b60006020828403121561113757611136610cf5565b5b600082015167ffffffffffffffff81111561115557611154610cfa565b5b611161848285016110f3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006111a482610cff565b91506111af83610cff565b9250828210156111c2576111c161116a565b5b828203905092915050565b60006111d882610cff565b91506111e383610cff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561121c5761121b61116a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061126182610cff565b915061126c83610cff565b92508261127c5761127b611227565b5b828204905092915050565b600060a08201905061129c6000830188610efa565b6112a96020830187610efa565b81810360408301526112bb8186610f69565b90506112ca6060830185610c85565b6112d76080830184610efa565b9695505050505050565b6000815190506112f081610d35565b92915050565b6000806040838503121561130d5761130c610cf5565b5b600061131b85828601610eb8565b925050602061132c858286016112e1565b9150509250929050565b600081905092915050565b50565b6000611351600083611336565b915061135c82611341565b600082019050919050565b600061137282611344565b9150819050919050565b7f5f7472616e736665723a20455448207472616e73666572206661696c65640000600082015250565b60006113b2601e83610ddd565b91506113bd8261137c565b602082019050919050565b600060208201905081810360008301526113e1816113a5565b9050919050565b60006040820190506113fd6000830185610c85565b61140a6020830184610efa565b9392505050565b60008115159050919050565b61142681611411565b811461143157600080fd5b50565b6000815190506114438161141d565b92915050565b60006020828403121561145f5761145e610cf5565b5b600061146d84828501611434565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006114d2602a83610ddd565b91506114dd82611476565b604082019050919050565b60006020820190508181036000830152611501816114c5565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611564602683610ddd565b915061156f82611508565b604082019050919050565b6000602082019050818103600083015261159381611557565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006115d0601d83610ddd565b91506115db8261159a565b602082019050919050565b600060208201905081810360008301526115ff816115c3565b9050919050565b600081519050919050565b60005b8381101561162f578082015181840152602081019050611614565b8381111561163e576000848401525b50505050565b600061164f82611606565b6116598185611336565b9350611669818560208601611611565b80840191505092915050565b60006116818284611644565b915081905092915050565b600081519050919050565b60006116a28261168c565b6116ac8185610ddd565b93506116bc818560208601611611565b6116c581610ffc565b840191505092915050565b600060208201905081810360008301526116ea8184611697565b90509291505056fea2646970667358221220a52c8ccb3388e9d8b1878f6f18f7f25a7e8159e5eb508fdbe8085cee74913d4064736f6c634300080b0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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