ETH Price: $2,072.49 (+1.60%)
Gas: 0.16 Gwei

Contract

0xdeE3fCE6fe06dC2e04FFd2B6535dbCb42f853c0E
 

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
Exit120041322021-03-09 11:46:501828 days ago1615290410IN
0xdeE3fCE6...42f853c0E
0 ETH0.0118276290
Exit117763062021-02-02 10:36:241863 days ago1612262184IN
0xdeE3fCE6...42f853c0E
0 ETH0.02227059152.10285714
Exit117698192021-02-01 10:37:081864 days ago1612175828IN
0xdeE3fCE6...42f853c0E
0 ETH0.0124847195
Exit117166092021-01-24 6:00:101872 days ago1611468010IN
0xdeE3fCE6...42f853c0E
0 ETH0.007320950
Exit117151502021-01-24 0:39:031872 days ago1611448743IN
0xdeE3fCE6...42f853c0E
0 ETH0.0068337352
Exit117138212021-01-23 19:50:431872 days ago1611431443IN
0xdeE3fCE6...42f853c0E
0 ETH0.0074908257
Exit117124492021-01-23 14:46:241873 days ago1611413184IN
0xdeE3fCE6...42f853c0E
0 ETH0.0067593966
Exit117118962021-01-23 12:46:281873 days ago1611405988IN
0xdeE3fCE6...42f853c0E
0 ETH0.0059138145
Exit117090222021-01-23 2:08:481873 days ago1611367728IN
0xdeE3fCE6...42f853c0E
0 ETH0.0080529955
Exit117076622021-01-22 21:16:051873 days ago1611350165IN
0xdeE3fCE6...42f853c0E
0 ETH0.0095527970.43902668
Exit116868062021-01-19 16:22:571877 days ago1611073377IN
0xdeE3fCE6...42f853c0E
0 ETH0.01698448116
Exit116822192021-01-18 23:29:481877 days ago1611012588IN
0xdeE3fCE6...42f853c0E
0 ETH0.0056370938.5
Exit116780092021-01-18 7:50:211878 days ago1610956221IN
0xdeE3fCE6...42f853c0E
0 ETH0.0063080648
Exit116770262021-01-18 4:16:491878 days ago1610943409IN
0xdeE3fCE6...42f853c0E
0 ETH0.0070751952.17
Exit116764822021-01-18 2:19:501878 days ago1610936390IN
0xdeE3fCE6...42f853c0E
0 ETH0.0052231651
Exit116757072021-01-17 23:26:231878 days ago1610925983IN
0xdeE3fCE6...42f853c0E
0 ETH0.0047310436
Exit116751192021-01-17 21:20:381878 days ago1610918438IN
0xdeE3fCE6...42f853c0E
0 ETH0.0086210265.6
Exit116747652021-01-17 20:03:551878 days ago1610913835IN
0xdeE3fCE6...42f853c0E
0 ETH0.0073922656.25
Exit116746692021-01-17 19:41:171878 days ago1610912477IN
0xdeE3fCE6...42f853c0E
0 ETH0.004393642.9
Exit116742792021-01-17 18:15:031879 days ago1610907303IN
0xdeE3fCE6...42f853c0E
0 ETH0.0047310436
Exit116742122021-01-17 18:01:241879 days ago1610906484IN
0xdeE3fCE6...42f853c0E
0 ETH0.0061977445.7
Exit116736572021-01-17 16:02:501879 days ago1610899370IN
0xdeE3fCE6...42f853c0E
0 ETH0.0046086745
Exit116735792021-01-17 15:46:591879 days ago1610898419IN
0xdeE3fCE6...42f853c0E
0 ETH0.0080529955
Exit116723742021-01-17 11:12:381879 days ago1610881958IN
0xdeE3fCE6...42f853c0E
0 ETH0.0055638838
Exit116721172021-01-17 10:14:111879 days ago1610878451IN
0xdeE3fCE6...42f853c0E
0 ETH0.0058567240
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-112572502020-11-14 17:47:151943 days ago1605376035  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 0x98bc3a27...Ab01Fdb3B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StakingRewards

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-14
*/

//   _________ _______   ________  __      __  _________ __                        
//  /   _____/ \      \  \_____  \/  \    /  \/   _____//  |_  ___________  _____  
//  \_____  \  /   |   \  /   |   \   \/\/   /\_____  \\   __\/  _ \_  __ \/     \ 
//  /        \/    |    \/    |    \        / /        \|  | (  <_> )  | \/  Y Y  \
// /_______  /\____|__  /\_______  /\__/\  / /_______  /|__|  \____/|__|  |__|_|  /
//         \/         \/         \/      \/          \/                         \/ 

// Snowstorm token geyser factory
// Based off SNX and UNI staking contracts
pragma solidity ^0.5.16;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return c;
    }

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

        return c;
    }

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

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

        return c;
    }

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

        return c;
    }

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

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

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

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

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

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

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

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

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

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

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

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

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

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

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

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

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

