ETH Price: $2,340.90 (-4.32%)

Contract

0x52f541764E6e90eeBc5c21Ff570De0e2D63766B6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit194432622024-03-15 22:16:59201 days ago1710541019IN
0x52f54176...2D63766B6
0 ETH0.000853831.64824359
Set Governance116926302021-01-20 13:46:451352 days ago1611150405IN
0x52f54176...2D63766B6
0 ETH0.00306897107.85
Set Strategy116926192021-01-20 13:45:351352 days ago1611150335IN
0x52f54176...2D63766B6
0 ETH0.00467831107.85
0x60806040116925912021-01-20 13:38:571352 days ago1611149937IN
 Create: CurveYCRVVoter
0 ETH0.13898521107.85

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CurveYCRVVoter

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-01-20
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.5.17;



// Part: Gauge

interface Gauge {
    function deposit(uint256) external;

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

    function withdraw(uint256) external;
}

// Part: OpenZeppelin/[email protected]/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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// Part: OpenZeppelin/[email protected]/IERC20

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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/[email protected]/SafeMath

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// Part: VoteEscrow

interface VoteEscrow {
    function create_lock(uint256, uint256) external;

    function increase_amount(uint256) external;

    function withdraw() external;
}

// Part: OpenZeppelin/[email protected]/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 ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    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));
    }

    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: CurveYCRVVoter.sol

