ETH Price: $2,424.20 (+0.11%)

Contract

0xEA4D68CF86BcE59Bf2bFA039B97794ce2c43dEBC
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward145342802022-04-06 19:52:32892 days ago1649274752IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0028128162.53196913
Exit145342582022-04-06 19:47:24892 days ago1649274444IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0092377756.7260311
Withdraw145342452022-04-06 19:44:14892 days ago1649274254IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0066960161.46176973
Exit117148392021-01-23 23:31:001330 days ago1611444660IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0108081452
Exit111657362020-10-31 16:20:251414 days ago1604161225IN
0xEA4D68CF...e2c43dEBC
0 ETH0.01439169.23780487
Exit111413472020-10-27 22:32:341418 days ago1603837954IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0044569820
Exit110828772020-10-18 23:27:491427 days ago1603063669IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0038867718.7
Exit110805892020-10-18 15:01:381427 days ago1603033298IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0016420539
Exit110805892020-10-18 15:01:381427 days ago1603033298IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0081061139
Exit110643382020-10-16 2:59:051430 days ago1602817145IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0064433131.00000145
Exit109718392020-10-01 18:37:251444 days ago1601577445IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0108081452
Exit109345412020-09-25 22:45:581450 days ago1601073958IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0112238454
Exit108359282020-09-10 19:21:081465 days ago1599765668IN
0xEA4D68CF...e2c43dEBC
0 ETH0.02203199106
Exit108308562020-09-10 0:48:141466 days ago1599698894IN
0xEA4D68CF...e2c43dEBC
0 ETH0.00555772132
Stake108237832020-09-08 22:34:141467 days ago1599604454IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0052325181
Exit108221962020-09-08 16:50:281467 days ago1599583828IN
0xEA4D68CF...e2c43dEBC
0 ETH0.02294903119
Stake108221962020-09-08 16:50:281467 days ago1599583828IN
0xEA4D68CF...e2c43dEBC
0 ETH0.00840006115
Exit107995142020-09-05 5:32:281471 days ago1599283948IN
0xEA4D68CF...e2c43dEBC
0 ETH0.02847531137
Exit107978932020-09-04 23:35:001471 days ago1599262500IN
0xEA4D68CF...e2c43dEBC
0 ETH0.02265554109
Exit107708282020-08-31 20:13:351475 days ago1598904815IN
0xEA4D68CF...e2c43dEBC
0 ETH0.05632707271
Exit107569302020-08-29 17:12:451477 days ago1598721165IN
0xEA4D68CF...e2c43dEBC
0 ETH0.00500195118.80000023
Exit107569302020-08-29 17:12:451477 days ago1598721165IN
0xEA4D68CF...e2c43dEBC
0 ETH0.02469246118.80000023
Exit107457642020-08-28 0:00:401479 days ago1598572840IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0116279254
Exit107439442020-08-27 17:25:451479 days ago1598549145IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0111436550.00000112
Exit107420442020-08-27 10:25:051479 days ago1598523905IN
0xEA4D68CF...e2c43dEBC
0 ETH0.0174613384
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Unipool

Compiler Version
v0.5.12+commit.7709ece9

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-07-21
*/

pragma solidity ^0.5.0;


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

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

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

/**
 * @dev 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;
    }
}

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

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

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

interface ApproveAndCallFallBack {
    /**
    * @dev This allows users to use their tokens to interact with contracts in one function call instead of two
    * @param _from Address of the account transferring the tokens
    * @param _amount The amount of tokens approved for in the transfer
    * @param _token Address of the token contract calling this function
    * @param _data Optional data that can be used to add signalling information in more complex staking applications
    */
    function receiveApproval(address _from, uint256 _amount, address _token, bytes calldata _data) external;
}

contract LPTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Uniswap v2 ANT/ETH pair token
    IERC20 public UNI = IERC20(0xfa19de406e8F5b9100E4dD5CaD8a503a6d686Efe);

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount) public {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        UNI.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        UNI.safeTransfer(msg.sender, amount);
    }
}

