ETH Price: $2,085.26 (-3.26%)

Contract

0x720fFb58b4965D2C0BD2b827FA8316C2002A98aa
 

More Info

Private Name Tags

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Exit216301662025-01-15 13:25:47431 days ago1736947547IN
0x720fFb58...2002A98aa
0 ETH0.0005214.66018999
Get Reward174445732023-06-09 18:54:231016 days ago1686336863IN
0x720fFb58...2002A98aa
0 ETH0.0015482524.22515643
Exit153362902022-08-13 23:23:031316 days ago1660432983IN
0x720fFb58...2002A98aa
0 ETH0.00050624
Exit150421362022-06-28 23:24:101362 days ago1656458650IN
0x720fFb58...2002A98aa
0 ETH0.0061456948.56336593
Exit150419282022-06-28 22:25:211362 days ago1656455121IN
0x720fFb58...2002A98aa
0 ETH0.0043249634.17595804
Get Reward149878362022-06-19 0:07:341372 days ago1655597254IN
0x720fFb58...2002A98aa
0 ETH0.0023311429.08659904
Withdraw149878272022-06-19 0:04:271372 days ago1655597067IN
0x720fFb58...2002A98aa
0 ETH0.00218125.19705017
Withdraw148526592022-05-27 6:42:581395 days ago1653633778IN
0x720fFb58...2002A98aa
0 ETH0.0041923140.4436754
Get Reward148388132022-05-25 0:41:111397 days ago1653439271IN
0x720fFb58...2002A98aa
0 ETH0.0013207816.47999741
Withdraw148382642022-05-24 22:18:311397 days ago1653430711IN
0x720fFb58...2002A98aa
0 ETH0.0017453216.83737841
Exit144010152022-03-17 1:20:171466 days ago1647480017IN
0x720fFb58...2002A98aa
0 ETH0.0067957353.7
Get Reward143839542022-03-14 9:43:051469 days ago1647250985IN
0x720fFb58...2002A98aa
0 ETH0.001051716.68184504
Get Reward143781312022-03-13 11:49:551470 days ago1647172195IN
0x720fFb58...2002A98aa
0 ETH0.0012870816.05945375
Withdraw143781172022-03-13 11:48:011470 days ago1647172081IN
0x720fFb58...2002A98aa
0 ETH0.0021919921.14643429
Exit143195972022-03-04 9:18:031479 days ago1646385483IN
0x720fFb58...2002A98aa
0 ETH0.0028014925.05807031
Get Reward143182352022-03-04 4:15:061479 days ago1646367306IN
0x720fFb58...2002A98aa
0 ETH0.0030468648.32841539
Withdraw143182222022-03-04 4:11:491479 days ago1646367109IN
0x720fFb58...2002A98aa
0 ETH0.0053574651.67803388
Withdraw143181992022-03-04 4:06:561479 days ago1646366816IN
0x720fFb58...2002A98aa
0 ETH0.0057219970.66803128
Get Reward143181962022-03-04 4:05:261479 days ago1646366726IN
0x720fFb58...2002A98aa
0 ETH0.0055451264.36446651
Withdraw143126752022-03-03 7:30:191480 days ago1646292619IN
0x720fFb58...2002A98aa
0 ETH0.0022597627.91278315
Get Reward143104202022-03-02 22:59:361480 days ago1646261976IN
0x720fFb58...2002A98aa
0 ETH0.0027599643.77772368
Get Reward142212762022-02-17 3:45:391494 days ago1645069539IN
0x720fFb58...2002A98aa
0 ETH0.005125681.30076484
Withdraw142212702022-02-17 3:43:161494 days ago1645069396IN
0x720fFb58...2002A98aa
0 ETH0.0060851458.70407831
Exit142178482022-02-16 15:07:541494 days ago1645024074IN
0x720fFb58...2002A98aa
0 ETH0.008216164.92380397
Withdraw140492472022-01-21 13:45:031520 days ago1642772703IN
0x720fFb58...2002A98aa
0 ETH0.01381407170.60732431
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-122727602021-04-19 20:45:321797 days ago1618865132  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

Contract Source Code Verified (Exact Match)

Contract Name:
StakingRewards

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2021-04-19
*/

// Made by Governance Decision: https://app.tornado.cash/governance/6

// https://tornado.cash
/*
* d888888P                                           dP              a88888b.                   dP
*    88                                              88             d8'   `88                   88
*    88    .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b.    88        .d8888b. .d8888b. 88d888b.
*    88    88'  `88 88'  `88 88'  `88 88'  `88 88'  `88 88'  `88    88        88'  `88 Y8ooooo. 88'  `88
*    88    88.  .88 88       88    88 88.  .88 88.  .88 88.  .88 dP Y8.   .88 88.  .88       88 88    88
*    dP    `88888P' dP       dP    dP `88888P8 `88888P8 `88888P' 88  Y88888P' `88888P8 `88888P' dP    dP
* ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
*/

// Sources flattened with hardhat v2.1.1 https://hardhat.org

// File @openzeppelin/contracts/math/Math.sol@v3.4.1


pragma solidity >=0.6.0 <0.8.0;

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

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

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


// File @openzeppelin/contracts/math/SafeMath.sol@v3.4.1


pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v3.4.1


pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/Address.sol@v3.4.1


pragma solidity >=0.6.2 <0.8.0;