contract RewardsDistributionRecipient {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward) 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 view returns (uint256) {
        return _totalSupply;
    }

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

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

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

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

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

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

    // not using stake with permit or uniswap tokens 

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

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

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

    function stake(uint256 amount) external nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

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

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

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

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

    function notifyRewardAmount(uint256 reward) 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)) {
            // bonus intial liquidity to bootstrap curve
            if (_totalSupply == 0) {
                rewards[account] = rewardRate
                    .mul(rewardsDuration)
                    .mul(1e17)
                    .div(1e18)
                    .mul(2)
                    .add(earned(account));

                // 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(rewards[account] <= balance, "Provided reward too high");
            }
            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);
}

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

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

0x608060405260006004556000600555624f1a0060065534801561002157600080fd5b506040516118353803806118358339818101604052606081101561004457600080fd5b508051602082015160409092015160018055600280546001600160a01b039485166001600160a01b031991821617909155600380549285169282169290921790915560008054939092169216919091179055611790806100a56000396000f3fe608060405234801561001057600080fd5b50600436106101415760003560e01c80637b0a47ee116100b8578063cd3daf9d1161007c578063cd3daf9d146102ad578063d1af0c7d146102b5578063df136d65146102bd578063e9fad8ee146102c5578063ebe2b12b146102cd578063ecd9ba82146102d557610141565b80637b0a47ee1461025257806380faa57d1461025a5780638b87634714610262578063a694fc3a14610288578063c8f33c91146102a557610141565b8063386a95251161010a578063386a9525146101d35780633c6b16ab146101db5780633d18b912146101f85780633fc6df6e1461020057806370a082311461022457806372f702f31461024a57610141565b80628cc262146101465780630700037d1461017e57806318160ddd146101a45780631c1f78eb146101ac5780632e1a7d4d146101b4575b600080fd5b61016c6004803603602081101561015c57600080fd5b50356001600160a01b031661030d565b60408051918252519081900360200190f35b61016c6004803603602081101561019457600080fd5b50356001600160a01b03166103a3565b61016c6103b5565b61016c6103bc565b6101d1600480360360208110156101ca57600080fd5b50356103da565b005b61016c6106a5565b6101d1600480360360208110156101f157600080fd5b50356106ab565b6101d16109e6565b610208610c06565b604080516001600160a01b039092168252519081900360200190f35b61016c6004803603602081101561023a57600080fd5b50356001600160a01b0316610c15565b610208610c30565b61016c610c3f565b61016c610c45565b61016c6004803603602081101561027857600080fd5b50356001600160a01b0316610c53565b6101d16004803603602081101561029e57600080fd5b5035610c65565b61016c610eea565b61016c610ef0565b610208610f3e565b61016c610f4d565b6101d1610f53565b61016c610f76565b6101d1600480360360a08110156102eb57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610f7c565b6001600160a01b0381166000908152600a6020908152604080832054600990925282205461039d919061039190670de0b6b3a7640000906103859061036090610354610ef0565b9063ffffffff61129a16565b6001600160a01b0388166000908152600c60205260409020549063ffffffff6112f716565b9063ffffffff61135716565b9063ffffffff6113c116565b92915050565b600a6020526000908152604090205481565b600b545b90565b60006103d56006546005546112f790919063ffffffff16565b905090565b60018054810190819055336103ed610ef0565b6008556103f8610c45565b6007556001600160a01b0381161561057b57600b546105465761045d61041d8261030d565b6103916002610451670de0b6b3a764000061038567016345785d8a00006104516006546005546112f790919063ffffffff16565b9063ffffffff6112f716565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b1580156104ba57600080fd5b505afa1580156104ce573d6000803e3d6000fd5b505050506040513d60208110156104e457600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610544576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b61054f8161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b600083116105c4576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600b546105d7908463ffffffff61129a16565b600b55336000908152600c60205260409020546105fa908463ffffffff61129a16565b336000818152600c6020526040902091909155600354610626916001600160a01b03909116908561141b565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25060015481146106a1576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b5050565b60065481565b6000546001600160a01b031633146106f45760405162461bcd60e51b815260040180806020018281038252602a815260200180611708602a913960400191505060405180910390fd5b60006106fe610ef0565b600855610709610c45565b6007556001600160a01b0381161561084c57600b546108175761072e61041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b15801561078b57600080fd5b505afa15801561079f573d6000803e3d6000fd5b505050506040513d60208110156107b557600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610815576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b6108208161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60045442106108715760065461086990839063ffffffff61135716565b6005556108c0565b600454600090610887904263ffffffff61129a16565b905060006108a0600554836112f790919063ffffffff16565b6006549091506108ba90610385868463ffffffff6113c116565b60055550505b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561090b57600080fd5b505afa15801561091f573d6000803e3d6000fd5b505050506040513d602081101561093557600080fd5b505160065490915061094e90829063ffffffff61135716565b6005541115610992576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b4260078190556006546109ab919063ffffffff6113c116565b6004556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60018054810190819055336109f9610ef0565b600855610a04610c45565b6007556001600160a01b03811615610b4757600b54610b1257610a2961041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b158015610a8657600080fd5b505afa158015610a9a573d6000803e3d6000fd5b505050506040513d6020811015610ab057600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610b10576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b610b1b8161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b336000908152600a60205260409020548015610bbd57336000818152600a6020526040812055600254610b86916001600160a01b03909116908361141b565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001548114610c03576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b50565b6000546001600160a01b031681565b6001600160a01b03166000908152600c602052604090205490565b6003546001600160a01b031681565b60055481565b60006103d542600454611472565b60096020526000908152604090205481565b6001805481019081905533610c78610ef0565b600855610c83610c45565b6007556001600160a01b03811615610dc657600b54610d9157610ca861041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b158015610d0557600080fd5b505afa158015610d19573d6000803e3d6000fd5b505050506040513d6020811015610d2f57600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610d8f576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b610d9a8161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60008311610e0c576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54610e1f908463ffffffff6113c116565b600b55336000908152600c6020526040902054610e42908463ffffffff6113c116565b336000818152600c6020526040902091909155600354610e6f916001600160a01b03909116903086611488565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146106a1576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b60075481565b6000600b5460001415610f0657506008546103b9565b6103d5610f2f600b54610385670de0b6b3a7640000610451600554610451600754610354610c45565b6008549063ffffffff6113c116565b6002546001600160a01b031681565b60085481565b336000908152600c6020526040902054610f6c906103da565b610f746109e6565b565b60045481565b6001805481019081905533610f8f610ef0565b600855610f9a610c45565b6007556001600160a01b038116156110dd57600b546110a857610fbf61041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b15801561101c57600080fd5b505afa158015611030573d6000803e3d6000fd5b505050506040513d602081101561104657600080fd5b50516001600160a01b0383166000908152600a60205260409020549091508110156110a6576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b6110b18161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60008711611123576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54611136908863ffffffff6113c116565b600b55336000908152600c6020526040902054611159908863ffffffff6113c116565b336000818152600c602052604080822093909355600354835163d505accf60e01b81526004810193909352306024840152604483018b9052606483018a905260ff8916608484015260a4830188905260c4830187905292516001600160a01b039093169263d505accf9260e480820193929182900301818387803b1580156111e057600080fd5b505af11580156111f4573d6000803e3d6000fd5b505060035461121792506001600160a01b0316905033308a63ffffffff61148816565b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2506001548114611292576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b505050505050565b6000828211156112f1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826113065750600061039d565b8282028284828161131357fe5b04146113505760405162461bcd60e51b81526004018080602001828103825260218152602001806116e76021913960400191505060405180910390fd5b9392505050565b60008082116113ad576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b60008284816113b857fe5b04949350505050565b600082820183811015611350576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261146d9084906114e8565b505050565b60008183106114815781611350565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526114e29085906114e8565b50505050565b6114fa826001600160a01b03166116a0565b61154b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106115895780518252601f19909201916020918201910161156a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146115eb576040519150601f19603f3d011682016040523d82523d6000602084013e6115f0565b606091505b509150915081611647576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156114e25780806020019051602081101561166357600080fd5b50516114e25760405162461bcd60e51b815260040180806020018281038252602a815260200180611732602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c0050726f76696465642072657761726420746f6f20686967680000000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158206f5974beb2e860e20aeba8cfcc4af35241cd5e64cb6348210a4cb94dcd60ec4164736f6c634300051000320000000000000000000000005072475a23b84041042eca21906bc06af443db45000000000000000000000000fe9a29ab92522d14fc65880d817214261d8479ae000000000000000000000000078b728243b975d1a284666c30b30530a8c087fe

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101415760003560e01c80637b0a47ee116100b8578063cd3daf9d1161007c578063cd3daf9d146102ad578063d1af0c7d146102b5578063df136d65146102bd578063e9fad8ee146102c5578063ebe2b12b146102cd578063ecd9ba82146102d557610141565b80637b0a47ee1461025257806380faa57d1461025a5780638b87634714610262578063a694fc3a14610288578063c8f33c91146102a557610141565b8063386a95251161010a578063386a9525146101d35780633c6b16ab146101db5780633d18b912146101f85780633fc6df6e1461020057806370a082311461022457806372f702f31461024a57610141565b80628cc262146101465780630700037d1461017e57806318160ddd146101a45780631c1f78eb146101ac5780632e1a7d4d146101b4575b600080fd5b61016c6004803603602081101561015c57600080fd5b50356001600160a01b031661030d565b60408051918252519081900360200190f35b61016c6004803603602081101561019457600080fd5b50356001600160a01b03166103a3565b61016c6103b5565b61016c6103bc565b6101d1600480360360208110156101ca57600080fd5b50356103da565b005b61016c6106a5565b6101d1600480360360208110156101f157600080fd5b50356106ab565b6101d16109e6565b610208610c06565b604080516001600160a01b039092168252519081900360200190f35b61016c6004803603602081101561023a57600080fd5b50356001600160a01b0316610c15565b610208610c30565b61016c610c3f565b61016c610c45565b61016c6004803603602081101561027857600080fd5b50356001600160a01b0316610c53565b6101d16004803603602081101561029e57600080fd5b5035610c65565b61016c610eea565b61016c610ef0565b610208610f3e565b61016c610f4d565b6101d1610f53565b61016c610f76565b6101d1600480360360a08110156102eb57600080fd5b5080359060208101359060ff6040820135169060608101359060800135610f7c565b6001600160a01b0381166000908152600a6020908152604080832054600990925282205461039d919061039190670de0b6b3a7640000906103859061036090610354610ef0565b9063ffffffff61129a16565b6001600160a01b0388166000908152600c60205260409020549063ffffffff6112f716565b9063ffffffff61135716565b9063ffffffff6113c116565b92915050565b600a6020526000908152604090205481565b600b545b90565b60006103d56006546005546112f790919063ffffffff16565b905090565b60018054810190819055336103ed610ef0565b6008556103f8610c45565b6007556001600160a01b0381161561057b57600b546105465761045d61041d8261030d565b6103916002610451670de0b6b3a764000061038567016345785d8a00006104516006546005546112f790919063ffffffff16565b9063ffffffff6112f716565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b1580156104ba57600080fd5b505afa1580156104ce573d6000803e3d6000fd5b505050506040513d60208110156104e457600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610544576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b61054f8161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b600083116105c4576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600b546105d7908463ffffffff61129a16565b600b55336000908152600c60205260409020546105fa908463ffffffff61129a16565b336000818152600c6020526040902091909155600354610626916001600160a01b03909116908561141b565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25060015481146106a1576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b5050565b60065481565b6000546001600160a01b031633146106f45760405162461bcd60e51b815260040180806020018281038252602a815260200180611708602a913960400191505060405180910390fd5b60006106fe610ef0565b600855610709610c45565b6007556001600160a01b0381161561084c57600b546108175761072e61041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b15801561078b57600080fd5b505afa15801561079f573d6000803e3d6000fd5b505050506040513d60208110156107b557600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610815576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b6108208161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60045442106108715760065461086990839063ffffffff61135716565b6005556108c0565b600454600090610887904263ffffffff61129a16565b905060006108a0600554836112f790919063ffffffff16565b6006549091506108ba90610385868463ffffffff6113c116565b60055550505b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561090b57600080fd5b505afa15801561091f573d6000803e3d6000fd5b505050506040513d602081101561093557600080fd5b505160065490915061094e90829063ffffffff61135716565b6005541115610992576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b4260078190556006546109ab919063ffffffff6113c116565b6004556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60018054810190819055336109f9610ef0565b600855610a04610c45565b6007556001600160a01b03811615610b4757600b54610b1257610a2961041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b158015610a8657600080fd5b505afa158015610a9a573d6000803e3d6000fd5b505050506040513d6020811015610ab057600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610b10576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b610b1b8161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b336000908152600a60205260409020548015610bbd57336000818152600a6020526040812055600254610b86916001600160a01b03909116908361141b565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001548114610c03576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b50565b6000546001600160a01b031681565b6001600160a01b03166000908152600c602052604090205490565b6003546001600160a01b031681565b60055481565b60006103d542600454611472565b60096020526000908152604090205481565b6001805481019081905533610c78610ef0565b600855610c83610c45565b6007556001600160a01b03811615610dc657600b54610d9157610ca861041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b158015610d0557600080fd5b505afa158015610d19573d6000803e3d6000fd5b505050506040513d6020811015610d2f57600080fd5b50516001600160a01b0383166000908152600a6020526040902054909150811015610d8f576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b610d9a8161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60008311610e0c576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54610e1f908463ffffffff6113c116565b600b55336000908152600c6020526040902054610e42908463ffffffff6113c116565b336000818152600c6020526040902091909155600354610e6f916001600160a01b03909116903086611488565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146106a1576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b60075481565b6000600b5460001415610f0657506008546103b9565b6103d5610f2f600b54610385670de0b6b3a7640000610451600554610451600754610354610c45565b6008549063ffffffff6113c116565b6002546001600160a01b031681565b60085481565b336000908152600c6020526040902054610f6c906103da565b610f746109e6565b565b60045481565b6001805481019081905533610f8f610ef0565b600855610f9a610c45565b6007556001600160a01b038116156110dd57600b546110a857610fbf61041d8261030d565b6001600160a01b038083166000908152600a602090815260408083209490945560025484516370a0823160e01b8152306004820152945192949316926370a082319260248083019392829003018186803b15801561101c57600080fd5b505afa158015611030573d6000803e3d6000fd5b505050506040513d602081101561104657600080fd5b50516001600160a01b0383166000908152600a60205260409020549091508110156110a6576040805162461bcd60e51b815260206004820152601860248201526000805160206116c7833981519152604482015290519081900360640190fd5b505b6110b18161030d565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60008711611123576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54611136908863ffffffff6113c116565b600b55336000908152600c6020526040902054611159908863ffffffff6113c116565b336000818152600c602052604080822093909355600354835163d505accf60e01b81526004810193909352306024840152604483018b9052606483018a905260ff8916608484015260a4830188905260c4830187905292516001600160a01b039093169263d505accf9260e480820193929182900301818387803b1580156111e057600080fd5b505af11580156111f4573d6000803e3d6000fd5b505060035461121792506001600160a01b0316905033308a63ffffffff61148816565b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2506001548114611292576040805162461bcd60e51b815260206004820152601f60248201526000805160206116a7833981519152604482015290519081900360640190fd5b505050505050565b6000828211156112f1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826113065750600061039d565b8282028284828161131357fe5b04146113505760405162461bcd60e51b81526004018080602001828103825260218152602001806116e76021913960400191505060405180910390fd5b9392505050565b60008082116113ad576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b60008284816113b857fe5b04949350505050565b600082820183811015611350576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261146d9084906114e8565b505050565b60008183106114815781611350565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526114e29085906114e8565b50505050565b6114fa826001600160a01b03166116a0565b61154b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106115895780518252601f19909201916020918201910161156a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146115eb576040519150601f19603f3d011682016040523d82523d6000602084013e6115f0565b606091505b509150915081611647576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156114e25780806020019051602081101561166357600080fd5b50516114e25760405162461bcd60e51b815260040180806020018281038252602a815260200180611732602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c0050726f76696465642072657761726420746f6f20686967680000000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158206f5974beb2e860e20aeba8cfcc4af35241cd5e64cb6348210a4cb94dcd60ec4164736f6c63430005100032