contract CurveYCRVVoter {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    address public constant want = address(0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8);
    address public constant pool = address(0xFA712EE4788C042e2B7BB55E6cb8ec569C4530c1);
    address public constant mintr = address(0xd061D61a4d941c39E5453435B6345Dc261C2fcE0);
    address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52);

    address public constant escrow = address(0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2);

    address public governance;
    address public strategy;

    constructor() public {
        governance = msg.sender;
    }

    function getName() external pure returns (string memory) {
        return "CurveYCRVVoter";
    }

    function setStrategy(address _strategy) external {
        require(msg.sender == governance, "!governance");
        strategy = _strategy;
    }

    function deposit() public {
        uint256 _want = IERC20(want).balanceOf(address(this));
        if (_want > 0) {
            IERC20(want).safeApprove(pool, 0);
            IERC20(want).safeApprove(pool, _want);
            Gauge(pool).deposit(_want);
        }
    }

    // Controller only function for creating additional rewards from dust
    function withdraw(IERC20 _asset) external returns (uint256 balance) {
        require(msg.sender == strategy, "!controller");
        balance = _asset.balanceOf(address(this));
        _asset.safeTransfer(strategy, balance);
    }

    // Withdraw partial funds, normally used with a vault withdrawal
    function withdraw(uint256 _amount) external {
        require(msg.sender == strategy, "!controller");
        uint256 _balance = IERC20(want).balanceOf(address(this));
        if (_balance < _amount) {
            _amount = _withdrawSome(_amount.sub(_balance));
            _amount = _amount.add(_balance);
        }
        IERC20(want).safeTransfer(strategy, _amount);
    }

    // Withdraw all funds, normally used when migrating strategies
    function withdrawAll() external returns (uint256 balance) {
        require(msg.sender == strategy, "!controller");
        _withdrawAll();

        balance = IERC20(want).balanceOf(address(this));
        IERC20(want).safeTransfer(strategy, balance);
    }

    function _withdrawAll() internal {
        Gauge(pool).withdraw(Gauge(pool).balanceOf(address(this)));
    }

    function createLock(uint256 _value, uint256 _unlockTime) external {
        require(msg.sender == strategy || msg.sender == governance, "!authorized");
        IERC20(crv).safeApprove(escrow, 0);
        IERC20(crv).safeApprove(escrow, _value);
        VoteEscrow(escrow).create_lock(_value, _unlockTime);
    }

    function increaseAmount(uint256 _value) external {
        require(msg.sender == strategy || msg.sender == governance, "!authorized");
        IERC20(crv).safeApprove(escrow, 0);
        IERC20(crv).safeApprove(escrow, _value);
        VoteEscrow(escrow).increase_amount(_value);
    }

    function release() external {
        require(msg.sender == strategy || msg.sender == governance, "!authorized");
        VoteEscrow(escrow).withdraw();
    }

    function _withdrawSome(uint256 _amount) internal returns (uint256) {
        Gauge(pool).withdraw(_amount);
        return _amount;
    }

    function balanceOfWant() public view returns (uint256) {
        return IERC20(want).balanceOf(address(this));
    }

    function balanceOfPool() public view returns (uint256) {
        return Gauge(pool).balanceOf(address(this));
    }

    function balanceOf() public view returns (uint256) {
        return balanceOfWant().add(balanceOfPool());
    }

    function setGovernance(address _governance) external {
        require(msg.sender == governance, "!governance");
        governance = _governance;
    }

    function execute(
        address to,
        uint256 value,
        bytes calldata data
    ) external returns (bool, bytes memory) {
        require(msg.sender == strategy || msg.sender == governance, "!governance");
        (bool success, bytes memory result) = to.call.value(value)(data);

        return (success, result);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"name":"createLock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"increaseAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"mintr","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"release","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916331790556115f7806100326000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063722713f7116100b8578063b52c05fe1161007c578063b52c05fe146102dd578063b61d27f614610300578063c1a3d44c14610408578063d0e30db014610410578063d1e61dcb14610418578063e2fdcc171461042057610137565b8063722713f714610297578063853828b61461029f57806386d1a69f146102a7578063a8c62e76146102af578063ab033ea9146102b757610137565b80632e1a7d4d116100ff5780632e1a7d4d1461021e57806333a100ca1461023b57806351cff8d9146102615780635aa6e675146102875780636a4874a11461028f57610137565b8063115880861461013c57806315456eba1461015657806316f0115b1461017557806317d7de7c146101995780631f1fcd5114610216575b600080fd5b610144610428565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b50356104af565b005b61017d6105f9565b604080516001600160a01b039092168252519081900360200190f35b6101a1610611565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101db5781810151838201526020016101c3565b50505050905090810190601f1680156102085780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d610639565b6101736004803603602081101561023457600080fd5b5035610651565b6101736004803603602081101561025157600080fd5b50356001600160a01b031661078c565b6101446004803603602081101561027757600080fd5b50356001600160a01b03166107fb565b61017d6108e5565b61017d6108f4565b61014461090c565b610144610932565b610173610a3c565b61017d610b07565b610173600480360360208110156102cd57600080fd5b50356001600160a01b0316610b16565b610173600480360360408110156102f357600080fd5b5080359060200135610b85565b6103856004803603606081101561031657600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561034657600080fd5b82018360208201111561035857600080fd5b8035906020019184600183028401116401000000008311171561037a57600080fd5b509092509050610cd0565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156103cc5781810151838201526020016103b4565b50505050905090810190601f1680156103f95780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610144610daf565b610173610e04565b61017d610f5d565b61017d610f75565b604080516370a0823160e01b8152306004820152905160009173fa712ee4788c042e2b7bb55e6cb8ec569c4530c1916370a0823191602480820192602092909190829003018186803b15801561047d57600080fd5b505afa158015610491573d6000803e3d6000fd5b505050506040513d60208110156104a757600080fd5b505190505b90565b6001546001600160a01b03163314806104d257506000546001600160a01b031633145b610511576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b61054b73d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a2600063ffffffff610f8d16565b61058473d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a28363ffffffff610f8d16565b735f3b5dfeb7b28cdbd7faba78963ee202a494e2a26001600160a01b0316634957677c826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156105de57600080fd5b505af11580156105f2573d6000803e3d6000fd5b5050505050565b73fa712ee4788c042e2b7bb55e6cb8ec569c4530c181565b60408051808201909152600e81526d21bab93b32aca1a92b2b37ba32b960911b602082015290565b73df5e0e81dff6faf3a7e52ba697820c5e32d806a881565b6001546001600160a01b0316331461069e576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b8152306004820152905160009173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a0823191602480820192602092909190829003018186803b1580156106f357600080fd5b505afa158015610707573d6000803e3d6000fd5b505050506040513d602081101561071d57600080fd5b50519050818110156107565761074161073c838363ffffffff6110a516565b6110ee565b9150610753828263ffffffff61116816565b91505b6001546107889073df5e0e81dff6faf3a7e52ba697820c5e32d806a8906001600160a01b03168463ffffffff6111c216565b5050565b6000546001600160a01b031633146107d9576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b0316331461084b576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561089157600080fd5b505afa1580156108a5573d6000803e3d6000fd5b505050506040513d60208110156108bb57600080fd5b50516001549091506108e0906001600160a01b0384811691168363ffffffff6111c216565b919050565b6000546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b600061092d610919610428565b610921610daf565b9063ffffffff61116816565b905090565b6001546000906001600160a01b03163314610982576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b61098a611214565b604080516370a0823160e01b8152306004820152905173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a08231916024808301926020929190829003018186803b1580156109db57600080fd5b505afa1580156109ef573d6000803e3d6000fd5b505050506040513d6020811015610a0557600080fd5b50516001549091506104ac9073df5e0e81dff6faf3a7e52ba697820c5e32d806a8906001600160a01b03168363ffffffff6111c216565b6001546001600160a01b0316331480610a5f57506000546001600160a01b031633145b610a9e576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b735f3b5dfeb7b28cdbd7faba78963ee202a494e2a26001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610aed57600080fd5b505af1158015610b01573d6000803e3d6000fd5b50505050565b6001546001600160a01b031681565b6000546001600160a01b03163314610b63576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331480610ba857506000546001600160a01b031633145b610be7576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b610c2173d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a2600063ffffffff610f8d16565b610c5a73d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a28463ffffffff610f8d16565b604080516365fc387360e01b815260048101849052602481018390529051735f3b5dfeb7b28cdbd7faba78963ee202a494e2a2916365fc387391604480830192600092919082900301818387803b158015610cb457600080fd5b505af1158015610cc8573d6000803e3d6000fd5b505050505050565b6001546000906060906001600160a01b0316331480610cf957506000546001600160a01b031633145b610d38576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b60006060876001600160a01b0316878787604051808383808284376040519201945060009350909150508083038185875af1925050503d8060008114610d9a576040519150601f19603f3d011682016040523d82523d6000602084013e610d9f565b606091505b5090999098509650505050505050565b604080516370a0823160e01b8152306004820152905160009173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a0823191602480820192602092909190829003018186803b15801561047d57600080fd5b604080516370a0823160e01b8152306004820152905160009173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a0823191602480820192602092909190829003018186803b158015610e5957600080fd5b505afa158015610e6d573d6000803e3d6000fd5b505050506040513d6020811015610e8357600080fd5b505190508015610f5a57610ec773df5e0e81dff6faf3a7e52ba697820c5e32d806a873fa712ee4788c042e2b7bb55e6cb8ec569c4530c1600063ffffffff610f8d16565b610f0073df5e0e81dff6faf3a7e52ba697820c5e32d806a873fa712ee4788c042e2b7bb55e6cb8ec569c4530c18363ffffffff610f8d16565b73fa712ee4788c042e2b7bb55e6cb8ec569c4530c16001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156105de57600080fd5b50565b73d061d61a4d941c39e5453435b6345dc261c2fce081565b735f3b5dfeb7b28cdbd7faba78963ee202a494e2a281565b801580611013575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610fe557600080fd5b505afa158015610ff9573d6000803e3d6000fd5b505050506040513d602081101561100f57600080fd5b5051155b61104e5760405162461bcd60e51b815260040180806020018281038252603681526020018061158d6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526110a09084906112d7565b505050565b60006110e783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061148f565b9392505050565b600073fa712ee4788c042e2b7bb55e6cb8ec569c4530c16001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561114a57600080fd5b505af115801561115e573d6000803e3d6000fd5b5093949350505050565b6000828201838110156110e7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110a09084906112d7565b604080516370a0823160e01b8152306004820152905173fa712ee4788c042e2b7bb55e6cb8ec569c4530c191632e1a7d4d9183916370a08231916024808301926020929190829003018186803b15801561126d57600080fd5b505afa158015611281573d6000803e3d6000fd5b505050506040513d602081101561129757600080fd5b5051604080516001600160e01b031960e085901b168152600481019290925251602480830192600092919082900301818387803b158015610aed57600080fd5b6112e9826001600160a01b0316611526565b61133a576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106113785780518252601f199092019160209182019101611359565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146113da576040519150601f19603f3d011682016040523d82523d6000602084013e6113df565b606091505b509150915081611436576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b015780806020019051602081101561145257600080fd5b5051610b015760405162461bcd60e51b815260040180806020018281038252602a815260200180611563602a913960400191505060405180910390fd5b6000818484111561151e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114e35781810151838201526020016114cb565b50505050905090810190601f1680156115105780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061155a57508115155b94935050505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820adccfe3a47ba41c3a5eb35ee0a6abaf498d0863c7cdc1fea81a29f94f14325f264736f6c63430005110032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063722713f7116100b8578063b52c05fe1161007c578063b52c05fe146102dd578063b61d27f614610300578063c1a3d44c14610408578063d0e30db014610410578063d1e61dcb14610418578063e2fdcc171461042057610137565b8063722713f714610297578063853828b61461029f57806386d1a69f146102a7578063a8c62e76146102af578063ab033ea9146102b757610137565b80632e1a7d4d116100ff5780632e1a7d4d1461021e57806333a100ca1461023b57806351cff8d9146102615780635aa6e675146102875780636a4874a11461028f57610137565b8063115880861461013c57806315456eba1461015657806316f0115b1461017557806317d7de7c146101995780631f1fcd5114610216575b600080fd5b610144610428565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b50356104af565b005b61017d6105f9565b604080516001600160a01b039092168252519081900360200190f35b6101a1610611565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101db5781810151838201526020016101c3565b50505050905090810190601f1680156102085780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d610639565b6101736004803603602081101561023457600080fd5b5035610651565b6101736004803603602081101561025157600080fd5b50356001600160a01b031661078c565b6101446004803603602081101561027757600080fd5b50356001600160a01b03166107fb565b61017d6108e5565b61017d6108f4565b61014461090c565b610144610932565b610173610a3c565b61017d610b07565b610173600480360360208110156102cd57600080fd5b50356001600160a01b0316610b16565b610173600480360360408110156102f357600080fd5b5080359060200135610b85565b6103856004803603606081101561031657600080fd5b6001600160a01b038235169160208101359181019060608101604082013564010000000081111561034657600080fd5b82018360208201111561035857600080fd5b8035906020019184600183028401116401000000008311171561037a57600080fd5b509092509050610cd0565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156103cc5781810151838201526020016103b4565b50505050905090810190601f1680156103f95780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610144610daf565b610173610e04565b61017d610f5d565b61017d610f75565b604080516370a0823160e01b8152306004820152905160009173fa712ee4788c042e2b7bb55e6cb8ec569c4530c1916370a0823191602480820192602092909190829003018186803b15801561047d57600080fd5b505afa158015610491573d6000803e3d6000fd5b505050506040513d60208110156104a757600080fd5b505190505b90565b6001546001600160a01b03163314806104d257506000546001600160a01b031633145b610511576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b61054b73d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a2600063ffffffff610f8d16565b61058473d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a28363ffffffff610f8d16565b735f3b5dfeb7b28cdbd7faba78963ee202a494e2a26001600160a01b0316634957677c826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156105de57600080fd5b505af11580156105f2573d6000803e3d6000fd5b5050505050565b73fa712ee4788c042e2b7bb55e6cb8ec569c4530c181565b60408051808201909152600e81526d21bab93b32aca1a92b2b37ba32b960911b602082015290565b73df5e0e81dff6faf3a7e52ba697820c5e32d806a881565b6001546001600160a01b0316331461069e576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b8152306004820152905160009173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a0823191602480820192602092909190829003018186803b1580156106f357600080fd5b505afa158015610707573d6000803e3d6000fd5b505050506040513d602081101561071d57600080fd5b50519050818110156107565761074161073c838363ffffffff6110a516565b6110ee565b9150610753828263ffffffff61116816565b91505b6001546107889073df5e0e81dff6faf3a7e52ba697820c5e32d806a8906001600160a01b03168463ffffffff6111c216565b5050565b6000546001600160a01b031633146107d9576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b0316331461084b576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561089157600080fd5b505afa1580156108a5573d6000803e3d6000fd5b505050506040513d60208110156108bb57600080fd5b50516001549091506108e0906001600160a01b0384811691168363ffffffff6111c216565b919050565b6000546001600160a01b031681565b73d533a949740bb3306d119cc777fa900ba034cd5281565b600061092d610919610428565b610921610daf565b9063ffffffff61116816565b905090565b6001546000906001600160a01b03163314610982576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b61098a611214565b604080516370a0823160e01b8152306004820152905173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a08231916024808301926020929190829003018186803b1580156109db57600080fd5b505afa1580156109ef573d6000803e3d6000fd5b505050506040513d6020811015610a0557600080fd5b50516001549091506104ac9073df5e0e81dff6faf3a7e52ba697820c5e32d806a8906001600160a01b03168363ffffffff6111c216565b6001546001600160a01b0316331480610a5f57506000546001600160a01b031633145b610a9e576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b735f3b5dfeb7b28cdbd7faba78963ee202a494e2a26001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610aed57600080fd5b505af1158015610b01573d6000803e3d6000fd5b50505050565b6001546001600160a01b031681565b6000546001600160a01b03163314610b63576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0316331480610ba857506000546001600160a01b031633145b610be7576040805162461bcd60e51b815260206004820152600b60248201526a08585d5d1a1bdc9a5e995960aa1b604482015290519081900360640190fd5b610c2173d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a2600063ffffffff610f8d16565b610c5a73d533a949740bb3306d119cc777fa900ba034cd52735f3b5dfeb7b28cdbd7faba78963ee202a494e2a28463ffffffff610f8d16565b604080516365fc387360e01b815260048101849052602481018390529051735f3b5dfeb7b28cdbd7faba78963ee202a494e2a2916365fc387391604480830192600092919082900301818387803b158015610cb457600080fd5b505af1158015610cc8573d6000803e3d6000fd5b505050505050565b6001546000906060906001600160a01b0316331480610cf957506000546001600160a01b031633145b610d38576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b60006060876001600160a01b0316878787604051808383808284376040519201945060009350909150508083038185875af1925050503d8060008114610d9a576040519150601f19603f3d011682016040523d82523d6000602084013e610d9f565b606091505b5090999098509650505050505050565b604080516370a0823160e01b8152306004820152905160009173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a0823191602480820192602092909190829003018186803b15801561047d57600080fd5b604080516370a0823160e01b8152306004820152905160009173df5e0e81dff6faf3a7e52ba697820c5e32d806a8916370a0823191602480820192602092909190829003018186803b158015610e5957600080fd5b505afa158015610e6d573d6000803e3d6000fd5b505050506040513d6020811015610e8357600080fd5b505190508015610f5a57610ec773df5e0e81dff6faf3a7e52ba697820c5e32d806a873fa712ee4788c042e2b7bb55e6cb8ec569c4530c1600063ffffffff610f8d16565b610f0073df5e0e81dff6faf3a7e52ba697820c5e32d806a873fa712ee4788c042e2b7bb55e6cb8ec569c4530c18363ffffffff610f8d16565b73fa712ee4788c042e2b7bb55e6cb8ec569c4530c16001600160a01b031663b6b55f25826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156105de57600080fd5b50565b73d061d61a4d941c39e5453435b6345dc261c2fce081565b735f3b5dfeb7b28cdbd7faba78963ee202a494e2a281565b801580611013575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610fe557600080fd5b505afa158015610ff9573d6000803e3d6000fd5b505050506040513d602081101561100f57600080fd5b5051155b61104e5760405162461bcd60e51b815260040180806020018281038252603681526020018061158d6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526110a09084906112d7565b505050565b60006110e783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061148f565b9392505050565b600073fa712ee4788c042e2b7bb55e6cb8ec569c4530c16001600160a01b0316632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561114a57600080fd5b505af115801561115e573d6000803e3d6000fd5b5093949350505050565b6000828201838110156110e7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110a09084906112d7565b604080516370a0823160e01b8152306004820152905173fa712ee4788c042e2b7bb55e6cb8ec569c4530c191632e1a7d4d9183916370a08231916024808301926020929190829003018186803b15801561126d57600080fd5b505afa158015611281573d6000803e3d6000fd5b505050506040513d602081101561129757600080fd5b5051604080516001600160e01b031960e085901b168152600481019290925251602480830192600092919082900301818387803b158015610aed57600080fd5b6112e9826001600160a01b0316611526565b61133a576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106113785780518252601f199092019160209182019101611359565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146113da576040519150601f19603f3d011682016040523d82523d6000602084013e6113df565b606091505b509150915081611436576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b015780806020019051602081101561145257600080fd5b5051610b015760405162461bcd60e51b815260040180806020018281038252602a815260200180611563602a913960400191505060405180910390fd5b6000818484111561151e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114e35781810151838201526020016114cb565b50505050905090810190601f1680156115105780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061155a57508115155b94935050505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820adccfe3a47ba41c3a5eb35ee0a6abaf498d0863c7cdc1fea81a29f94f14325f264736f6c63430005110032

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.