ETH Price: $3,482.50 (+1.99%)

Contract

0xE3EE395C9067dD15C492Ca950B101a7d6c85b5Fc
 
Transaction Hash
Method
Block
From
To
Exit214448912024-12-20 16:21:474 days ago1734711707IN
0xE3EE395C...d6c85b5Fc
0 ETH0.0044550432.86087733
Exit213442872024-12-06 15:15:3518 days ago1733498135IN
0xE3EE395C...d6c85b5Fc
0 ETH0.0055700647.82277578
Exit212661072024-11-25 16:57:1129 days ago1732553831IN
0xE3EE395C...d6c85b5Fc
0 ETH0.002495218.40484505
Exit211938182024-11-15 14:54:1139 days ago1731682451IN
0xE3EE395C...d6c85b5Fc
0 ETH0.0028651124.59892005
Exit207309562024-09-12 0:29:11103 days ago1726100951IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000301182.22156952
Exit206023732024-08-25 1:37:23121 days ago1724549843IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000130620.96353053
Exit203753502024-07-24 8:57:11153 days ago1721811431IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000423863.12649762
Exit203694302024-07-23 13:08:11154 days ago1721740091IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000800985.9081486
Exit203644562024-07-22 20:28:35155 days ago1721680115IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000950967.01443019
Exit203533912024-07-21 7:22:59156 days ago1721546579IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000332412.48860874
Exit203343162024-07-18 15:31:11159 days ago1721316671IN
0xE3EE395C...d6c85b5Fc
0 ETH0.0025941319.1345991
Exit203009882024-07-13 23:53:23164 days ago1720914803IN
0xE3EE395C...d6c85b5Fc
0 ETH0.0014784510.9052677
Exit202572432024-07-07 21:13:23170 days ago1720386803IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000179211.53869218
Exit202556752024-07-07 15:57:47170 days ago1720367867IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000260621.92237323
Exit202534952024-07-07 8:39:11170 days ago1720341551IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000208071.53477457
Exit202214942024-07-02 21:25:11175 days ago1719955511IN
0xE3EE395C...d6c85b5Fc
0 ETH0.00089146.5750704
Exit202142802024-07-01 21:12:47176 days ago1719868367IN
0xE3EE395C...d6c85b5Fc
0 ETH0.00070835.22455376
Exit202110192024-07-01 10:17:59176 days ago1719829079IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000458763.38386444
Exit201195982024-06-18 15:41:35189 days ago1718725295IN
0xE3EE395C...d6c85b5Fc
0 ETH0.0017364413
Exit200994322024-06-15 19:58:23192 days ago1718481503IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000540414.04584044
Exit200396542024-06-07 11:27:59200 days ago1717759679IN
0xE3EE395C...d6c85b5Fc
0 ETH0.00118658.75175268
Exit200371152024-06-07 2:58:59200 days ago1717729139IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000841157.1
Exit200153952024-06-04 2:12:59203 days ago1717467179IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000786456.63824453
Exit200149322024-06-04 0:39:59203 days ago1717461599IN
0xE3EE395C...d6c85b5Fc
0 ETH0.000783155.7766398
Exit199813852024-05-30 8:11:11208 days ago1717056671IN
0xE3EE395C...d6c85b5Fc
0 ETH0.0021290615.70420032
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x64CFd2ce...89FE20773
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.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
File 1 of 1 : StakingRewards.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.5.16;

// File: Address.sol

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

// File: IERC20.sol

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

// File: IStakingRewards.sol

// https://docs.synthetix.io/contracts/source/interfaces/istakingrewards
interface IStakingRewards {
    // Views

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

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

    function getRewardForDuration() external view returns (uint256);

    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function rewardsDistribution() external view returns (address);

    function rewardsToken() external view returns (address);

    function totalSupply() external view returns (uint256);

    // Mutative

    function exit() external;

    function getReward() external;

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;
}

// File: Owned.sol

// https://docs.synthetix.io/contracts/source/contracts/owned
contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(
            msg.sender == nominatedOwner,
            "You must be nominated before you can accept ownership"
        );
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(
            msg.sender == owner,
            "Only the contract owner may perform this action"
        );
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

// File: ReentrancyGuard.sol

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

// File: SafeMath.sol

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

// File: ERC20Detailed.sol

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

// File: Pausable.sol

// Inheritance

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

    constructor() internal {
        // 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 = now;
        }

        // 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: RewardsDistributionRecipient.sol

// Inheritance

