POL Price: $0.218371 (+0.02%)
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit541567512024-03-02 0:18:29417 days ago1709338709IN
0x75CA5C33...52161d44a
0 POL0.0108727100
Exit416437272023-04-17 18:08:33736 days ago1681754913IN
0x75CA5C33...52161d44a
0 POL0.02002582184.18443233
Exit414455182023-04-12 12:41:15741 days ago1681303275IN
0x75CA5C33...52161d44a
0 POL0.03778441347.51636403
Get Reward414455182023-04-12 12:41:15741 days ago1681303275IN
0x75CA5C33...52161d44a
0 POL0.04393023347.51636403
Get Reward409204712023-03-30 1:12:59755 days ago1680138779IN
0x75CA5C33...52161d44a
0 POL0.00628443104.69340365
Exit409204612023-03-30 1:12:37755 days ago1680138757IN
0x75CA5C33...52161d44a
0 POL0.02280183116.28544343
Get Reward354740552022-11-11 10:11:47893 days ago1668161507IN
0x75CA5C33...52161d44a
0 POL0.0067069111.731536
Exit354740432022-11-11 10:11:19893 days ago1668161479IN
0x75CA5C33...52161d44a
0 POL0.02286099116.58717009
Exit353199332022-11-07 16:01:41897 days ago1667836901IN
0x75CA5C33...52161d44a
0 POL0.01848214169.98666573
Exit351949492022-11-04 15:20:47900 days ago1667575247IN
0x75CA5C33...52161d44a
0 POL0.04974729457.54319269
Exit338483292022-10-02 19:03:31933 days ago1664737411IN
0x75CA5C33...52161d44a
0 POL0.0033748831.03999999
Get Reward338482792022-10-02 19:01:47933 days ago1664737307IN
0x75CA5C33...52161d44a
0 POL0.0041606730.55500001
Exit334385012022-09-22 20:31:29943 days ago1663878689IN
0x75CA5C33...52161d44a
0 POL0.0057500832.1260896
Exit333508942022-09-20 17:15:25945 days ago1663694125IN
0x75CA5C33...52161d44a
0 POL0.0036912833.95000014
Exit319713972022-08-16 21:26:09980 days ago1660685169IN
0x75CA5C33...52161d44a
0 POL0.0062928235.15836861
Exit310355762022-07-23 3:53:501005 days ago1658548430IN
0x75CA5C33...52161d44a
0 POL0.0022156137.07340004
Exit310355712022-07-23 3:53:301005 days ago1658548410IN
0x75CA5C33...52161d44a
0 POL0.0032618130.00000021
Stake310269192022-07-22 22:24:201005 days ago1658528660IN
0x75CA5C33...52161d44a
0 POL0.002625230.42872211
Stake310253162022-07-22 21:22:301005 days ago1658524950IN
0x75CA5C33...52161d44a
0 POL0.0033474338.79999999
Stake310244502022-07-22 20:48:251005 days ago1658522905IN
0x75CA5C33...52161d44a
0 POL0.0052224936.50666785
Get Reward310197382022-07-22 17:41:181005 days ago1658511678IN
0x75CA5C33...52161d44a
0 POL0.0042791534.93474212
Exit291172722022-06-03 14:02:341054 days ago1654264954IN
0x75CA5C33...52161d44a
0 POL0.0105121354.72648939
Exit289885572022-05-31 10:21:581057 days ago1653992518IN
0x75CA5C33...52161d44a
0 POL0.0032618130.00000001
Exit289782502022-05-31 4:16:141058 days ago1653970574IN
0x75CA5C33...52161d44a
0 POL0.0032618130.00000001
Stake289421242022-05-30 6:22:291059 days ago1653891749IN
0x75CA5C33...52161d44a
0 POL0.0042916830.00000004
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
228338602021-12-22 16:08:081217 days ago1640189288  Contract Creation0 POL
Loading...
Loading

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

Contract Name:
StakingDualRewards

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-10-04
*/

/**
 *Submitted for verification at polygonscan.com on 2021-09-23
*/

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

/**
 *Submitted for verification at Etherscan.io on 2021-03-09
*/