Deployed Bytecode Sourcemap

18824:6602:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18824:6602:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20589:198;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20589:198:0;-1:-1:-1;;;;;20589:198:0;;:::i;:::-;;;;;;;;;;;;;;;;19371:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19371:42:0;-1:-1:-1;;;;;19371:42:0;;:::i;19891:93::-;;;:::i;20795:121::-;;;:::i;21978:357::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21978:357:0;;:::i;:::-;;19180:40;;;:::i;22819:1083::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22819:1083:0;;:::i;22343:307::-;;;:::i;18559:34::-;;;:::i;:::-;;;;-1:-1:-1;;;;;18559:34:0;;;;;;;;;;;;;;19992:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19992:112:0;-1:-1:-1;;;;;19992:112:0;;:::i;19073:26::-;;;:::i;19144:29::-;;;:::i;20112:131::-;;;:::i;19307:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19307:57:0;-1:-1:-1;;;;;19307:57:0;;:::i;21601:369::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21601:369:0;;:::i;19227:29::-;;;:::i;20251:330::-;;;:::i;19040:26::-;;;:::i;19263:35::-;;;:::i;22658:97::-;;;:::i;19106:31::-;;;:::i;21035:558::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;21035:558:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;20589:198::-;-1:-1:-1;;;;;20762:16:0;;20643:7;20762:16;;;:7;:16;;;;;;;;;20714:22;:31;;;;;;20670:109;;20762:16;20670:87;;20752:4;;20670:77;;20693:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;-1:-1:-1;;;;;20670:18:0;;;;;;:9;:18;;;;;;;:77;:22;:77;:::i;:::-;:81;:87;:81;:87;:::i;:::-;:91;:109;:91;:109;:::i;:::-;20663:116;20589:198;-1:-1:-1;;20589:198:0:o;19371:42::-;;;;;;;;;;;;;:::o;19891:93::-;19964:12;;19891:93;;:::o;20795:121::-;20850:7;20877:31;20892:15;;20877:10;;:14;;:31;;;;:::i;:::-;20870:38;;20795:121;:::o;21978:357::-;17678:1;17661:18;;;;;;;;22045:10;24028:16;:14;:16::i;:::-;24005:20;:39;24072:26;:24;:26::i;:::-;24055:14;:43;-1:-1:-1;;;;;24115:21:0;;;24111:1033;;24215:12;;24211:802;;24272:189;24445:15;24452:7;24445:6;:15::i;:::-;24272:146;24416:1;24272:117;24384:4;24272:85;24352:4;24272:53;24309:15;;24272:10;;:36;;:53;;;;:::i;:::-;:79;:85;:79;:85;:::i;:189::-;-1:-1:-1;;;;;24253:16:0;;;;;;;:7;:16;;;;;;;;:208;;;;24877:12;;:37;;-1:-1:-1;;;24877:37:0;;24908:4;24877:37;;;;;;24253:16;;24877:12;;;:22;;:37;;;;;24253:16;24877:37;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;24877:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24877:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24877:37:0;-1:-1:-1;;;;;24941:16:0;;;;;;:7;24877:37;24941:16;;;;;24877:37;;-1:-1:-1;24941:27:0;-1:-1:-1;24941:27:0;24933:64;;;;;-1:-1:-1;;;24933:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24933:64:0;;;;;;;;;;;;;;;24211:802;;25046:15;25053:7;25046:6;:15::i;:::-;-1:-1:-1;;;;;25027:16:0;;;;;;:7;:16;;;;;;;;:34;;;;25112:20;;25078:22;:31;;;;;;:54;24111:1033;22085:1;22076:6;:10;22068:40;;;;;-1:-1:-1;;;22068:40:0;;;;;;;;;;;;-1:-1:-1;;;22068:40:0;;;;;;;;;;;;;;;22134:12;;:24;;22151:6;22134:24;:16;:24;:::i;:::-;22119:12;:39;22203:10;22193:21;;;;:9;:21;;;;;;:33;;22219:6;22193:33;:25;:33;:::i;:::-;22179:10;22169:21;;;;:9;:21;;;;;:57;;;;22237:12;;:45;;-1:-1:-1;;;;;22237:12:0;;;;22275:6;22237:25;:45::i;:::-;22298:29;;;;;;;;22308:10;;22298:29;;;;;;;;;;17737:1;17773:13;;17757:12;:29;17749:73;;;;;-1:-1:-1;;;17749:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17749:73:0;;;;;;;;;;;;;;;21978:357;;:::o;19180:40::-;;;;:::o;22819:1083::-;18731:19;;-1:-1:-1;;;;;18731:19:0;18717:10;:33;18709:88;;;;-1:-1:-1;;;18709:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22917:1;24028:16;:14;:16::i;:::-;24005:20;:39;24072:26;:24;:26::i;:::-;24055:14;:43;-1:-1:-1;;;;;24115:21:0;;;24111:1033;;24215:12;;24211:802;;24272:189;24445:15;24452:7;24445:6;:15::i;24272:189::-;-1:-1:-1;;;;;24253:16:0;;;;;;;:7;:16;;;;;;;;:208;;;;24877:12;;:37;;-1:-1:-1;;;24877:37:0;;24908:4;24877:37;;;;;;24253:16;;24877:12;;;:22;;:37;;;;;24253:16;24877:37;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;24877:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24877:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24877:37:0;-1:-1:-1;;;;;24941:16:0;;;;;;:7;24877:37;24941:16;;;;;24877:37;;-1:-1:-1;24941:27:0;-1:-1:-1;24941:27:0;24933:64;;;;;-1:-1:-1;;;24933:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24933:64:0;;;;;;;;;;;;;;;24211:802;;25046:15;25053:7;25046:6;:15::i;:::-;-1:-1:-1;;;;;25027:16:0;;;;;;:7;:16;;;;;;;;:34;;;;25112:20;;25078:22;:31;;;;;;:54;24111:1033;22955:12;;22936:15;:31;22932:318;;23008:15;;22997:27;;:6;;:27;:10;:27;:::i;:::-;22984:10;:40;22932:318;;;23077:12;;23057:17;;23077:33;;23094:15;23077:33;:16;:33;:::i;:::-;23057:53;;23125:16;23144:25;23158:10;;23144:9;:13;;:25;;;;:::i;:::-;23222:15;;23125:44;;-1:-1:-1;23197:41:0;;:20;:6;23125:44;23197:20;:10;:20;:::i;:41::-;23184:10;:54;-1:-1:-1;;22932:318:0;23625:12;;:37;;;-1:-1:-1;;;23625:37:0;;23656:4;23625:37;;;;;;23610:12;;-1:-1:-1;;;;;23625:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;23625:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23625:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23625:37:0;23707:15;;23625:37;;-1:-1:-1;23695:28:0;;23625:37;;23695:28;:11;:28;:::i;:::-;23681:10;;:42;;23673:79;;;;;-1:-1:-1;;;23673:79:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23673:79:0;;;;;;;;;;;;;;;23782:15;23765:14;:32;;;23843:15;;23823:36;;23782:15;23823:36;:19;:36;:::i;:::-;23808:12;:51;23875:19;;;;;;;;;;;;;;;;;25154:1;18808;22819:1083;:::o;22343:307::-;17678:1;17661:18;;;;;;;;22397:10;24028:16;:14;:16::i;:::-;24005:20;:39;24072:26;:24;:26::i;:::-;24055:14;:43;-1:-1:-1;;;;;24115:21:0;;;24111:1033;;24215:12;;24211:802;;24272:189;24445:15;24452:7;24445:6;:15::i;24272:189::-;-1:-1:-1;;;;;24253:16:0;;;;;;;:7;:16;;;;;;;;:208;;;;24877:12;;:37;;-1:-1:-1;;;24877:37:0;;24908:4;24877:37;;;;;;24253:16;;24877:12;;;:22;;:37;;;;;24253:16;24877:37;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;24877:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24877:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24877:37:0;-1:-1:-1;;;;;24941:16:0;;;;;;:7;24877:37;24941:16;;;;;24877:37;;-1:-1:-1;24941:27:0;-1:-1:-1;24941:27:0;24933:64;;;;;-1:-1:-1;;;24933:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24933:64:0;;;;;;;;;;;;;;;24211:802;;25046:15;25053:7;25046:6;:15::i;:::-;-1:-1:-1;;;;;25027:16:0;;;;;;:7;:16;;;;;;;;:34;;;;25112:20;;25078:22;:31;;;;;;:54;24111:1033;22445:10;22420:14;22437:19;;;:7;:19;;;;;;22471:10;;22467:176;;22506:10;22520:1;22498:19;;;:7;:19;;;;;:23;22536:12;;:45;;-1:-1:-1;;;;;22536:12:0;;;;22574:6;22536:25;:45::i;:::-;22601:30;;;;;;;;22612:10;;22601:30;;;;;;;;;;22467:176;25154:1;17737;17773:13;;17757:12;:29;17749:73;;;;;-1:-1:-1;;;17749:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17749:73:0;;;;;;;;;;;;;;;22343:307;:::o;18559:34::-;;;-1:-1:-1;;;;;18559:34:0;;:::o;19992:112::-;-1:-1:-1;;;;;20078:18:0;20051:7;20078:18;;;:9;:18;;;;;;;19992:112::o;19073:26::-;;;-1:-1:-1;;;;;19073:26:0;;:::o;19144:29::-;;;;:::o;20112:131::-;20169:7;20196:39;20205:15;20222:12;;20196:8;:39::i;19307:57::-;;;;;;;;;;;;;:::o;21601:369::-;17678:1;17661:18;;;;;;;;21667:10;24028:16;:14;:16::i;:::-;24005:20;:39;24072:26;:24;:26::i;:::-;24055:14;:43;-1:-1:-1;;;;;24115:21:0;;;24111:1033;;24215:12;;24211:802;;24272:189;24445:15;24452:7;24445:6;:15::i;24272:189::-;-1:-1:-1;;;;;24253:16:0;;;;;;;:7;:16;;;;;;;;:208;;;;24877:12;;:37;;-1:-1:-1;;;24877:37:0;;24908:4;24877:37;;;;;;24253:16;;24877:12;;;:22;;:37;;;;;24253:16;24877:37;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;24877:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24877:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24877:37:0;-1:-1:-1;;;;;24941:16:0;;;;;;:7;24877:37;24941:16;;;;;24877:37;;-1:-1:-1;24941:27:0;-1:-1:-1;24941:27:0;24933:64;;;;;-1:-1:-1;;;24933:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24933:64:0;;;;;;;;;;;;;;;24211:802;;25046:15;25053:7;25046:6;:15::i;:::-;-1:-1:-1;;;;;25027:16:0;;;;;;:7;:16;;;;;;;;:34;;;;25112:20;;25078:22;:31;;;;;;:54;24111:1033;21707:1;21698:6;:10;21690:37;;;;;-1:-1:-1;;;21690:37:0;;;;;;;;;;;;-1:-1:-1;;;21690:37:0;;;;;;;;;;;;;;;21753:12;;:24;;21770:6;21753:24;:16;:24;:::i;:::-;21738:12;:39;21822:10;21812:21;;;;:9;:21;;;;;;:33;;21838:6;21812:33;:25;:33;:::i;:::-;21798:10;21788:21;;;;:9;:21;;;;;:57;;;;21856:12;;:64;;-1:-1:-1;;;;;21856:12:0;;;;21906:4;21913:6;21856:29;:64::i;:::-;21936:26;;;;;;;;21943:10;;21936:26;;;;;;;;;;17737:1;17773:13;;17757:12;:29;17749:73;;;;;-1:-1:-1;;;17749:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17749:73:0;;;;;;;;;;;;;;19227:29;;;;:::o;20251:330::-;20298:7;20322:12;;20338:1;20322:17;20318:77;;;-1:-1:-1;20363:20:0;;20356:27;;20318:77;20425:148;20468:90;20545:12;;20468:72;20535:4;20468:62;20519:10;;20468:46;20499:14;;20468:26;:24;:26::i;:90::-;20425:20;;;:148;:24;:148;:::i;19040:26::-;;;-1:-1:-1;;;;;19040:26:0;;:::o;19263:35::-;;;;:::o;22658:97::-;22713:10;22703:21;;;;:9;:21;;;;;;22694:31;;:8;:31::i;:::-;22736:11;:9;:11::i;:::-;22658:97::o;19106:31::-;;;;:::o;21035:558::-;17678:1;17661:18;;;;;;;;21157:10;24028:16;:14;:16::i;:::-;24005:20;:39;24072:26;:24;:26::i;:::-;24055:14;:43;-1:-1:-1;;;;;24115:21:0;;;24111:1033;;24215:12;;24211:802;;24272:189;24445:15;24452:7;24445:6;:15::i;24272:189::-;-1:-1:-1;;;;;24253:16:0;;;;;;;:7;:16;;;;;;;;:208;;;;24877:12;;:37;;-1:-1:-1;;;24877:37:0;;24908:4;24877:37;;;;;;24253:16;;24877:12;;;:22;;:37;;;;;24253:16;24877:37;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;24877:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24877:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24877:37:0;-1:-1:-1;;;;;24941:16:0;;;;;;:7;24877:37;24941:16;;;;;24877:37;;-1:-1:-1;24941:27:0;-1:-1:-1;24941:27:0;24933:64;;;;;-1:-1:-1;;;24933:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24933:64:0;;;;;;;;;;;;;;;24211:802;;25046:15;25053:7;25046:6;:15::i;:::-;-1:-1:-1;;;;;25027:16:0;;;;;;:7;:16;;;;;;;;:34;;;;25112:20;;25078:22;:31;;;;;;:54;24111:1033;21197:1;21188:6;:10;21180:37;;;;;-1:-1:-1;;;21180:37:0;;;;;;;;;;;;-1:-1:-1;;;21180:37:0;;;;;;;;;;;;;;;21243:12;;:24;;21260:6;21243:24;:16;:24;:::i;:::-;21228:12;:39;21312:10;21302:21;;;;:9;:21;;;;;;:33;;21328:6;21302:33;:25;:33;:::i;:::-;21288:10;21278:21;;;;:9;:21;;;;;;:57;;;;21391:12;;21367:99;;-1:-1:-1;;;21367:99:0;;;;;;;;;21433:4;21367:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21391:12:0;;;;21367:45;;:99;;;;;21278:21;21367:99;;;;;;21278:21;21391:12;21367:99;;;5:2:-1;;;;30:1;27;20:12;5:2;21367:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;21479:12:0;;:64;;-1:-1:-1;;;;;;21479:12:0;;-1:-1:-1;21509:10:0;21529:4;21536:6;21479:64;:29;:64;:::i;:::-;21559:26;;;;;;;;21566:10;;21559:26;;;;;;;;;;17737:1;17773:13;;17757:12;:29;17749:73;;;;;-1:-1:-1;;;17749:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17749:73:0;;;;;;;;;;;;;;;21035:558;;;;;;:::o;7063:184::-;7121:7;7154:1;7149;:6;;7141:49;;;;;-1:-1:-1;;;7141:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7213:5:0;;;7063:184::o;7498:470::-;7556:7;7800:6;7796:47;;-1:-1:-1;7830:1:0;7823:8;;7796:47;7867:5;;;7871:1;7867;:5;:1;7891:5;;;;;:10;7883:56;;;;-1:-1:-1;;;7883:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7959:1;7498:470;-1:-1:-1;;;7498:470:0:o;8436:333::-;8494:7;8593:1;8589;:5;8581:44;;;;;-1:-1:-1;;;8581:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8636:9;8652:1;8648;:5;;;;;;;8436:333;-1:-1:-1;;;;8436:333:0:o;6607:181::-;6665:7;6697:5;;;6721:6;;;;6713:46;;;;;-1:-1:-1;;;6713:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;13240:176;13349:58;;;-1:-1:-1;;;;;13349:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;13349:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;13323:85:0;;13342:5;;13323:18;:85::i;:::-;13240:176;;;:::o;9732:106::-;9790:7;9821:1;9817;:5;:13;;9829:1;9817:13;;;-1:-1:-1;9825:1:0;;9810:20;-1:-1:-1;9732:106:0:o;13424:204::-;13551:68;;;-1:-1:-1;;;;;13551:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;13551:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;13525:95:0;;13544:5;;13525:18;:95::i;:::-;13424:204;;;;:::o;15234:1114::-;15838:27;15846:5;-1:-1:-1;;;;;15838:25:0;;:27::i;:::-;15830:71;;;;;-1:-1:-1;;;15830:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15975:12;15989:23;16024:5;-1:-1:-1;;;;;16016:19:0;16036:4;16016:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;16016:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;15974:67:0;;;;16060:7;16052:52;;;;;-1:-1:-1;;;16052:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16121:17;;:21;16117:224;;16263:10;16252:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16252:30:0;16244:85;;;;-1:-1:-1;;;16244:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12253:422;12620:20;12659:8;;;12253:422::o

Swarm Source

bzzr://6f5974beb2e860e20aeba8cfcc4af35241cd5e64cb6348210a4cb94dcd60ec41

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.