contract Unipool is LPTokenWrapper, ApproveAndCallFallBack {
    uint256 public constant DURATION = 30 days;
    // Aragon Network Token
    IERC20 public ANT = IERC20(0x960b236A07cf122663c4303350609A66A7B288C0);

    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(totalSupply())
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account])
            ;
    }

    // stake visibility is public as overriding LPTokenWrapper's stake() function
    function stake(uint256 amount) public updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
        getReward();
    }

    function getReward() public updateReward(msg.sender) {
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender] = 0;
            ANT.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    /**
     * @dev This function must be triggered by the contribution token approve-and-call fallback.
     *      It will update reward rate and time.
     * @param _from Address of the original caller approving the tokens
     * @param _amount Amount of reward tokens added to the pool
     * @param _token Address of the token triggering the approve-and-call fallback
     */
    function receiveApproval(address _from, uint256 _amount, address _token, bytes calldata) external updateReward(address(0)) {
        require(_amount > 0, "Cannot approve 0");
        require(
            _token == msg.sender && _token == address(ANT),
            "Wrong token"
        );

        if (block.timestamp >= periodFinish) {
            rewardRate = _amount.div(DURATION);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = _amount.add(leftover).div(DURATION);
        }
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(DURATION);

        ANT.safeTransferFrom(_from, address(this), _amount);

        emit RewardAdded(_amount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[],"name":"ANT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UNI","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600080546001600160a01b031990811673fa19de406e8f5b9100e4dd5cad8a503a6d686efe179091556003805490911673960b236a07cf122663c4303350609a66a7b288c017905534801561005857600080fd5b50610f6e806100686000396000f3fe608060405234801561001057600080fd5b50600436106101205760003560e01c80637b0a47ee116100ad578063c8f33c9111610071578063c8f33c91146102ee578063cd3daf9d146102f6578063df136d65146102fe578063e9fad8ee14610306578063ebe2b12b1461030e57610120565b80637b0a47ee1461020c57806380faa57d146102145780638b8763471461021c5780638f4ffcb114610242578063a694fc3a146102d157610120565b80632e1a7d4d116100f45780632e1a7d4d146101935780633d18b912146101b2578063541bcb76146101ba57806365595c61146101de57806370a08231146101e657610120565b80628cc262146101255780630700037d1461015d57806318160ddd146101835780631be052891461018b575b600080fd5b61014b6004803603602081101561013b57600080fd5b50356001600160a01b0316610316565b60408051918252519081900360200190f35b61014b6004803603602081101561017357600080fd5b50356001600160a01b031661039c565b61014b6103ae565b61014b6103b5565b6101b0600480360360208110156101a957600080fd5b50356103bc565b005b6101b06104a3565b6101c2610575565b604080516001600160a01b039092168252519081900360200190f35b6101c2610584565b61014b600480360360208110156101fc57600080fd5b50356001600160a01b0316610593565b61014b6105ae565b61014b6105b4565b61014b6004803603602081101561023257600080fd5b50356001600160a01b03166105c7565b6101b06004803603608081101561025857600080fd5b6001600160a01b03823581169260208101359260408201359092169181019060808101606082013564010000000081111561029257600080fd5b8201836020820111156102a457600080fd5b803590602001918460018302840111640100000000831117156102c657600080fd5b5090925090506105d9565b6101b0600480360360208110156102e757600080fd5b50356107c8565b61014b6108ac565b61014b6108b2565b61014b610906565b6101b061090c565b61014b610927565b6001600160a01b0381166000908152600960209081526040808320546008909252822054610396919061038a90670de0b6b3a76400009061037e906103699061035d6108b2565b9063ffffffff61092d16565b61037288610593565b9063ffffffff61097616565b9063ffffffff6109cf16565b9063ffffffff610a1116565b92915050565b60096020526000908152604090205481565b6001545b90565b62278d0081565b336103c56108b2565b6007556103d06105b4565b6006556001600160a01b03811615610417576103eb81610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60008211610460576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b61046982610a6b565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b336104ac6108b2565b6007556104b76105b4565b6006556001600160a01b038116156104fe576104d281610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600061050933610316565b90508015610571573360008181526009602052604081205560035461053a916001600160a01b039091169083610acf565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b6000546001600160a01b031681565b6003546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b60055481565b60006105c242600454610b26565b905090565b60086020526000908152604090205481565b60006105e36108b2565b6007556105ee6105b4565b6006556001600160a01b038116156106355761060981610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6000851161067d576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f7420617070726f766520360841b604482015290519081900360640190fd5b6001600160a01b038416331480156106a257506003546001600160a01b038581169116145b6106e1576040805162461bcd60e51b815260206004820152600b60248201526a2bb937b733903a37b5b2b760a91b604482015290519081900360640190fd5b6004544210610705576106fd8562278d0063ffffffff6109cf16565b600555610753565b60045460009061071b904263ffffffff61092d16565b905060006107346005548361097690919063ffffffff16565b905061074d62278d0061037e898463ffffffff610a1116565b60055550505b42600681905561076c9062278d0063ffffffff610a1116565b60045560035461078d906001600160a01b031687308863ffffffff610b3c16565b6040805186815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050505050565b336107d16108b2565b6007556107dc6105b4565b6006556001600160a01b03811615610823576107f781610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60008211610869576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b61087282610b9c565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b60065481565b60006108bc6103ae565b6108c957506007546103b2565b6105c26108f76108d76103ae565b61037e670de0b6b3a764000061037260055461037260065461035d6105b4565b6007549063ffffffff610a1116565b60075481565b61091d61091833610593565b6103bc565b6109256104a3565b565b60045481565b600061096f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610bfe565b9392505050565b60008261098557506000610396565b8282028284828161099257fe5b041461096f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610eef6021913960400191505060405180910390fd5b600061096f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610c95565b60008282018381101561096f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610a7e908263ffffffff61092d16565b60015533600090815260026020526040902054610aa1908263ffffffff61092d16565b336000818152600260205260408120929092559054610acc916001600160a01b039091169083610acf565b50565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b21908490610cfa565b505050565b6000818310610b35578161096f565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b96908590610cfa565b50505050565b600154610baf908263ffffffff610a1116565b60015533600090815260026020526040902054610bd2908263ffffffff610a1116565b336000818152600260205260408120929092559054610acc916001600160a01b03909116903084610b3c565b60008184841115610c8d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c52578181015183820152602001610c3a565b50505050905090810190601f168015610c7f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610ce45760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c52578181015183820152602001610c3a565b506000838581610cf057fe5b0495945050505050565b610d0c826001600160a01b0316610eb2565b610d5d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610d9b5780518252601f199092019160209182019101610d7c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610dfd576040519150601f19603f3d011682016040523d82523d6000602084013e610e02565b606091505b509150915081610e59576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b9657808060200190516020811015610e7557600080fd5b5051610b965760405162461bcd60e51b815260040180806020018281038252602a815260200180610f10602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ee657508115155b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820f683141e730f182b4e72d43a21780446494f490d25c460eb1312dacf2de602b164736f6c634300050c0032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101205760003560e01c80637b0a47ee116100ad578063c8f33c9111610071578063c8f33c91146102ee578063cd3daf9d146102f6578063df136d65146102fe578063e9fad8ee14610306578063ebe2b12b1461030e57610120565b80637b0a47ee1461020c57806380faa57d146102145780638b8763471461021c5780638f4ffcb114610242578063a694fc3a146102d157610120565b80632e1a7d4d116100f45780632e1a7d4d146101935780633d18b912146101b2578063541bcb76146101ba57806365595c61146101de57806370a08231146101e657610120565b80628cc262146101255780630700037d1461015d57806318160ddd146101835780631be052891461018b575b600080fd5b61014b6004803603602081101561013b57600080fd5b50356001600160a01b0316610316565b60408051918252519081900360200190f35b61014b6004803603602081101561017357600080fd5b50356001600160a01b031661039c565b61014b6103ae565b61014b6103b5565b6101b0600480360360208110156101a957600080fd5b50356103bc565b005b6101b06104a3565b6101c2610575565b604080516001600160a01b039092168252519081900360200190f35b6101c2610584565b61014b600480360360208110156101fc57600080fd5b50356001600160a01b0316610593565b61014b6105ae565b61014b6105b4565b61014b6004803603602081101561023257600080fd5b50356001600160a01b03166105c7565b6101b06004803603608081101561025857600080fd5b6001600160a01b03823581169260208101359260408201359092169181019060808101606082013564010000000081111561029257600080fd5b8201836020820111156102a457600080fd5b803590602001918460018302840111640100000000831117156102c657600080fd5b5090925090506105d9565b6101b0600480360360208110156102e757600080fd5b50356107c8565b61014b6108ac565b61014b6108b2565b61014b610906565b6101b061090c565b61014b610927565b6001600160a01b0381166000908152600960209081526040808320546008909252822054610396919061038a90670de0b6b3a76400009061037e906103699061035d6108b2565b9063ffffffff61092d16565b61037288610593565b9063ffffffff61097616565b9063ffffffff6109cf16565b9063ffffffff610a1116565b92915050565b60096020526000908152604090205481565b6001545b90565b62278d0081565b336103c56108b2565b6007556103d06105b4565b6006556001600160a01b03811615610417576103eb81610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60008211610460576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b61046982610a6b565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b336104ac6108b2565b6007556104b76105b4565b6006556001600160a01b038116156104fe576104d281610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600061050933610316565b90508015610571573360008181526009602052604081205560035461053a916001600160a01b039091169083610acf565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b6000546001600160a01b031681565b6003546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b60055481565b60006105c242600454610b26565b905090565b60086020526000908152604090205481565b60006105e36108b2565b6007556105ee6105b4565b6006556001600160a01b038116156106355761060981610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b6000851161067d576040805162461bcd60e51b815260206004820152601060248201526f043616e6e6f7420617070726f766520360841b604482015290519081900360640190fd5b6001600160a01b038416331480156106a257506003546001600160a01b038581169116145b6106e1576040805162461bcd60e51b815260206004820152600b60248201526a2bb937b733903a37b5b2b760a91b604482015290519081900360640190fd5b6004544210610705576106fd8562278d0063ffffffff6109cf16565b600555610753565b60045460009061071b904263ffffffff61092d16565b905060006107346005548361097690919063ffffffff16565b905061074d62278d0061037e898463ffffffff610a1116565b60055550505b42600681905561076c9062278d0063ffffffff610a1116565b60045560035461078d906001600160a01b031687308863ffffffff610b3c16565b6040805186815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050505050565b336107d16108b2565b6007556107dc6105b4565b6006556001600160a01b03811615610823576107f781610316565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60008211610869576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b61087282610b9c565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b60065481565b60006108bc6103ae565b6108c957506007546103b2565b6105c26108f76108d76103ae565b61037e670de0b6b3a764000061037260055461037260065461035d6105b4565b6007549063ffffffff610a1116565b60075481565b61091d61091833610593565b6103bc565b6109256104a3565b565b60045481565b600061096f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610bfe565b9392505050565b60008261098557506000610396565b8282028284828161099257fe5b041461096f5760405162461bcd60e51b8152600401808060200182810382526021815260200180610eef6021913960400191505060405180910390fd5b600061096f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610c95565b60008282018381101561096f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610a7e908263ffffffff61092d16565b60015533600090815260026020526040902054610aa1908263ffffffff61092d16565b336000818152600260205260408120929092559054610acc916001600160a01b039091169083610acf565b50565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b21908490610cfa565b505050565b6000818310610b35578161096f565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b96908590610cfa565b50505050565b600154610baf908263ffffffff610a1116565b60015533600090815260026020526040902054610bd2908263ffffffff610a1116565b336000818152600260205260408120929092559054610acc916001600160a01b03909116903084610b3c565b60008184841115610c8d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610c52578181015183820152602001610c3a565b50505050905090810190601f168015610c7f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610ce45760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610c52578181015183820152602001610c3a565b506000838581610cf057fe5b0495945050505050565b610d0c826001600160a01b0316610eb2565b610d5d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610d9b5780518252601f199092019160209182019101610d7c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610dfd576040519150601f19603f3d011682016040523d82523d6000602084013e610e02565b606091505b509150915081610e59576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b9657808060200190516020811015610e7557600080fd5b5051610b965760405162461bcd60e51b815260040180806020018281038252602a815260200180610f10602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610ee657508115155b94935050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820f683141e730f182b4e72d43a21780446494f490d25c460eb1312dacf2de602b164736f6c634300050c0032

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.