/*
   ____            __   __        __   _
  / __/__ __ ___  / /_ / /  ___  / /_ (_)__ __
 _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
     /___/

* Synthetix: StakingDualRewards.sol
*
* Latest source (may be newer): https://github.com/Synthetixio/synthetix/blob/master/contracts/StakingDualRewards.sol
* Docs: https://docs.synthetix.io/contracts/StakingDualRewards
*
* Contract Dependencies:
*	- DualRewardsDistributionRecipient
*	- IERC20
*	- IStakingDualRewards
*	- Owned
*	- Pausable
*	- ReentrancyGuard
* Libraries:
*	- Address
*	- Math
*	- SafeERC20
*	- SafeMath
*
* MIT License
* ===========
*
* Copyright (c) 2021 Synthetix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/



pragma solidity ^0.5.0;

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

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

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


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

        return c;
    }

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

        return c;
    }

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

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

        return c;
    }

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

        return c;
    }

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


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

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

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

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

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

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

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

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


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

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

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

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

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


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

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


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

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

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

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

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

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

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

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

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

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


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

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

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


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

    function rewardPerTokenA() external view returns (uint256);
    function rewardPerTokenB() external view returns (uint256);

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

    function earnedB(address account) external view returns (uint256);
   
    function totalSupply() external view returns (uint256);

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

    // Mutative

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function getReward() external;

    function exit() external;
}


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


// Inheritance


contract DualRewardsDistributionRecipient is Owned {
    address public dualRewardsDistribution;

    function notifyRewardAmount(uint256 rewardA, uint256 rewardB, uint256 rewardsDuration) external;

    modifier onlyDualRewardsDistribution() {
        require(msg.sender == dualRewardsDistribution, "Caller is not DualRewardsDistribution contract");
        _;
    }
}


// Inheritance


// https://docs.synthetix.io/contracts/source/contracts/pausable
contract Pausable is Owned {
    uint 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");
        _;
    }
}


// Inheritance


contract StakingDualRewards is IStakingDualRewards, DualRewardsDistributionRecipient, ReentrancyGuard, Pausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    IERC20 public rewardsTokenA;
    IERC20 public rewardsTokenB;
    IERC20 public stakingToken;
    uint256 public periodFinish = 0;
    uint256 public rewardRateA = 0;
    uint256 public rewardRateB = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenAStored;
    uint256 public rewardPerTokenBStored;

    mapping(address => uint256) public userRewardPerTokenAPaid;
    mapping(address => uint256) public userRewardPerTokenBPaid;
    mapping(address => uint256) public rewardsA;
    mapping(address => uint256) public rewardsB;

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

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

    constructor(
        address _owner,
        address _dualRewardsDistribution,
        address _rewardsTokenA,
        address _rewardsTokenB,
        address _stakingToken
    ) public Owned(_owner) {
        require(_rewardsTokenA != _rewardsTokenB, "rewards tokens should be different");
        rewardsTokenA = IERC20(_rewardsTokenA);
        rewardsTokenB = IERC20(_rewardsTokenB);
        stakingToken = IERC20(_stakingToken);
        dualRewardsDistribution = _dualRewardsDistribution;
    }

    /* ========== 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 rewardPerTokenA() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenAStored;
        }
        return
            rewardPerTokenAStored.add(
                lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRateA).mul(1e18).div(_totalSupply)
            );
    }

    function rewardPerTokenB() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenBStored;
        }

        return
            rewardPerTokenBStored.add(
                lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRateB).mul(1e18).div(_totalSupply)
            );
    }

    function earnedA(address account) public view returns (uint256) {
        return _balances[account].mul(rewardPerTokenA().sub(userRewardPerTokenAPaid[account])).div(1e18).add(rewardsA[account]);
    }

    function earnedB(address account) public view returns (uint256) {
        return
            _balances[account].mul(rewardPerTokenB().sub(userRewardPerTokenBPaid[account])).div(1e18).add(rewardsB[account]);
    }

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

    function stake(uint256 amount) external nonReentrant notPaused 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 rewardAmountA = rewardsA[msg.sender];
        if (rewardAmountA > 0) {
            rewardsA[msg.sender] = 0;
            rewardsTokenA.safeTransfer(msg.sender, rewardAmountA);
            emit RewardPaid(msg.sender, address(rewardsTokenA), rewardAmountA);
        }

        uint256 rewardAmountB = rewardsB[msg.sender];
        if (rewardAmountB > 0) {
            rewardsB[msg.sender] = 0;
            rewardsTokenB.safeTransfer(msg.sender, rewardAmountB);
            emit RewardPaid(msg.sender, address(rewardsTokenB), rewardAmountB);
        }
    }

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

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

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

        if (block.timestamp >= periodFinish) {
            rewardRateA = rewardA.div(rewardsDuration);
            rewardRateB = rewardB.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);

            uint256 leftoverA = remaining.mul(rewardRateA);
            rewardRateA = rewardA.add(leftoverA).div(rewardsDuration);

            uint256 leftoverB = remaining.mul(rewardRateB);
            rewardRateB = rewardB.add(leftoverB).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 balanceA = rewardsTokenA.balanceOf(address(this));
        require(rewardRateA <= balanceA.div(rewardsDuration), "Provided reward-A too high");

        uint balanceB = rewardsTokenB.balanceOf(address(this));
        require(rewardRateB <= balanceB.div(rewardsDuration), "Provided reward-B too high");

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

    // Added to support recovering LP Rewards in case of emergency
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token");
        IERC20(tokenAddress).safeTransfer(owner, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

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

    modifier updateReward(address account) {

        rewardPerTokenAStored = rewardPerTokenA();
        rewardPerTokenBStored = rewardPerTokenB();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewardsA[account] = earnedA(account);
            userRewardPerTokenAPaid[account] = rewardPerTokenAStored;
        }

        if (account != address(0)) {
            rewardsB[account] = earnedB(account);
            userRewardPerTokenBPaid[account] = rewardPerTokenBStored;
        }
        _;
    }

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

    event RewardAdded(uint256 rewardA, uint256 rewardB, uint256 periodFinish);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, address rewardToken, uint256 reward);
    event Recovered(address token, uint256 amount);
}

contract StakingRewardsFactory is Owned {
    // immutables
    uint public stakingRewardsGenesis;

    // the staking tokens for which the rewards contract has been deployed
    address[] public stakingTokens;

    // info about rewards for a particular staking token
    struct StakingRewardsInfo {
        address stakingRewards;
        address rewardsTokenA;
        address rewardsTokenB;
        uint256 rewardAmountA;
        uint256 rewardAmountB;
        uint256 duration;
    }

    // rewards info by staking token
    mapping(address => StakingRewardsInfo) public stakingRewardsInfoByStakingToken;

    constructor(
        uint _stakingRewardsGenesis
    ) Owned(msg.sender) public {
        require(_stakingRewardsGenesis >= block.timestamp, 'StakingRewardsFactory::constructor: genesis too soon');

        stakingRewardsGenesis = _stakingRewardsGenesis;
    }

    ///// permissioned functions

    // deploy a staking reward contract for the staking token, and store the reward amount
    // the reward will be distributed to the staking reward contract no sooner than the genesis
    function deploy(
        address _owner,
        address stakingToken,
        address rewardsTokenA,
        address rewardsTokenB,
        uint256 rewardAmountA,
        uint256 rewardAmountB,
        uint256 rewardsDuration
    )
        public
        onlyOwner
    {
        require(
            rewardsTokenA != address(0) &&
            rewardsTokenB != address(0),
            "Invalid reward token(s)"
        );

        StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken];

        require(info.stakingRewards == address(0), 'StakingRewardsFactory::deploy: already deployed');

        info.stakingRewards = address(new StakingDualRewards(
                _owner,
                address(this),
                rewardsTokenA,
                rewardsTokenB,
                stakingToken
            )
        );
        
        info.rewardsTokenA = rewardsTokenA;
        info.rewardsTokenB = rewardsTokenB;

        info.rewardAmountA = rewardAmountA;
        info.rewardAmountB = rewardAmountB;
        info.duration = rewardsDuration;
        stakingTokens.push(stakingToken);
    }

    function update(address stakingToken, uint rewardAmountA, uint rewardAmountB, uint256 rewardsDuration) public onlyOwner {
        StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken];
        require(info.stakingRewards != address(0), 'StakingRewardsFactory::update: not deployed');

        info.rewardAmountA = rewardAmountA;
        info.rewardAmountB = rewardAmountB;
        info.duration = rewardsDuration;
    }



    ///// permissionless functions

    // call notifyRewardAmount for all staking tokens.
    function notifyRewardAmounts() public {
        require(stakingTokens.length > 0, 'StakingRewardsFactory::notifyRewardAmounts: called before any deploys');
        for (uint i = 0; i < stakingTokens.length; i++) {
            notifyRewardAmount(stakingTokens[i]);
        }
    }

    // notify reward amount for an individual staking token.
    // this is a fallback in case the notifyRewardAmounts costs too much gas to call for all contracts
    function notifyRewardAmount(address stakingToken) public {
        require(block.timestamp >= stakingRewardsGenesis, 'StakingRewardsFactory::notifyRewardAmount: not ready');

        StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken];
        require(info.stakingRewards != address(0), 'StakingRewardsFactory::notifyRewardAmount: not deployed');

        if (info.rewardAmountA > 0 && info.rewardAmountB > 0 && info.duration > 0) {
            uint rewardAmountA = info.rewardAmountA;
            uint rewardAmountB = info.rewardAmountB;
            uint256 duration = info.duration;
            info.rewardAmountA = 0;
            info.rewardAmountB = 0;
            info.duration = 0;

            require(
                IERC20(info.rewardsTokenA).transfer(info.stakingRewards, rewardAmountA),
                'StakingRewardsFactory::notifyRewardAmount: transfer failed'
            );
            require(
                IERC20(info.rewardsTokenB).transfer(info.stakingRewards, rewardAmountB),
                'StakingRewardsFactory::notifyRewardAmount: transfer failed'
            );
            StakingDualRewards(info.stakingRewards).notifyRewardAmount(rewardAmountA, rewardAmountB, duration);
        }
    }

    function pullExtraTokens(address token, uint256 amount) external onlyOwner {
        IERC20(token).transfer(msg.sender, amount);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_dualRewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsTokenA","type":"address"},{"internalType":"address","name":"_rewardsTokenB","type":"address"},{"internalType":"address","name":"_stakingToken","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":"rewardA","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardB","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"periodFinish","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","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":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":[],"name":"dualRewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earnedA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earnedB","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":"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":"rewardA","type":"uint256"},{"internalType":"uint256","name":"rewardB","type":"uint256"},{"internalType":"uint256","name":"rewardsDuration","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":"rewardPerTokenA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenAStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenBStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRateA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRateB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardsA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardsB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsTokenA","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsTokenB","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":"uint256","name":"amount","type":"uint256"}],"name":"stake","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":"userRewardPerTokenAPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenBPaid","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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063a694fc3a116100ad578063e9fad8ee1161007c578063e9fad8ee1461086b578063ebe2b12b14610875578063efa1c63c14610893578063f5630550146108b1578063ff510b06146108cf57610206565b8063a694fc3a146107a9578063a85594ad146107d7578063b95f0079146107f5578063c8f33c911461084d57610206565b806388c4c666116100e957806388c4c666146106a95780638980f11f146106f35780638da5cb5b1461074157806391b4ded91461078b57610206565b806370a08231146105df57806372f702f31461063757806379ba50971461068157806380faa57d1461068b57610206565b806334584d3a1161019d57806353a47bb71161016c57806353a47bb7146104b35780635c975abb146104fd5780635fd1020c1461051f57806360fb36261461056957806368213329146105c157610206565b806334584d3a146103db5780633d18b912146104335780634ea4618b1461043d578063513c508a1461049557610206565b80631820d739116101d95780631820d739146102df578063255cfca314610337578063266a74ca146103555780632e1a7d4d146103ad57610206565b806306e328201461020b5780631627540c1461024d57806316c38b3c1461029157806318160ddd146102c1575b600080fd5b61024b6004803603606081101561022157600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610919565b005b61028f6004803603602081101561026357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611029565b005b6102bf600480360360208110156102a757600080fd5b810190808035151590602001909291905050506110d8565b005b6102c9611185565b6040518082815260200191505060405180910390f35b610321600480360360208110156102f557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061118f565b6040518082815260200191505060405180910390f35b61033f6112ad565b6040518082815260200191505060405180910390f35b6103976004803603602081101561036b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506112b3565b6040518082815260200191505060405180910390f35b6103d9600480360360208110156103c357600080fd5b81019080803590602001909291905050506112cb565b005b61041d600480360360208110156103f157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116d9565b6040518082815260200191505060405180910390f35b61043b6116f1565b005b61047f6004803603602081101561045357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c47565b6040518082815260200191505060405180910390f35b61049d611c5f565b6040518082815260200191505060405180910390f35b6104bb611c65565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610505611c8b565b604051808215151515815260200191505060405180910390f35b610527611c9e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105ab6004803603602081101561057f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611cc4565b6040518082815260200191505060405180910390f35b6105c9611de2565b6040518082815260200191505060405180910390f35b610621600480360360208110156105f557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e70565b6040518082815260200191505060405180910390f35b61063f611eb9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610689611edf565b005b610693612105565b6040518082815260200191505060405180910390f35b6106b1612118565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61073f6004803603604081101561070957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061213e565b005b6107496122a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107936122cd565b6040518082815260200191505060405180910390f35b6107d5600480360360208110156107bf57600080fd5b81019080803590602001909291905050506122d3565b005b6107df612749565b6040518082815260200191505060405180910390f35b6108376004803603602081101561080b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506127d7565b6040518082815260200191505060405180910390f35b6108556127ef565b6040518082815260200191505060405180910390f35b6108736127f5565b005b61087d612847565b6040518082815260200191505060405180910390f35b61089b61284d565b6040518082815260200191505060405180910390f35b6108b9612853565b6040518082815260200191505060405180910390f35b6108d7612859565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061305c602e913960400191505060405180910390fd5b60006109c9612749565b600c819055506109d7611de2565b600d819055506109e5612105565b600b81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ab257610a288161118f565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b7957610aef81611cc4565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600854610b8f834261287f90919063ffffffff16565b1015610c03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f43616e6e6f7420726564756365206578697374696e6720706572696f6400000081525060200191505060405180910390fd5b6008544210610c4357610c1f828561290790919063ffffffff16565b600981905550610c38828461290790919063ffffffff16565b600a81905550610ce8565b6000610c5a4260085461299690919063ffffffff16565b90506000610c7360095483612a1f90919063ffffffff16565b9050610c9a84610c8c838961287f90919063ffffffff16565b61290790919063ffffffff16565b6009819055506000610cb7600a5484612a1f90919063ffffffff16565b9050610cde85610cd0838961287f90919063ffffffff16565b61290790919063ffffffff16565b600a819055505050505b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d8957600080fd5b505afa158015610d9d573d6000803e3d6000fd5b505050506040513d6020811015610db357600080fd5b81019080805190602001909291905050509050610dd9838261290790919063ffffffff16565b6009541115610e50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f50726f7669646564207265776172642d4120746f6f206869676800000000000081525060200191505060405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ef157600080fd5b505afa158015610f05573d6000803e3d6000fd5b505050506040513d6020811015610f1b57600080fd5b81019080805190602001909291905050509050610f41848261290790919063ffffffff16565b600a541115610fb8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f50726f7669646564207265776172642d4220746f6f206869676800000000000081525060200191505060405180910390fd5b42600b81905550610fd2844261287f90919063ffffffff16565b6008819055507f9795f222c951ae3e749f872dbe287f78d21fa52353e9175cb20ed3aa2b29b82b868660085460405180848152602001838152602001828152602001935050505060405180910390a1505050505050565b611031612aa5565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6110e0612aa5565b600560009054906101000a900460ff161515811515141561110057611182565b80600560006101000a81548160ff021916908315150217905550600560009054906101000a900460ff161561113757426004819055505b7f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5600560009054906101000a900460ff16604051808215151515815260200191505060405180910390a15b50565b6000601254905090565b60006112a6601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611298670de0b6b3a764000061128a61123c600e60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461122e612749565b61299690919063ffffffff16565b601360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a1f90919063ffffffff16565b61290790919063ffffffff16565b61287f90919063ffffffff16565b9050919050565b60095481565b60106020528060005260406000206000915090505481565b600160036000828254019250508190555060006003549050336112ec612749565b600c819055506112fa611de2565b600d81905550611308612105565b600b81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113d55761134b8161118f565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461149c5761141281611cc4565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311611512576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b6115278360125461299690919063ffffffff16565b60128190555061157f83601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461299690919063ffffffff16565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061160f3384600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612b4c9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a25060035481146116d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b600f6020528060005260406000206000915090505481565b60016003600082825401925050819055506000600354905033611712612749565b600c81905550611720611de2565b600d8190555061172e612105565b600b81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146117fb576117718161118f565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118c25761183881611cc4565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611a46576000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506119a13382600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612b4c9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a25b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611bca576000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611b253382600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612b4c9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a25b5050506003548114611c44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b50565b600e6020528060005260406000206000915090505481565b600d5481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900460ff1681565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611ddb601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611dcd670de0b6b3a7640000611dbf611d71600f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d63611de2565b61299690919063ffffffff16565b601360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a1f90919063ffffffff16565b61290790919063ffffffff16565b61287f90919063ffffffff16565b9050919050565b6000806012541415611df857600d549050611e6d565b611e6a611e59601254611e4b670de0b6b3a7640000611e3d600a54611e2f600b54611e21612105565b61299690919063ffffffff16565b612a1f90919063ffffffff16565b612a1f90919063ffffffff16565b61290790919063ffffffff16565b600d5461287f90919063ffffffff16565b90505b90565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526035815260200180612f9b6035913960400191505060405180910390fd5b7fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600061211342600854612c1d565b905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612146612aa5565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806130b46021913960400191505060405180910390fd5b6122396000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16612b4c9092919063ffffffff16565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600160036000828254019250508190555060006003549050600560009054906101000a900460ff1615612351576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180613020603c913960400191505060405180910390fd5b3361235a612749565b600c81905550612368611de2565b600d81905550612376612105565b600b81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612443576123b98161118f565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c54600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461250a5761248081611cc4565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311612580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b6125958360125461287f90919063ffffffff16565b6012819055506125ed83601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461287f90919063ffffffff16565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061267f333085600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c36909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040518082815260200191505060405180910390a2506003548114612745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b600080601254141561275f57600c5490506127d4565b6127d16127c06012546127b2670de0b6b3a76400006127a4600954612796600b54612788612105565b61299690919063ffffffff16565b612a1f90919063ffffffff16565b612a1f90919063ffffffff16565b61290790919063ffffffff16565b600c5461287f90919063ffffffff16565b90505b90565b60116020528060005260406000206000915090505481565b600b5481565b61283d601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112cb565b6128456116f1565b565b60085481565b600a5481565b600c5481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808284019050838110156128fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600080821161297e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b600082848161298957fe5b0490508091505092915050565b600082821115612a0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b600080831415612a325760009050612a9f565b6000828402905082848281612a4357fe5b0414612a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612fff6021913960400191505060405180910390fd5b809150505b92915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612b4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612fd0602f913960400191505060405180910390fd5b565b612c18838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d3c565b505050565b6000818310612c2c5781612c2e565b825b905092915050565b612d36848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612d3c565b50505050565b612d5b8273ffffffffffffffffffffffffffffffffffffffff16612f87565b612dcd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310612e1c5780518252602082019150602081019050602083039250612df9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612e7e576040519150601f19603f3d011682016040523d82523d6000602084013e612e83565b606091505b509150915081612efb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115612f8157808060200190516020811015612f1a57600080fd5b8101908080519060200190929190505050612f80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061308a602a913960400191505060405180910390fd5b5b50505050565b600080823b90506000811191505091905056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616c6c6572206973206e6f74204475616c52657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea265627a7a723158201c7249203ba906a14b546ba73170c2c69c5d98d8630c622b993e39cd983129d864736f6c63430005110032

Deployed Bytecode Sourcemap

20386:7613:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20386:7613:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24994:1632;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24994:1632:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;17971:141;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;17971:141:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;19689:488;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19689:488:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;21888:93;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22934:202;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22934:202:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20763:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21091:43;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21091:43:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23808:357;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23808:357:0;;;;;;;;;;;;;;;;;:::i;:::-;;21026:58;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21026:58:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24173:652;;;:::i;:::-;;20961:58;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20961:58:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20916:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17740:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19275:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20624:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23144:215;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23144:215:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22590:336;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21989:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21989:112:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20692:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;18120:271;;;:::i;:::-;;22109:131;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20658:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;26702:302;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26702:302:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;17713:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19243:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23421:379;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23421:379:0;;;;;;;;;;;;;;;;;:::i;:::-;;22248:334;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21141:43;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21141:43:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20837:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24833:97;;;:::i;:::-;;20725:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20800:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20873:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18797:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24994:1632;19020:23;;;;;;;;;;;19006:37;;:10;:37;;;18998:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25140:1;27133:17;:15;:17::i;:::-;27109:21;:41;;;;27185:17;:15;:17::i;:::-;27161:21;:41;;;;27230:26;:24;:26::i;:::-;27213:14;:43;;;;27290:1;27271:21;;:7;:21;;;27267:161;;27329:16;27337:7;27329;:16::i;:::-;27309:8;:17;27318:7;27309:17;;;;;;;;;;;;;;;:36;;;;27395:21;;27360:23;:32;27384:7;27360:32;;;;;;;;;;;;;;;:56;;;;27267:161;27463:1;27444:21;;:7;:21;;;27440:161;;27502:16;27510:7;27502;:16::i;:::-;27482:8;:17;27491:7;27482:17;;;;;;;;;;;;;;;:36;;;;27568:21;;27533:23;:32;27557:7;27533:32;;;;;;;;;;;;;;;:56;;;;27440:161;25203:12;;25163:36;25183:15;25163;:19;;:36;;;;:::i;:::-;:52;;25155:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25285:12;;25266:15;:31;25262:521;;25328:28;25340:15;25328:7;:11;;:28;;;;:::i;:::-;25314:11;:42;;;;25385:28;25397:15;25385:7;:11;;:28;;;;:::i;:::-;25371:11;:42;;;;25262:521;;;25446:17;25466:33;25483:15;25466:12;;:16;;:33;;;;:::i;:::-;25446:53;;25516:17;25536:26;25550:11;;25536:9;:13;;:26;;;;:::i;:::-;25516:46;;25591:43;25618:15;25591:22;25603:9;25591:7;:11;;:22;;;;:::i;:::-;:26;;:43;;;;:::i;:::-;25577:11;:57;;;;25651:17;25671:26;25685:11;;25671:9;:13;;:26;;;;:::i;:::-;25651:46;;25726:43;25753:15;25726:22;25738:9;25726:7;:11;;:22;;;;:::i;:::-;:26;;:43;;;;:::i;:::-;25712:11;:57;;;;25262:521;;;;26143:13;26159;;;;;;;;;;;:23;;;26191:4;26159:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26159:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26159:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26159:38:0;;;;;;;;;;;;;;;;26143:54;;26231:29;26244:15;26231:8;:12;;:29;;;;:::i;:::-;26216:11;;:44;;26208:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26304:13;26320;;;;;;;;;;;:23;;;26352:4;26320:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26320:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26320:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26320:38:0;;;;;;;;;;;;;;;;26304:54;;26392:29;26405:15;26392:8;:12;;:29;;;;:::i;:::-;26377:11;;:44;;26369:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26482:15;26465:14;:32;;;;26523:36;26543:15;26523;:19;;:36;;;;:::i;:::-;26508:12;:51;;;;26575:43;26587:7;26596;26605:12;;26575:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27611:1;;19105;24994:1632;;;:::o;17971:141::-;18429:12;:10;:12::i;:::-;18060:6;18043:14;;:23;;;;;;;;;;;;;;;;;;18082:22;18097:6;18082:22;;;;;;;;;;;;;;;;;;;;;;17971:141;:::o;19689:488::-;18429:12;:10;:12::i;:::-;19842:6;;;;;;;;;;;19831:17;;:7;:17;;;19827:56;;;19865:7;;19827:56;19938:7;19929:6;;:16;;;;;;;;;;;;;;;;;;20014:6;;;;;;;;;;;20010:58;;;20053:3;20037:13;:19;;;;20010:58;20149:20;20162:6;;;;;;;;;;;20149:20;;;;;;;;;;;;;;;;;;;;;;18452:1;19689:488;:::o;21888:93::-;21934:7;21961:12;;21954:19;;21888:93;:::o;22934:202::-;22989:7;23016:112;23110:8;:17;23119:7;23110:17;;;;;;;;;;;;;;;;23016:89;23100:4;23016:79;23039:55;23061:23;:32;23085:7;23061:32;;;;;;;;;;;;;;;;23039:17;:15;:17::i;:::-;:21;;:55;;;;:::i;:::-;23016:9;:18;23026:7;23016:18;;;;;;;;;;;;;;;;:22;;:79;;;;:::i;:::-;:83;;:89;;;;:::i;:::-;:93;;:112;;;;:::i;:::-;23009:119;;22934:202;;;:::o;20763:30::-;;;;:::o;21091:43::-;;;;;;;;;;;;;;;;;:::o;23808:357::-;16728:1;16711:13;;:18;;;;;;;;;;;16740:20;16763:13;;16740:36;;23875:10;27133:17;:15;:17::i;:::-;27109:21;:41;;;;27185:17;:15;:17::i;:::-;27161:21;:41;;;;27230:26;:24;:26::i;:::-;27213:14;:43;;;;27290:1;27271:21;;:7;:21;;;27267:161;;27329:16;27337:7;27329;:16::i;:::-;27309:8;:17;27318:7;27309:17;;;;;;;;;;;;;;;:36;;;;27395:21;;27360:23;:32;27384:7;27360:32;;;;;;;;;;;;;;;:56;;;;27267:161;27463:1;27444:21;;:7;:21;;;27440:161;;27502:16;27510:7;27502;:16::i;:::-;27482:8;:17;27491:7;27482:17;;;;;;;;;;;;;;;:36;;;;27568:21;;27533:23;:32;27557:7;27533:32;;;;;;;;;;;;;;;:56;;;;27440:161;23915:1;23906:6;:10;23898:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23964:24;23981:6;23964:12;;:16;;:24;;;;:::i;:::-;23949:12;:39;;;;24023:33;24049:6;24023:9;:21;24033:10;24023:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;23999:9;:21;24009:10;23999:21;;;;;;;;;;;;;;;:57;;;;24067:45;24093:10;24105:6;24067:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;24138:10;24128:29;;;24150:6;24128:29;;;;;;;;;;;;;;;;;;16787:1;16823:13;;16807:12;:29;16799:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23808:357;;:::o;21026:58::-;;;;;;;;;;;;;;;;;:::o;24173:652::-;16728:1;16711:13;;:18;;;;;;;;;;;16740:20;16763:13;;16740:36;;24227:10;27133:17;:15;:17::i;:::-;27109:21;:41;;;;27185:17;:15;:17::i;:::-;27161:21;:41;;;;27230:26;:24;:26::i;:::-;27213:14;:43;;;;27290:1;27271:21;;:7;:21;;;27267:161;;27329:16;27337:7;27329;:16::i;:::-;27309:8;:17;27318:7;27309:17;;;;;;;;;;;;;;;:36;;;;27395:21;;27360:23;:32;27384:7;27360:32;;;;;;;;;;;;;;;:56;;;;27267:161;27463:1;27444:21;;:7;:21;;;27440:161;;27502:16;27510:7;27502;:16::i;:::-;27482:8;:17;27491:7;27482:17;;;;;;;;;;;;;;;:36;;;;27568:21;;27533:23;:32;27557:7;27533:32;;;;;;;;;;;;;;;:56;;;;27440:161;24250:21;24274:8;:20;24283:10;24274:20;;;;;;;;;;;;;;;;24250:44;;24325:1;24309:13;:17;24305:223;;;24366:1;24343:8;:20;24352:10;24343:20;;;;;;;;;;;;;;;:24;;;;24382:53;24409:10;24421:13;24382;;;;;;;;;;;:26;;;;:53;;;;;:::i;:::-;24466:10;24455:61;;;24486:13;;;;;;;;;;;24502;24455:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;24305:223;24540:21;24564:8;:20;24573:10;24564:20;;;;;;;;;;;;;;;;24540:44;;24615:1;24599:13;:17;24595:223;;;24656:1;24633:8;:20;24642:10;24633:20;;;;;;;;;;;;;;;:24;;;;24672:53;24699:10;24711:13;24672;;;;;;;;;;;:26;;;;:53;;;;;:::i;:::-;24756:10;24745:61;;;24776:13;;;;;;;;;;;24792;24745:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;24595:223;27611:1;;16787;16823:13;;16807:12;:29;16799:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24173:652;:::o;20961:58::-;;;;;;;;;;;;;;;;;:::o;20916:36::-;;;;:::o;17740:29::-;;;;;;;;;;;;;:::o;19275:18::-;;;;;;;;;;;;;:::o;20624:27::-;;;;;;;;;;;;;:::o;23144:215::-;23199:7;23239:112;23333:8;:17;23342:7;23333:17;;;;;;;;;;;;;;;;23239:89;23323:4;23239:79;23262:55;23284:23;:32;23308:7;23284:32;;;;;;;;;;;;;;;;23262:17;:15;:17::i;:::-;:21;;:55;;;;:::i;:::-;23239:9;:18;23249:7;23239:18;;;;;;;;;;;;;;;;:22;;:79;;;;:::i;:::-;:83;;:89;;;;:::i;:::-;:93;;:112;;;;:::i;:::-;23219:132;;23144:215;;;:::o;22590:336::-;22638:7;22678:1;22662:12;;:17;22658:78;;;22703:21;;22696:28;;;;22658:78;22768:150;22812:91;22890:12;;22812:73;22880:4;22812:63;22863:11;;22812:46;22843:14;;22812:26;:24;:26::i;:::-;:30;;:46;;;;:::i;:::-;:50;;:63;;;;:::i;:::-;:67;;:73;;;;:::i;:::-;:77;;:91;;;;:::i;:::-;22768:21;;:25;;:150;;;;:::i;:::-;22748:170;;22590:336;;:::o;21989:112::-;22048:7;22075:9;:18;22085:7;22075:18;;;;;;;;;;;;;;;;22068:25;;21989:112;;;:::o;20692:26::-;;;;;;;;;;;;;:::o;18120:271::-;18189:14;;;;;;;;;;;18175:28;;:10;:28;;;18167:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18277:35;18290:5;;;;;;;;;;;18297:14;;;;;;;;;;;18277:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18331:14;;;;;;;;;;;18323:5;;:22;;;;;;;;;;;;;;;;;;18381:1;18356:14;;:27;;;;;;;;;;;;;;;;;;18120:271::o;22109:131::-;22166:7;22193:39;22202:15;22219:12;;22193:8;:39::i;:::-;22186:46;;22109:131;:::o;20658:27::-;;;;;;;;;;;;;:::o;26702:302::-;18429:12;:10;:12::i;:::-;26829;;;;;;;;;;;26805:37;;:12;:37;;;;26797:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26891:53;26925:5;;;;;;;;;;;26932:11;26898:12;26891:33;;;;:53;;;;;:::i;:::-;26960:36;26970:12;26984:11;26960:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;26702:302;;:::o;17713:20::-;;;;;;;;;;;;;:::o;19243:25::-;;;;:::o;23421:379::-;16728:1;16711:13;;:18;;;;;;;;;;;16740:20;16763:13;;16740:36;;20266:6;;;;;;;;;;;20265:7;20257:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23497:10;27133:17;:15;:17::i;:::-;27109:21;:41;;;;27185:17;:15;:17::i;:::-;27161:21;:41;;;;27230:26;:24;:26::i;:::-;27213:14;:43;;;;27290:1;27271:21;;:7;:21;;;27267:161;;27329:16;27337:7;27329;:16::i;:::-;27309:8;:17;27318:7;27309:17;;;;;;;;;;;;;;;:36;;;;27395:21;;27360:23;:32;27384:7;27360:32;;;;;;;;;;;;;;;:56;;;;27267:161;27463:1;27444:21;;:7;:21;;;27440:161;;27502:16;27510:7;27502;:16::i;:::-;27482:8;:17;27491:7;27482:17;;;;;;;;;;;;;;;:36;;;;27568:21;;27533:23;:32;27557:7;27533:32;;;;;;;;;;;;;;;:56;;;;27440:161;23537:1;23528:6;:10;23520:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23583:24;23600:6;23583:12;;:16;;:24;;;;:::i;:::-;23568:12;:39;;;;23642:33;23668:6;23642:9;:21;23652:10;23642:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;23618:9;:21;23628:10;23618:21;;;;;;;;;;;;;;;:57;;;;23686:64;23716:10;23736:4;23743:6;23686:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;23773:10;23766:26;;;23785:6;23766:26;;;;;;;;;;;;;;;;;;20348:1;16823:13;;16807:12;:29;16799:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23421:379;;:::o;22248:334::-;22296:7;22336:1;22320:12;;:17;22316:78;;;22361:21;;22354:28;;;;22316:78;22424:150;22468:91;22546:12;;22468:73;22536:4;22468:63;22519:11;;22468:46;22499:14;;22468:26;:24;:26::i;:::-;:30;;:46;;;;:::i;:::-;:50;;:63;;;;:::i;:::-;:67;;:73;;;;:::i;:::-;:77;;:91;;;;:::i;:::-;22424:21;;:25;;:150;;;;:::i;:::-;22404:170;;22248:334;;:::o;21141:43::-;;;;;;;;;;;;;;;;;:::o;20837:29::-;;;;:::o;24833:97::-;24869:31;24878:9;:21;24888:10;24878:21;;;;;;;;;;;;;;;;24869:8;:31::i;:::-;24911:11;:9;:11::i;:::-;24833:97::o;20725:31::-;;;;:::o;20800:30::-;;;;:::o;20873:36::-;;;;:::o;18797:38::-;;;;;;;;;;;;;:::o;3634:181::-;3692:7;3712:9;3728:1;3724;:5;3712:17;;3753:1;3748;:6;;3740:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3806:1;3799:8;;;3634:181;;;;:::o;5463:333::-;5521:7;5620:1;5616;:5;5608:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5663:9;5679:1;5675;:5;;;;;;5663:17;;5787:1;5780:8;;;5463:333;;;;:::o;4090:184::-;4148:7;4181:1;4176;:6;;4168:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4228:9;4244:1;4240;:5;4228:17;;4265:1;4258:8;;;4090:184;;;;:::o;4525:470::-;4583:7;4832:1;4827;:6;4823:47;;;4857:1;4850:8;;;;4823:47;4882:9;4898:1;4894;:5;4882:17;;4927:1;4922;4918;:5;;;;;;:10;4910:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4986:1;4979:8;;;4525:470;;;;;:::o;18469:133::-;18537:5;;;;;;;;;;;18523:19;;:10;:19;;;18515:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18469:133::o;12288:176::-;12371:85;12390:5;12420;:14;;;:23;;;;12445:2;12449:5;12397:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;12397: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;;;12397:58:0;12371:18;:85::i;:::-;12288:176;;;:::o;2375:106::-;2433:7;2464:1;2460;:5;:13;;2472:1;2460:13;;;2468:1;2460:13;2453:20;;2375:106;;;;:::o;12472:204::-;12573:95;12592:5;12622;:18;;;:27;;;;12651:4;12657:2;12661:5;12599:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;12599: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;;;12599:68:0;12573:18;:95::i;:::-;12472:204;;;;:::o;14282:1114::-;14886:27;14894:5;14886:25;;;:27::i;:::-;14878:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15023:12;15037:23;15072:5;15064:19;;15084:4;15064: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;;;15064: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;;15022:67:0;;;;15108:7;15100:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15189:1;15169:10;:17;:21;15165:224;;;15311:10;15300:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15300:30:0;;;;;;;;;;;;;;;;15292:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15165:224;14282:1114;;;;:::o;11299:422::-;11359:4;11567:12;11678:7;11666:20;11658:28;;11712:1;11705:4;:8;11698:15;;;11299:422;;;:::o

Swarm Source

bzzr://1c7249203ba906a14b546ba73170c2c69c5d98d8630c622b993e39cd983129d8

Block Transaction 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
[ 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.