Contract 0xEb0F03A203F25F08c7aFF0e1b1C2E0EE25Ca29Eb

 

Contract Overview

Dopex: Staking Rewards (rDPX/WETH)
Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x70d3d0685e4995deb9c5ea0f2e3aa3dbb1502a90df2b692df5c910af0a7af80aClaim416603072022-11-27 15:53:5245 mins ago0xff628b747c4e70825af24e3d59748bac477dcbf6 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001859
0xffc0a8083578b30d71ec5cb2e08bcd1c9f3f290ba79b1c2e51e855ea54063a1fStake416535162022-11-27 15:22:381 hr 17 mins ago0x978aa0e4592e47327bace8d157851e4bb0bd3cc5 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00003983
0xc840995caa1e365d0899eb592136c33ee666e0527c6710c2e7856d6e0123602dClaim416366002022-11-27 14:06:122 hrs 33 mins ago0xe87a10d5b212d169ccbc9a50cf5e23dd3da27cb6 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001675
0x492c517c19b08ae3de7cc4f4fce915194e1f41907a04307d3e765539b5b9a8d9Claim416229372022-11-27 13:00:233 hrs 39 mins ago0xabceb0f84c830d6d7b94c6273f2ab27ca597aa25 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001902
0xe8bb450d817d7b953cffcd585975456cb71934cafeff9d2eef9ee8fc1bcc751dUnstake416178022022-11-27 12:36:444 hrs 2 mins ago0x00c75c19a4cd3586280f980bafe09236235324d2 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00006506
0xc70c13e124a185dad20d6fe5d6d1aec0f8295bb84b94f8bacf76091f02ac0437Claim416085622022-11-27 11:52:524 hrs 46 mins ago0x93dbbc40d0372b99d7f43dcae1546450dd6bdba5 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001639
0x9cab824fa299f8293190c899b0ff5c2fde3dc2c8bb21c5b22bcbecf85dcdd485Claim416067192022-11-27 11:43:294 hrs 56 mins ago0x94d01717ef1e42e386d51ab08583874ffa7b92e5 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001848
0x133c802206f0b43cecd34c1ed86221d5a109b953f33c5b3657e3579125d2a5aaClaim415944692022-11-27 10:43:575 hrs 55 mins ago0xebb62f6ebb5e380fea7d457ef2b9509aef461908 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001653
0x45dd2200d561c9d81ae1d1fc5471fdd85c52af8ec52aa4ddac3f1e47d158e3a9Claim415898132022-11-27 10:20:436 hrs 18 mins ago0x9d4c1c518442ad9eb23cb79a4792d508b49c81af IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001827
0x1d8d4d100f68d12da777256779db4a9bc7fa8befdccab0ce4b1e9296beee4f1eClaim415848692022-11-27 9:57:076 hrs 42 mins ago0x880e14298dd46418806f7b5e12b92aa9873bb5d4 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001699
0x3056679763eb0318a49d4f4362c22506f6a8521dbe8abf0e0bd7b9ca788b6d89Unstake415811882022-11-27 9:40:136 hrs 59 mins ago0x880e14298dd46418806f7b5e12b92aa9873bb5d4 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00002028
0x07d1547c2f7ee11cac4eb345a28dcef3d111f8f30f968b17955d14b3933ee2f0Claim415747522022-11-27 9:08:067 hrs 31 mins ago0x5e98bd720249e2e126f21529d461b7c443f17cb1 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001808
0xc98f2069e3176b647b940a42048cec7c215f6c6f9a893d9fffc8356f828fb0c4Claim415689362022-11-27 8:41:017 hrs 58 mins ago0xe6882e6093a69c47fc21426c2dfdb4a08eb2dec8 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001714
0x7818ce66cf7204d78157d0a91b6144e49ae54148fcbca8eb1ca8b3aeca8c28cdClaim415648742022-11-27 8:22:548 hrs 16 mins ago0x712255023ec2ef444a56844a1a73914b054aa0c7 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001582
0x2791e4fb4efa2fffc55f988b33b2867cc004f183bda95a9b78204ae0f8162a63Claim415647132022-11-27 8:22:118 hrs 17 mins ago0x712255023ec2ef444a56844a1a73914b054aa0c7 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001754
0xb2a2fa51268076e8ad39c9e29a3dc34f8fdf3375bc0d7dd4cdeca79e8cbcc89cClaim415228142022-11-27 4:14:2512 hrs 25 mins ago0x3bb8361d964ba81f87c5584690ddcf993e0d95ab IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001791
0xe61e3c8b7e7d4e3b817ac7371ef2e27955a359ec845f2b6b630f3c00aa1c94e8Stake415156862022-11-27 3:29:3513 hrs 10 mins ago0xdddd39f79c37dde7b6e2d7055a8fe5de5b8737c0 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.0000202
0xd58ee986e57cc99e8ad66606629e097d05b88e26deb7c08f9d4bc9387df2ea51Unstake415140772022-11-27 3:20:5813 hrs 18 mins ago0xc54572e677b2ed341b09b62485eb511643d14a3b IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00003831
0x96fb77977ee0aa1e7762ea0c2ebb76ccbee3ed2c76fb6492f7301946fc18b9b2Claim415132632022-11-27 3:16:2913 hrs 23 mins ago0xdc7b1c3168f9b5d1b68a675a2b83e3af11663e6b IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001579
0x713296771648d16b3cf48104f301265caf30d78b35a03a9cab758652d86af633Claim414472952022-11-26 19:29:5021 hrs 9 mins ago0x61d1a7fa2c6c540034900f149efcd380d5cd1f4e IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00002066
0x94a6e2448217a52caef453c8def0a1b1a041293520506c59ef84baf9c720f74bClaim414367282022-11-26 18:30:3922 hrs 9 mins ago0xff6a569d06fddbf8bad1dc9fa3f57484af49a1ed IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00002129
0xfd948c162cb62a1b3f69976b1f6b71347841de55cbd692d48fd46799b1426597Claim414362632022-11-26 18:27:5822 hrs 11 mins ago0x3083c5e721c3c323ea51c5e9c34b30968883fdbc IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001962
0x9160b080f10a2d20d67f7101e1e4bf05053ada73db41947d3abec1898de3ca03Claim414361372022-11-26 18:27:1522 hrs 12 mins ago0x7cb581f6a48681ea7102eb3c02e76933acd8a7b6 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001962
0xdac045af12789f980681c105432876ff40289f7a61cdf5aa1faa3c963521d35bClaim414318632022-11-26 18:02:5922 hrs 36 mins ago0x14583914c697c42f503ba29bd99b65475b7dba52 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001902
0xda37878421fef520a1e0c464e33053073ad1da5630ff5e741768ab5c8ad1ebf3Claim414191792022-11-26 16:53:5823 hrs 45 mins ago0xad0c883b01e69d79c7aa23bc1b9fd96b16aa4022 IN  Dopex: Staking Rewards (rDPX/WETH)0 ETH0.00001952
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x50c5dfe17c4b487dcbd6cd662d2eee986c1165aab64dc4ae28aafbf5abb7f6a3416637562022-11-27 16:09:4529 mins ago Dopex: Staking Rewards (rDPX/WETH)0x7418f5a2621e13c05d1efbd71ec922070794b90a0 ETH
0x50c5dfe17c4b487dcbd6cd662d2eee986c1165aab64dc4ae28aafbf5abb7f6a3416637562022-11-27 16:09:4529 mins ago 0xf3e914c15d0baa1f6537b0966d6f3394ba260747 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0x50c5dfe17c4b487dcbd6cd662d2eee986c1165aab64dc4ae28aafbf5abb7f6a3416637562022-11-27 16:09:4529 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0x50c5dfe17c4b487dcbd6cd662d2eee986c1165aab64dc4ae28aafbf5abb7f6a3416637562022-11-27 16:09:4529 mins ago 0xf3e914c15d0baa1f6537b0966d6f3394ba260747 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0x4e593ad01af799bd279e7ad38b472cefd86ccbb628e7281f0fba7cb77db478ac416637382022-11-27 16:09:3930 mins ago Dopex: Staking Rewards (rDPX/WETH)0x7418f5a2621e13c05d1efbd71ec922070794b90a0 ETH
0x4e593ad01af799bd279e7ad38b472cefd86ccbb628e7281f0fba7cb77db478ac416637382022-11-27 16:09:3930 mins ago 0x64f6c761d855a6eff9ef8b025b0258bddede5393 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0x4e593ad01af799bd279e7ad38b472cefd86ccbb628e7281f0fba7cb77db478ac416637382022-11-27 16:09:3930 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0x4e593ad01af799bd279e7ad38b472cefd86ccbb628e7281f0fba7cb77db478ac416637382022-11-27 16:09:3930 mins ago 0x64f6c761d855a6eff9ef8b025b0258bddede5393 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0x70d3d0685e4995deb9c5ea0f2e3aa3dbb1502a90df2b692df5c910af0a7af80a416603072022-11-27 15:53:5245 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0xffc0a8083578b30d71ec5cb2e08bcd1c9f3f290ba79b1c2e51e855ea54063a1f416535162022-11-27 15:22:381 hr 17 mins ago Dopex: Staking Rewards (rDPX/WETH)0x7418f5a2621e13c05d1efbd71ec922070794b90a0 ETH
0xb789943e2e24cd311cf3ec28ba7bc76f82d09f874e8541648ebca24617aa76be416373142022-11-27 14:09:202 hrs 30 mins ago Dopex: Staking Rewards (rDPX/WETH)0x7418f5a2621e13c05d1efbd71ec922070794b90a0 ETH
0xb789943e2e24cd311cf3ec28ba7bc76f82d09f874e8541648ebca24617aa76be416373142022-11-27 14:09:202 hrs 30 mins ago 0xf3e914c15d0baa1f6537b0966d6f3394ba260747 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0xb789943e2e24cd311cf3ec28ba7bc76f82d09f874e8541648ebca24617aa76be416373142022-11-27 14:09:202 hrs 30 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0xb789943e2e24cd311cf3ec28ba7bc76f82d09f874e8541648ebca24617aa76be416373142022-11-27 14:09:202 hrs 30 mins ago 0xf3e914c15d0baa1f6537b0966d6f3394ba260747 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0xb2fc370ab49782c7e58d79478befb49eeb9ba161534e6ae37b76b5032b7f5592416372922022-11-27 14:09:152 hrs 30 mins ago Dopex: Staking Rewards (rDPX/WETH)0x7418f5a2621e13c05d1efbd71ec922070794b90a0 ETH
0xb2fc370ab49782c7e58d79478befb49eeb9ba161534e6ae37b76b5032b7f5592416372922022-11-27 14:09:152 hrs 30 mins ago 0x64f6c761d855a6eff9ef8b025b0258bddede5393 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0xb2fc370ab49782c7e58d79478befb49eeb9ba161534e6ae37b76b5032b7f5592416372922022-11-27 14:09:152 hrs 30 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0xb2fc370ab49782c7e58d79478befb49eeb9ba161534e6ae37b76b5032b7f5592416372922022-11-27 14:09:152 hrs 30 mins ago 0x64f6c761d855a6eff9ef8b025b0258bddede5393 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0xc840995caa1e365d0899eb592136c33ee666e0527c6710c2e7856d6e0123602d416366002022-11-27 14:06:122 hrs 33 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0x492c517c19b08ae3de7cc4f4fce915194e1f41907a04307d3e765539b5b9a8d9416229372022-11-27 13:00:233 hrs 39 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0xe8bb450d817d7b953cffcd585975456cb71934cafeff9d2eef9ee8fc1bcc751d416178022022-11-27 12:36:444 hrs 2 mins ago Dopex: Staking Rewards (rDPX/WETH)0x7418f5a2621e13c05d1efbd71ec922070794b90a0 ETH
0xe2acfb5760be7f22bf9aae3da2cc2ea22eee8cb5e35b81c3739d90285dfa753e416119262022-11-27 12:08:564 hrs 30 mins ago Dopex: Staking Rewards (rDPX/WETH)0x7418f5a2621e13c05d1efbd71ec922070794b90a0 ETH
0xe2acfb5760be7f22bf9aae3da2cc2ea22eee8cb5e35b81c3739d90285dfa753e416119262022-11-27 12:08:564 hrs 30 mins ago 0xf3e914c15d0baa1f6537b0966d6f3394ba260747 Dopex: Staking Rewards (rDPX/WETH)0 ETH
0xe2acfb5760be7f22bf9aae3da2cc2ea22eee8cb5e35b81c3739d90285dfa753e416119262022-11-27 12:08:564 hrs 30 mins ago Dopex: Staking Rewards (rDPX/WETH)Dopex: DPX Token0 ETH
0xe2acfb5760be7f22bf9aae3da2cc2ea22eee8cb5e35b81c3739d90285dfa753e416119262022-11-27 12:08:564 hrs 30 mins ago 0xf3e914c15d0baa1f6537b0966d6f3394ba260747 Dopex: Staking Rewards (rDPX/WETH)0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RdpxEthLpFarm

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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.
 */