// https://docs.synthetix.io/contracts/source/contracts/rewardsdistributionrecipient
contract RewardsDistributionRecipient is Owned {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward) external;

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

    function setRewardsDistribution(address _rewardsDistribution)
        external
        onlyOwner
    {
        rewardsDistribution = _rewardsDistribution;
    }
}

// File: SafeERC20.sol

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for 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"
            );
        }
    }
}

// File: StakingRewards.sol

// Inheritance

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

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

    /// @notice The address of our rewards token.
    IERC20 public rewardsToken;

    /// @notice The address of our staking token.
    IERC20 public stakingToken;

    /// @notice The end (timestamp) of our current or most recent reward period.
    uint256 public periodFinish = 0;

    /// @notice The distribution rate of rewardsToken per second.
    uint256 public rewardRate = 0;

    /// @notice The duration of our rewards distribution for staking, default is 7 days.
    uint256 public rewardsDuration = 7 days;

    /// @notice The last time rewards were updated, triggered by updateReward() or notifyRewardAmount().
    /// @dev Will be the timestamp of the update or the end of the period, whichever is earlier.
    uint256 public lastUpdateTime;

    /// @notice The most recent stored amount for rewardPerToken().
    /// @dev Updated every time anyone calls the updateReward() modifier.
    uint256 public rewardPerTokenStored;

    /// @notice The address of our zap contract, allows depositing to vault and staking in one transaction.
    address public zapContract;

    /// @notice Bool for if this staking contract is shut down and rewards have been swept out.
    /// @dev Can only be performed at least 90 days after final reward period ends.
    bool public isRetired;

    /// @notice The amount of rewards allocated to a user per whole token staked.
    /// @dev Note that this is not the same as amount of rewards claimed.
    mapping(address => uint256) public userRewardPerTokenPaid;

    /// @notice The amount of unclaimed rewards an account is owed.
    mapping(address => uint256) public rewards;

    // private vars, use view functions to see these
    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

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

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

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

    /// @notice The total tokens staked in this contract.
    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    /// @notice The balance a given user has staked.
    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    /// @notice Either the current timestamp or end of the most recent period.
    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

    /// @notice Reward paid out per whole token.
    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }

        if (isRetired) {
            return 0;
        }

        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(_totalSupply)
            );
    }

    /// @notice Amount of reward token pending claim by an account.
    function earned(address account) public view returns (uint256) {
        if (isRetired) {
            return 0;
        }

        return
            _balances[account]
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    /// @notice Reward tokens emitted over the entire rewardsDuration.
    function getRewardForDuration() external view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

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

    /// @notice Deposit vault tokens to the staking pool.
    /// @dev Can't stake zero.
    /// @param amount Amount of vault tokens to deposit.
    function stake(uint256 amount)
        external
        nonReentrant
        notPaused
        updateReward(msg.sender)
    {
        require(amount > 0, "Cannot stake 0");
        require(!isRetired, "Staking pool is retired");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    /// @notice Deposit vault tokens for specified recipient.
    /// @dev Can't stake zero, can only be used by zap contract.
    /// @param recipient Address of user these vault tokens are being staked for.
    /// @param amount Amount of vault token to deposit.
    function stakeFor(address recipient, uint256 amount)
        external
        nonReentrant
        notPaused
        updateReward(recipient)
    {
        require(msg.sender == zapContract, "Only zap contract");
        require(amount > 0, "Cannot stake 0");
        require(!isRetired, "Staking pool is retired");
        _totalSupply = _totalSupply.add(amount);
        _balances[recipient] = _balances[recipient].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit StakedFor(recipient, amount);
    }

    /// @notice Withdraw vault tokens from the staking pool.
    /// @dev Can't withdraw zero. If trying to claim, call getReward() instead.
    /// @param amount Amount of vault tokens to withdraw.
    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);
    }

    /// @notice Claim any earned reward tokens.
    /// @dev Can claim rewards even if no tokens still staked.
    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);
        }
    }

    /// @notice Unstake all of the sender's tokens and claim any outstanding rewards.
    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

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

    /// @notice Notify staking contract that it has more reward to account for.
    /// @dev Reward tokens must be sent to contract before notifying. May only be called
    ///  by rewards distribution role.
    /// @param reward Amount of reward tokens to add.
    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.
        uint256 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);
    }

    /// @notice Sweep out tokens accidentally sent here.
    /// @dev May only be called by owner.
    /// @param tokenAddress Address of token to sweep.
    /// @param tokenAmount Amount of tokens to sweep.
    function recoverERC20(address tokenAddress, uint256 tokenAmount)
        external
        onlyOwner
    {
        require(
            tokenAddress != address(stakingToken),
            "Cannot withdraw the staking token"
        );

        // can only recover rewardsToken 90 days after end
        if (tokenAddress == address(rewardsToken)) {
            require(
                block.timestamp > periodFinish + 90 days,
                "wait 90 days to sweep leftover rewards"
            );

            // if we do this, automatically sweep all rewardsToken
            tokenAmount = rewardsToken.balanceOf(address(this));

            // retire this staking contract, this wipes all rewards but still allows all users to withdraw
            isRetired = true;
        }

        IERC20(tokenAddress).safeTransfer(owner, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    /// @notice Set the duration of our rewards period.
    /// @dev May only be called by owner, and must be done after most recent period ends.
    /// @param _rewardsDuration New length of period in seconds.
    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);
    }

    /// @notice Set our zap contract.
    /// @dev May only be called by owner, and can't be set to zero address.
    /// @param _zapContract Address of the new zap contract.
    function setZapContract(address _zapContract) external onlyOwner {
        require(_zapContract != address(0), "no zero address");
        zapContract = _zapContract;
        emit ZapContractUpdated(_zapContract);
    }

    /* ========== 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 StakedFor(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event ZapContractUpdated(address _zapContract);
    event Recovered(address token, uint256 amount);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_zapContract","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","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":"StakedFor","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_zapContract","type":"address"}],"name":"ZapContractUpdated","type":"event"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"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":"isRetired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastPauseTime","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":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"}],"name":"setRewardsDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_zapContract","type":"address"}],"name":"setZapContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeFor","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"},{"constant":true,"inputs":[],"name":"zapContract","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102105760003560e01c806370a0823111610125578063a694fc3a116100ad578063d1af0c7d1161007c578063d1af0c7d1461083b578063df136d6514610885578063e9fad8ee146108a3578063ebe2b12b146108ad578063fcaa8737146108cb57610210565b8063a694fc3a146107a3578063c8f33c91146107d1578063cc1a378f146107ef578063cd3daf9d1461081d57610210565b806380faa57d116100f457806380faa57d146106775780638980f11f146106955780638b876347146106e35780638da5cb5b1461073b57806391b4ded91461078557610210565b806370a08231146105ad57806372f702f31461060557806379ba50971461064f5780637b0a47ee1461065957610210565b80632e1a7d4d116101a85780633d18b912116101775780633d18b912146104cb5780633fc6df6e146104d557806349343cee1461051f57806353a47bb7146105415780635c975abb1461058b57610210565b80632e1a7d4d146104035780632ee4090814610431578063386a95251461047f5780633c6b16ab1461049d57610210565b806318160ddd116101e457806318160ddd1461033957806319762143146103575780631c1f78eb1461039b5780632549dad9146103b957610210565b80628cc262146102155780630700037d1461026d5780631627540c146102c557806316c38b3c14610309575b600080fd5b6102576004803603602081101561022b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061090f565b6040518082815260200191505060405180910390f35b6102af6004803603602081101561028357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a4c565b6040518082815260200191505060405180910390f35b610307600480360360208110156102db57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a64565b005b6103376004803603602081101561031f57600080fd5b81019080803515159060200190929190505050610b13565b005b610341610bc0565b6040518082815260200191505060405180910390f35b6103996004803603602081101561036d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bca565b005b6103a3610c16565b6040518082815260200191505060405180910390f35b6103c1610c34565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61042f6004803603602081101561041957600080fd5b8101908080359060200190929190505050610c5a565b005b61047d6004803603604081101561044757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f93565b005b61048761147b565b6040518082815260200191505060405180910390f35b6104c9600480360360208110156104b357600080fd5b8101908080359060200190929190505050611481565b005b6104d361185f565b005b6104dd611b05565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610527611b2b565b604051808215151515815260200191505060405180910390f35b610549611b3e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610593611b64565b604051808215151515815260200191505060405180910390f35b6105ef600480360360208110156105c357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b77565b6040518082815260200191505060405180910390f35b61060d611bc0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610657611be6565b005b610661611e0c565b6040518082815260200191505060405180910390f35b61067f611e12565b6040518082815260200191505060405180910390f35b6106e1600480360360408110156106ab57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611e2c565b005b610725600480360360208110156106f957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612143565b6040518082815260200191505060405180910390f35b61074361215b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61078d612180565b6040518082815260200191505060405180910390f35b6107cf600480360360208110156107b957600080fd5b8101908080359060200190929190505050612186565b005b6107d96125aa565b6040518082815260200191505060405180910390f35b61081b6004803603602081101561080557600080fd5b81019080803590602001909291905050506125b0565b005b610825612655565b6040518082815260200191505060405180910390f35b610843612701565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61088d612727565b6040518082815260200191505060405180910390f35b6108ab61272d565b005b6108b561277f565b6040518082815260200191505060405180910390f35b61090d600480360360208110156108e157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612785565b005b6000600c60149054906101000a900460ff161561092f5760009050610a47565b610a44600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a36670de0b6b3a7640000610a286109da600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109cc612655565b6128d790919063ffffffff16565b601060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461296090919063ffffffff16565b6129e690919063ffffffff16565b612a7590919063ffffffff16565b90505b919050565b600e6020528060005260406000206000915090505481565b610a6c612afd565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b610b1b612afd565b600560009054906101000a900460ff1615158115151415610b3b57610bbd565b80600560006101000a81548160ff021916908315150217905550600560009054906101000a900460ff1615610b7257426004819055505b7f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5600560009054906101000a900460ff16604051808215151515815260200191505060405180910390a15b50565b6000600f54905090565b610bd2612afd565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610c2f60095460085461296090919063ffffffff16565b905090565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016003600082825401925050819055506000600354905033610c7b612655565b600b81905550610c89611e12565b600a81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d5657610ccc8161090f565b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600b54600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311610dcc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b610de183600f546128d790919063ffffffff16565b600f81905550610e3983601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128d790919063ffffffff16565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610ec93384600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ba49092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a2506003548114610f8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b600160036000828254019250508190555060006003549050600560009054906101000a900460ff1615611011576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c8152602001806130dd603c913960400191505060405180910390fd5b8261101a612655565b600b81905550611028611e12565b600a81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110f55761106b8161090f565b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600b54600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4f6e6c79207a617020636f6e747261637400000000000000000000000000000081525060200191505060405180910390fd5b6000831161122e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b600c60149054906101000a900460ff16156112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f5374616b696e6720706f6f6c206973207265746972656400000000000000000081525060200191505060405180910390fd5b6112c683600f54612a7590919063ffffffff16565b600f8190555061131e83601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a7590919063ffffffff16565b601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506113b0333085600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c75909392919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff167fd185ae938da574e9cd1073962e1972c75ec585ab222b200a88c0abe2bf0cfe67846040518082815260200191505060405180910390a2506003548114611476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b505050565b60095481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613119602a913960400191505060405180910390fd5b6000611531612655565b600b8190555061153f611e12565b600a81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461160c576115828161090f565b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600b54600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60075442106116355761162a600954836129e690919063ffffffff16565b600881905550611697565b600061164c426007546128d790919063ffffffff16565b905060006116656008548361296090919063ffffffff16565b905061168e6009546116808387612a7590919063ffffffff16565b6129e690919063ffffffff16565b60088190555050505b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561173857600080fd5b505afa15801561174c573d6000803e3d6000fd5b505050506040513d602081101561176257600080fd5b8101908080519060200190929190505050905061178a600954826129e690919063ffffffff16565b6008541115611801576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b42600a8190555061181d60095442612a7590919063ffffffff16565b6007819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d836040518082815260200191505060405180910390a1505050565b60016003600082825401925050819055506000600354905033611880612655565b600b8190555061188e611e12565b600a81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461195b576118d18161090f565b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600b54600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611a89576000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611a3a3382600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ba49092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50506003548114611b02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b50565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900460ff1681565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c8c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001806130326035913960400191505060405180910390fd5b7fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60085481565b60006007544210611e2557600754611e27565b425b905090565b611e34612afd565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611edb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061316d6021913960400191505060405180910390fd5b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612088576276a700600754014211611f90576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806130676026913960400191505060405180910390fd5b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561202f57600080fd5b505afa158015612043573d6000803e3d6000fd5b505050506040513d602081101561205957600080fd5b810190808051906020019092919050505090506001600c60146101000a81548160ff0219169083151502179055505b6120d46000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16612ba49092919063ffffffff16565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b600d6020528060005260406000206000915090505481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600160036000828254019250508190555060006003549050600560009054906101000a900460ff1615612204576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c8152602001806130dd603c913960400191505060405180910390fd5b3361220d612655565b600b8190555061221b611e12565b600a81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146122e85761225e8161090f565b600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600b54600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000831161235e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b600c60149054906101000a900460ff16156123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f5374616b696e6720706f6f6c206973207265746972656400000000000000000081525060200191505060405180910390fd5b6123f683600f54612a7590919063ffffffff16565b600f8190555061244e83601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a7590919063ffffffff16565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506124e0333085600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c75909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040518082815260200191505060405180910390a25060035481146125a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b600a5481565b6125b8612afd565b6007544211612612576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526058815260200180612fda6058913960600191505060405180910390fd5b806009819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d36009546040518082815260200191505060405180910390a150565b600080600f54141561266b57600b5490506126fe565b600c60149054906101000a900460ff161561268957600090506126fe565b6126fb6126ea600f546126dc670de0b6b3a76400006126ce6008546126c0600a546126b2611e12565b6128d790919063ffffffff16565b61296090919063ffffffff16565b61296090919063ffffffff16565b6129e690919063ffffffff16565b600b54612a7590919063ffffffff16565b90505b90565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b612775601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610c5a565b61277d61185f565b565b60075481565b61278d612afd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f6e6f207a65726f2061646472657373000000000000000000000000000000000081525060200191505060405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0da458581861b4ff3ae5c23a916ec5218bbf4c371497cec29006f5c55d9c9a8481604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b60008282111561294f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b60008083141561297357600090506129e0565b600082840290508284828161298457fe5b04146129db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806130bc6021913960400191505060405180910390fd5b809150505b92915050565b6000808211612a5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b6000828481612a6857fe5b0490508091505092915050565b600080828401905083811015612af3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612ba2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018061308d602f913960400191505060405180910390fd5b565b612c70838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d7b565b505050565b612d75848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d7b565b50505050565b612d9a8273ffffffffffffffffffffffffffffffffffffffff16612fc6565b612e0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310612e5b5780518252602082019150602081019050602083039250612e38565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612ebd576040519150601f19603f3d011682016040523d82523d6000602084013e612ec2565b606091505b509150915081612f3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115612fc057808060200190516020811015612f5957600080fd5b8101908080519060200190929190505050612fbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613143602a913960400191505060405180910390fd5b5b50505050565b600080823b90506000811191505091905056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e65727368697077616974203930206461797320746f207377656570206c6566746f76657220726577617264734f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea265627a7a723158206e8d2cb5285905311577b95cd58992aa5355000ad8419a5e2ffa24b5de7c08b264736f6c63430005110032

Deployed Bytecode Sourcemap

18686:11195:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18686:11195:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22311:317;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22311:317:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20503:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20503:42:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5093:138;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;5093:138:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;13061:472;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13061:472:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;21219:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14232:160;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14232:160:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;22705:119;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19974:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24520:379;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24520:379:0;;;;;;;;;;;;;;;;;:::i;:::-;;23764:551;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23764:551:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;19398:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25824:1129;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25824:1129:0;;;;;;;;;;;;;;;;;:::i;:::-;;25016:300;;;:::i;:::-;;13941:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20187:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;4870:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;12659:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21369:110;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21369:110:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19055:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;5237:300;;;:::i;:::-;;19273:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21564:153;;;:::i;:::-;;;;;;;;;;;;;;;;;;;27167:898;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;27167:898:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;20371:57;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20371:57:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4844:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;12625:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23028:465;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23028:465:0;;;;;;;;;;;;;;;;;:::i;:::-;;19646:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28282:353;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;28282:353:0;;;;;;;;;;;;;;;;;:::i;:::-;;21772:465;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18972:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19824:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25408:94;;;:::i;:::-;;19169:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28816:219;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;28816:219:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;22311:317;22365:7;22388:9;;;;;;;;;;;22384:48;;;22420:1;22413:8;;;;22384:48;22461:160;22604:7;:16;22612:7;22604:16;;;;;;;;;;;;;;;;22461:121;22577:4;22461:94;22501:53;22522:22;:31;22545:7;22522:31;;;;;;;;;;;;;;;;22501:16;:14;:16::i;:::-;:20;;:53;;;;:::i;:::-;22461:9;:18;22471:7;22461:18;;;;;;;;;;;;;;;;:39;;:94;;;;:::i;:::-;:115;;:121;;;;:::i;:::-;:142;;:160;;;;:::i;:::-;22442:179;;22311:317;;;;:::o;20503:42::-;;;;;;;;;;;;;;;;;:::o;5093:138::-;5572:12;:10;:12::i;:::-;5181:6;5164:14;;:23;;;;;;;;;;;;;;;;;;5202:22;5217:6;5202:22;;;;;;;;;;;;;;;;;;;;;;5093:138;:::o;13061:472::-;5572:12;:10;:12::i;:::-;13212:6;;;;;;;;;;;13201:17;;:7;:17;;;13197:54;;;13234:7;;13197:54;13303:7;13294:6;;:16;;;;;;;;;;;;;;;;;;13376:6;;;;;;;;;;;13372:56;;;13414:3;13398:13;:19;;;;13372:56;13506:20;13519:6;;;;;;;;;;;13506:20;;;;;;;;;;;;;;;;;;;;;;5594:1;13061:472;:::o;21219:91::-;21265:7;21291:12;;21284:19;;21219:91;:::o;14232:160::-;5572:12;:10;:12::i;:::-;14365:20;14343:19;;:42;;;;;;;;;;;;;;;;;;14232:160;:::o;22705:119::-;22760:7;22786:31;22801:15;;22786:10;;:14;;:31;;;;:::i;:::-;22779:38;;22705:119;:::o;19974:26::-;;;;;;;;;;;;;:::o;24520:379::-;7204:1;7187:13;;:18;;;;;;;;;;;7215:20;7238:13;;7215:36;;24611:10;29156:16;:14;:16::i;:::-;29133:20;:39;;;;29199:26;:24;:26::i;:::-;29182:14;:43;;;;29258:1;29239:21;;:7;:21;;;29235:154;;29295:15;29302:7;29295:6;:15::i;:::-;29276:7;:16;29284:7;29276:16;;;;;;;;;;;;;;;:34;;;;29358:20;;29324:22;:31;29347:7;29324:31;;;;;;;;;;;;;;;:54;;;;29235:154;24654:1;24645:6;:10;24637:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24702:24;24719:6;24702:12;;:16;;:24;;;;:::i;:::-;24687:12;:39;;;;24760:33;24786:6;24760:9;:21;24770:10;24760:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;24736:9;:21;24746:10;24736:21;;;;;;;;;;;;;;;:57;;;;24803:45;24829:10;24841:6;24803:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;24873:10;24863:29;;;24885:6;24863:29;;;;;;;;;;;;;;;;;;7261:1;7309:13;;7293:12;:29;7272:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24520:379;;:::o;23764:551::-;7204:1;7187:13;;:18;;;;;;;;;;;7215:20;7238:13;;7215:36;;13630:6;;;;;;;;;;;13629:7;13608:114;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23894:9;29156:16;:14;:16::i;:::-;29133:20;:39;;;;29199:26;:24;:26::i;:::-;29182:14;:43;;;;29258:1;29239:21;;:7;:21;;;29235:154;;29295:15;29302:7;29295:6;:15::i;:::-;29276:7;:16;29284:7;29276:16;;;;;;;;;;;;;;;:34;;;;29358:20;;29324:22;:31;29347:7;29324:31;;;;;;;;;;;;;;;:54;;;;29235:154;23941:11;;;;;;;;;;;23927:25;;:10;:25;;;23919:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24001:1;23992:6;:10;23984:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24040:9;;;;;;;;;;;24039:10;24031:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24102:24;24119:6;24102:12;;:16;;:24;;;;:::i;:::-;24087:12;:39;;;;24159:32;24184:6;24159:9;:20;24169:9;24159:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;24136:9;:20;24146:9;24136:20;;;;;;;;;;;;;;;:55;;;;24201:64;24231:10;24251:4;24258:6;24201:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;24290:9;24280:28;;;24301:6;24280:28;;;;;;;;;;;;;;;;;;13732:1;7309:13;;7293:12;:29;7272:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23764:551;;;:::o;19398:39::-;;;;:::o;25824:1129::-;14121:19;;;;;;;;;;;14107:33;;:10;:33;;;14086:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25946:1;29156:16;:14;:16::i;:::-;29133:20;:39;;;;29199:26;:24;:26::i;:::-;29182:14;:43;;;;29258:1;29239:21;;:7;:21;;;29235:154;;29295:15;29302:7;29295:6;:15::i;:::-;29276:7;:16;29284:7;29276:16;;;;;;;;;;;;;;;:34;;;;29358:20;;29324:22;:31;29347:7;29324:31;;;;;;;;;;;;;;;:54;;;;29235:154;25987:12;;25968:15;:31;25964:312;;26028:27;26039:15;;26028:6;:10;;:27;;;;:::i;:::-;26015:10;:40;;;;25964:312;;;26086:17;26106:33;26123:15;26106:12;;:16;;:33;;;;:::i;:::-;26086:53;;26153:16;26172:25;26186:10;;26172:9;:13;;:25;;;;:::i;:::-;26153:44;;26224:41;26249:15;;26224:20;26235:8;26224:6;:10;;:20;;;;:::i;:::-;:24;;:41;;;;:::i;:::-;26211:10;:54;;;;25964:312;;;26630:15;26648:12;;;;;;;;;;;:22;;;26679:4;26648:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26648:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26648:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26648:37:0;;;;;;;;;;;;;;;;26630:55;;26730:28;26742:15;;26730:7;:11;;:28;;;;:::i;:::-;26716:10;;:42;;26695:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26836:15;26819:14;:32;;;;26876:36;26896:15;;26876;:19;;:36;;;;:::i;:::-;26861:12;:51;;;;26927:19;26939:6;26927:19;;;;;;;;;;;;;;;;;;29398:1;14218;25824:1129;:::o;25016:300::-;7204:1;7187:13;;:18;;;;;;;;;;;7215:20;7238:13;;7215:36;;25070:10;29156:16;:14;:16::i;:::-;29133:20;:39;;;;29199:26;:24;:26::i;:::-;29182:14;:43;;;;29258:1;29239:21;;:7;:21;;;29235:154;;29295:15;29302:7;29295:6;:15::i;:::-;29276:7;:16;29284:7;29276:16;;;;;;;;;;;;;;;:34;;;;29358:20;;29324:22;:31;29347:7;29324:31;;;;;;;;;;;;;;;:54;;;;29235:154;25092:14;25109:7;:19;25117:10;25109:19;;;;;;;;;;;;;;;;25092:36;;25151:1;25142:6;:10;25138:172;;;25190:1;25168:7;:19;25176:10;25168:19;;;;;;;;;;;;;;;:23;;;;25205:45;25231:10;25243:6;25205:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;25280:10;25269:30;;;25292:6;25269:30;;;;;;;;;;;;;;;;;;25138:172;29398:1;7261;7309:13;;7293:12;:29;7272:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25016:300;:::o;13941:34::-;;;;;;;;;;;;;:::o;20187:21::-;;;;;;;;;;;;;:::o;4870:29::-;;;;;;;;;;;;;:::o;12659:18::-;;;;;;;;;;;;;:::o;21369:110::-;21428:7;21454:9;:18;21464:7;21454:18;;;;;;;;;;;;;;;;21447:25;;21369:110;;;:::o;19055:26::-;;;;;;;;;;;;;:::o;5237:300::-;5318:14;;;;;;;;;;;5304:28;;:10;:28;;;5283:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5426:35;5439:5;;;;;;;;;;;5446:14;;;;;;;;;;;5426:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5479:14;;;;;;;;;;;5471:5;;:22;;;;;;;;;;;;;;;;;;5528:1;5503:14;;:27;;;;;;;;;;;;;;;;;;5237:300::o;19273:29::-;;;;:::o;21564:153::-;21621:7;21665:12;;21647:15;:30;:63;;21698:12;;21647:63;;;21680:15;21647:63;21640:70;;21564:153;:::o;27167:898::-;5572:12;:10;:12::i;:::-;27326;;;;;;;;;;;27302:37;;:12;:37;;;;27281:117;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27496:12;;;;;;;;;;;27472:37;;:12;:37;;;27468:476;;;27583:7;27568:12;;:22;27550:15;:40;27525:137;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27758:12;;;;;;;;;;;:22;;;27789:4;27758:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27758:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27758:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;27758:37:0;;;;;;;;;;;;;;;;27744:51;;27929:4;27917:9;;:16;;;;;;;;;;;;;;;;;;27468:476;27954:53;27988:5;;;;;;;;;;;27995:11;27961:12;27954:33;;;;:53;;;;;:::i;:::-;28022:36;28032:12;28046:11;28022:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;27167:898;;:::o;20371:57::-;;;;;;;;;;;;;;;;;:::o;4844:20::-;;;;;;;;;;;;;:::o;12625:28::-;;;;:::o;23028:465::-;7204:1;7187:13;;:18;;;;;;;;;;;7215:20;7238:13;;7215:36;;13630:6;;;;;;;;;;;13629:7;13608:114;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23136:10;29156:16;:14;:16::i;:::-;29133:20;:39;;;;29199:26;:24;:26::i;:::-;29182:14;:43;;;;29258:1;29239:21;;:7;:21;;;29235:154;;29295:15;29302:7;29295:6;:15::i;:::-;29276:7;:16;29284:7;29276:16;;;;;;;;;;;;;;;:34;;;;29358:20;;29324:22;:31;29347:7;29324:31;;;;;;;;;;;;;;;:54;;;;29235:154;23179:1;23170:6;:10;23162:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23218:9;;;;;;;;;;;23217:10;23209:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23280:24;23297:6;23280:12;;:16;;:24;;;;:::i;:::-;23265:12;:39;;;;23338:33;23364:6;23338:9;:21;23348:10;23338:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;23314:9;:21;23324:10;23314:21;;;;;;;;;;;;;;;:57;;;;23381:64;23411:10;23431:4;23438:6;23381:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;23467:10;23460:26;;;23479:6;23460:26;;;;;;;;;;;;;;;;;;13732:1;7309:13;;7293:12;:29;7272:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23028:465;;:::o;19646:29::-;;;;:::o;28282:353::-;5572:12;:10;:12::i;:::-;28404;;28386:15;:30;28365:165;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28558:16;28540:15;:34;;;;28589:39;28612:15;;28589:39;;;;;;;;;;;;;;;;;;28282:353;:::o;21772:465::-;21819:7;21858:1;21842:12;;:17;21838:75;;;21882:20;;21875:27;;;;21838:75;21927:9;;;;;;;;;;;21923:48;;;21959:1;21952:8;;;;21923:48;22000:230;22042:174;22203:12;;22042:135;22172:4;22042:104;22135:10;;22042:67;22094:14;;22042:26;:24;:26::i;:::-;:51;;:67;;;;:::i;:::-;:92;;:104;;;;:::i;:::-;:129;;:135;;;;:::i;:::-;:160;;:174;;;;:::i;:::-;22000:20;;:24;;:230;;;;:::i;:::-;21981:249;;21772:465;;:::o;18972:26::-;;;;;;;;;;;;;:::o;19824:35::-;;;;:::o;25408:94::-;25443:31;25452:9;:21;25462:10;25452:21;;;;;;;;;;;;;;;;25443:8;:31::i;:::-;25484:11;:9;:11::i;:::-;25408:94::o;19169:31::-;;;;:::o;28816:219::-;5572:12;:10;:12::i;:::-;28923:1;28899:26;;:12;:26;;;;28891:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28969:12;28955:11;;:26;;;;;;;;;;;;;;;;;;28996:32;29015:12;28996:32;;;;;;;;;;;;;;;;;;;;;;28816:219;:::o;8662:179::-;8720:7;8752:1;8747;:6;;8739:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8798:9;8814:1;8810;:5;8798:17;;8833:1;8826:8;;;8662:179;;;;:::o;9081:458::-;9139:7;9384:1;9379;:6;9375:45;;;9408:1;9401:8;;;;9375:45;9430:9;9446:1;9442;:5;9430:17;;9474:1;9469;9465;:5;;;;;;:10;9457:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9531:1;9524:8;;;9081:458;;;;;:::o;9994:326::-;10052:7;10149:1;10145;:5;10137:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10191:9;10207:1;10203;:5;;;;;;10191:17;;10312:1;10305:8;;;9994:326;;;;:::o;8222:176::-;8280:7;8299:9;8315:1;8311;:5;8299:17;;8339:1;8334;:6;;8326:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8390:1;8383:8;;;8222:176;;;;:::o;5608:165::-;5688:5;;;;;;;;;;;5674:19;;:10;:19;;;5653:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5608:165::o;14965:238::-;15077:119;15109:5;15151;:14;;;:23;;;;15176:2;15180:5;15128:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;15128:58:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;15128:58:0;15077:18;:119::i;:::-;14965:238;;;:::o;15209:274::-;15347:129;15379:5;15421;:18;;;:27;;;;15450:4;15456:2;15460:5;15398:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;15398:68:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;15398:68:0;15347:18;:129::i;:::-;15209:274;;;;:::o;17413:1153::-;18008:27;18016:5;18008:25;;;:27::i;:::-;18000:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18142:12;18156:23;18191:5;18183:19;;18203:4;18183:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;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;;;18183: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;;18141:67:0;;;;18226:7;18218:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18305:1;18285:10;:17;:21;18281:279;;;18454:10;18443:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18443:30:0;;;;;;;;;;;;;;;;18418:131;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18281:279;17413:1153;;;;:::o;602:433::-;662:4;865:12;986:7;974:20;966:28;;1027:1;1020:4;:8;1013:15;;;602:433;;;:::o

Swarm Source

bzzr://6e8d2cb5285905311577b95cd58992aa5355000ad8419a5e2ffa24b5de7c08b2

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.