ETH Price: $3,102.88 (+0.63%)
Gas: 5 Gwei

Contract

0x072644A36f9fd668DC6Cc68fCAf26Edd399A19fD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Exit146465052022-04-24 8:46:09808 days ago1650789969IN
0x072644A3...d399A19fD
0 ETH0.0019611221.96212337
Exit136869972021-11-26 1:53:44957 days ago1637891624IN
0x072644A3...d399A19fD
0 ETH0.00913259102.27327577
Exit136564092021-11-21 5:48:48962 days ago1637473728IN
0x072644A3...d399A19fD
0 ETH0.007121662.06404995
Exit134874962021-10-25 15:48:15988 days ago1635176895IN
0x072644A3...d399A19fD
0 ETH0.0075321465.64189776
Exit134670412021-10-22 11:03:46992 days ago1634900626IN
0x072644A3...d399A19fD
0 ETH0.0087420966.30537013
Exit133959502021-10-11 7:22:191003 days ago1633936939IN
0x072644A3...d399A19fD
0 ETH0.0122659194.46510045
Exit130638972021-08-20 19:05:061054 days ago1629486306IN
0x072644A3...d399A19fD
0 ETH0.0051635745
Exit130260492021-08-14 22:36:371060 days ago1628980597IN
0x072644A3...d399A19fD
0 ETH0.0042085836.6774064
Exit128147332021-07-12 20:52:151093 days ago1626123135IN
0x072644A3...d399A19fD
0 ETH0.0017772817
Exit127432552021-07-01 17:55:361104 days ago1625162136IN
0x072644A3...d399A19fD
0 ETH0.0016610121
Exit126395152021-06-15 14:15:141120 days ago1623766514IN
0x072644A3...d399A19fD
0 ETH0.0017030414
Exit125563072021-06-02 16:59:441133 days ago1622653184IN
0x072644A3...d399A19fD
0 ETH0.0035277329
Exit125377842021-05-30 20:16:071136 days ago1622405767IN
0x072644A3...d399A19fD
0 ETH0.002164120.7
Exit124411622021-05-15 20:23:551151 days ago1621110235IN
0x072644A3...d399A19fD
0 ETH0.0082719268
Exit124006572021-05-09 14:21:001157 days ago1620570060IN
0x072644A3...d399A19fD
0 ETH0.0066124283.60000023
Exit123900152021-05-07 22:59:301159 days ago1620428370IN
0x072644A3...d399A19fD
0 ETH0.0052307743
Exit123899122021-05-07 22:36:361159 days ago1620426996IN
0x072644A3...d399A19fD
0 ETH0.0033220342
Exit122682422021-04-19 3:55:431178 days ago1618804543IN
0x072644A3...d399A19fD
0 ETH0.00814688103
Stake122660262021-04-18 19:37:131178 days ago1618774633IN
0x072644A3...d399A19fD
0 ETH0.00980076120
Exit122561092021-04-17 6:56:301180 days ago1618642590IN
0x072644A3...d399A19fD
0 ETH0.00991863125.40000023
Exit122359342021-04-14 4:01:571183 days ago1618372917IN
0x072644A3...d399A19fD
0 ETH0.01101556108.00000145
Stake122244722021-04-12 9:31:411185 days ago1618219901IN
0x072644A3...d399A19fD
0 ETH0.0054387465
Stake122231202021-04-12 4:38:421185 days ago1618202322IN
0x072644A3...d399A19fD
0 ETH0.0056897668.00000145
Exit122088552021-04-10 0:19:481187 days ago1618013988IN
0x072644A3...d399A19fD
0 ETH0.0082616781.00000145
Exit121981792021-04-08 8:49:101189 days ago1617871750IN
0x072644A3...d399A19fD
0 ETH0.013940198
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, GNU GPLv3 license

Contract Source Code (Solidity)

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

// File: @openzeppelin/contracts/math/Math.sol

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

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

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

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

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

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.5.5;

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;




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

pragma solidity ^0.5.0;



contract IRewardDistributionRecipient is Ownable {
    address public rewardDistribution;

    function notifyRewardAmount(uint256 reward) external;

    modifier onlyRewardDistribution() {
        require(_msgSender() == rewardDistribution, "Caller is not reward distribution");
        _;
    }

    function setRewardDistribution(address _rewardDistribution)
        external
        onlyOwner
    {
        rewardDistribution = _rewardDistribution;
    }
}