abstract 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() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual onlyOwner {
        _transferOwnership(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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 12 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 3 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 7 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.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 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.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.
        return (a & b) + (a ^ b) / 2;
    }

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

File 9 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 10 of 12 : ContractWhitelist.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

/// @title ContractWhitelist
/// @author witherblock
/// @notice A helper contract that lets you add a list of whitelisted contracts that should be able to interact with restricited functions
abstract contract ContractWhitelist {
    /// @dev contract => whitelisted or not
    mapping(address => bool) public whitelistedContracts;

    /*==== SETTERS ====*/

    /// @dev add to the contract whitelist
    /// @param _contract the address of the contract to add to the contract whitelist
    function _addToContractWhitelist(address _contract) internal {
        require(isContract(_contract), "Address must be a contract");
        require(
            !whitelistedContracts[_contract],
            "Contract already whitelisted"
        );

        whitelistedContracts[_contract] = true;

        emit AddToContractWhitelist(_contract);
    }

    /// @dev remove from  the contract whitelist
    /// @param _contract the address of the contract to remove from the contract whitelist
    function _removeFromContractWhitelist(address _contract) internal {
        require(whitelistedContracts[_contract], "Contract not whitelisted");

        whitelistedContracts[_contract] = false;

        emit RemoveFromContractWhitelist(_contract);
    }

    // modifier is eligible sender modifier
    function _isEligibleSender() internal view {
        // the below condition checks whether the caller is a contract or not
        if (msg.sender != tx.origin)
            require(
                whitelistedContracts[msg.sender],
                "Contract must be whitelisted"
            );
    }

    /*==== VIEWS ====*/

    /// @dev checks for contract or eoa addresses
    /// @param addr the address to check
    /// @return bool whether the passed address is a contract address
    function isContract(address addr) public view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(addr)
        }
        return size > 0;
    }

    /*==== EVENTS ====*/

    event AddToContractWhitelist(address indexed _contract);

    event RemoveFromContractWhitelist(address indexed _contract);
}

