ETH Price: $1,968.76 (+7.30%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit116405232021-01-12 14:04:261870 days ago1610460266IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.01447542101
Exit116404802021-01-12 13:56:361870 days ago1610459796IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.01548472102
Exit116212132021-01-09 14:52:221872 days ago1610203942IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0106651778
Exit116075722021-01-07 12:31:201875 days ago1610022680IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0083407161
Stake With Permi...115993892021-01-06 6:30:291876 days ago1609914629IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.01152281
Stake With Permi...115889742021-01-04 16:05:101877 days ago1609776310IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.01502153133.84
Exit115886752021-01-04 15:03:361877 days ago1609772616IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.02291168151
Exit115851592021-01-04 1:58:501878 days ago1609725530IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.03413992225
Stake With Permi...115839082021-01-03 21:11:591878 days ago1609708319IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.01735413122
Stake With Permi...115817262021-01-03 13:14:241879 days ago1609679664IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0092452765
Get Reward115464452020-12-29 3:18:401884 days ago1609211920IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0097767102
Get Reward115183072020-12-24 19:47:341888 days ago1608839254IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.003450636
Get Reward114932002020-12-20 23:26:581892 days ago1608506818IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0068053571
Get Reward114413112020-12-13 0:13:401900 days ago1607818420IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.003642338
Get Reward114100612020-12-08 4:48:181905 days ago1607402898IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0036382545
Get Reward113750832020-12-02 19:46:101910 days ago1606938370IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0025063531
Get Reward113734022020-12-02 13:36:021911 days ago1606916162IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.00383440
Stake With Permi...113733952020-12-02 13:35:171911 days ago1606916117IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.005689440
Exit113573972020-11-30 2:39:091913 days ago1606703949IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0083453155
Stake With Permi...113514662020-11-29 4:34:171914 days ago1606624457IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0019912914
Get Reward113416462020-11-27 16:37:101915 days ago1606495030IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0049318561
Exit113122022020-11-23 3:59:511920 days ago1606103991IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0060693240
Exit113107962020-11-22 22:43:001920 days ago1606084980IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0082039860
Stake With Permi...112765232020-11-17 16:27:431925 days ago1605630463IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0170682120
Exit112711592020-11-16 20:45:061926 days ago1605559506IN
0xBcb78FA6...7A0A2f7e7
0 ETH0.0036415924
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-112303412020-11-10 14:31:161932 days ago1605018676  Contract Creation0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xDFA63D44...92a062C25
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StakingRewards

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-04
*/

pragma solidity ^0.6.12;



// a library for performing various math operations

library Math {
    function min(uint x, uint y) internal pure returns (uint z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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



interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on 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;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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.3._
     */
    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.3._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

    /**
     * @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'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. 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
            // 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 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].
 */
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 () internal {
        _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 make 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;
    }
}



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

    function rewardPerToken() external view returns (uint256);

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

    function getRewardForDuration() 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;
}

interface IWSERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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

abstract contract RewardsDistributionRecipient {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward) virtual 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 rewardsDuration = 60 days;
    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 override view returns (uint256) {
        return _totalSupply;
    }

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

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

    function rewardPerToken() public override 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 override view returns (uint256) {
        return _balances[account].mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]);
    }

    function getRewardForDuration() external override view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

    /* ========== 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
        IWSERC20(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) override 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) override 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() override 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() override external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

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

    function notifyRewardAmount(uint256 reward) override external onlyRewardsDistribution updateReward(address(0)) {
        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);
    }

    /* ========== 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);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","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":[{"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":[],"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":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405260006004556000600555624f1a0060065534801561002157600080fd5b506040516118e93803806118e98339818101604052606081101561004457600080fd5b508051602082015160409092015160018055600280546001600160a01b039485166001600160a01b031991821617909155600380549285169282169290921790915560008054939092169216919091179055611844806100a56000396000f3fe608060405234801561001057600080fd5b50600436106101815760003560e01c80637b0a47ee116100d8578063cd3daf9d1161008c578063e9fad8ee11610066578063e9fad8ee14610346578063ebe2b12b1461034e578063ecd9ba821461035657610181565b8063cd3daf9d1461032e578063d1af0c7d14610336578063df136d651461033e57610181565b80638b876347116100bd5780638b876347146102d6578063a694fc3a14610309578063c8f33c911461032657610181565b80637b0a47ee146102c657806380faa57d146102ce57610181565b8063386a95251161013a5780633fc6df6e116101145780633fc6df6e1461025a57806370a082311461028b57806372f702f3146102be57610181565b8063386a95251461022d5780633c6b16ab146102355780633d18b9121461025257610181565b806318160ddd1161016b57806318160ddd146101fe5780631c1f78eb146102065780632e1a7d4d1461020e57610181565b80628cc262146101865780630700037d146101cb575b600080fd5b6101b96004803603602081101561019c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661038e565b60408051918252519081900360200190f35b6101b9600480360360208110156101e157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610426565b6101b9610438565b6101b961043f565b61022b6004803603602081101561022457600080fd5b503561045d565b005b6101b9610659565b61022b6004803603602081101561024b57600080fd5b503561065f565b61022b610913565b610262610a8a565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101b9600480360360208110156102a157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610aa6565b610262610ace565b6101b9610aea565b6101b9610af0565b6101b9600480360360208110156102ec57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610afe565b61022b6004803603602081101561031f57600080fd5b5035610b10565b6101b9610d0d565b6101b9610d13565b610262610d61565b6101b9610d7d565b61022b610d83565b6101b9610da6565b61022b600480360360a081101561036c57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610dac565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60209081526040808320546009909252822054610420919061041a90670de0b6b3a764000090610414906103e8906103e2610d13565b9061105e565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600c6020526040902054906110a7565b9061111a565b9061115c565b92915050565b600a6020526000908152604090205481565b600b545b90565b60006104586006546005546110a790919063ffffffff16565b905090565b600260015414156104cf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336104dd610d13565b6008556104e8610af0565b60075573ffffffffffffffffffffffffffffffffffffffff811615610549576105108161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b600082116105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b600b546105c5908361105e565b600b55336000908152600c60205260409020546105e2908361105e565b336000818152600c602052604090209190915560035461061b9173ffffffffffffffffffffffffffffffffffffffff90911690846111d0565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2505060018055565b60065481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806117bb602a913960400191505060405180910390fd5b60006106d9610d13565b6008556106e4610af0565b60075573ffffffffffffffffffffffffffffffffffffffff8116156107455761070c8161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b60045442106107645760065461075c90839061111a565b6005556107a7565b600454600090610774904261105e565b9050600061078d600554836110a790919063ffffffff16565b6006549091506107a190610414868461115c565b60055550505b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561081857600080fd5b505afa15801561082c573d6000803e3d6000fd5b505050506040513d602081101561084257600080fd5b505160065490915061085590829061111a565b60055411156108c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b4260078190556006546108d8919061115c565b6004556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b6002600154141561098557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610993610d13565b60085561099e610af0565b60075573ffffffffffffffffffffffffffffffffffffffff8116156109ff576109c68161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b336000908152600a60205260409020548015610a8257336000818152600a6020526040812055600254610a4b9173ffffffffffffffffffffffffffffffffffffffff90911690836111d0565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505060018055565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205490565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600061045842600454611262565b60096020526000908152604090205481565b60026001541415610b8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610b90610d13565b600855610b9b610af0565b60075573ffffffffffffffffffffffffffffffffffffffff811615610bfc57610bc38161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b60008211610c6b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600b54610c78908361115c565b600b55336000908152600c6020526040902054610c95908361115c565b336000818152600c6020526040902091909155600354610ccf9173ffffffffffffffffffffffffffffffffffffffff909116903085611278565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505060018055565b60075481565b6000600b5460001415610d29575060085461043c565b610458610d58600b54610414670de0b6b3a7640000610d52600554610d526007546103e2610af0565b906110a7565b6008549061115c565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b336000908152600c6020526040902054610d9c9061045d565b610da4610913565b565b60045481565b60026001541415610e1e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610e2c610d13565b600855610e37610af0565b60075573ffffffffffffffffffffffffffffffffffffffff811615610e9857610e5f8161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b60008611610f0757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600b54610f14908761115c565b600b55336000908152600c6020526040902054610f31908761115c565b336000818152600c60205260408082209390935560035483517fd505accf0000000000000000000000000000000000000000000000000000000081526004810193909352306024840152604483018a90526064830189905260ff8816608484015260a4830187905260c48301869052925173ffffffffffffffffffffffffffffffffffffffff9093169263d505accf9260e480820193929182900301818387803b158015610fde57600080fd5b505af1158015610ff2573d6000803e3d6000fd5b505060035461101c925073ffffffffffffffffffffffffffffffffffffffff169050333089611278565b60408051878152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001805550505050565b60006110a083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611313565b9392505050565b6000826110b657506000610420565b828202828482816110c357fe5b04146110a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061179a6021913960400191505060405180910390fd5b60006110a083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113c4565b6000828201838110156110a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261125d908490611443565b505050565b600081831061127157816110a0565b5090919050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261130d908590611443565b50505050565b600081848411156113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611381578181015183820152602001611369565b50505050905090810190601f1680156113ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361142d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315611381578181015183820152602001611369565b50600083858161143957fe5b0495945050505050565b60606114a5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661151b9092919063ffffffff16565b80519091501561125d578080602001905160208110156114c457600080fd5b505161125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806117e5602a913960400191505060405180910390fd5b606061152a8484600085611532565b949350505050565b60608247101561158d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806117746026913960400191505060405180910390fd5b611596856116ed565b61160157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061166b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161162e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e28282866116f3565b979650505050505050565b3b151590565b606083156117025750816110a0565b8251156117125782518084602001fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815284516024840152845185939192839260440191908501908083836000831561138157818101518382015260200161136956fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206782e76b299bd1db9de71bd860226cb22fecba66502bc16b9f08a6dcac54992764736f6c634300060c00330000000000000000000000003baefcf105f234b62f6793931903503b8dd4af5d00000000000000000000000077b8ae2e83c7d044d159878445841e2a9777af380000000000000000000000004a6c1cf4fd170d34816f23ce4d8cfebe8d5527c7

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101815760003560e01c80637b0a47ee116100d8578063cd3daf9d1161008c578063e9fad8ee11610066578063e9fad8ee14610346578063ebe2b12b1461034e578063ecd9ba821461035657610181565b8063cd3daf9d1461032e578063d1af0c7d14610336578063df136d651461033e57610181565b80638b876347116100bd5780638b876347146102d6578063a694fc3a14610309578063c8f33c911461032657610181565b80637b0a47ee146102c657806380faa57d146102ce57610181565b8063386a95251161013a5780633fc6df6e116101145780633fc6df6e1461025a57806370a082311461028b57806372f702f3146102be57610181565b8063386a95251461022d5780633c6b16ab146102355780633d18b9121461025257610181565b806318160ddd1161016b57806318160ddd146101fe5780631c1f78eb146102065780632e1a7d4d1461020e57610181565b80628cc262146101865780630700037d146101cb575b600080fd5b6101b96004803603602081101561019c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661038e565b60408051918252519081900360200190f35b6101b9600480360360208110156101e157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610426565b6101b9610438565b6101b961043f565b61022b6004803603602081101561022457600080fd5b503561045d565b005b6101b9610659565b61022b6004803603602081101561024b57600080fd5b503561065f565b61022b610913565b610262610a8a565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101b9600480360360208110156102a157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610aa6565b610262610ace565b6101b9610aea565b6101b9610af0565b6101b9600480360360208110156102ec57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610afe565b61022b6004803603602081101561031f57600080fd5b5035610b10565b6101b9610d0d565b6101b9610d13565b610262610d61565b6101b9610d7d565b61022b610d83565b6101b9610da6565b61022b600480360360a081101561036c57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610dac565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60209081526040808320546009909252822054610420919061041a90670de0b6b3a764000090610414906103e8906103e2610d13565b9061105e565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600c6020526040902054906110a7565b9061111a565b9061115c565b92915050565b600a6020526000908152604090205481565b600b545b90565b60006104586006546005546110a790919063ffffffff16565b905090565b600260015414156104cf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336104dd610d13565b6008556104e8610af0565b60075573ffffffffffffffffffffffffffffffffffffffff811615610549576105108161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b600082116105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b600b546105c5908361105e565b600b55336000908152600c60205260409020546105e2908361105e565b336000818152600c602052604090209190915560035461061b9173ffffffffffffffffffffffffffffffffffffffff90911690846111d0565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2505060018055565b60065481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806117bb602a913960400191505060405180910390fd5b60006106d9610d13565b6008556106e4610af0565b60075573ffffffffffffffffffffffffffffffffffffffff8116156107455761070c8161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b60045442106107645760065461075c90839061111a565b6005556107a7565b600454600090610774904261105e565b9050600061078d600554836110a790919063ffffffff16565b6006549091506107a190610414868461115c565b60055550505b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561081857600080fd5b505afa15801561082c573d6000803e3d6000fd5b505050506040513d602081101561084257600080fd5b505160065490915061085590829061111a565b60055411156108c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b4260078190556006546108d8919061115c565b6004556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b6002600154141561098557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610993610d13565b60085561099e610af0565b60075573ffffffffffffffffffffffffffffffffffffffff8116156109ff576109c68161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b336000908152600a60205260409020548015610a8257336000818152600a6020526040812055600254610a4b9173ffffffffffffffffffffffffffffffffffffffff90911690836111d0565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505060018055565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c602052604090205490565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b600061045842600454611262565b60096020526000908152604090205481565b60026001541415610b8257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610b90610d13565b600855610b9b610af0565b60075573ffffffffffffffffffffffffffffffffffffffff811615610bfc57610bc38161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b60008211610c6b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600b54610c78908361115c565b600b55336000908152600c6020526040902054610c95908361115c565b336000818152600c6020526040902091909155600354610ccf9173ffffffffffffffffffffffffffffffffffffffff909116903085611278565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505060018055565b60075481565b6000600b5460001415610d29575060085461043c565b610458610d58600b54610414670de0b6b3a7640000610d52600554610d526007546103e2610af0565b906110a7565b6008549061115c565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b336000908152600c6020526040902054610d9c9061045d565b610da4610913565b565b60045481565b60026001541415610e1e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015533610e2c610d13565b600855610e37610af0565b60075573ffffffffffffffffffffffffffffffffffffffff811615610e9857610e5f8161038e565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600a60209081526040808320939093556008546009909152919020555b60008611610f0757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b600b54610f14908761115c565b600b55336000908152600c6020526040902054610f31908761115c565b336000818152600c60205260408082209390935560035483517fd505accf0000000000000000000000000000000000000000000000000000000081526004810193909352306024840152604483018a90526064830189905260ff8816608484015260a4830187905260c48301869052925173ffffffffffffffffffffffffffffffffffffffff9093169263d505accf9260e480820193929182900301818387803b158015610fde57600080fd5b505af1158015610ff2573d6000803e3d6000fd5b505060035461101c925073ffffffffffffffffffffffffffffffffffffffff169050333089611278565b60408051878152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001805550505050565b60006110a083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611313565b9392505050565b6000826110b657506000610420565b828202828482816110c357fe5b04146110a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061179a6021913960400191505060405180910390fd5b60006110a083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113c4565b6000828201838110156110a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261125d908490611443565b505050565b600081831061127157816110a0565b5090919050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261130d908590611443565b50505050565b600081848411156113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611381578181015183820152602001611369565b50505050905090810190601f1680156113ae5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361142d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315611381578181015183820152602001611369565b50600083858161143957fe5b0495945050505050565b60606114a5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661151b9092919063ffffffff16565b80519091501561125d578080602001905160208110156114c457600080fd5b505161125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806117e5602a913960400191505060405180910390fd5b606061152a8484600085611532565b949350505050565b60608247101561158d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806117746026913960400191505060405180910390fd5b611596856116ed565b61160157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061166b57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161162e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e28282866116f3565b979650505050505050565b3b151590565b606083156117025750816110a0565b8251156117125782518084602001fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815284516024840152845185939192839260440191908501908083836000831561138157818101518382015260200161136956fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206782e76b299bd1db9de71bd860226cb22fecba66502bc16b9f08a6dcac54992764736f6c634300060c0033

Deployed Bytecode Sourcemap

23154:5761:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24955:207;;;;;;;;;;;;;;;;-1:-1:-1;24955:207:0;;;;:::i;:::-;;;;;;;;;;;;;;;;23701:42;;;;;;;;;;;;;;;;-1:-1:-1;23701:42:0;;;;:::i;24221:102::-;;;:::i;25170:130::-;;;:::i;26307:366::-;;;;;;;;;;;;;;;;-1:-1:-1;26307:366:0;;:::i;:::-;;23510:40;;;:::i;27175:1092::-;;;;;;;;;;;;;;;;-1:-1:-1;27175:1092:0;;:::i;26681:316::-;;;:::i;22881:34::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24331:121;;;;;;;;;;;;;;;;-1:-1:-1;24331:121:0;;;;:::i;23403:26::-;;;:::i;23474:29::-;;;:::i;24460:140::-;;;:::i;23637:57::-;;;;;;;;;;;;;;;;-1:-1:-1;23637:57:0;;;;:::i;25921:378::-;;;;;;;;;;;;;;;;-1:-1:-1;25921:378:0;;:::i;23557:29::-;;;:::i;24608:339::-;;;:::i;23370:26::-;;;:::i;23593:35::-;;;:::i;27005:106::-;;;:::i;23436:31::-;;;:::i;25362:551::-;;;;;;;;;;;;;;;;-1:-1:-1;25362:551:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;24955:207::-;25137:16;;;25018:7;25137:16;;;:7;:16;;;;;;;;;25089:22;:31;;;;;;25045:109;;25137:16;25045:87;;25127:4;;25045:77;;25068:53;;:16;:14;:16::i;:::-;:20;;:53::i;:::-;25045:18;;;;;;;:9;:18;;;;;;;:22;:77::i;:::-;:81;;:87::i;:::-;:91;;:109::i;:::-;25038:116;24955:207;-1:-1:-1;;24955:207:0:o;23701:42::-;;;;;;;;;;;;;:::o;24221:102::-;24303:12;;24221:102;;:::o;25170:130::-;25234:7;25261:31;25276:15;;25261:10;;:14;;:31;;;;:::i;:::-;25254:38;;25170:130;:::o;26307:366::-;20069:1;20675:7;;:19;;20667:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20069:1;20808:7;:18;26383:10:::1;28393:16;:14;:16::i;:::-;28370:20;:39:::0;28437:26:::1;:24;:26::i;:::-;28420:14;:43:::0;28478:21:::1;::::0;::::1;::::0;28474:157:::1;;28535:15;28542:7;28535:6;:15::i;:::-;28516:16;::::0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;28599:20:::1;::::0;28565:22:::1;:31:::0;;;;;;:54;28474:157:::1;26423:1:::2;26414:6;:10;26406:40;;;::::0;;::::2;::::0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;26472:12;::::0;:24:::2;::::0;26489:6;26472:16:::2;:24::i;:::-;26457:12;:39:::0;26541:10:::2;26531:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;26557:6;26531:25:::2;:33::i;:::-;26517:10;26507:21;::::0;;;:9:::2;:21;::::0;;;;:57;;;;26575:12:::2;::::0;:45:::2;::::0;26507:21:::2;26575:12:::0;;::::2;::::0;26613:6;26575:25:::2;:45::i;:::-;26636:29;::::0;;;;;;;26646:10:::2;::::0;26636:29:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;20025:1:0;20987:22;;26307:366::o;23510:40::-;;;;:::o;27175:1092::-;23061:19;;;;23047:10;:33;23039:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27282:1:::1;28393:16;:14;:16::i;:::-;28370:20;:39:::0;28437:26:::1;:24;:26::i;:::-;28420:14;:43:::0;28478:21:::1;::::0;::::1;::::0;28474:157:::1;;28535:15;28542:7;28535:6;:15::i;:::-;28516:16;::::0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;28599:20:::1;::::0;28565:22:::1;:31:::0;;;;;;:54;28474:157:::1;27320:12:::2;;27301:15;:31;27297:318;;27373:15;::::0;27362:27:::2;::::0;:6;;:10:::2;:27::i;:::-;27349:10;:40:::0;27297:318:::2;;;27442:12;::::0;27422:17:::2;::::0;27442:33:::2;::::0;27459:15:::2;27442:16;:33::i;:::-;27422:53;;27490:16;27509:25;27523:10;;27509:9;:13;;:25;;;;:::i;:::-;27587:15;::::0;27490:44;;-1:-1:-1;27562:41:0::2;::::0;:20:::2;:6:::0;27490:44;27562:10:::2;:20::i;:41::-;27549:10;:54:::0;-1:-1:-1;;27297:318:0::2;27990:12;::::0;:37:::2;::::0;;;;;28021:4:::2;27990:37;::::0;::::2;::::0;;;27975:12:::2;::::0;27990::::2;;::::0;:22:::2;::::0;:37;;;;;::::2;::::0;;;;;;;;:12;:37;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;27990:37:0;28072:15:::2;::::0;27990:37;;-1:-1:-1;28060:28:0::2;::::0;27990:37;;28060:11:::2;:28::i;:::-;28046:10;;:42;;28038:79;;;::::0;;::::2;::::0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;28147:15;28130:14;:32:::0;;;28208:15:::2;::::0;28188:36:::2;::::0;28147:15;28188:19:::2;:36::i;:::-;28173:12;:51:::0;28240:19:::2;::::0;;;;;;;::::2;::::0;;;;::::2;::::0;;::::2;28641:1;23138::::1;27175:1092:::0;:::o;26681:316::-;20069:1;20675:7;;:19;;20667:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20069:1;20808:7;:18;26744:10:::1;28393:16;:14;:16::i;:::-;28370:20;:39:::0;28437:26:::1;:24;:26::i;:::-;28420:14;:43:::0;28478:21:::1;::::0;::::1;::::0;28474:157:::1;;28535:15;28542:7;28535:6;:15::i;:::-;28516:16;::::0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;28599:20:::1;::::0;28565:22:::1;:31:::0;;;;;;:54;28474:157:::1;26792:10:::2;26767:14;26784:19:::0;;;:7:::2;:19;::::0;;;;;26818:10;;26814:176:::2;;26853:10;26867:1;26845:19:::0;;;:7:::2;:19;::::0;;;;:23;26883:12:::2;::::0;:45:::2;::::0;26845:19:::2;26883:12:::0;;::::2;::::0;26921:6;26883:25:::2;:45::i;:::-;26948:30;::::0;;;;;;;26959:10:::2;::::0;26948:30:::2;::::0;;;;;::::2;::::0;;::::2;26814:176;-1:-1:-1::0;;20025:1:0;20987:22;;26681:316::o;22881:34::-;;;;;;:::o;24331:121::-;24426:18;;24399:7;24426:18;;;:9;:18;;;;;;;24331:121::o;23403:26::-;;;;;;:::o;23474:29::-;;;;:::o;24460:140::-;24526:7;24553:39;24562:15;24579:12;;24553:8;:39::i;23637:57::-;;;;;;;;;;;;;:::o;25921:378::-;20069:1;20675:7;;:19;;20667:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20069:1;20808:7;:18;25996:10:::1;28393:16;:14;:16::i;:::-;28370:20;:39:::0;28437:26:::1;:24;:26::i;:::-;28420:14;:43:::0;28478:21:::1;::::0;::::1;::::0;28474:157:::1;;28535:15;28542:7;28535:6;:15::i;:::-;28516:16;::::0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;28599:20:::1;::::0;28565:22:::1;:31:::0;;;;;;:54;28474:157:::1;26036:1:::2;26027:6;:10;26019:37;;;::::0;;::::2;::::0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;26082:12;::::0;:24:::2;::::0;26099:6;26082:16:::2;:24::i;:::-;26067:12;:39:::0;26151:10:::2;26141:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;26167:6;26141:25:::2;:33::i;:::-;26127:10;26117:21;::::0;;;:9:::2;:21;::::0;;;;:57;;;;26185:12:::2;::::0;:64:::2;::::0;26117:21:::2;26185:12:::0;;::::2;::::0;26235:4:::2;26242:6:::0;26185:29:::2;:64::i;:::-;26265:26;::::0;;;;;;;26272:10:::2;::::0;26265:26:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;20025:1:0;20987:22;;25921:378::o;23557:29::-;;;;:::o;24608:339::-;24664:7;24688:12;;24704:1;24688:17;24684:77;;;-1:-1:-1;24729:20:0;;24722:27;;24684:77;24791:148;24834:90;24911:12;;24834:72;24901:4;24834:62;24885:10;;24834:46;24865:14;;24834:26;:24;:26::i;:46::-;:50;;:62::i;:90::-;24791:20;;;:24;:148::i;23370:26::-;;;;;;:::o;23593:35::-;;;;:::o;27005:106::-;27069:10;27059:21;;;;:9;:21;;;;;;27050:31;;:8;:31::i;:::-;27092:11;:9;:11::i;:::-;27005:106::o;23436:31::-;;;;:::o;25362:551::-;20069:1;20675:7;;:19;;20667:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20069:1;20808:7;:18;25484:10:::1;28393:16;:14;:16::i;:::-;28370:20;:39:::0;28437:26:::1;:24;:26::i;:::-;28420:14;:43:::0;28478:21:::1;::::0;::::1;::::0;28474:157:::1;;28535:15;28542:7;28535:6;:15::i;:::-;28516:16;::::0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;28599:20:::1;::::0;28565:22:::1;:31:::0;;;;;;:54;28474:157:::1;25524:1:::2;25515:6;:10;25507:37;;;::::0;;::::2;::::0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;25570:12;::::0;:24:::2;::::0;25587:6;25570:16:::2;:24::i;:::-;25555:12;:39:::0;25639:10:::2;25629:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;25655:6;25629:25:::2;:33::i;:::-;25615:10;25605:21;::::0;;;:9:::2;:21;::::0;;;;;:57;;;;25711:12:::2;::::0;25694:92;;;;;::::2;::::0;::::2;::::0;;;;25753:4:::2;25694:92:::0;;;;;;;;;;;;;;;;::::2;::::0;::::2;::::0;;;;;;;;;;;;;;;;;;25605:21:::2;25711:12:::0;;::::2;::::0;25694:38:::2;::::0;:92;;;;;25605:21;25694:92;;;;;;25605:21;25711:12;25694:92;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;25799:12:0::2;::::0;:64:::2;::::0;-1:-1:-1;25799:12:0::2;;::::0;-1:-1:-1;25829:10:0::2;25849:4;25856:6:::0;25799:29:::2;:64::i;:::-;25879:26;::::0;;;;;;;25886:10:::2;::::0;25879:26:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;20025:1:0;20987:22;;-1:-1:-1;;;;25362:551:0:o;2041:136::-;2099:7;2126:43;2130:1;2133;2126:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2119:50;2041:136;-1:-1:-1;;;2041:136:0:o;2931:471::-;2989:7;3234:6;3230:47;;-1:-1:-1;3264:1:0;3257:8;;3230:47;3301:5;;;3305:1;3301;:5;:1;3325:5;;;;;:10;3317:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3878:132;3936:7;3963:39;3967:1;3970;3963:39;;;;;;;;;;;;;;;;;:3;:39::i;1577:181::-;1635:7;1667:5;;;1691:6;;;;1683:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15354:177;15464:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15487:23;15464:58;;;15437:86;;15457:5;;15437:19;:86::i;:::-;15354:177;;;:::o;107:96::-;159:6;186:1;182;:5;:13;;194:1;182:13;;;-1:-1:-1;190:1:0;;178:17;-1:-1:-1;107:96:0:o;15539:205::-;15667:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15690:27;15667:68;;;15640:96;;15660:5;;15640:19;:96::i;:::-;15539:205;;;;:::o;2480:192::-;2566:7;2602:12;2594:6;;;;2586:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2638:5:0;;;2480:192::o;4506:278::-;4592:7;4627:12;4620:5;4612:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4651:9;4667:1;4663;:5;;;;;;;4506:278;-1:-1:-1;;;;;4506:278:0:o;17659:761::-;18083:23;18109:69;18137:4;18109:69;;;;;;;;;;;;;;;;;18117:5;18109:27;;;;:69;;;;;:::i;:::-;18193:17;;18083:95;;-1:-1:-1;18193:21:0;18189:224;;18335:10;18324:30;;;;;;;;;;;;;;;-1:-1:-1;18324:30:0;18316:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10454:195;10557:12;10589:52;10611:6;10619:4;10625:1;10628:12;10589:21;:52::i;:::-;10582:59;10454:195;-1:-1:-1;;;;10454:195:0:o;11506:530::-;11633:12;11691:5;11666:21;:30;;11658:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11758:18;11769:6;11758:10;:18::i;:::-;11750:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11884:12;11898:23;11925:6;:11;;11945:5;11953:4;11925:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11883:75;;;;11976:52;11994:7;12003:10;12015:12;11976:17;:52::i;:::-;11969:59;11506:530;-1:-1:-1;;;;;;;11506:530:0:o;7536:422::-;7903:20;7942:8;;;7536:422::o;14046:742::-;14161:12;14190:7;14186:595;;;-1:-1:-1;14221:10:0;14214:17;;14186:595;14335:17;;:21;14331:439;;14598:10;14592:17;14659:15;14646:10;14642:2;14638:19;14631:44;14546:148;14734:20;;;;;;;;;;;;;;;;;;;;14741:12;;14734:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://6782e76b299bd1db9de71bd860226cb22fecba66502bc16b9f08a6dcac549927

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.