/**
 * @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.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

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


// File @openzeppelin/contracts/token/ERC20/SafeERC20.sol@v3.4.1


pragma solidity >=0.6.0 <0.8.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 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");
        }
    }
}


// File @openzeppelin/contracts/utils/ReentrancyGuard.sol@v3.4.1


pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

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


// File @openzeppelin/contracts/utils/Context.sol@v3.4.1


pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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


// File @openzeppelin/contracts/access/Ownable.sol@v3.4.1


pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File contracts/utils/Pausable.sol


pragma solidity ^0.7.0;

// https://docs.synthetix.io/contracts/source/contracts/pausable
contract Pausable is Ownable {
    uint public lastPauseTime;
    bool public paused;

    constructor() {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner() != address(0), "Owner must be set");
        // Paused will be false, and lastPauseTime will be 0 upon initialisation
    }

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}


// File contracts/StakingRewards.sol

pragma solidity ^0.7.0;





// Inheritance

// https://docs.synthetix.io/contracts/source/contracts/stakingrewards
contract StakingRewards is ReentrancyGuard, Pausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public immutable rewardsToken;
    IERC20 public immutable stakingToken;

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

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration = 182 days;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public totalSupply;

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

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

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

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

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

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

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

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

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

    function stake(uint256 amount) external nonReentrant notPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        totalSupply = totalSupply.add(amount);
        balanceOf[msg.sender] = balanceOf[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);
        balanceOf[msg.sender] = balanceOf[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(balanceOf[msg.sender]);
        getReward();
    }

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

    function notifyRewardAmount(uint256 reward) external onlyOwner 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);
    }

    // End rewards emission earlier
    function updatePeriodFinish(uint timestamp) external onlyOwner updateReward(address(0)) {
        require(timestamp > block.timestamp + 7 days, "Cannot fishish rewards earlier then 1 week from now");
        periodFinish = timestamp;
    }

    // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token");
        IERC20(tokenAddress).safeTransfer(owner(), tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    /* ========== 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);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","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":"","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":"lastPauseTime","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"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":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"updatePeriodFinish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000600455600060055562eff10060065534801561002157600080fd5b50604051611b82380380611b828339818101604052604081101561004457600080fd5b5080516020909101516001600090815561005c610122565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060006100b4610126565b6001600160a01b03161415610104576040805162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015290519081900360640190fd5b6001600160601b0319606092831b8116608052911b1660a052610135565b3390565b6001546001600160a01b031690565b60805160601c60a05160601c611a0b610177600039806107065280610d0d5280610da7528061102452508061089e5280610ace52806111c65250611a0b6000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c80637b0a47ee11610104578063c8f33c91116100a2578063df136d6511610071578063df136d65146103fb578063e9fad8ee14610403578063ebe2b12b1461040b578063f2fde38b14610413576101ce565b8063c8f33c91146103c6578063cc1a378f146103ce578063cd3daf9d146103eb578063d1af0c7d146103f3576101ce565b80638b876347116100de5780638b876347146103735780638da5cb5b1461039957806391b4ded9146103a1578063a694fc3a146103a9576101ce565b80637b0a47ee1461033757806380faa57d1461033f5780638980f11f14610347576101ce565b80633c6b16ab116101715780635c975abb1161014b5780635c975abb146102c957806370a08231146102e5578063715018a61461030b57806372f702f314610313576101ce565b80633c6b16ab146102875780633d18b912146102a4578063556f6e6b146102ac576101ce565b806318160ddd116101ad57806318160ddd146102525780631c1f78eb1461025a5780632e1a7d4d14610262578063386a95251461027f576101ce565b80628cc262146101d35780630700037d1461020b57806316c38b3c14610231575b600080fd5b6101f9600480360360208110156101e957600080fd5b50356001600160a01b0316610439565b60408051918252519081900360200190f35b6101f96004803603602081101561022157600080fd5b50356001600160a01b03166104b7565b6102506004803603602081101561024757600080fd5b503515156104c9565b005b6101f961059d565b6101f96105a3565b6102506004803603602081101561027857600080fd5b50356105c2565b6101f9610774565b6102506004803603602081101561029d57600080fd5b503561077a565b6102506109ea565b610250600480360360208110156102c257600080fd5b5035610b3d565b6102d1610c44565b604080519115158252519081900360200190f35b6101f9600480360360208110156102fb57600080fd5b50356001600160a01b0316610c4d565b610250610c5f565b61031b610d0b565b604080516001600160a01b039092168252519081900360200190f35b6101f9610d2f565b6101f9610d35565b6102506004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610d43565b6101f96004803603602081101561038957600080fd5b50356001600160a01b0316610e7a565b61031b610e8c565b6101f9610e9b565b610250600480360360208110156103bf57600080fd5b5035610ea1565b6101f9611093565b610250600480360360208110156103e457600080fd5b5035611099565b6101f9611176565b61031b6111c4565b6101f96111e8565b6102506111ee565b6101f9611211565b6102506004803603602081101561042957600080fd5b50356001600160a01b0316611217565b6001600160a01b0381166000908152600b6020908152604080832054600a9092528220546104b191906104ab90670de0b6b3a7640000906104a59061048690610480611176565b9061131a565b6001600160a01b0388166000908152600c602052604090205490611377565b906113d7565b9061143e565b92915050565b600b6020526000908152604090205481565b6104d1611498565b6001600160a01b03166104e2610e8c565b6001600160a01b03161461052b576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b60035460ff16151581151514156105415761059a565b6003805460ff1916821515179081905560ff161561055e57426002555b6003546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b60095481565b60006105bc60065460055461137790919063ffffffff16565b90505b90565b6002600054141561061a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005533610628611176565b600855610633610d35565b6007556001600160a01b0381161561067a5761064e81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b600082116106c3576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6009546106d0908361131a565b600955336000908152600c60205260409020546106ed908361131a565b336000818152600c6020526040902091909155610735907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908461149c565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250506001600055565b60065481565b610782611498565b6001600160a01b0316610793610e8c565b6001600160a01b0316146107dc576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b60006107e6611176565b6008556107f1610d35565b6007556001600160a01b038116156108385761080c81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b60045442106108575760065461084f9083906113d7565b60055561089a565b600454600090610867904261131a565b905060006108806005548361137790919063ffffffff16565b600654909150610894906104a5868461143e565b60055550505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561090957600080fd5b505afa15801561091d573d6000803e3d6000fd5b505050506040513d602081101561093357600080fd5b50516006549091506109469082906113d7565b600554111561099c576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b4260078190556006546109af919061143e565b6004556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60026000541415610a42576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005533610a50611176565b600855610a5b610d35565b6007556001600160a01b03811615610aa257610a7681610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b336000908152600b60205260409020548015610b3457336000818152600b6020526040812055610afd907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908361149c565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001600055565b610b45611498565b6001600160a01b0316610b56610e8c565b6001600160a01b031614610b9f576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b6000610ba9611176565b600855610bb4610d35565b6007556001600160a01b03811615610bfb57610bcf81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b4262093a80018211610c3e5760405162461bcd60e51b815260040180806020018281038252603381526020018061191c6033913960400191505060405180910390fd5b50600455565b60035460ff1681565b600c6020526000908152604090205481565b610c67611498565b6001600160a01b0316610c78610e8c565b6001600160a01b031614610cc1576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055481565b60006105bc426004546114f3565b610d4b611498565b6001600160a01b0316610d5c610e8c565b6001600160a01b031614610da5576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415610e165760405162461bcd60e51b81526004018080602001828103825260218152602001806119b56021913960400191505060405180910390fd5b610e32610e21610e8c565b6001600160a01b038416908361149c565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b600a6020526000908152604090205481565b6001546001600160a01b031690565b60025481565b60026000541415610ef9576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560035460ff1615610f405760405162461bcd60e51b815260040180806020018281038252603c81526020018061194f603c913960400191505060405180910390fd5b33610f49611176565b600855610f54610d35565b6007556001600160a01b03811615610f9b57610f6f81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b60008211610fe1576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600954610fee908361143e565b600955336000908152600c602052604090205461100b908361143e565b336000818152600c6020526040902091909155611054907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316903085611509565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001600055565b60075481565b6110a1611498565b6001600160a01b03166110b2610e8c565b6001600160a01b0316146110fb576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b600454421161113b5760405162461bcd60e51b81526004018080602001828103825260588152602001806118376058913960600191505060405180910390fd5b60068190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b60006009546000141561118c57506008546105bf565b6105bc6111bb6009546104a5670de0b6b3a76400006111b56005546111b5600754610480610d35565b90611377565b6008549061143e565b7f000000000000000000000000000000000000000000000000000000000000000081565b60085481565b336000908152600c6020526040902054611207906105c2565b61120f6109ea565b565b60045481565b61121f611498565b6001600160a01b0316611230610e8c565b6001600160a01b031614611279576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b6001600160a01b0381166112be5760405162461bcd60e51b815260040180806020018281038252602681526020018061188f6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115611371576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611386575060006104b1565b8282028284828161139357fe5b04146113d05760405162461bcd60e51b81526004018080602001828103825260218152602001806118db6021913960400191505060405180910390fd5b9392505050565b600080821161142d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161143657fe5b049392505050565b6000828201838110156113d0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114ee908490611569565b505050565b600081831061150257816113d0565b5090919050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611563908590611569565b50505050565b60006115be826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661161a9092919063ffffffff16565b8051909150156114ee578080602001905160208110156115dd57600080fd5b50516114ee5760405162461bcd60e51b815260040180806020018281038252602a81526020018061198b602a913960400191505060405180910390fd5b60606116298484600085611631565b949350505050565b6060824710156116725760405162461bcd60e51b81526004018080602001828103825260268152602001806118b56026913960400191505060405180910390fd5b61167b8561178c565b6116cc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061170a5780518252601f1990920191602091820191016116eb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461176c576040519150601f19603f3d011682016040523d82523d6000602084013e611771565b606091505b5091509150611781828286611792565b979650505050505050565b3b151590565b606083156117a15750816113d0565b8251156117b15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117fb5781810151838201526020016117e3565b50505050905090810190601f1680156118285780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243616e6e6f7420666973686973682072657761726473206561726c696572207468656e2031207765656b2066726f6d206e6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e7472616374206973207061757365645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea264697066735822122031117f28f46d3d7c4b2d60f3d28ef2dcd79ea02f3848c70aa9f30fbda1290fbe64736f6c6343000706003300000000000000000000000077777feddddffc19ff86db637967013e6c6a116c0000000000000000000000000c722a487876989af8a05fffb6e32e45cc23fb3a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c80637b0a47ee11610104578063c8f33c91116100a2578063df136d6511610071578063df136d65146103fb578063e9fad8ee14610403578063ebe2b12b1461040b578063f2fde38b14610413576101ce565b8063c8f33c91146103c6578063cc1a378f146103ce578063cd3daf9d146103eb578063d1af0c7d146103f3576101ce565b80638b876347116100de5780638b876347146103735780638da5cb5b1461039957806391b4ded9146103a1578063a694fc3a146103a9576101ce565b80637b0a47ee1461033757806380faa57d1461033f5780638980f11f14610347576101ce565b80633c6b16ab116101715780635c975abb1161014b5780635c975abb146102c957806370a08231146102e5578063715018a61461030b57806372f702f314610313576101ce565b80633c6b16ab146102875780633d18b912146102a4578063556f6e6b146102ac576101ce565b806318160ddd116101ad57806318160ddd146102525780631c1f78eb1461025a5780632e1a7d4d14610262578063386a95251461027f576101ce565b80628cc262146101d35780630700037d1461020b57806316c38b3c14610231575b600080fd5b6101f9600480360360208110156101e957600080fd5b50356001600160a01b0316610439565b60408051918252519081900360200190f35b6101f96004803603602081101561022157600080fd5b50356001600160a01b03166104b7565b6102506004803603602081101561024757600080fd5b503515156104c9565b005b6101f961059d565b6101f96105a3565b6102506004803603602081101561027857600080fd5b50356105c2565b6101f9610774565b6102506004803603602081101561029d57600080fd5b503561077a565b6102506109ea565b610250600480360360208110156102c257600080fd5b5035610b3d565b6102d1610c44565b604080519115158252519081900360200190f35b6101f9600480360360208110156102fb57600080fd5b50356001600160a01b0316610c4d565b610250610c5f565b61031b610d0b565b604080516001600160a01b039092168252519081900360200190f35b6101f9610d2f565b6101f9610d35565b6102506004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610d43565b6101f96004803603602081101561038957600080fd5b50356001600160a01b0316610e7a565b61031b610e8c565b6101f9610e9b565b610250600480360360208110156103bf57600080fd5b5035610ea1565b6101f9611093565b610250600480360360208110156103e457600080fd5b5035611099565b6101f9611176565b61031b6111c4565b6101f96111e8565b6102506111ee565b6101f9611211565b6102506004803603602081101561042957600080fd5b50356001600160a01b0316611217565b6001600160a01b0381166000908152600b6020908152604080832054600a9092528220546104b191906104ab90670de0b6b3a7640000906104a59061048690610480611176565b9061131a565b6001600160a01b0388166000908152600c602052604090205490611377565b906113d7565b9061143e565b92915050565b600b6020526000908152604090205481565b6104d1611498565b6001600160a01b03166104e2610e8c565b6001600160a01b03161461052b576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b60035460ff16151581151514156105415761059a565b6003805460ff1916821515179081905560ff161561055e57426002555b6003546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b60095481565b60006105bc60065460055461137790919063ffffffff16565b90505b90565b6002600054141561061a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005533610628611176565b600855610633610d35565b6007556001600160a01b0381161561067a5761064e81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b600082116106c3576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6009546106d0908361131a565b600955336000908152600c60205260409020546106ed908361131a565b336000818152600c6020526040902091909155610735907f0000000000000000000000000c722a487876989af8a05fffb6e32e45cc23fb3a6001600160a01b0316908461149c565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250506001600055565b60065481565b610782611498565b6001600160a01b0316610793610e8c565b6001600160a01b0316146107dc576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b60006107e6611176565b6008556107f1610d35565b6007556001600160a01b038116156108385761080c81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b60045442106108575760065461084f9083906113d7565b60055561089a565b600454600090610867904261131a565b905060006108806005548361137790919063ffffffff16565b600654909150610894906104a5868461143e565b60055550505b60007f00000000000000000000000077777feddddffc19ff86db637967013e6c6a116c6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561090957600080fd5b505afa15801561091d573d6000803e3d6000fd5b505050506040513d602081101561093357600080fd5b50516006549091506109469082906113d7565b600554111561099c576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b4260078190556006546109af919061143e565b6004556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60026000541415610a42576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005533610a50611176565b600855610a5b610d35565b6007556001600160a01b03811615610aa257610a7681610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b336000908152600b60205260409020548015610b3457336000818152600b6020526040812055610afd907f00000000000000000000000077777feddddffc19ff86db637967013e6c6a116c6001600160a01b0316908361149c565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001600055565b610b45611498565b6001600160a01b0316610b56610e8c565b6001600160a01b031614610b9f576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b6000610ba9611176565b600855610bb4610d35565b6007556001600160a01b03811615610bfb57610bcf81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b4262093a80018211610c3e5760405162461bcd60e51b815260040180806020018281038252603381526020018061191c6033913960400191505060405180910390fd5b50600455565b60035460ff1681565b600c6020526000908152604090205481565b610c67611498565b6001600160a01b0316610c78610e8c565b6001600160a01b031614610cc1576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b7f0000000000000000000000000c722a487876989af8a05fffb6e32e45cc23fb3a81565b60055481565b60006105bc426004546114f3565b610d4b611498565b6001600160a01b0316610d5c610e8c565b6001600160a01b031614610da5576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b7f0000000000000000000000000c722a487876989af8a05fffb6e32e45cc23fb3a6001600160a01b0316826001600160a01b03161415610e165760405162461bcd60e51b81526004018080602001828103825260218152602001806119b56021913960400191505060405180910390fd5b610e32610e21610e8c565b6001600160a01b038416908361149c565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b600a6020526000908152604090205481565b6001546001600160a01b031690565b60025481565b60026000541415610ef9576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560035460ff1615610f405760405162461bcd60e51b815260040180806020018281038252603c81526020018061194f603c913960400191505060405180910390fd5b33610f49611176565b600855610f54610d35565b6007556001600160a01b03811615610f9b57610f6f81610439565b6001600160a01b0382166000908152600b6020908152604080832093909355600854600a909152919020555b60008211610fe1576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600954610fee908361143e565b600955336000908152600c602052604090205461100b908361143e565b336000818152600c6020526040902091909155611054907f0000000000000000000000000c722a487876989af8a05fffb6e32e45cc23fb3a6001600160a01b0316903085611509565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001600055565b60075481565b6110a1611498565b6001600160a01b03166110b2610e8c565b6001600160a01b0316146110fb576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b600454421161113b5760405162461bcd60e51b81526004018080602001828103825260588152602001806118376058913960600191505060405180910390fd5b60068190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b60006009546000141561118c57506008546105bf565b6105bc6111bb6009546104a5670de0b6b3a76400006111b56005546111b5600754610480610d35565b90611377565b6008549061143e565b7f00000000000000000000000077777feddddffc19ff86db637967013e6c6a116c81565b60085481565b336000908152600c6020526040902054611207906105c2565b61120f6109ea565b565b60045481565b61121f611498565b6001600160a01b0316611230610e8c565b6001600160a01b031614611279576040805162461bcd60e51b815260206004820181905260248201526000805160206118fc833981519152604482015290519081900360640190fd5b6001600160a01b0381166112be5760405162461bcd60e51b815260040180806020018281038252602681526020018061188f6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115611371576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611386575060006104b1565b8282028284828161139357fe5b04146113d05760405162461bcd60e51b81526004018080602001828103825260218152602001806118db6021913960400191505060405180910390fd5b9392505050565b600080821161142d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161143657fe5b049392505050565b6000828201838110156113d0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114ee908490611569565b505050565b600081831061150257816113d0565b5090919050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611563908590611569565b50505050565b60006115be826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661161a9092919063ffffffff16565b8051909150156114ee578080602001905160208110156115dd57600080fd5b50516114ee5760405162461bcd60e51b815260040180806020018281038252602a81526020018061198b602a913960400191505060405180910390fd5b60606116298484600085611631565b949350505050565b6060824710156116725760405162461bcd60e51b81526004018080602001828103825260268152602001806118b56026913960400191505060405180910390fd5b61167b8561178c565b6116cc576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061170a5780518252601f1990920191602091820191016116eb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461176c576040519150601f19603f3d011682016040523d82523d6000602084013e611771565b606091505b5091509150611781828286611792565b979650505050505050565b3b151590565b606083156117a15750816113d0565b8251156117b15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117fb5781810151838201526020016117e3565b50505050905090810190601f1680156118285780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243616e6e6f7420666973686973682072657761726473206561726c696572207468656e2031207765656b2066726f6d206e6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e7472616374206973207061757365645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea264697066735822122031117f28f46d3d7c4b2d60f3d28ef2dcd79ea02f3848c70aa9f30fbda1290fbe64736f6c63430007060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000077777FeDdddFfC19Ff86DB637967013e6C6A116C0000000000000000000000000C722a487876989Af8a05FFfB6e32e45cc23FB3A

-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0x77777FeDdddFfC19Ff86DB637967013e6C6A116C
Arg [1] : _stakingToken (address): 0x0C722a487876989Af8a05FFfB6e32e45cc23FB3A

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000077777FeDdddFfC19Ff86DB637967013e6C6A116C
Arg [1] : 0000000000000000000000000C722a487876989Af8a05FFfB6e32e45cc23FB3A


Deployed Bytecode Sourcemap

31334:5912:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32733:198;;;;;;;;;;;;;;;;-1:-1:-1;32733:198:0;-1:-1:-1;;;;;32733:198:0;;:::i;:::-;;;;;;;;;;;;;;;;31900:42;;;;;;;;;;;;;;;;-1:-1:-1;31900:42:0;-1:-1:-1;;;;;31900:42:0;;:::i;30480:500::-;;;;;;;;;;;;;;;;-1:-1:-1;30480:500:0;;;;:::i;:::-;;31801:26;;;:::i;32939:121::-;;;:::i;33507:355::-;;;;;;;;;;;;;;;;-1:-1:-1;33507:355:0;;:::i;31675:41::-;;;:::i;34346:1069::-;;;;;;;;;;;;;;;;-1:-1:-1;34346:1069:0;;:::i;33870:307::-;;;:::i;35460:242::-;;;;;;;;;;;;;;;;-1:-1:-1;35460:242:0;;:::i;30073:18::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;31949:44;;;;;;;;;;;;;;;;-1:-1:-1;31949:44:0;-1:-1:-1;;;;;31949:44:0;;:::i;29314:148::-;;;:::i;31505:36::-;;;:::i;:::-;;;;-1:-1:-1;;;;;31505:36:0;;;;;;;;;;;;;;31639:29;;;:::i;32258:131::-;;;:::i;35817:304::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;35817:304:0;;;;;;;;:::i;31836:57::-;;;;;;;;;;;;;;;;-1:-1:-1;31836:57:0;-1:-1:-1;;;;;31836:57:0;;:::i;28663:87::-;;;:::i;30041:25::-;;;:::i;33122:377::-;;;;;;;;;;;;;;;;-1:-1:-1;33122:377:0;;:::i;31723:29::-;;;:::i;36129:360::-;;;;;;;;;;;;;;;;-1:-1:-1;36129:360:0;;:::i;32397:328::-;;;:::i;31462:36::-;;;:::i;31759:35::-;;;:::i;34185:97::-;;;:::i;31601:31::-;;;:::i;29617:244::-;;;;;;;;;;;;;;;;-1:-1:-1;29617:244:0;-1:-1:-1;;;;;29617:244:0;;:::i;32733:198::-;-1:-1:-1;;;;;32906:16:0;;32787:7;32906:16;;;:7;:16;;;;;;;;;32858:22;:31;;;;;;32814:109;;32906:16;32814:87;;32896:4;;32814:77;;32837:53;;:16;:14;:16::i;:::-;:20;;:53::i;:::-;-1:-1:-1;;;;;32814:18:0;;;;;;:9;:18;;;;;;;:22;:77::i;:::-;:81;;:87::i;:::-;:91;;:109::i;:::-;32807:116;32733:198;-1:-1:-1;;32733:198:0:o;31900:42::-;;;;;;;;;;;;;:::o;30480:500::-;28894:12;:10;:12::i;:::-;-1:-1:-1;;;;;28883:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;28883:23:0;;28875:68;;;;;-1:-1:-1;;;28875:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28875:68:0;;;;;;;;;;;;;;;30633:6:::1;::::0;::::1;;30622:17;;::::0;::::1;;;30618:56;;;30656:7;;30618:56;30720:6;:16:::0;;-1:-1:-1;;30720:16:0::1;::::0;::::1;;;::::0;;;;::::1;30805:6;30801:70;;;30844:15;30828:13;:31:::0;30801:70:::1;30965:6;::::0;30952:20:::1;::::0;;30965:6:::1;::::0;;::::1;30952:20;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;28954:1;30480:500:::0;:::o;31801:26::-;;;;:::o;32939:121::-;32994:7;33021:31;33036:15;;33021:10;;:14;;:31;;;;:::i;:::-;33014:38;;32939:121;;:::o;33507:355::-;25595:1;26201:7;;:19;;26193:63;;;;;-1:-1:-1;;;26193:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25595:1;26334:7;:18;33574:10:::1;36615:16;:14;:16::i;:::-;36592:20;:39:::0;36659:26:::1;:24;:26::i;:::-;36642:14;:43:::0;-1:-1:-1;;;;;36700:21:0;::::1;::::0;36696:157:::1;;36757:15;36764:7;36757:6;:15::i;:::-;-1:-1:-1::0;;;;;36738:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;36821:20:::1;::::0;36787:22:::1;:31:::0;;;;;;:54;36696:157:::1;33614:1:::2;33605:6;:10;33597:40;;;::::0;;-1:-1:-1;;;33597:40:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;33597:40:0;;;;;;;;;;;;;::::2;;33662:11;::::0;:23:::2;::::0;33678:6;33662:15:::2;:23::i;:::-;33648:11;:37:::0;33730:10:::2;33720:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;33746:6;33720:25:::2;:33::i;:::-;33706:10;33696:21;::::0;;;:9:::2;:21;::::0;;;;:57;;;;33764:45:::2;::::0;:12:::2;-1:-1:-1::0;;;;;33764:25:0::2;::::0;33802:6;33764:25:::2;:45::i;:::-;33825:29;::::0;;;;;;;33835:10:::2;::::0;33825:29:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;25551:1:0;26513:7;:22;33507:355::o;31675:41::-;;;;:::o;34346:1069::-;28894:12;:10;:12::i;:::-;-1:-1:-1;;;;;28883:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;28883:23:0;;28875:68;;;;;-1:-1:-1;;;28875:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28875:68:0;;;;;;;;;;;;;;;34430:1:::1;36615:16;:14;:16::i;:::-;36592:20;:39:::0;36659:26:::1;:24;:26::i;:::-;36642:14;:43:::0;-1:-1:-1;;;;;36700:21:0;::::1;::::0;36696:157:::1;;36757:15;36764:7;36757:6;:15::i;:::-;-1:-1:-1::0;;;;;36738:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;36821:20:::1;::::0;36787:22:::1;:31:::0;;;;;;:54;36696:157:::1;34468:12:::2;;34449:15;:31;34445:318;;34521:15;::::0;34510:27:::2;::::0;:6;;:10:::2;:27::i;:::-;34497:10;:40:::0;34445:318:::2;;;34590:12;::::0;34570:17:::2;::::0;34590:33:::2;::::0;34607:15:::2;34590:16;:33::i;:::-;34570:53;;34638:16;34657:25;34671:10;;34657:9;:13;;:25;;;;:::i;:::-;34735:15;::::0;34638:44;;-1:-1:-1;34710:41:0::2;::::0;:20:::2;:6:::0;34638:44;34710:10:::2;:20::i;:41::-;34697:10;:54:::0;-1:-1:-1;;34445:318:0::2;35123:12;35138;-1:-1:-1::0;;;;;35138:22:0::2;;35169:4;35138:37;;;;;;;;;;;;;-1:-1:-1::0;;;;;35138:37:0::2;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;35138:37:0;35220:15:::2;::::0;35138:37;;-1:-1:-1;35208:28:0::2;::::0;35138:37;;35208:11:::2;:28::i;:::-;35194:10;;:42;;35186:79;;;::::0;;-1:-1:-1;;;35186:79:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;35295:15;35278:14;:32:::0;;;35356:15:::2;::::0;35336:36:::2;::::0;35295:15;35336:19:::2;:36::i;:::-;35321:12;:51:::0;35388:19:::2;::::0;;;;;;;::::2;::::0;;;;::::2;::::0;;::::2;36863:1;28954::::1;34346:1069:::0;:::o;33870:307::-;25595:1;26201:7;;:19;;26193:63;;;;;-1:-1:-1;;;26193:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25595:1;26334:7;:18;33924:10:::1;36615:16;:14;:16::i;:::-;36592:20;:39:::0;36659:26:::1;:24;:26::i;:::-;36642:14;:43:::0;-1:-1:-1;;;;;36700:21:0;::::1;::::0;36696:157:::1;;36757:15;36764:7;36757:6;:15::i;:::-;-1:-1:-1::0;;;;;36738:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;36821:20:::1;::::0;36787:22:::1;:31:::0;;;;;;:54;36696:157:::1;33972:10:::2;33947:14;33964:19:::0;;;:7:::2;:19;::::0;;;;;33998:10;;33994:176:::2;;34033:10;34047:1;34025:19:::0;;;:7:::2;:19;::::0;;;;:23;34063:45:::2;::::0;:12:::2;-1:-1:-1::0;;;;;34063:25:0::2;::::0;34101:6;34063:25:::2;:45::i;:::-;34128:30;::::0;;;;;;;34139:10:::2;::::0;34128:30:::2;::::0;;;;;::::2;::::0;;::::2;33994:176;-1:-1:-1::0;;25551:1:0;26513:7;:22;33870:307::o;35460:242::-;28894:12;:10;:12::i;:::-;-1:-1:-1;;;;;28883:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;28883:23:0;;28875:68;;;;;-1:-1:-1;;;28875:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28875:68:0;;;;;;;;;;;;;;;35544:1:::1;36615:16;:14;:16::i;:::-;36592:20;:39:::0;36659:26:::1;:24;:26::i;:::-;36642:14;:43:::0;-1:-1:-1;;;;;36700:21:0;::::1;::::0;36696:157:::1;;36757:15;36764:7;36757:6;:15::i;:::-;-1:-1:-1::0;;;;;36738:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;36821:20:::1;::::0;36787:22:::1;:31:::0;;;;;;:54;36696:157:::1;35579:15:::2;35597:6;35579:24;35567:9;:36;35559:100;;;;-1:-1:-1::0;;;35559:100:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;35670:12:0::2;:24:::0;35460:242::o;30073:18::-;;;;;;:::o;31949:44::-;;;;;;;;;;;;;:::o;29314:148::-;28894:12;:10;:12::i;:::-;-1:-1:-1;;;;;28883:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;28883:23:0;;28875:68;;;;;-1:-1:-1;;;28875:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28875:68:0;;;;;;;;;;;;;;;29405:6:::1;::::0;29384:40:::1;::::0;29421:1:::1;::::0;-1:-1:-1;;;;;29405:6:0::1;::::0;29384:40:::1;::::0;29421:1;;29384:40:::1;29435:6;:19:::0;;-1:-1:-1;;;;;;29435:19:0::1;::::0;;29314:148::o;31505:36::-;;;:::o;31639:29::-;;;;:::o;32258:131::-;32315:7;32342:39;32351:15;32368:12;;32342:8;:39::i;35817:304::-;28894:12;:10;:12::i;:::-;-1:-1:-1;;;;;28883:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;28883:23:0;;28875:68;;;;;-1:-1:-1;;;28875:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28875:68:0;;;;;;;;;;;;;;;35944:12:::1;-1:-1:-1::0;;;;;35920:37:0::1;:12;-1:-1:-1::0;;;;;35920:37:0::1;;;35912:83;;;;-1:-1:-1::0;;;35912:83:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36006:55;36040:7;:5;:7::i;:::-;-1:-1:-1::0;;;;;36006:33:0;::::1;::::0;36049:11;36006:33:::1;:55::i;:::-;36077:36;::::0;;-1:-1:-1;;;;;36077:36:0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;35817:304:::0;;:::o;31836:57::-;;;;;;;;;;;;;:::o;28663:87::-;28736:6;;-1:-1:-1;;;;;28736:6:0;28663:87;:::o;30041:25::-;;;;:::o;33122:377::-;25595:1;26201:7;;:19;;26193:63;;;;;-1:-1:-1;;;26193:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25595:1;26334:7;:18;31069:6:::1;::::0;::::1;;31068:7;31060:80;;;;-1:-1:-1::0;;;31060:80:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33198:10:::2;36615:16;:14;:16::i;:::-;36592:20;:39:::0;36659:26:::2;:24;:26::i;:::-;36642:14;:43:::0;-1:-1:-1;;;;;36700:21:0;::::2;::::0;36696:157:::2;;36757:15;36764:7;36757:6;:15::i;:::-;-1:-1:-1::0;;;;;36738:16:0;::::2;;::::0;;;:7:::2;:16;::::0;;;;;;;:34;;;;36821:20:::2;::::0;36787:22:::2;:31:::0;;;;;;:54;36696:157:::2;33238:1:::3;33229:6;:10;33221:37;;;::::0;;-1:-1:-1;;;33221:37:0;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;33221:37:0;;;;;;;;;;;;;::::3;;33283:11;::::0;:23:::3;::::0;33299:6;33283:15:::3;:23::i;:::-;33269:11;:37:::0;33351:10:::3;33341:21;::::0;;;:9:::3;:21;::::0;;;;;:33:::3;::::0;33367:6;33341:25:::3;:33::i;:::-;33327:10;33317:21;::::0;;;:9:::3;:21;::::0;;;;:57;;;;33385:64:::3;::::0;:12:::3;-1:-1:-1::0;;;;;33385:29:0::3;::::0;33435:4:::3;33442:6:::0;33385:29:::3;:64::i;:::-;33465:26;::::0;;;;;;;33472:10:::3;::::0;33465:26:::3;::::0;;;;;::::3;::::0;;::::3;-1:-1:-1::0;;25551:1:0;26513:7;:22;33122:377::o;31723:29::-;;;;:::o;36129:360::-;28894:12;:10;:12::i;:::-;-1:-1:-1;;;;;28883:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;28883:23:0;;28875:68;;;;;-1:-1:-1;;;28875:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28875:68:0;;;;;;;;;;;;;;;36253:12:::1;;36235:15;:30;36213:168;;;;-1:-1:-1::0;;;36213:168:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36392:15;:34:::0;;;36442:39:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;36129:360:::0;:::o;32397:328::-;32444:7;32468:11;;32483:1;32468:16;32464:76;;;-1:-1:-1;32508:20:0;;32501:27;;32464:76;32570:147;32613:89;32690:11;;32613:72;32680:4;32613:62;32664:10;;32613:46;32644:14;;32613:26;:24;:26::i;:46::-;:50;;:62::i;:89::-;32570:20;;;:24;:147::i;31462:36::-;;;:::o;31759:35::-;;;;:::o;34185:97::-;34240:10;34230:21;;;;:9;:21;;;;;;34221:31;;:8;:31::i;:::-;34263:11;:9;:11::i;:::-;34185:97::o;31601:31::-;;;;:::o;29617:244::-;28894:12;:10;:12::i;:::-;-1:-1:-1;;;;;28883:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;28883:23:0;;28875:68;;;;;-1:-1:-1;;;28875:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28875:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29706:22:0;::::1;29698:73;;;;-1:-1:-1::0;;;29698:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29808:6;::::0;29787:38:::1;::::0;-1:-1:-1;;;;;29787:38:0;;::::1;::::0;29808:6:::1;::::0;29787:38:::1;::::0;29808:6:::1;::::0;29787:38:::1;29836:6;:17:::0;;-1:-1:-1;;;;;;29836:17:0::1;-1:-1:-1::0;;;;;29836:17:0;;;::::1;::::0;;;::::1;::::0;;29617:244::o;5033:158::-;5091:7;5124:1;5119;:6;;5111:49;;;;;-1:-1:-1;;;5111:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5178:5:0;;;5033:158::o;5450:220::-;5508:7;5532:6;5528:20;;-1:-1:-1;5547:1:0;5540:8;;5528:20;5571:5;;;5575:1;5571;:5;:1;5595:5;;;;;:10;5587:56;;;;-1:-1:-1;;;5587:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5661:1;5450:220;-1:-1:-1;;;5450:220:0:o;6148:153::-;6206:7;6238:1;6234;:5;6226:44;;;;;-1:-1:-1;;;6226:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6292:1;6288;:5;;;;;;;6148:153;-1:-1:-1;;;6148:153:0:o;4571:179::-;4629:7;4661:5;;;4685:6;;;;4677:46;;;;;-1:-1:-1;;;4677:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;27192:106;27280:10;27192:106;:::o;20764:177::-;20874:58;;;-1:-1:-1;;;;;20874:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20874:58:0;-1:-1:-1;;;20874:58:0;;;20847:86;;20867:5;;20847:19;:86::i;:::-;20764:177;;;:::o;1343:106::-;1401:7;1432:1;1428;:5;:13;;1440:1;1428:13;;;-1:-1:-1;1436:1:0;;1421:20;-1:-1:-1;1343:106:0:o;20949:205::-;21077:68;;;-1:-1:-1;;;;;21077:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21077:68:0;-1:-1:-1;;;21077:68:0;;;21050:96;;21070:5;;21050:19;:96::i;:::-;20949:205;;;;:::o;23069:761::-;23493:23;23519:69;23547:4;23519:69;;;;;;;;;;;;;;;;;23527:5;-1:-1:-1;;;;;23519:27:0;;;:69;;;;;:::i;:::-;23603:17;;23493:95;;-1:-1:-1;23603:21:0;23599:224;;23745:10;23734:30;;;;;;;;;;;;;;;-1:-1:-1;23734:30:0;23726:85;;;;-1:-1:-1;;;23726:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15753:195;15856:12;15888:52;15910:6;15918:4;15924:1;15927:12;15888:21;:52::i;:::-;15881:59;15753:195;-1:-1:-1;;;;15753:195:0:o;16805:530::-;16932:12;16990:5;16965:21;:30;;16957:81;;;;-1:-1:-1;;;16957:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17057:18;17068:6;17057:10;:18::i;:::-;17049:60;;;;;-1:-1:-1;;;17049:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17183:12;17197:23;17224:6;-1:-1:-1;;;;;17224:11:0;17244:5;17252:4;17224:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;17224:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17182:75;;;;17275:52;17293:7;17302:10;17314:12;17275:17;:52::i;:::-;17268:59;16805:530;-1:-1:-1;;;;;;;16805:530:0:o;12835:422::-;13202:20;13241:8;;;12835:422::o;19345:742::-;19460:12;19489:7;19485:595;;;-1:-1:-1;19520:10:0;19513:17;;19485:595;19634:17;;:21;19630:439;;19897:10;19891:17;19958:15;19945:10;19941:2;19937:19;19930:44;19845:148;20040:12;20033:20;;-1:-1:-1;;;20033:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://31117f28f46d3d7c4b2d60f3d28ef2dcd79ea02f3848c70aa9f30fbda1290fbe

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.