File 11 of 12 : RdpxEthLpFarm.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

import { StakingRewardsV3 } from "../StakingRewardsV3.sol";

contract RdpxEthLpFarm is StakingRewardsV3 {
  constructor()
    StakingRewardsV3(
      0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55, // rewardToken: DPX
      0x7418F5A2621E13c05d1EFBd71ec922070794b90a, // stakingToken: RDPX/WETH SLP
      86400 * 30, // Reward Duration: 1 Month
      0, // Boost Duration
      1 // Boost
    )
  {}
}

File 12 of 12 : StakingRewardsV3.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

// Interfaces
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

// Libraries
import { Math } from "@openzeppelin/contracts/utils/math/Math.sol";
import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

// Contracts
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Pausable } from "@openzeppelin/contracts/security/Pausable.sol";
import { ContractWhitelist } from "./ContractWhitelist.sol";

contract StakingRewardsV3 is
  ReentrancyGuard,
  Ownable,
  Pausable,
  ContractWhitelist
{
  using SafeMath for uint256;
  using SafeERC20 for IERC20;

  /* ========== STATE VARIABLES ========== */

  IERC20 public rewardToken;
  IERC20 public stakingToken;

  uint256 public boost;
  uint256 public periodFinish;
  uint256 public boostedFinish;
  uint256 public rewardRate;
  uint256 public rewardDuration;
  uint256 public lastUpdateTime;
  uint256 public rewardPerTokenStored;
  uint256 public boostedTimePeriod;

  uint256 private _totalSupply;

  mapping(address => uint256) public userRewardPerTokenPaid;
  mapping(address => uint256) public rewardEarned;

  mapping(address => uint256) private _balances;

  /* ========== CONSTRUCTOR ========== */

  constructor(
    address _rewardToken,
    address _stakingToken,
    uint256 _rewardsDuration,
    uint256 _boostedTimePeriod,
    uint256 _boost
  ) {
    rewardToken = IERC20(_rewardToken);
    stakingToken = IERC20(_stakingToken);
    rewardDuration = _rewardsDuration;
    boostedTimePeriod = _boostedTimePeriod;
    boost = _boost;
  }

  /* ========== VIEWS ========== */

  /// @notice Returns the total balance of the staking token in the contract
  function totalSupply() external view returns (uint256) {
    return _totalSupply;
  }

  /// @notice Returns a users deposit of the staking token in the contract
  /// @param account address of the account
  function balanceOf(address account) external view returns (uint256) {
    return _balances[account];
  }

  /// @notice Returns the last time when a reward was applicable
  function lastTimeRewardApplicable() public view returns (uint256) {
    uint256 timeApp = Math.min(block.timestamp, periodFinish);
    return timeApp;
  }

  /// @notice Returns the reward per staking token
  function rewardPerToken() public view returns (uint256 perTokenRate) {
    if (_totalSupply == 0) {
      perTokenRate = rewardPerTokenStored;
      return perTokenRate;
    }
    if (block.timestamp < boostedFinish) {
      perTokenRate = rewardPerTokenStored.add(
        lastTimeRewardApplicable()
          .sub(lastUpdateTime)
          .mul(rewardRate.mul(boost))
          .mul(1e18)
          .div(_totalSupply)
      );
      return perTokenRate;
    } else {
      if (lastUpdateTime < boostedFinish) {
        perTokenRate = rewardPerTokenStored
          .add(
            boostedFinish
              .sub(lastUpdateTime)
              .mul(rewardRate.mul(boost))
              .mul(1e18)
              .div(_totalSupply)
          )
          .add(
            lastTimeRewardApplicable()
              .sub(boostedFinish)
              .mul(rewardRate)
              .mul(1e18)
              .div(_totalSupply)
          );
        return perTokenRate;
      } else {
        perTokenRate = rewardPerTokenStored.add(
          lastTimeRewardApplicable()
            .sub(lastUpdateTime)
            .mul(rewardRate)
            .mul(1e18)
            .div(_totalSupply)
        );
        return perTokenRate;
      }
    }
  }

  /// @notice Returns the amount of rewards earned by an account
  /// @param account address of the account
  function earned(address account) public view returns (uint256 tokensEarned) {
    uint256 perTokenRate = rewardPerToken();
    tokensEarned = _balances[account]
      .mul(perTokenRate.sub(userRewardPerTokenPaid[account]))
      .div(1e18)
      .add(rewardEarned[account]);
  }

  /* ========== MUTATIVE FUNCTIONS ========== */

  /// @notice Allows to stake the staking token into the contract for rewards
  /// @param amount amount of staking token to stake
  function stake(uint256 amount)
    external
    whenNotPaused
    nonReentrant
    updateReward(msg.sender)
  {
    _isEligibleSender();
    require(amount > 0, "Cannot stake 0");
    _totalSupply = _totalSupply.add(amount);
    _balances[msg.sender] = _balances[msg.sender].add(amount);
    stakingToken.safeTransferFrom(msg.sender, address(this), amount);
    emit Staked(msg.sender, amount);
  }

  /// @notice Allows to unstake the staking token from the contract
  /// @param amount amount of staking token to unstake
  function unstake(uint256 amount)
    public
    whenNotPaused
    nonReentrant
    updateReward(msg.sender)
  {
    _isEligibleSender();
    require(amount > 0, "Cannot withdraw 0");
    require(amount <= _balances[msg.sender], "Insufficent balance");
    _totalSupply = _totalSupply.sub(amount);
    _balances[msg.sender] = _balances[msg.sender].sub(amount);
    stakingToken.safeTransfer(msg.sender, amount);
    emit Unstaked(msg.sender, amount);
  }

  /// @notice Allows to claim rewards from the contract for staking
  function claim() public whenNotPaused nonReentrant updateReward(msg.sender) {
    _isEligibleSender();
    uint256 _rewardEarned = rewardEarned[msg.sender];
    if (_rewardEarned > 0) {
      rewardEarned[msg.sender] = 0;
      rewardToken.safeTransfer(msg.sender, _rewardEarned);
    }

    emit RewardPaid(msg.sender, _rewardEarned);
  }

  /// @notice Allows to exit the contract by unstaking all staked tokens and claiming rewards
  function exit() external {
    unstake(_balances[msg.sender]);
    claim();
  }

  /* ========== RESTRICTED FUNCTIONS ========== */

  /// @notice Transfers all funds to msg.sender
  /// @dev Can only be called by the owner
  /// @param tokens The list of erc20 tokens to withdraw
  /// @param transferNative Whether should transfer the native currency
  function emergencyWithdraw(address[] calldata tokens, bool transferNative)
    external
    onlyOwner
    returns (bool)
  {
    if (transferNative) payable(msg.sender).transfer(address(this).balance);

    IERC20 token;

    for (uint256 i = 0; i < tokens.length; i++) {
      token = IERC20(tokens[i]);
      token.safeTransfer(msg.sender, token.balanceOf(address(this)));
    }

    emit EmergencyWithdraw(msg.sender);

    return true;
  }

  /// @notice Ends the current rewards
  /// @dev Can only be called by the owner
  function endRewards() public onlyOwner returns (uint256) {
    uint256 _rewards = rewardToken.balanceOf(address(this));
    if (stakingToken == rewardToken) {
      _rewards = _rewards.sub(_totalSupply);
    }
    periodFinish = block.timestamp;
    IERC20(rewardToken).safeTransfer(msg.sender, _rewards);
    return _rewards;
  }

  /// @notice Start a new reward period by sending rewards
  /// @dev Can only be called by the owner
  /// @param rewardAmount the amount of rewards to be distributed
  function notifyRewardAmount(uint256 rewardAmount)
    external
    updateReward(address(0))
    onlyOwner
  {
    rewardToken.safeTransferFrom(msg.sender, address(this), rewardAmount);

    if (block.timestamp >= periodFinish) {
      rewardRate = rewardAmount.div(rewardDuration.add(boostedTimePeriod));
      boostedFinish = block.timestamp.add(boostedTimePeriod);
    } else {
      uint256 remaining = periodFinish.sub(block.timestamp);
      uint256 leftoverReward = remaining.mul(rewardRate);
      rewardRate = rewardAmount.add(leftoverReward).div(rewardDuration);
    }

    lastUpdateTime = block.timestamp;
    periodFinish = block.timestamp.add(rewardDuration);

    emit RewardAdded(rewardAmount);
  }

  /// @notice Update the rewards duration
  /// @dev Can only be called by the owner
  /// @param _rewardDuration the rewards duration
  function updateRewardDuration(uint256 _rewardDuration) external onlyOwner {
    rewardDuration = _rewardDuration;

    emit RewardDurationUpdated(_rewardDuration);
  }

  /// @notice Update the boosted time period
  /// @dev Can only be called by the owner
  /// @param _boostedTimePeriod the boosted time period
  function updateBoostedTimePeriod(uint256 _boostedTimePeriod)
    external
    onlyOwner
  {
    boostedTimePeriod = _boostedTimePeriod;

    emit BoostedTimePeriodUpdated(_boostedTimePeriod);
  }

  /// @notice Update the boost
  /// @dev Can only be called by the owner
  /// @param _boost the boost
  function updateBoost(uint256 _boost) external onlyOwner {
    boost = _boost;

    emit BoostUpdated(_boost);
  }

  /// @notice Adds to the contract whitelist
  /// @dev Can only be called by the owner
  /// @param _contract the contract to be added to the whitelist
  function addToContractWhitelist(address _contract) external onlyOwner {
    _addToContractWhitelist(_contract);
  }

  /// @notice Removes from the contract whitelist
  /// @dev Can only be called by the owner
  /// @param _contract the contract to be removed from the whitelist
  function removeFromContractWhitelist(address _contract) external onlyOwner {
    _removeFromContractWhitelist(_contract);
  }

  /// @notice Pauses the contract
  /// @dev Can only be called by the owner
  function pause() external onlyOwner {
    _pause();
  }

  /// @notice Unpauses the contract
  /// @dev Can only be called by the owner
  function unpause() external onlyOwner {
    _unpause();
  }

  /* ========== MODIFIERS ========== */

  // Modifier *Update Reward modifier*
  modifier updateReward(address account) {
    rewardPerTokenStored = rewardPerToken();
    lastUpdateTime = lastTimeRewardApplicable();
    if (account != address(0)) {
      rewardEarned[account] = earned(account);
      userRewardPerTokenPaid[account] = rewardPerTokenStored;
    }
    _;
  }

  /* ========== EVENTS ========== */

  event EmergencyWithdraw(address sender);
  event RewardDurationUpdated(uint256 rewardDuration);
  event BoostedTimePeriodUpdated(uint256 boostedTimePeriod);
  event BoostUpdated(uint256 boost);
  event RewardAdded(uint256 rewardAmount);
  event Staked(address indexed user, uint256 amount);
  event Unstaked(address indexed user, uint256 amount);
  event RewardPaid(address indexed user, uint256 reward);
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"AddToContractWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"boost","type":"uint256"}],"name":"BoostUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"boostedTimePeriod","type":"uint256"}],"name":"BoostedTimePeriodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"EmergencyWithdraw","type":"event"},{"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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"RemoveFromContractWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardDuration","type":"uint256"}],"name":"RewardDurationUpdated","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"addToContractWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostedFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostedTimePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"tokensEarned","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"bool","name":"transferNative","type":"bool"}],"name":"emergencyWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"removeFromContractWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"perTokenRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boost","type":"uint256"}],"name":"updateBoost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boostedTimePeriod","type":"uint256"}],"name":"updateBoostedTimePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardDuration","type":"uint256"}],"name":"updateRewardDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060016000818155736c2c06790b3e3e3c38e12ee22f8183b37a13ee5591737418f5a2621e13c05d1efbd71ec922070794b90a9162278d0091610052336100a0565b6001805460ff60a01b19169055600380546001600160a01b039687166001600160a01b0319918216179091556004805495909616941693909317909355600955600c919091556005556100f2565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b5e806101016000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80638456cb5911610130578063c8f33c91116100b8578063e9fad8ee1161007c578063e9fad8ee14610472578063ebe2b12b1461047a578063f2fde38b14610483578063f520e7e514610496578063f7c618c11461049f57600080fd5b8063c8f33c9114610447578063c9b6b2b114610450578063cd3daf9d14610459578063d9cd1ca014610461578063df136d651461046957600080fd5b8063a694fc3a116100ff578063a694fc3a146103f2578063a81cc9ac14610405578063ac2c541314610418578063acc3a00614610421578063c3d9ed391461043457600080fd5b80638456cb59146103b05780638b876347146103b85780638da5cb5b146103d8578063a66f42c0146103e957600080fd5b80633f4ba83a116101b3578063715018a611610182578063715018a61461035957806372f702f3146103615780637b0a47ee1461038c5780637c4b52cb1461039557806380faa57d146103a857600080fd5b80633f4ba83a1461030e5780634e71d92d146103165780635c975abb1461031e57806370a082311461033057600080fd5b806316ba6bf3116101fa57806316ba6bf31461029d57806318160ddd146102bd5780632e17de78146102c5578063391feebb146102d85780633c6b16ab146102fb57600080fd5b80628cc2621461022b578063070a888f146102515780631627905514610266578063169db4ab1461028a575b600080fd5b61023e610239366004611854565b6104b2565b6040519081526020015b60405180910390f35b61026461025f36600461187d565b610538565b005b61027a610274366004611854565b3b151590565b6040519015158152602001610248565b61026461029836600461187d565b6105a7565b61023e6102ab366004611854565b600f6020526000908152604090205481565b600d5461023e565b6102646102d336600461187d565b610606565b61027a6102e6366004611854565b60026020526000908152604090205460ff1681565b61026461030936600461187d565b6107e9565b61026461095a565b61026461098e565b600154600160a01b900460ff1661027a565b61023e61033e366004611854565b6001600160a01b031660009081526010602052604090205490565b610264610ab4565b600454610374906001600160a01b031681565b6040516001600160a01b039091168152602001610248565b61023e60085481565b61027a6103a33660046118a4565b610ae8565b61023e610c5e565b610264610c73565b61023e6103c6366004611854565b600e6020526000908152604090205481565b6001546001600160a01b0316610374565b61023e60055481565b61026461040036600461187d565b610ca5565b61026461041336600461187d565b610e24565b61023e60075481565b61026461042f366004611854565b610e83565b610264610442366004611854565b610eb9565b61023e600a5481565b61023e600c5481565b61023e610eec565b61023e610ffd565b61023e600b5481565b6102646110ee565b61023e60065481565b610264610491366004611854565b61110f565b61023e60095481565b600354610374906001600160a01b031681565b6000806104bd610eec565b6001600160a01b0384166000908152600f6020908152604080832054600e909252909120549192506105319161052b90670de0b6b3a764000090610525906105069087906111a7565b6001600160a01b038916600090815260106020526040902054906111b3565b906111bf565b906111cb565b9392505050565b6001546001600160a01b0316331461056b5760405162461bcd60e51b81526004016105629061192a565b60405180910390fd5b60098190556040518181527ffeece2f615b2fecca6c26deadea49416a6ba6b52b2cd2613065fd6a787cf1240906020015b60405180910390a150565b6001546001600160a01b031633146105d15760405162461bcd60e51b81526004016105629061192a565b60058190556040518181527fd70f5934cda3f49f14c8c57e9c866d50ca598643b5f3a27e31e8be098103b1df9060200161059c565b600154600160a01b900460ff16156106305760405162461bcd60e51b81526004016105629061195f565b600260005414156106535760405162461bcd60e51b815260040161056290611989565b600260005533610661610eec565b600b5561066c610c5e565b600a556001600160a01b038116156106b357610687816104b2565b6001600160a01b0382166000908152600f6020908152604080832093909355600b54600e909152919020555b6106bb6111d7565b600082116106ff5760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b6044820152606401610562565b336000908152601060205260409020548211156107545760405162461bcd60e51b8152602060048201526013602482015272496e737566666963656e742062616c616e636560681b6044820152606401610562565b600d5461076190836111a7565b600d553360009081526010602052604090205461077e90836111a7565b336000818152601060205260409020919091556004546107aa916001600160a01b03909116908461123d565b60405182815233907f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75906020015b60405180910390a250506001600055565b60006107f3610eec565b600b556107fe610c5e565b600a556001600160a01b0381161561084557610819816104b2565b6001600160a01b0382166000908152600f6020908152604080832093909355600b54600e909152919020555b6001546001600160a01b0316331461086f5760405162461bcd60e51b81526004016105629061192a565b600354610887906001600160a01b03163330856112a5565b60065442106108ca576108b16108aa600c546009546111cb90919063ffffffff16565b83906111bf565b600855600c546108c29042906111cb565b60075561090d565b6006546000906108da90426111a7565b905060006108f3600854836111b390919063ffffffff16565b6009549091506109079061052586846111cb565b60085550505b42600a81905560095461092091906111cb565b6006556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a15050565b6001546001600160a01b031633146109845760405162461bcd60e51b81526004016105629061192a565b61098c6112e3565b565b600154600160a01b900460ff16156109b85760405162461bcd60e51b81526004016105629061195f565b600260005414156109db5760405162461bcd60e51b815260040161056290611989565b6002600055336109e9610eec565b600b556109f4610c5e565b600a556001600160a01b03811615610a3b57610a0f816104b2565b6001600160a01b0382166000908152600f6020908152604080832093909355600b54600e909152919020555b610a436111d7565b336000908152600f60205260409020548015610a8257336000818152600f6020526040812055600354610a82916001600160a01b03909116908361123d565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486906020016107d8565b6001546001600160a01b03163314610ade5760405162461bcd60e51b81526004016105629061192a565b61098c6000611380565b6001546000906001600160a01b03163314610b155760405162461bcd60e51b81526004016105629061192a565b8115610b495760405133904780156108fc02916000818181858888f19350505050158015610b47573d6000803e3d6000fd5b505b6000805b84811015610c1f57858582818110610b6757610b676119c0565b9050602002016020810190610b7c9190611854565b6040516370a0823160e01b8152306004820152909250610c0d9033906001600160a01b038516906370a082319060240160206040518083038186803b158015610bc457600080fd5b505afa158015610bd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfc91906119d6565b6001600160a01b038516919061123d565b80610c1781611a05565b915050610b4d565b506040513381527f5e7b34819cd91b239220bec92fcfd3c10da2214ba13e4e2b1f6c9cfdbd68a9a29060200160405180910390a1506001949350505050565b600080610c6d426006546113d2565b92915050565b6001546001600160a01b03163314610c9d5760405162461bcd60e51b81526004016105629061192a565b61098c6113e8565b600154600160a01b900460ff1615610ccf5760405162461bcd60e51b81526004016105629061195f565b60026000541415610cf25760405162461bcd60e51b815260040161056290611989565b600260005533610d00610eec565b600b55610d0b610c5e565b600a556001600160a01b03811615610d5257610d26816104b2565b6001600160a01b0382166000908152600f6020908152604080832093909355600b54600e909152919020555b610d5a6111d7565b60008211610d9b5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b6044820152606401610562565b600d54610da890836111cb565b600d5533600090815260106020526040902054610dc590836111cb565b33600081815260106020526040902091909155600454610df2916001600160a01b039091169030856112a5565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016107d8565b6001546001600160a01b03163314610e4e5760405162461bcd60e51b81526004016105629061192a565b600c8190556040518181527ff93a50a66d32c098d21788f6934787a8162146b63c21bdd9b52e0e89ad28ee6d9060200161059c565b6001546001600160a01b03163314610ead5760405162461bcd60e51b81526004016105629061192a565b610eb68161144d565b50565b6001546001600160a01b03163314610ee35760405162461bcd60e51b81526004016105629061192a565b610eb681611550565b6000600d5460001415610f005750600b5490565b600754421015610f6157610f5c610f53600d54610525670de0b6b3a7640000610f4d610f396005546008546111b390919063ffffffff16565b610f4d600a54610f47610c5e565b906111a7565b906111b3565b600b54906111cb565b905090565b600754600a541015610fd457610f5c610f96600d54610525670de0b6b3a7640000610f4d600854610f4d600754610f47610c5e565b61052b610f53600d54610525670de0b6b3a7640000610f4d610fc56005546008546111b390919063ffffffff16565b600a54600754610f4d916111a7565b610f5c610f53600d54610525670de0b6b3a7640000610f4d600854610f4d600a54610f47610c5e565b6001546000906001600160a01b0316331461102a5760405162461bcd60e51b81526004016105629061192a565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561106e57600080fd5b505afa158015611082573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a691906119d6565b6003546004549192506001600160a01b03918216911614156110d357600d546110d09082906111a7565b90505b42600655600354610f5c906001600160a01b0316338361123d565b3360009081526010602052604090205461110790610606565b61098c61098e565b6001546001600160a01b031633146111395760405162461bcd60e51b81526004016105629061192a565b6001600160a01b03811661119e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610562565b610eb681611380565b60006105318284611a20565b60006105318284611a37565b60006105318284611a56565b60006105318284611a78565b33321461098c573360009081526002602052604090205460ff1661098c5760405162461bcd60e51b815260206004820152601c60248201527f436f6e7472616374206d7573742062652077686974656c6973746564000000006044820152606401610562565b6040516001600160a01b0383166024820152604481018290526112a090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611601565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526112dd9085906323b872dd60e01b90608401611269565b50505050565b600154600160a01b900460ff166113335760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610562565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008183106113e15781610531565b5090919050565b600154600160a01b900460ff16156114125760405162461bcd60e51b81526004016105629061195f565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113633390565b803b61149b5760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206d757374206265206120636f6e74726163740000000000006044820152606401610562565b6001600160a01b03811660009081526002602052604090205460ff16156115045760405162461bcd60e51b815260206004820152601c60248201527f436f6e747261637420616c72656164792077686974656c6973746564000000006044820152606401610562565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517ffbd3cde7ff522a917e485c8ed2a6e87590887ab399f5ac312307903f498543079190a250565b6001600160a01b03811660009081526002602052604090205460ff166115b85760405162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206e6f742077686974656c697374656400000000000000006044820152606401610562565b6001600160a01b038116600081815260026020526040808220805460ff19169055517f8e81447740597754af5db3e176253a36f7981a9549f48ace3f0cb233913f9d859190a250565b6000611656826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116d39092919063ffffffff16565b8051909150156112a057808060200190518101906116749190611a90565b6112a05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610562565b60606116e284846000856116ea565b949350505050565b60608247101561174b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610562565b6001600160a01b0385163b6117a25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610562565b600080866001600160a01b031685876040516117be9190611ad9565b60006040518083038185875af1925050503d80600081146117fb576040519150601f19603f3d011682016040523d82523d6000602084013e611800565b606091505b509150915061181082828661181b565b979650505050505050565b6060831561182a575081610531565b82511561183a5782518084602001fd5b8160405162461bcd60e51b81526004016105629190611af5565b60006020828403121561186657600080fd5b81356001600160a01b038116811461053157600080fd5b60006020828403121561188f57600080fd5b5035919050565b8015158114610eb657600080fd5b6000806000604084860312156118b957600080fd5b833567ffffffffffffffff808211156118d157600080fd5b818601915086601f8301126118e557600080fd5b8135818111156118f457600080fd5b8760208260051b850101111561190957600080fd5b6020928301955093505084013561191f81611896565b809150509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119e857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415611a1957611a196119ef565b5060010190565b600082821015611a3257611a326119ef565b500390565b6000816000190483118215151615611a5157611a516119ef565b500290565b600082611a7357634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611a8b57611a8b6119ef565b500190565b600060208284031215611aa257600080fd5b815161053181611896565b60005b83811015611ac8578181015183820152602001611ab0565b838111156112dd5750506000910152565b60008251611aeb818460208701611aad565b9190910192915050565b6020815260008251806020840152611b14816040850160208701611aad565b601f01601f1916919091016040019291505056fea264697066735822122002ca700a2034c3492b53a874df5a1cc57d30089c13a6ccc1ad241594d15e4e7b64736f6c63430008090033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.