Contract 0xed345d7a19daa7d5a00285f04f342d0ba344bd99

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x62c69a1c25a09de5d2818845c82c3b6205b5f46d6369c24c27589779acd12b53Get Reward191909132021-09-17 3:26:2016 mins ago0x705415b435751ecc1793a1071f8ac9c2d8bfee87 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.00098587
0x3f28d765608c7164fa1dbe23ceb0674fcee720ed8cbdfab121b94b3c69dc6d01Stake With Permi...191855092021-09-16 23:27:274 hrs 14 mins ago0x91911e488791fb4629edd8d1a5b4a685d44ce46a IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000114323713
0x1912ee93d3f1a0782a49bf4a797b23d94eea7a4ad4ef524f93ca03d366d79621Exit191850492021-09-16 23:09:234 hrs 33 mins ago0x91911e488791fb4629edd8d1a5b4a685d44ce46a IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.0006370512
0x48e3b260bb3486267b0ae4d136aa3b5776076c22842095f9ff547369880ad99dStake With Permi...191760272021-09-16 16:24:2811 hrs 17 mins ago0xb13d9bc2e6ea528cc80159f35d4519c1698173e5 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.004069926
0x9223d72ee5988742a387b8296089fb52446e485cc3c63a935739c34627a8c9c4Exit191759072021-09-16 16:19:2411 hrs 23 mins ago0xb13d9bc2e6ea528cc80159f35d4519c1698173e5 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.004820928
0x5c4b7f9c3378e5ea4e265144545381be30871fff87ec242f8731f6c8820cd6d0Stake With Permi...191758902021-09-16 16:18:1611 hrs 24 mins ago0xb13d9bc2e6ea528cc80159f35d4519c1698173e5 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.00375765192
0x7cc83d4bfe9df0c8b4fd861374a8c694179f1ba77a84e51273f41021d314a261Get Reward191751872021-09-16 15:44:3811 hrs 57 mins ago0xa63a1db359d5efd0d5aa874e93849379ad75fe38 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.001675979
0x8448286d6c405730457e6ca7e57e05ecfb7599bc1d4e171bcfb3ff98ded7398eExit191750822021-09-16 15:40:1812 hrs 2 mins ago0xb13d9bc2e6ea528cc80159f35d4519c1698173e5 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.003391660588
0x94453b5b9dcda8876be6ace21936031bc43e1eadbcf6c6f375edcff61e64df27Stake With Permi...191750632021-09-16 15:39:0212 hrs 3 mins ago0xb13d9bc2e6ea528cc80159f35d4519c1698173e5 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.004513696
0x4b2e7eda78075fd9828cdef97ec8b7d82ce88965eda70d53679d569de8a59659Exit191747562021-09-16 15:21:1512 hrs 21 mins ago0xb13d9bc2e6ea528cc80159f35d4519c1698173e5 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.005539128
0x86148f02a1b18eef59215d505a5f8e2be1c27ae7fb394f8efb69180a5408da63Get Reward191740122021-09-16 14:53:2512 hrs 49 mins ago0x68a173eb938fcfe323e47947fd29877e5b318b60 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.00162974
0x0d4bf830abfcda8f0455aeee02a3431f67bbf4a8334c501053a5798758a10ea6Stake With Permi...191739512021-09-16 14:49:1712 hrs 53 mins ago0x9c24f1c5b2fade1aac8f4135bd90614a2cad43e8 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.00136748
0x9056d30f3fd08eb2e39893c14fa393d3f834ce1ed76f45337406273196b41850Get Reward191734902021-09-16 14:28:4513 hrs 13 mins ago0xceff98a045a3732f3e26247a29ba5e7d52fe84b2 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.003741550187
0x35320d010e6161ebe5221e9505855edd96de5134c8a602df430ccf0709c5d239Exit191724422021-09-16 13:39:4214 hrs 2 mins ago0xd6288ea8531e869b9c15da603a259e04804c1b14 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.00375765192
0x171683e0b2354a84fcef18759223520a6e90856b60e67570226e4977ca7cf6fbExit191720302021-09-16 13:19:0614 hrs 23 mins ago0x7bb8e5169fb071e062f71cbd12a12788aa02e258 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.00131884
0xc76fad7989f302c3ee02f27f3cb94376000c8fe54ce0d6a51e9319aeb6c74280Get Reward191706322021-09-16 12:15:3215 hrs 26 mins ago0xf7f83e73480afbc76754e52404a10c70ebb62eb4 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.001478805
0xda1dd7a7651e9c5555506da6b01a8c2d51bcb9d0ee868de97166ac9c52c15010Get Reward191705092021-09-16 12:10:4215 hrs 31 mins ago0x4e81afc57c4d32e6dfc393ba7439ce08ecc8c263 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000569465633
0x92055de2b161bce4b0c0951fc18fd791387590577d07b48bc043b10939001d70Get Reward191694152021-09-16 11:20:1516 hrs 22 mins ago0x14a1f478fea05cd5e718783178b93cbd7d16ab01 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.001303792
0xed82b9341a8ed1c9ec088a1a0f0fdcd55c81b2887b11030c8ca31e745801cd35Stake With Permi...191678192021-09-16 10:11:2217 hrs 31 mins ago0x00df64b8044aa7126e0f88f286b3c483c5e5927a IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000210834
0x434cf29ab53c0ada1915ed4bd5c7834f08568d24c2c906deced3fc13e2a3f0e9Get Reward191677012021-09-16 10:07:1817 hrs 35 mins ago0x00df64b8044aa7126e0f88f286b3c483c5e5927a IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000277148
0x9ba0388599a2d0b1d769a99956232d16681c593042e44f3fe9c54894515717a9Get Reward191662642021-09-16 9:09:0518 hrs 33 mins ago0xb13d9bc2e6ea528cc80159f35d4519c1698173e5 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000098587009
0x2253a189e05629d8afafcbb083405ffa965ebfdcee4217bd92f94a4d1d584b3bGet Reward191655742021-09-16 8:43:3418 hrs 58 mins ago0xb310483a23104d08b048ff3e0f7d669c664a9804 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000492935
0x6cf6800c4f6eb774ca2905cdee5b93e35aa4982fa9815177115ddcaa28d532f7Get Reward191639352021-09-16 7:38:3120 hrs 3 mins ago0x34332cf388b09b9c1aea003d9d00749ef770a0dd IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000777483
0xc1c550a9c0317b40dd4d154a32fb37780b394469531cce256437b6674078274bGet Reward191639172021-09-16 7:37:5520 hrs 4 mins ago0x2fdd0b11ba806be442dfc911e3ed62cb6f634ce2 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.000528487989
0x80ee2cd532eb8394d108843f6877ed16bbd4a1eb0e29ed08c49c85065da56078Get Reward191624172021-09-16 6:39:3521 hrs 2 mins ago0x078d241dbe88c96d02e69cee7e13be12b3612205 IN  0xed345d7a19daa7d5a00285f04f342d0ba344bd990 MATIC0.00081487
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x4a69281dd12e5dbc1d70f316e12a75e9fe4061a8e99047b714bde355192423e5186270202021-09-01 14:22:3215 days 13 hrs ago 0x5eec262b05a57da9beb5fe96a34aa4ed0c5e029f  Contract Creation0 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x4a73218ef2e820987c59f838906a82455f42d98b