// File: contracts/Unipool.sol

pragma solidity ^0.5.0;






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

    IERC20 public uniswapEthUosToken = IERC20(0x42D52847BE255eacEE8c3f96b3B223c0B3cC0438);

    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);
        uniswapEthUosToken.safeTransferFrom(msg.sender, address(this), amount);
    }

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

contract Unipool is LPTokenWrapper, IRewardDistributionRecipient {
    IERC20 public uos = IERC20(0xD13c7342e1ef687C5ad21b27c2b65D772cAb5C8c);
    uint256 public constant DURATION = 30 days;

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    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;
            uos.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function notifyRewardAmount(uint256 _amount)
        external
        updateReward(address(0))
    {
        if (block.timestamp >= periodFinish) {
            rewardRate = _amount.div(DURATION);
        } else {
            uint256 remainingTime = periodFinish.sub(block.timestamp);
            uint256 leftoverReward = remainingTime.mul(rewardRate);
            uint256 newRewardRate = _amount.add(leftoverReward).div(DURATION);
            require(newRewardRate >= rewardRate, "New reward rate too low");
            rewardRate = newRewardRate;
        }
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(DURATION);

        uos.safeTransferFrom(msg.sender, address(this), _amount);

        emit RewardAdded(_amount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"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":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","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":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"address","name":"_rewardDistribution","type":"address"}],"name":"setRewardDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","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":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"uniswapEthUosToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"uos","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"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"}]

6080604052600080546001600160a01b03199081167342d52847be255eacee8c3f96b3b223c0b3cc04381782556005805490911673d13c7342e1ef687c5ad21b27c2b65d772cab5c8c179055600681905560078190556100666001600160e01b036100b916565b600380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506100bd565b3390565b611208806100cc6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c8063715018a6116100de578063a694fc3a11610097578063df136d6511610071578063df136d6514610338578063e9fad8ee14610340578063ebe2b12b14610348578063f2fde38b1461035057610172565b8063a694fc3a1461030b578063c8f33c9114610328578063cd3daf9d1461033057610172565b8063715018a6146102a95780637b0a47ee146102b157806380faa57d146102b95780638b876347146102c15780638da5cb5b146102e75780638f32d59b146102ef57610172565b80632e1a7d4d116101305780632e1a7d4d1461023157806334d0e7071461024e5780633c6b16ab146102565780633d18b912146102735780635e146e451461027b57806370a082311461028357610172565b80628cc262146101775780630700037d146101af5780630d68b761146101d5578063101114cf146101fd57806318160ddd146102215780631be0528914610229575b600080fd5b61019d6004803603602081101561018d57600080fd5b50356001600160a01b0316610376565b60408051918252519081900360200190f35b61019d600480360360208110156101c557600080fd5b50356001600160a01b03166103fc565b6101fb600480360360208110156101eb57600080fd5b50356001600160a01b031661040e565b005b610205610489565b604080516001600160a01b039092168252519081900360200190f35b61019d610498565b61019d61049f565b6101fb6004803603602081101561024757600080fd5b50356104a6565b61020561058d565b6101fb6004803603602081101561026c57600080fd5b503561059c565b6101fb610736565b610205610808565b61019d6004803603602081101561029957600080fd5b50356001600160a01b0316610817565b6101fb610832565b61019d6108d5565b61019d6108db565b61019d600480360360208110156102d757600080fd5b50356001600160a01b03166108ee565b610205610900565b6102f761090f565b604080519115158252519081900360200190f35b6101fb6004803603602081101561032157600080fd5b5035610935565b61019d610a19565b61019d610a1f565b61019d610a73565b6101fb610a79565b61019d610a94565b6101fb6004803603602081101561036657600080fd5b50356001600160a01b0316610a9a565b6001600160a01b0381166000908152600b6020908152604080832054600a9092528220546103f691906103ea90670de0b6b3a7640000906103de906103c9906103bd610a1f565b9063ffffffff610aff16565b6103d288610817565b9063ffffffff610b4816565b9063ffffffff610ba116565b9063ffffffff610be316565b92915050565b600b6020526000908152604090205481565b61041661090f565b610467576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6001545b90565b62278d0081565b336104af610a1f565b6009556104ba6108db565b6008556001600160a01b03811615610501576104d581610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b6000821161054a576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b61055382610c3d565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6005546001600160a01b031681565b60006105a6610a1f565b6009556105b16108db565b6008556001600160a01b038116156105f8576105cc81610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600654421061061c576106148262278d0063ffffffff610ba116565b6007556106c5565b600654600090610632904263ffffffff610aff16565b9050600061064b60075483610b4890919063ffffffff16565b9050600061066662278d006103de878563ffffffff610be316565b90506007548110156106bf576040805162461bcd60e51b815260206004820152601760248201527f4e657720726577617264207261746520746f6f206c6f77000000000000000000604482015290519081900360640190fd5b60075550505b4260088190556106de9062278d0063ffffffff610be316565b6006556005546106ff906001600160a01b031633308563ffffffff610c9e16565b6040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b3361073f610a1f565b60095561074a6108db565b6008556001600160a01b038116156107915761076581610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600061079c33610376565b9050801561080457336000818152600b60205260408120556005546107cd916001600160a01b039091169083610cfe565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b6000546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b61083a61090f565b61088b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b60075481565b60006108e942600654610d55565b905090565b600a6020526000908152604090205481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610926610d6b565b6001600160a01b031614905090565b3361093e610a1f565b6009556109496108db565b6008556001600160a01b038116156109905761096481610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600082116109d6576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b6109df82610d6f565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b60085481565b6000610a29610498565b610a36575060095461049c565b6108e9610a64610a44610498565b6103de670de0b6b3a76400006103d26007546103d26008546103bd6108db565b6009549063ffffffff610be316565b60095481565b610a8a610a8533610817565b6104a6565b610a92610736565b565b60065481565b610aa261090f565b610af3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610afc81610dd1565b50565b6000610b4183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e72565b9392505050565b600082610b57575060006103f6565b82820282848281610b6457fe5b0414610b415760405162461bcd60e51b81526004018080602001828103825260218152602001806111896021913960400191505060405180910390fd5b6000610b4183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f09565b600082820183811015610b41576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610c50908263ffffffff610aff16565b60015533600090815260026020526040902054610c73908263ffffffff610aff16565b336000818152600260205260408120929092559054610afc916001600160a01b039091169083610cfe565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610cf8908590610f6e565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d50908490610f6e565b505050565b6000818310610d645781610b41565b5090919050565b3390565b600154610d82908263ffffffff610be316565b60015533600090815260026020526040902054610da5908263ffffffff610be316565b336000818152600260205260408120929092559054610afc916001600160a01b03909116903084610c9e565b6001600160a01b038116610e165760405162461bcd60e51b81526004018080602001828103825260268152602001806111636026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115610f015760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ec6578181015183820152602001610eae565b50505050905090810190601f168015610ef35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610f585760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610ec6578181015183820152602001610eae565b506000838581610f6457fe5b0495945050505050565b610f80826001600160a01b0316611126565b610fd1576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061100f5780518252601f199092019160209182019101610ff0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611071576040519150601f19603f3d011682016040523d82523d6000602084013e611076565b606091505b5091509150816110cd576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610cf8578080602001905160208110156110e957600080fd5b5051610cf85760405162461bcd60e51b815260040180806020018281038252602a8152602001806111aa602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061115a57508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582064e4724f4854d90424ce2b9148ff097c8e6da289e6c7e16d0923448f06874e5e64736f6c634300050c0032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101725760003560e01c8063715018a6116100de578063a694fc3a11610097578063df136d6511610071578063df136d6514610338578063e9fad8ee14610340578063ebe2b12b14610348578063f2fde38b1461035057610172565b8063a694fc3a1461030b578063c8f33c9114610328578063cd3daf9d1461033057610172565b8063715018a6146102a95780637b0a47ee146102b157806380faa57d146102b95780638b876347146102c15780638da5cb5b146102e75780638f32d59b146102ef57610172565b80632e1a7d4d116101305780632e1a7d4d1461023157806334d0e7071461024e5780633c6b16ab146102565780633d18b912146102735780635e146e451461027b57806370a082311461028357610172565b80628cc262146101775780630700037d146101af5780630d68b761146101d5578063101114cf146101fd57806318160ddd146102215780631be0528914610229575b600080fd5b61019d6004803603602081101561018d57600080fd5b50356001600160a01b0316610376565b60408051918252519081900360200190f35b61019d600480360360208110156101c557600080fd5b50356001600160a01b03166103fc565b6101fb600480360360208110156101eb57600080fd5b50356001600160a01b031661040e565b005b610205610489565b604080516001600160a01b039092168252519081900360200190f35b61019d610498565b61019d61049f565b6101fb6004803603602081101561024757600080fd5b50356104a6565b61020561058d565b6101fb6004803603602081101561026c57600080fd5b503561059c565b6101fb610736565b610205610808565b61019d6004803603602081101561029957600080fd5b50356001600160a01b0316610817565b6101fb610832565b61019d6108d5565b61019d6108db565b61019d600480360360208110156102d757600080fd5b50356001600160a01b03166108ee565b610205610900565b6102f761090f565b604080519115158252519081900360200190f35b6101fb6004803603602081101561032157600080fd5b5035610935565b61019d610a19565b61019d610a1f565b61019d610a73565b6101fb610a79565b61019d610a94565b6101fb6004803603602081101561036657600080fd5b50356001600160a01b0316610a9a565b6001600160a01b0381166000908152600b6020908152604080832054600a9092528220546103f691906103ea90670de0b6b3a7640000906103de906103c9906103bd610a1f565b9063ffffffff610aff16565b6103d288610817565b9063ffffffff610b4816565b9063ffffffff610ba116565b9063ffffffff610be316565b92915050565b600b6020526000908152604090205481565b61041661090f565b610467576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6001545b90565b62278d0081565b336104af610a1f565b6009556104ba6108db565b6008556001600160a01b03811615610501576104d581610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b6000821161054a576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b61055382610c3d565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6005546001600160a01b031681565b60006105a6610a1f565b6009556105b16108db565b6008556001600160a01b038116156105f8576105cc81610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600654421061061c576106148262278d0063ffffffff610ba116565b6007556106c5565b600654600090610632904263ffffffff610aff16565b9050600061064b60075483610b4890919063ffffffff16565b9050600061066662278d006103de878563ffffffff610be316565b90506007548110156106bf576040805162461bcd60e51b815260206004820152601760248201527f4e657720726577617264207261746520746f6f206c6f77000000000000000000604482015290519081900360640190fd5b60075550505b4260088190556106de9062278d0063ffffffff610be316565b6006556005546106ff906001600160a01b031633308563ffffffff610c9e16565b6040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b3361073f610a1f565b60095561074a6108db565b6008556001600160a01b038116156107915761076581610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600061079c33610376565b9050801561080457336000818152600b60205260408120556005546107cd916001600160a01b039091169083610cfe565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b6000546001600160a01b031681565b6001600160a01b031660009081526002602052604090205490565b61083a61090f565b61088b576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b60075481565b60006108e942600654610d55565b905090565b600a6020526000908152604090205481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610926610d6b565b6001600160a01b031614905090565b3361093e610a1f565b6009556109496108db565b6008556001600160a01b038116156109905761096481610376565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600082116109d6576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b6109df82610d6f565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b60085481565b6000610a29610498565b610a36575060095461049c565b6108e9610a64610a44610498565b6103de670de0b6b3a76400006103d26007546103d26008546103bd6108db565b6009549063ffffffff610be316565b60095481565b610a8a610a8533610817565b6104a6565b610a92610736565b565b60065481565b610aa261090f565b610af3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610afc81610dd1565b50565b6000610b4183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e72565b9392505050565b600082610b57575060006103f6565b82820282848281610b6457fe5b0414610b415760405162461bcd60e51b81526004018080602001828103825260218152602001806111896021913960400191505060405180910390fd5b6000610b4183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f09565b600082820183811015610b41576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610c50908263ffffffff610aff16565b60015533600090815260026020526040902054610c73908263ffffffff610aff16565b336000818152600260205260408120929092559054610afc916001600160a01b039091169083610cfe565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610cf8908590610f6e565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d50908490610f6e565b505050565b6000818310610d645781610b41565b5090919050565b3390565b600154610d82908263ffffffff610be316565b60015533600090815260026020526040902054610da5908263ffffffff610be316565b336000818152600260205260408120929092559054610afc916001600160a01b03909116903084610c9e565b6001600160a01b038116610e165760405162461bcd60e51b81526004018080602001828103825260268152602001806111636026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115610f015760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ec6578181015183820152602001610eae565b50505050905090810190601f168015610ef35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610f585760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610ec6578181015183820152602001610eae565b506000838581610f6457fe5b0495945050505050565b610f80826001600160a01b0316611126565b610fd1576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061100f5780518252601f199092019160209182019101610ff0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611071576040519150601f19603f3d011682016040523d82523d6000602084013e611076565b606091505b5091509150816110cd576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610cf8578080602001905160208110156110e957600080fd5b5051610cf85760405162461bcd60e51b815260040180806020018281038252602a8152602001806111aa602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061115a57508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582064e4724f4854d90424ce2b9148ff097c8e6da289e6c7e16d0923448f06874e5e64736f6c634300050c0032

Deployed Bytecode Sourcemap

21466:3539:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21466:3539:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23058:265;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23058:265:0;-1:-1:-1;;;;;23058:265:0;;:::i;:::-;;;;;;;;;;;;;;;;21882:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21882:42:0;-1:-1:-1;;;;;21882:42:0;;:::i;20239:161::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20239:161:0;-1:-1:-1;;;;;20239:161:0;;:::i;:::-;;19983:33;;;:::i;:::-;;;;-1:-1:-1;;;;;19983:33:0;;;;;;;;;;;;;;20760:91;;;:::i;21615:42::-;;;:::i;23613:203::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23613:203:0;;:::i;21538:70::-;;;:::i;24221:781::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24221:781:0;;:::i;23929:284::-;;;:::i;20577:85::-;;;:::i;20859:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20859:110:0;-1:-1:-1;;;;;20859:110:0;;:::i;9322:140::-;;;:::i;21704:29::-;;;:::i;22491:131::-;;;:::i;21818:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21818:57:0;-1:-1:-1;;;;;21818:57:0;;:::i;8511:79::-;;;:::i;8877:94::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;23414:191;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23414:191:0;;:::i;21740:29::-;;;:::i;22630:420::-;;;:::i;21776:35::-;;;:::i;23824:97::-;;;:::i;21666:31::-;;;:::i;9617:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9617:109:0;-1:-1:-1;;;;;9617:109:0;;:::i;23058:265::-;-1:-1:-1;;;;;23298:16:0;;23112:7;23298:16;;;:7;:16;;;;;;;;;23214:22;:31;;;;;;23152:163;;23298:16;23152:123;;23270:4;;23152:95;;23193:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;23152:18;23162:7;23152:9;:18::i;:::-;:40;:95;:40;:95;:::i;:::-;:117;:123;:117;:123;:::i;:::-;:145;:163;:145;:163;:::i;:::-;23132:183;23058:265;-1:-1:-1;;23058:265:0:o;21882:42::-;;;;;;;;;;;;;:::o;20239:161::-;8723:9;:7;:9::i;:::-;8715:54;;;;;-1:-1:-1;;;8715:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20352:18;:40;;-1:-1:-1;;;;;;20352:40:0;-1:-1:-1;;;;;20352:40:0;;;;;;;;;;20239:161::o;19983:33::-;;;-1:-1:-1;;;;;19983:33:0;;:::o;20760:91::-;20831:12;;20760:91;;:::o;21615:42::-;21650:7;21615:42;:::o;23613:203::-;23667:10;22226:16;:14;:16::i;:::-;22203:20;:39;22270:26;:24;:26::i;:::-;22253:14;:43;-1:-1:-1;;;;;22311:21:0;;;22307:157;;22368:15;22375:7;22368:6;:15::i;:::-;-1:-1:-1;;;;;22349:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22432:20;;22398:22;:31;;;;;;:54;22307:157;23707:1;23698:6;:10;23690:40;;;;;-1:-1:-1;;;23690:40:0;;;;;;;;;;;;-1:-1:-1;;;23690:40:0;;;;;;;;;;;;;;;23741:22;23756:6;23741:14;:22::i;:::-;23779:29;;;;;;;;23789:10;;23779:29;;;;;;;;;;23613:203;;:::o;21538:70::-;;;-1:-1:-1;;;;;21538:70:0;;:::o;24221:781::-;24314:1;22226:16;:14;:16::i;:::-;22203:20;:39;22270:26;:24;:26::i;:::-;22253:14;:43;-1:-1:-1;;;;;22311:21:0;;;22307:157;;22368:15;22375:7;22368:6;:15::i;:::-;-1:-1:-1;;;;;22349:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22432:20;;22398:22;:31;;;;;;:54;22307:157;24357:12;;24338:15;:31;24334:456;;24399:21;:7;21650;24399:21;:11;:21;:::i;:::-;24386:10;:34;24334:456;;;24477:12;;24453:21;;24477:33;;24494:15;24477:33;:16;:33;:::i;:::-;24453:57;;24525:22;24550:29;24568:10;;24550:13;:17;;:29;;;;:::i;:::-;24525:54;-1:-1:-1;24594:21:0;24618:41;21650:7;24618:27;:7;24525:54;24618:27;:11;:27;:::i;:41::-;24594:65;;24699:10;;24682:13;:27;;24674:63;;;;;-1:-1:-1;;;24674:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24752:10;:26;-1:-1:-1;;24334:456:0;24817:15;24800:14;:32;;;24858:29;;21650:7;24858:29;:19;:29;:::i;:::-;24843:12;:44;24900:3;;:56;;-1:-1:-1;;;;;24900:3:0;24921:10;24941:4;24948:7;24900:56;:20;:56;:::i;:::-;24974:20;;;;;;;;;;;;;;;;;24221:781;;:::o;23929:284::-;23970:10;22226:16;:14;:16::i;:::-;22203:20;:39;22270:26;:24;:26::i;:::-;22253:14;:43;-1:-1:-1;;;;;22311:21:0;;;22307:157;;22368:15;22375:7;22368:6;:15::i;:::-;-1:-1:-1;;;;;22349:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22432:20;;22398:22;:31;;;;;;:54;22307:157;23993:14;24010:18;24017:10;24010:6;:18::i;:::-;23993:35;-1:-1:-1;24043:10:0;;24039:167;;24078:10;24092:1;24070:19;;;:7;:19;;;;;:23;24108:3;;:36;;-1:-1:-1;;;;;24108:3:0;;;;24137:6;24108:16;:36::i;:::-;24164:30;;;;;;;;24175:10;;24164:30;;;;;;;;;;24039:167;22474:1;23929:284;:::o;20577:85::-;;;-1:-1:-1;;;;;20577:85:0;;:::o;20859:110::-;-1:-1:-1;;;;;20943:18:0;20916:7;20943:18;;;:9;:18;;;;;;;20859:110::o;9322:140::-;8723:9;:7;:9::i;:::-;8715:54;;;;;-1:-1:-1;;;8715:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9405:6;;9384:40;;9421:1;;-1:-1:-1;;;;;9405:6:0;;9384:40;;9421:1;;9384:40;9435:6;:19;;-1:-1:-1;;;;;;9435:19:0;;;9322:140::o;21704:29::-;;;;:::o;22491:131::-;22548:7;22575:39;22584:15;22601:12;;22575:8;:39::i;:::-;22568:46;;22491:131;:::o;21818:57::-;;;;;;;;;;;;;:::o;8511:79::-;8576:6;;-1:-1:-1;;;;;8576:6:0;8511:79;:::o;8877:94::-;8957:6;;8917:4;;-1:-1:-1;;;;;8957:6:0;8941:12;:10;:12::i;:::-;-1:-1:-1;;;;;8941:22:0;;8934:29;;8877:94;:::o;23414:191::-;23465:10;22226:16;:14;:16::i;:::-;22203:20;:39;22270:26;:24;:26::i;:::-;22253:14;:43;-1:-1:-1;;;;;22311:21:0;;;22307:157;;22368:15;22375:7;22368:6;:15::i;:::-;-1:-1:-1;;;;;22349:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22432:20;;22398:22;:31;;;;;;:54;22307:157;23505:1;23496:6;:10;23488:37;;;;;-1:-1:-1;;;23488:37:0;;;;;;;;;;;;-1:-1:-1;;;23488:37:0;;;;;;;;;;;;;;;23536:19;23548:6;23536:11;:19::i;:::-;23571:26;;;;;;;;23578:10;;23571:26;;;;;;;;;;23414:191;;:::o;21740:29::-;;;;:::o;22630:420::-;22677:7;22701:13;:11;:13::i;:::-;22697:78;;-1:-1:-1;22743:20:0;;22736:27;;22697:78;22805:237;22848:179;23013:13;:11;:13::i;:::-;22848:138;22981:4;22848:106;22943:10;;22848:68;22901:14;;22848:26;:24;:26::i;:179::-;22805:20;;;:237;:24;:237;:::i;21776:35::-;;;;:::o;23824:97::-;23860:31;23869:21;23879:10;23869:9;:21::i;:::-;23860:8;:31::i;:::-;23902:11;:9;:11::i;:::-;23824:97::o;21666:31::-;;;;:::o;9617:109::-;8723:9;:7;:9::i;:::-;8715:54;;;;;-1:-1:-1;;;8715:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9690:28;9709:8;9690:18;:28::i;:::-;9617:109;:::o;2218:136::-;2276:7;2303:43;2307:1;2310;2303:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2296:50;2218:136;-1:-1:-1;;;2218:136:0:o;3134:471::-;3192:7;3437:6;3433:47;;-1:-1:-1;3467:1:0;3460:8;;3433:47;3504:5;;;3508:1;3504;:5;:1;3528:5;;;;;:10;3520:56;;;;-1:-1:-1;;;3520:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4073:132;4131:7;4158:39;4162:1;4165;4158:39;;;;;;;;;;;;;;;;;:3;:39::i;1762:181::-;1820:7;1852:5;;;1876:6;;;;1868:46;;;;;-1:-1:-1;;;1868:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;21230:229;21297:12;;:24;;21314:6;21297:24;:16;:24;:::i;:::-;21282:12;:39;21366:10;21356:21;;;;:9;:21;;;;;;:33;;21382:6;21356:33;:25;:33;:::i;:::-;21342:10;21332:21;;;;:9;:21;;;;;:57;;;;21400:18;;:51;;-1:-1:-1;;;;;21400:18:0;;;;21444:6;21400:31;:51::i;16865:204::-;16992:68;;;-1:-1:-1;;;;;16992:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16992:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;16966:95:0;;16985:5;;16966:18;:95::i;:::-;16865:204;;;;:::o;16681:176::-;16790:58;;;-1:-1:-1;;;;;16790:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16790:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;16764:85:0;;16783:5;;16764:18;:85::i;:::-;16681:176;;;:::o;424:106::-;482:7;513:1;509;:5;:13;;521:1;509:13;;;-1:-1:-1;517:1:0;;424:106;-1:-1:-1;424:106:0:o;7217:98::-;7297:10;7217:98;:::o;20977:245::-;21041:12;;:24;;21058:6;21041:24;:16;:24;:::i;:::-;21026:12;:39;21110:10;21100:21;;;;:9;:21;;;;;;:33;;21126:6;21100:33;:25;:33;:::i;:::-;21086:10;21076:21;;;;:9;:21;;;;;:57;;;;21144:18;;:70;;-1:-1:-1;;;;;21144:18:0;;;;21200:4;21207:6;21144:35;:70::i;9832:229::-;-1:-1:-1;;;;;9906:22:0;;9898:73;;;;-1:-1:-1;;;9898:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10008:6;;9987:38;;-1:-1:-1;;;;;9987:38:0;;;;10008:6;;9987:38;;10008:6;;9987:38;10036:6;:17;;-1:-1:-1;;;;;;10036:17:0;-1:-1:-1;;;;;10036:17:0;;;;;;;;;;9832:229::o;2691:192::-;2777:7;2813:12;2805:6;;;;2797:29;;;;-1:-1:-1;;;2797:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2797:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2849:5:0;;;2691:192::o;4735:345::-;4821:7;4923:12;4916:5;4908:28;;;;-1:-1:-1;;;4908:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4908:28:0;;4947:9;4963:1;4959;:5;;;;;;;4735:345;-1:-1:-1;;;;;4735:345:0:o;18720:1114::-;19324:27;19332:5;-1:-1:-1;;;;;19324:25:0;;:27::i;:::-;19316:71;;;;;-1:-1:-1;;;19316:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19461:12;19475:23;19510:5;-1:-1:-1;;;;;19502:19:0;19522:4;19502:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;19502:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;19460:67:0;;;;19546:7;19538:52;;;;;-1:-1:-1;;;19538:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19607:17;;:21;19603:224;;19749:10;19738:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19738:30:0;19730:85;;;;-1:-1:-1;;;19730:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13710:619;13770:4;14238:20;;14081:66;14278:23;;;;;;:42;;-1:-1:-1;14305:15:0;;;14278:42;14270:51;13710:619;-1:-1:-1;;;;13710:619:0:o

Swarm Source

bzzr://64e4724f4854d90424ce2b9148ff097c8e6da289e6c7e16d0923448f06874e5e

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.