Contract Name:
StakingRewards

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-16
*/

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

pragma solidity ^0.5.16;

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

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

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

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

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        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-solidity/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) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b != 0, "SafeMath: modulo by zero");
        return a % b;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see `ERC20Detailed`.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei.
     *
     * > Note that this information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * `IERC20.balanceOf` and `IERC20.transfer`.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}


/**
 * @dev Collection of functions related to the address type,
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * > It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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);
        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");
        }
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied 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.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

// Inheritancea
interface IStakingRewards {
    // Views
    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function earned(address account) external view returns (uint256);

    function totalSupply() external view returns (uint256);

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

    // Mutative

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function getReward() external;

    function exit() external;
}

contract RewardsDistributionRecipient {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward, uint256 duration) external;

    modifier onlyRewardsDistribution() {
        require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract");
        _;
    }
}

contract StakingRewards is IStakingRewards, RewardsDistributionRecipient, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

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

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

    constructor(
        address _rewardsDistribution,
        address _rewardsToken,
        address _stakingToken
    ) public {
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDistribution = _rewardsDistribution;
    }

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

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

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

    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 _balances[account].mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]);
    }

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

    function stakeWithPermit(uint256 amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);

        // permit
        IUniswapV2ERC20(address(stakingToken)).permit(msg.sender, address(this), amount, deadline, v, r, s);

        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function stake(uint256 amount) external nonReentrant updateReward(msg.sender) {
        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);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

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

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

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

    function notifyRewardAmount(uint256 reward, uint256 rewardsDuration) external onlyRewardsDistribution updateReward(address(0)) {
        require(block.timestamp.add(rewardsDuration) >= periodFinish, "Cannot reduce existing period");

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

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit RewardAdded(reward, periodFinish);
    }

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

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

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

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

interface IUniswapV2ERC20 {
    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"periodFinish","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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"rewardsDuration","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":true,"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"stakeWithPermit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526000600455600060055534801561001a57600080fd5b506040516113223803806113228339818101604052606081101561003d57600080fd5b508051602082015160409092015160018055600280546001600160a01b039485166001600160a01b0319918216179091556003805492851692821692909217909155600080549390921692169190911790556112848061009e6000396000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c806380faa57d116100ad578063d1af0c7d11610071578063d1af0c7d14610295578063df136d651461029d578063e9fad8ee146102a5578063ebe2b12b146102ad578063ecd9ba82146102b55761012b565b806380faa57d1461023a5780638b87634714610242578063a694fc3a14610268578063c8f33c9114610285578063cd3daf9d1461028d5761012b565b80633d18b912116100f45780633d18b912146101d85780633fc6df6e146101e057806370a082311461020457806372f702f31461022a5780637b0a47ee146102325761012b565b80628cc262146101305780630700037d1461016857806318160ddd1461018e578063246132f9146101965780632e1a7d4d146101bb575b600080fd5b6101566004803603602081101561014657600080fd5b50356001600160a01b03166102ed565b60408051918252519081900360200190f35b6101566004803603602081101561017e57600080fd5b50356001600160a01b0316610383565b610156610395565b6101b9600480360360408110156101ac57600080fd5b508035906020013561039c565b005b6101b9600480360360208110156101d157600080fd5b503561064e565b6101b96107dd565b6101e8610901565b604080516001600160a01b039092168252519081900360200190f35b6101566004803603602081101561021a57600080fd5b50356001600160a01b0316610910565b6101e861092b565b61015661093a565b610156610940565b6101566004803603602081101561025857600080fd5b50356001600160a01b0316610953565b6101b96004803603602081101561027e57600080fd5b5035610965565b610156610aee565b610156610af4565b6101e8610b4e565b610156610b5d565b6101b9610b63565b610156610b86565b6101b9600480360360a08110156102cb57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610b8c565b6001600160a01b038116600090815260096020908152604080832054600890925282205461037d919061037190670de0b6b3a7640000906103659061034090610334610af4565b9063ffffffff610dae16565b6001600160a01b0388166000908152600b60205260409020549063ffffffff610e0b16565b9063ffffffff610e6b16565b9063ffffffff610ed516565b92915050565b60096020526000908152604090205481565b600a545b90565b6000546001600160a01b031633146103e55760405162461bcd60e51b815260040180806020018281038252602a8152602001806111fc602a913960400191505060405180910390fd5b60006103ef610af4565b6007556103fa610940565b6006556001600160a01b0381161561044157610415816102ed565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600454610454428463ffffffff610ed516565b10156104a7576040805162461bcd60e51b815260206004820152601d60248201527f43616e6e6f7420726564756365206578697374696e6720706572696f64000000604482015290519081900360640190fd5b60045442106104c8576104c0838363ffffffff610e6b16565b600555610513565b6004546000906104de904263ffffffff610dae16565b905060006104f760055483610e0b90919063ffffffff16565b905061050d84610365878463ffffffff610ed516565b60055550505b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561055e57600080fd5b505afa158015610572573d6000803e3d6000fd5b505050506040513d602081101561058857600080fd5b5051905061059c818463ffffffff610e6b16565b60055411156105f2576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b426006819055610608908463ffffffff610ed516565b600481905560408051868152602081019290925280517f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f559281900390910190a150505050565b6001805481019081905533610661610af4565b60075561066c610940565b6006556001600160a01b038116156106b357610687816102ed565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600083116106fc576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600a5461070f908463ffffffff610dae16565b600a55336000908152600b6020526040902054610732908463ffffffff610dae16565b336000818152600b602052604090209190915560035461075e916001600160a01b039091169085610f2f565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25060015481146107d9576040805162461bcd60e51b815260206004820152601f60248201526000805160206111bb833981519152604482015290519081900360640190fd5b5050565b60018054810190819055336107f0610af4565b6007556107fb610940565b6006556001600160a01b0381161561084257610816816102ed565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b3360009081526009602052604090205480156108b85733600081815260096020526040812055600254610881916001600160a01b039091169083610f2f565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505060015481146108fe576040805162461bcd60e51b815260206004820152601f60248201526000805160206111bb833981519152604482015290519081900360640190fd5b50565b6000546001600160a01b031681565b6001600160a01b03166000908152600b602052604090205490565b6003546001600160a01b031681565b60055481565b600061094e42600454610f86565b905090565b60086020526000908152604090205481565b6001805481019081905533610978610af4565b600755610983610940565b6006556001600160a01b038116156109ca5761099e816102ed565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60008311610a10576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600a54610a23908463ffffffff610ed516565b600a55336000908152600b6020526040902054610a46908463ffffffff610ed516565b336000818152600b6020526040902091909155600354610a73916001600160a01b03909116903086610f9c565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146107d9576040805162461bcd60e51b815260206004820152601f60248201526000805160206111bb833981519152604482015290519081900360640190fd5b60065481565b6000600a5460001415610b0a5750600754610399565b61094e610b3f600a54610365670de0b6b3a7640000610b33600554610b33600654610334610940565b9063ffffffff610e0b16565b6007549063ffffffff610ed516565b6002546001600160a01b031681565b60075481565b336000908152600b6020526040902054610b7c9061064e565b610b846107dd565b565b60045481565b6001805481019081905533610b9f610af4565b600755610baa610940565b6006556001600160a01b03811615610bf157610bc5816102ed565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b60008711610c37576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600a54610c4a908863ffffffff610ed516565b600a55336000908152600b6020526040902054610c6d908863ffffffff610ed516565b336000818152600b602052604080822093909355600354835163d505accf60e01b81526004810193909352306024840152604483018b9052606483018a905260ff8916608484015260a4830188905260c4830187905292516001600160a01b039093169263d505accf9260e480820193929182900301818387803b158015610cf457600080fd5b505af1158015610d08573d6000803e3d6000fd5b5050600354610d2b92506001600160a01b0316905033308a63ffffffff610f9c16565b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2506001548114610da6576040805162461bcd60e51b815260206004820152601f60248201526000805160206111bb833981519152604482015290519081900360640190fd5b505050505050565b600082821115610e05576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610e1a5750600061037d565b82820282848281610e2757fe5b0414610e645760405162461bcd60e51b81526004018080602001828103825260218152602001806111db6021913960400191505060405180910390fd5b9392505050565b6000808211610ec1576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481610ecc57fe5b04949350505050565b600082820183811015610e64576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f81908490610ffc565b505050565b6000818310610f955781610e64565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ff6908590610ffc565b50505050565b61100e826001600160a01b03166111b4565b61105f576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061109d5780518252601f19909201916020918201910161107e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146110ff576040519150601f19603f3d011682016040523d82523d6000602084013e611104565b606091505b50915091508161115b576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610ff65780806020019051602081101561117757600080fd5b5051610ff65760405162461bcd60e51b815260040180806020018281038252602a815260200180611226602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820c322ba88562bdec7ebb3d5d1adca9437e9d31218e4f8288f93c7a548433b0b3b64736f6c634300051100320000000000000000000000005eec262b05a57da9beb5fe96a34aa4ed0c5e029f000000000000000000000000831753dd7087cac61ab5644b308642cc1c33dc13000000000000000000000000853ee4b2a13f8a742d64c8f088be7ba2131f670d

Deployed ByteCode Sourcemap

15882:5661:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15882:5661:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17600:198;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17600:198:0;-1:-1:-1;;;;;17600:198:0;;:::i;:::-;;;;;;;;;;;;;;;;16382:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16382:42:0;-1:-1:-1;;;;;16382:42:0;;:::i;16902:93::-;;;:::i;19644:1229::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19644:1229:0;;;;;;;:::i;:::-;;18803:357;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18803:357:0;;:::i;19168:307::-;;;:::i;15599:34::-;;;:::i;:::-;;;;-1:-1:-1;;;;;15599:34:0;;;;;;;;;;;;;;17003:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17003:112:0;-1:-1:-1;;;;;17003:112:0;;:::i;16131:26::-;;;:::i;16202:29::-;;;:::i;17123:131::-;;;:::i;16318:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16318:57:0;-1:-1:-1;;;;;16318:57:0;;:::i;18426:369::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18426:369:0;;:::i;16238:29::-;;;:::i;17262:330::-;;;:::i;16098:26::-;;;:::i;16274:35::-;;;:::i;19483:97::-;;;:::i;16164:31::-;;;:::i;17860:558::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;17860:558:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;17600:198::-;-1:-1:-1;;;;;17773:16:0;;17654:7;17773:16;;;:7;:16;;;;;;;;;17725:22;:31;;;;;;17681:109;;17773:16;17681:87;;17763:4;;17681:77;;17704:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;-1:-1:-1;;;;;17681:18:0;;;;;;:9;:18;;;;;;;:77;:22;:77;:::i;:::-;:81;:87;:81;:87;:::i;:::-;:91;:109;:91;:109;:::i;:::-;17674:116;17600:198;-1:-1:-1;;17600:198:0:o;16382:42::-;;;;;;;;;;;;;:::o;16902:93::-;16975:12;;16902:93;;:::o;19644:1229::-;15789:19;;-1:-1:-1;;;;;15789:19:0;15775:10;:33;15767:88;;;;-1:-1:-1;;;15767:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19767:1;20999:16;:14;:16::i;:::-;20976:20;:39;21043:26;:24;:26::i;:::-;21026:14;:43;-1:-1:-1;;;;;21084:21:0;;;21080:157;;21141:15;21148:7;21141:6;:15::i;:::-;-1:-1:-1;;;;;21122:16:0;;;;;;:7;:16;;;;;;;;:34;;;;21205:20;;21171:22;:31;;;;;;:54;21080:157;19830:12;;19790:36;:15;19810;19790:36;:19;:36;:::i;:::-;:52;;19782:94;;;;;-1:-1:-1;;;19782:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19912:12;;19893:15;:31;19889:318;;19954:27;:6;19965:15;19954:27;:10;:27;:::i;:::-;19941:10;:40;19889:318;;;20034:12;;20014:17;;20034:33;;20051:15;20034:33;:16;:33;:::i;:::-;20014:53;;20082:16;20101:25;20115:10;;20101:9;:13;;:25;;;;:::i;:::-;20082:44;-1:-1:-1;20154:41:0;20179:15;20154:20;:6;20082:44;20154:20;:10;:20;:::i;:41::-;20141:10;:54;-1:-1:-1;;19889:318:0;20582:12;;:37;;;-1:-1:-1;;;20582:37:0;;20613:4;20582:37;;;;;;20567:12;;-1:-1:-1;;;;;20582:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;20582:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20582:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20582:37:0;;-1:-1:-1;20652:28:0;20582:37;20664:15;20652:28;:11;:28;:::i;:::-;20638:10;;:42;;20630:79;;;;;-1:-1:-1;;;20630:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20739:15;20722:14;:32;;;20780:36;;20800:15;20780:36;:19;:36;:::i;:::-;20765:12;:51;;;20832:33;;;;;;;;;;;;;;;;;;;;;;;;;21247:1;15866;19644:1229;;:::o;18803:357::-;14789:1;14772:18;;;;;;;;18870:10;20999:16;:14;:16::i;:::-;20976:20;:39;21043:26;:24;:26::i;:::-;21026:14;:43;-1:-1:-1;;;;;21084:21:0;;;21080:157;;21141:15;21148:7;21141:6;:15::i;:::-;-1:-1:-1;;;;;21122:16:0;;;;;;:7;:16;;;;;;;;:34;;;;21205:20;;21171:22;:31;;;;;;:54;21080:157;18910:1;18901:6;:10;18893:40;;;;;-1:-1:-1;;;18893:40:0;;;;;;;;;;;;-1:-1:-1;;;18893:40:0;;;;;;;;;;;;;;;18959:12;;:24;;18976:6;18959:24;:16;:24;:::i;:::-;18944:12;:39;19028:10;19018:21;;;;:9;:21;;;;;;:33;;19044:6;19018:33;:25;:33;:::i;:::-;19004:10;18994:21;;;;:9;:21;;;;;:57;;;;19062:12;;:45;;-1:-1:-1;;;;;19062:12:0;;;;19100:6;19062:25;:45::i;:::-;19123:29;;;;;;;;19133:10;;19123:29;;;;;;;;;;14848:1;14884:13;;14868:12;:29;14860:73;;;;;-1:-1:-1;;;14860:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14860:73:0;;;;;;;;;;;;;;;18803:357;;:::o;19168:307::-;14789:1;14772:18;;;;;;;;19222:10;20999:16;:14;:16::i;:::-;20976:20;:39;21043:26;:24;:26::i;:::-;21026:14;:43;-1:-1:-1;;;;;21084:21:0;;;21080:157;;21141:15;21148:7;21141:6;:15::i;:::-;-1:-1:-1;;;;;21122:16:0;;;;;;:7;:16;;;;;;;;:34;;;;21205:20;;21171:22;:31;;;;;;:54;21080:157;19270:10;19245:14;19262:19;;;:7;:19;;;;;;19296:10;;19292:176;;19331:10;19345:1;19323:19;;;:7;:19;;;;;:23;19361:12;;:45;;-1:-1:-1;;;;;19361:12:0;;;;19399:6;19361:25;:45::i;:::-;19426:30;;;;;;;;19437:10;;19426:30;;;;;;;;;;19292:176;21247:1;14848;14884:13;;14868:12;:29;14860:73;;;;;-1:-1:-1;;;14860:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14860:73:0;;;;;;;;;;;;;;;19168:307;:::o;15599:34::-;;;-1:-1:-1;;;;;15599:34:0;;:::o;17003:112::-;-1:-1:-1;;;;;17089:18:0;17062:7;17089:18;;;:9;:18;;;;;;;17003:112::o;16131:26::-;;;-1:-1:-1;;;;;16131:26:0;;:::o;16202:29::-;;;;:::o;17123:131::-;17180:7;17207:39;17216:15;17233:12;;17207:8;:39::i;:::-;17200:46;;17123:131;:::o;16318:57::-;;;;;;;;;;;;;:::o;18426:369::-;14789:1;14772:18;;;;;;;;18492:10;20999:16;:14;:16::i;:::-;20976:20;:39;21043:26;:24;:26::i;:::-;21026:14;:43;-1:-1:-1;;;;;21084:21:0;;;21080:157;;21141:15;21148:7;21141:6;:15::i;:::-;-1:-1:-1;;;;;21122:16:0;;;;;;:7;:16;;;;;;;;:34;;;;21205:20;;21171:22;:31;;;;;;:54;21080:157;18532:1;18523:6;:10;18515:37;;;;;-1:-1:-1;;;18515:37:0;;;;;;;;;;;;-1:-1:-1;;;18515:37:0;;;;;;;;;;;;;;;18578:12;;:24;;18595:6;18578:24;:16;:24;:::i;:::-;18563:12;:39;18647:10;18637:21;;;;:9;:21;;;;;;:33;;18663:6;18637:33;:25;:33;:::i;:::-;18623:10;18613:21;;;;:9;:21;;;;;:57;;;;18681:12;;:64;;-1:-1:-1;;;;;18681:12:0;;;;18731:4;18738:6;18681:29;:64::i;:::-;18761:26;;;;;;;;18768:10;;18761:26;;;;;;;;;;14848:1;14884:13;;14868:12;:29;14860:73;;;;;-1:-1:-1;;;14860:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14860:73:0;;;;;;;;;;;;;;16238:29;;;;:::o;17262:330::-;17309:7;17333:12;;17349:1;17333:17;17329:77;;;-1:-1:-1;17374:20:0;;17367:27;;17329:77;17436:148;17479:90;17556:12;;17479:72;17546:4;17479:62;17530:10;;17479:46;17510:14;;17479:26;:24;:26::i;:46::-;:50;:62;:50;:62;:::i;:90::-;17436:20;;;:148;:24;:148;:::i;16098:26::-;;;-1:-1:-1;;;;;16098:26:0;;:::o;16274:35::-;;;;:::o;19483:97::-;19538:10;19528:21;;;;:9;:21;;;;;;19519:31;;:8;:31::i;:::-;19561:11;:9;:11::i;:::-;19483:97::o;16164:31::-;;;;:::o;17860:558::-;14789:1;14772:18;;;;;;;;17982:10;20999:16;:14;:16::i;:::-;20976:20;:39;21043:26;:24;:26::i;:::-;21026:14;:43;-1:-1:-1;;;;;21084:21:0;;;21080:157;;21141:15;21148:7;21141:6;:15::i;:::-;-1:-1:-1;;;;;21122:16:0;;;;;;:7;:16;;;;;;;;:34;;;;21205:20;;21171:22;:31;;;;;;:54;21080:157;18022:1;18013:6;:10;18005:37;;;;;-1:-1:-1;;;18005:37:0;;;;;;;;;;;;-1:-1:-1;;;18005:37:0;;;;;;;;;;;;;;;18068:12;;:24;;18085:6;18068:24;:16;:24;:::i;:::-;18053:12;:39;18137:10;18127:21;;;;:9;:21;;;;;;:33;;18153:6;18127:33;:25;:33;:::i;:::-;18113:10;18103:21;;;;:9;:21;;;;;;:57;;;;18216:12;;18192:99;;-1:-1:-1;;;18192:99:0;;;;;;;;;18258:4;18192:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18216:12:0;;;;18192:45;;:99;;;;;18103:21;18192:99;;;;;;18103:21;18216:12;18192:99;;;5:2:-1;;;;30:1;27;20:12;5:2;18192:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;18304:12:0;;:64;;-1:-1:-1;;;;;;18304:12:0;;-1:-1:-1;18334:10:0;18354:4;18361:6;18304:64;:29;:64;:::i;:::-;18384:26;;;;;;;;18391:10;;18384:26;;;;;;;;;;14848:1;14884:13;;14868:12;:29;14860:73;;;;;-1:-1:-1;;;14860:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;14860:73:0;;;;;;;;;;;;;;;17860:558;;;;;;:::o;2159:184::-;2217:7;2250:1;2245;:6;;2237:49;;;;;-1:-1:-1;;;2237:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2309:5:0;;;2159:184::o;2594:470::-;2652:7;2896:6;2892:47;;-1:-1:-1;2926:1:0;2919:8;;2892:47;2963:5;;;2967:1;2963;:5;:1;2987:5;;;;;:10;2979:56;;;;-1:-1:-1;;;2979:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3055:1;2594:470;-1:-1:-1;;;2594:470:0:o;3532:333::-;3590:7;3689:1;3685;:5;3677:44;;;;;-1:-1:-1;;;3677:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3732:9;3748:1;3744;:5;;;;;;;3532:333;-1:-1:-1;;;;3532:333:0:o;1703:181::-;1761:7;1793:5;;;1817:6;;;;1809:46;;;;;-1:-1:-1;;;1809:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;10351:176;10460:58;;;-1:-1:-1;;;;;10460:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;10460:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;10434:85:0;;10453:5;;10434:18;:85::i;:::-;10351:176;;;:::o;446:106::-;504:7;535:1;531;:5;:13;;543:1;531:13;;;-1:-1:-1;539:1:0;;524:20;-1:-1:-1;446:106:0:o;10535:204::-;10662:68;;;-1:-1:-1;;;;;10662:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;10662:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;10636:95:0;;10655:5;;10636:18;:95::i;:::-;10535:204;;;;:::o;12345:1114::-;12949:27;12957:5;-1:-1:-1;;;;;12949:25:0;;:27::i;:::-;12941:71;;;;;-1:-1:-1;;;12941:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13086:12;13100:23;13135:5;-1:-1:-1;;;;;13127:19:0;13147:4;13127: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;;;13127: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;;13085:67:0;;;;13171:7;13163:52;;;;;-1:-1:-1;;;13163:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13232:17;;:21;13228:224;;13374:10;13363:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13363:30:0;13355:85;;;;-1:-1:-1;;;13355:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9364:422;9731:20;9770:8;;;9364:422::o

Swarm Source

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