POL Price: $0.427111 (+13.84%)
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit263287102022-03-25 2:29:51903 days ago1648175391IN
0x09315f25...0Dd67c2DF
0 POL0.0055517430.0418848
Exit254749712022-03-01 23:59:20926 days ago1646179160IN
0x09315f25...0Dd67c2DF
0 POL0.0062467336.78013215
Exit234685012022-01-08 5:59:08979 days ago1641621548IN
0x09315f25...0Dd67c2DF
0 POL0.00472530
Exit228203632021-12-22 7:46:54996 days ago1640159214IN
0x09315f25...0Dd67c2DF
0 POL0.0017928930
Exit227274822021-12-19 23:23:59998 days ago1639956239IN
0x09315f25...0Dd67c2DF
0 POL0.00472530
Exit218964412021-11-28 10:59:171020 days ago1638097157IN
0x09315f25...0Dd67c2DF
0 POL0.00575130
Exit212946512021-11-12 19:49:111035 days ago1636746551IN
0x09315f25...0Dd67c2DF
0 POL0.0017928930
Exit212946512021-11-12 19:49:111035 days ago1636746551IN
0x09315f25...0Dd67c2DF
0 POL0.00047253
Exit211947552021-11-10 4:14:371038 days ago1636517677IN
0x09315f25...0Dd67c2DF
0 POL0.00523830
Exit209551642021-11-04 2:11:191044 days ago1635991879IN
0x09315f25...0Dd67c2DF
0 POL0.00538530
Exit209382282021-11-03 15:04:571044 days ago1635951897IN
0x09315f25...0Dd67c2DF
0 POL0.00523830
Exit209114582021-11-02 21:56:201045 days ago1635890180IN
0x09315f25...0Dd67c2DF
0 POL0.00523830
Exit205160082021-10-23 8:24:051056 days ago1634977445IN
0x09315f25...0Dd67c2DF
0 POL0.0031520
Exit204129322021-10-20 11:04:371059 days ago1634727877IN
0x09315f25...0Dd67c2DF
0 POL0.00421230
Exit202982912021-10-17 3:02:411062 days ago1634439761IN
0x09315f25...0Dd67c2DF
0 POL0.00501930
Exit202840832021-10-16 17:28:581062 days ago1634405338IN
0x09315f25...0Dd67c2DF
0 POL0.0044376630
Exit202329842021-10-15 4:47:481064 days ago1634273268IN
0x09315f25...0Dd67c2DF
0 POL0.00472530
Exit202212972021-10-14 20:48:521064 days ago1634244532IN
0x09315f25...0Dd67c2DF
0 POL0.0021693936.3
Exit202186912021-10-14 18:44:101064 days ago1634237050IN
0x09315f25...0Dd67c2DF
0 POL0.00523830
Exit202180942021-10-14 18:18:581064 days ago1634235538IN
0x09315f25...0Dd67c2DF
0 POL0.0017928930
Exit202175452021-10-14 17:57:471064 days ago1634234267IN
0x09315f25...0Dd67c2DF
0 POL0.00450630
Exit202158242021-10-14 16:53:091064 days ago1634230389IN
0x09315f25...0Dd67c2DF
0 POL0.00472530
Exit202071262021-10-14 10:57:321065 days ago1634209052IN
0x09315f25...0Dd67c2DF
0 POL0.00523830
Exit201969432021-10-14 4:09:491065 days ago1634184589IN
0x09315f25...0Dd67c2DF
0 POL0.00472530
Exit201762992021-10-13 14:32:171066 days ago1634135537IN
0x09315f25...0Dd67c2DF
0 POL0.01575100
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x51CfB746...12947e532
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.16+commit.9c3226ce

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *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 getRewardAForDuration() external view returns (uint256);

    function getRewardBForDuration() 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) external;

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

    function setDualRewardsDistribution(address _dualRewardsDistribution) external onlyOwner {
        dualRewardsDistribution = _dualRewardsDistribution;
    }
}


// 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 rewardsDuration = 7 days;
    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]);
    }

    function getRewardAForDuration() external view returns (uint256) {
        return rewardRateA.mul(rewardsDuration);
    }

    function getRewardBForDuration() external view returns (uint256) {
        return rewardRateB.mul(rewardsDuration);
    }

    /* ========== 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) external onlyDualRewardsDistribution updateReward(address(0)) {

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

    // End rewards emission earlier
    function updatePeriodFinish(uint timestamp) external onlyOwner updateReward(address(0)) {
        periodFinish = timestamp;
    }

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

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

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

    modifier updateReward(address account) {

        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);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, address rewardToken, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
}

Contract Security Audit

Contract ABI

[{"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"}],"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":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"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":"getRewardAForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getRewardBForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"rewardA","type":"uint256"},{"internalType":"uint256","name":"rewardB","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":"rewardsDuration","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":"address","name":"_dualRewardsDistribution","type":"address"}],"name":"setDualRewardsDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","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":false,"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"updatePeriodFinish","outputs":[],"payable":false,"stateMutability":"nonpayable","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

0x608060405234801561001057600080fd5b50600436106102485760003560e01c806370a082311161013b578063a8fe1f69116100b8578063e9fad8ee1161007c578063e9fad8ee1461099d578063ebe2b12b146109a7578063efa1c63c146109c5578063f5630550146109e3578063ff510b0614610a0157610248565b8063a8fe1f6914610897578063b95f0079146108b5578063c8f33c911461090d578063cc1a378f1461092b578063dba0eb911461095957610248565b80638980f11f116100ff5780638980f11f146107955780638da5cb5b146107e357806391b4ded91461082d578063a694fc3a1461084b578063a85594ad1461087957610248565b806370a082311461068157806372f702f3146106d957806379ba50971461072357806380faa57d1461072d57806388c4c6661461074b57610248565b80633d18b912116101c9578063556f6e6b1161018d578063556f6e6b146105715780635c975abb1461059f5780635fd1020c146105c157806360fb36261461060b578063682133291461066357610248565b80633d18b912146104895780633f800bdd146104935780634ea4618b146104b1578063513c508a1461050957806353a47bb71461052757610248565b8063255cfca311610210578063255cfca31461036f578063266a74ca1461038d5780632e1a7d4d146103e557806334584d3a14610413578063386a95251461046b57610248565b80631627540c1461024d57806316c38b3c1461029157806318160ddd146102c15780631820d739146102df578063246132f914610337575b600080fd5b61028f6004803603602081101561026357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a4b565b005b6102bf600480360360208110156102a757600080fd5b81019080803515159060200190929190505050610afa565b005b6102c9610ba7565b6040518082815260200191505060405180910390f35b610321600480360360208110156102f557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bb1565b6040518082815260200191505060405180910390f35b61036d6004803603604081101561034d57600080fd5b810190808035906020019092919080359060200190929190505050610ccf565b005b610377611358565b6040518082815260200191505060405180910390f35b6103cf600480360360208110156103a357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061135e565b6040518082815260200191505060405180910390f35b610411600480360360208110156103fb57600080fd5b8101908080359060200190929190505050611376565b005b6104556004803603602081101561042957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611784565b6040518082815260200191505060405180910390f35b61047361179c565b6040518082815260200191505060405180910390f35b6104916117a2565b005b61049b611cf8565b6040518082815260200191505060405180910390f35b6104f3600480360360208110156104c757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d16565b6040518082815260200191505060405180910390f35b610511611d2e565b6040518082815260200191505060405180910390f35b61052f611d34565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61059d6004803603602081101561058757600080fd5b8101908080359060200190929190505050611d5a565b005b6105a7611f27565b604051808215151515815260200191505060405180910390f35b6105c9611f3a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61064d6004803603602081101561062157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f60565b6040518082815260200191505060405180910390f35b61066b61207e565b6040518082815260200191505060405180910390f35b6106c36004803603602081101561069757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061210c565b6040518082815260200191505060405180910390f35b6106e1612155565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61072b61217b565b005b6107356123a1565b6040518082815260200191505060405180910390f35b6107536123b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107e1600480360360408110156107ab57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506123da565b005b6107eb612544565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610835612569565b6040518082815260200191505060405180910390f35b6108776004803603602081101561086157600080fd5b810190808035906020019092919050505061256f565b005b6108816129e5565b6040518082815260200191505060405180910390f35b61089f612a73565b6040518082815260200191505060405180910390f35b6108f7600480360360208110156108cb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a91565b6040518082815260200191505060405180910390f35b610915612aa9565b6040518082815260200191505060405180910390f35b6109576004803603602081101561094157600080fd5b8101908080359060200190929190505050612aaf565b005b61099b6004803603602081101561096f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612b54565b005b6109a5612ba0565b005b6109af612bf2565b6040518082815260200191505060405180910390f35b6109cd612bf8565b6040518082815260200191505060405180910390f35b6109eb612bfe565b6040518082815260200191505060405180910390f35b610a09612c04565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a53612c2a565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b610b02612c2a565b600560009054906101000a900460ff1615158115151415610b2257610ba4565b80600560006101000a81548160ff021916908315150217905550600560009054906101000a900460ff1615610b5957426004819055505b7f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5600560009054906101000a900460ff16604051808215151515815260200191505060405180910390a15b50565b6000601354905090565b6000610cc8601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cba670de0b6b3a7640000610cac610c5e600f60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610c506129e5565b612cd190919063ffffffff16565b601460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d5a90919063ffffffff16565b612de090919063ffffffff16565b612e6f90919063ffffffff16565b9050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e81526020018061345f602e913960400191505060405180910390fd5b6000610d7f6129e5565b600d81905550610d8d61207e565b600e81905550610d9b6123a1565b600c81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e6857610dde81610bb1565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f2f57610ea581611f60565b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600e54601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6008544210610f7357610f4d600b5484612de090919063ffffffff16565b600981905550610f68600b5483612de090919063ffffffff16565b600a8190555061101c565b6000610f8a42600854612cd190919063ffffffff16565b90506000610fa360095483612d5a90919063ffffffff16565b9050610fcc600b54610fbe8388612e6f90919063ffffffff16565b612de090919063ffffffff16565b6009819055506000610fe9600a5484612d5a90919063ffffffff16565b9050611012600b546110048388612e6f90919063ffffffff16565b612de090919063ffffffff16565b600a819055505050505b6000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156110bd57600080fd5b505afa1580156110d1573d6000803e3d6000fd5b505050506040513d60208110156110e757600080fd5b8101908080519060200190929190505050905061110f600b5482612de090919063ffffffff16565b6009541115611186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f50726f7669646564207265776172642d4120746f6f206869676800000000000081525060200191505060405180910390fd5b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561122757600080fd5b505afa15801561123b573d6000803e3d6000fd5b505050506040513d602081101561125157600080fd5b81019080805190602001909291905050509050611279600b5482612de090919063ffffffff16565b600a5411156112f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f50726f7669646564207265776172642d4220746f6f206869676800000000000081525060200191505060405180910390fd5b42600c8190555061130c600b5442612e6f90919063ffffffff16565b6008819055507f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f558585604051808381526020018281526020019250505060405180910390a15050505050565b60095481565b60116020528060005260406000206000915090505481565b600160036000828254019250508190555060006003549050336113976129e5565b600d819055506113a561207e565b600e819055506113b36123a1565b600c81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611480576113f681610bb1565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611547576114bd81611f60565b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600e54601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600083116115bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b6115d283601354612cd190919063ffffffff16565b60138190555061162a83601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612cd190919063ffffffff16565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506116ba3384600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ef79092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a2506003548114611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60106020528060005260406000206000915090505481565b600b5481565b600160036000828254019250508190555060006003549050336117c36129e5565b600d819055506117d161207e565b600e819055506117df6123a1565b600c81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118ac5761182281610bb1565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611973576118e981611f60565b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600e54601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611af7576000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611a523382600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ef79092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a25b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611c7b576000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bd63382600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ef79092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a25b5050506003548114611cf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b50565b6000611d11600b54600954612d5a90919063ffffffff16565b905090565b600f6020528060005260406000206000915090505481565b600e5481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611d62612c2a565b6000611d6c6129e5565b600d81905550611d7a61207e565b600e81905550611d886123a1565b600c81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e5557611dcb81610bb1565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611f1c57611e9281611f60565b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600e54601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b816008819055505050565b600560009054906101000a900460ff1681565b600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000612077601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612069670de0b6b3a764000061205b61200d601060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fff61207e565b612cd190919063ffffffff16565b601460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d5a90919063ffffffff16565b612de090919063ffffffff16565b612e6f90919063ffffffff16565b9050919050565b600080601354141561209457600e549050612109565b6121066120f56013546120e7670de0b6b3a76400006120d9600a546120cb600c546120bd6123a1565b612cd190919063ffffffff16565b612d5a90919063ffffffff16565b612d5a90919063ffffffff16565b612de090919063ffffffff16565b600e54612e6f90919063ffffffff16565b90505b90565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612221576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603581526020018061339e6035913960400191505060405180910390fd5b7fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60006123af42600854612fc8565b905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6123e2612c2a565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612489576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806134b76021913960400191505060405180910390fd5b6124d56000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16612ef79092919063ffffffff16565b7f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa288282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b600160036000828254019250508190555060006003549050600560009054906101000a900460ff16156125ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180613423603c913960400191505060405180910390fd5b336125f66129e5565b600d8190555061260461207e565b600e819055506126126123a1565b600c81905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146126df5761265581610bb1565b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146127a65761271c81611f60565b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600e54601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000831161281c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b61283183601354612e6f90919063ffffffff16565b60138190555061288983601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612e6f90919063ffffffff16565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061291b333085600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612fe1909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040518082815260200191505060405180910390a25060035481146129e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60008060135414156129fb57600d549050612a70565b612a6d612a5c601354612a4e670de0b6b3a7640000612a40600954612a32600c54612a246123a1565b612cd190919063ffffffff16565b612d5a90919063ffffffff16565b612d5a90919063ffffffff16565b612de090919063ffffffff16565b600d54612e6f90919063ffffffff16565b90505b90565b6000612a8c600b54600a54612d5a90919063ffffffff16565b905090565b60126020528060005260406000206000915090505481565b600c5481565b612ab7612c2a565b6008544211612b11576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260588152602001806133466058913960600191505060405180910390fd5b80600b819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3600b546040518082815260200191505060405180910390a150565b612b5c612c2a565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612be8601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611376565b612bf06117a2565b565b60085481565b600a5481565b600d5481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612ccf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806133d3602f913960400191505060405180910390fd5b565b600082821115612d49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b600080831415612d6d5760009050612dda565b6000828402905082848281612d7e57fe5b0414612dd5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806134026021913960400191505060405180910390fd5b809150505b92915050565b6000808211612e57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b6000828481612e6257fe5b0490508091505092915050565b600080828401905083811015612eed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b612fc3838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506130e7565b505050565b6000818310612fd75781612fd9565b825b905092915050565b6130e1848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506130e7565b50505050565b6131068273ffffffffffffffffffffffffffffffffffffffff16613332565b613178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106131c757805182526020820191506020810190506020830392506131a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613229576040519150601f19603f3d011682016040523d82523d6000602084013e61322e565b606091505b5091509150816132a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b60008151111561332c578080602001905160208110156132c557600080fd5b810190808051906020019092919050505061332b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061348d602a913960400191505060405180910390fd5b5b50505050565b600080823b90506000811191505091905056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616c6c6572206973206e6f74204475616c52657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea265627a7a72315820df933d8da6b99b1d8abbae0f010dd67dd175a41316f3800546e6660e739730b864736f6c63430005100032

Deployed Bytecode Sourcemap

20518:8393:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20518:8393:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17962:141;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;17962:141:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;19821:488;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19821:488:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;22066:93;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23112:202;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23112:202:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25434:1487;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25434:1487:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;20895:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21269:43;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21269:43:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24248:357;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24248:357:0;;;;;;;;;;;;;;;;;:::i;:::-;;21204:58;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21204:58:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20969:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24613:652;;;:::i;:::-;;23545:123;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21139:58;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21139:58:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21094:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17731:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;26966:131;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26966:131:0;;;;;;;;;;;;;;;;;:::i;:::-;;19407:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20756:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23322:215;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23322:215:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22768:336;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22167:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22167:112:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20824:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;18111:271;;;:::i;:::-;;22287:131;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20790:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;27212:302;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;27212:302:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;17704:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19375:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23861:379;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23861:379:0;;;;;;;;;;;;;;;;;:::i;:::-;;22426:334;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23676:123;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21319:43;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21319:43:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21015:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;27522:360;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;27522:360:0;;;;;;;;;;;;;;;;;:::i;:::-;;19088:158;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19088:158:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;25273:97;;;:::i;:::-;;20857:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20932:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21051:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18788:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;17962:141;18420:12;:10;:12::i;:::-;18051:6;18034:14;;:23;;;;;;;;;;;;;;;;;;18073:22;18088:6;18073:22;;;;;;;;;;;;;;;;;;;;;;17962:141;:::o;19821:488::-;18420:12;:10;:12::i;:::-;19974:6;;;;;;;;;;;19963:17;;:7;:17;;;19959:56;;;19997:7;;19959:56;20070:7;20061:6;;:16;;;;;;;;;;;;;;;;;;20146:6;;;;;;;;;;;20142:58;;;20185:3;20169:13;:19;;;;20142:58;20281:20;20294:6;;;;;;;;;;;20281:20;;;;;;;;;;;;;;;;;;;;;;18443:1;19821:488;:::o;22066:93::-;22112:7;22139:12;;22132:19;;22066:93;:::o;23112:202::-;23167:7;23194:112;23288:8;:17;23297:7;23288:17;;;;;;;;;;;;;;;;23194:89;23278:4;23194:79;23217:55;23239:23;:32;23263:7;23239:32;;;;;;;;;;;;;;;;23217:17;:15;:17::i;:::-;:21;;:55;;;;:::i;:::-;23194:9;:18;23204:7;23194:18;;;;;;;;;;;;;;;;:22;;:79;;;;:::i;:::-;:83;;:89;;;;:::i;:::-;:93;;:112;;;;:::i;:::-;23187:119;;23112:202;;;:::o;25434:1487::-;18986:23;;;;;;;;;;;18972:37;;:10;:37;;;18964:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25554:1;28011:17;:15;:17::i;:::-;27987:21;:41;;;;28063:17;:15;:17::i;:::-;28039:21;:41;;;;28108:26;:24;:26::i;:::-;28091:14;:43;;;;28168:1;28149:21;;:7;:21;;;28145:161;;28207:16;28215:7;28207;:16::i;:::-;28187:8;:17;28196:7;28187:17;;;;;;;;;;;;;;;:36;;;;28273:21;;28238:23;:32;28262:7;28238:32;;;;;;;;;;;;;;;:56;;;;28145:161;28341:1;28322:21;;:7;:21;;;28318:161;;28380:16;28388:7;28380;:16::i;:::-;28360:8;:17;28369:7;28360:17;;;;;;;;;;;;;;;:36;;;;28446:21;;28411:23;:32;28435:7;28411:32;;;;;;;;;;;;;;;:56;;;;28318:161;25594:12;;25575:15;:31;25571:521;;25637:28;25649:15;;25637:7;:11;;:28;;;;:::i;:::-;25623:11;:42;;;;25694:28;25706:15;;25694:7;:11;;:28;;;;:::i;:::-;25680:11;:42;;;;25571:521;;;25755:17;25775:33;25792:15;25775:12;;:16;;:33;;;;:::i;:::-;25755:53;;25825:17;25845:26;25859:11;;25845:9;:13;;:26;;;;:::i;:::-;25825:46;;25900:43;25927:15;;25900:22;25912:9;25900:7;:11;;:22;;;;:::i;:::-;:26;;:43;;;;:::i;:::-;25886:11;:57;;;;25960:17;25980:26;25994:11;;25980:9;:13;;:26;;;;:::i;:::-;25960:46;;26035:43;26062:15;;26035:22;26047:9;26035:7;:11;;:22;;;;:::i;:::-;:26;;:43;;;;:::i;:::-;26021:11;:57;;;;25571:521;;;;26452:13;26468;;;;;;;;;;;:23;;;26500:4;26468:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26468:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26468:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26468:38:0;;;;;;;;;;;;;;;;26452:54;;26540:29;26553:15;;26540:8;:12;;:29;;;;:::i;:::-;26525:11;;:44;;26517:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26613:13;26629;;;;;;;;;;;:23;;;26661:4;26629:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26629:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26629:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26629:38:0;;;;;;;;;;;;;;;;26613:54;;26701:29;26714:15;;26701:8;:12;;:29;;;;:::i;:::-;26686:11;;:44;;26678:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26791:15;26774:14;:32;;;;26832:36;26852:15;;26832;:19;;:36;;;;:::i;:::-;26817:12;:51;;;;26884:29;26896:7;26905;26884:29;;;;;;;;;;;;;;;;;;;;;;;;28489:1;;19071;25434:1487;;:::o;20895:30::-;;;;:::o;21269:43::-;;;;;;;;;;;;;;;;;:::o;24248:357::-;16580:1;16563:13;;:18;;;;;;;;;;;16592:20;16615:13;;16592:36;;24315:10;28011:17;:15;:17::i;:::-;27987:21;:41;;;;28063:17;:15;:17::i;:::-;28039:21;:41;;;;28108:26;:24;:26::i;:::-;28091:14;:43;;;;28168:1;28149:21;;:7;:21;;;28145:161;;28207:16;28215:7;28207;:16::i;:::-;28187:8;:17;28196:7;28187:17;;;;;;;;;;;;;;;:36;;;;28273:21;;28238:23;:32;28262:7;28238:32;;;;;;;;;;;;;;;:56;;;;28145:161;28341:1;28322:21;;:7;:21;;;28318:161;;28380:16;28388:7;28380;:16::i;:::-;28360:8;:17;28369:7;28360:17;;;;;;;;;;;;;;;:36;;;;28446:21;;28411:23;:32;28435:7;28411:32;;;;;;;;;;;;;;;:56;;;;28318:161;24355:1;24346:6;:10;24338:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24404:24;24421:6;24404:12;;:16;;:24;;;;:::i;:::-;24389:12;:39;;;;24463:33;24489:6;24463:9;:21;24473:10;24463:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;24439:9;:21;24449:10;24439:21;;;;;;;;;;;;;;;:57;;;;24507:45;24533:10;24545:6;24507:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;24578:10;24568:29;;;24590:6;24568:29;;;;;;;;;;;;;;;;;;16639:1;16675:13;;16659:12;:29;16651:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24248:357;;:::o;21204:58::-;;;;;;;;;;;;;;;;;:::o;20969:39::-;;;;:::o;24613:652::-;16580:1;16563:13;;:18;;;;;;;;;;;16592:20;16615:13;;16592:36;;24667:10;28011:17;:15;:17::i;:::-;27987:21;:41;;;;28063:17;:15;:17::i;:::-;28039:21;:41;;;;28108:26;:24;:26::i;:::-;28091:14;:43;;;;28168:1;28149:21;;:7;:21;;;28145:161;;28207:16;28215:7;28207;:16::i;:::-;28187:8;:17;28196:7;28187:17;;;;;;;;;;;;;;;:36;;;;28273:21;;28238:23;:32;28262:7;28238:32;;;;;;;;;;;;;;;:56;;;;28145:161;28341:1;28322:21;;:7;:21;;;28318:161;;28380:16;28388:7;28380;:16::i;:::-;28360:8;:17;28369:7;28360:17;;;;;;;;;;;;;;;:36;;;;28446:21;;28411:23;:32;28435:7;28411:32;;;;;;;;;;;;;;;:56;;;;28318:161;24690:21;24714:8;:20;24723:10;24714:20;;;;;;;;;;;;;;;;24690:44;;24765:1;24749:13;:17;24745:223;;;24806:1;24783:8;:20;24792:10;24783:20;;;;;;;;;;;;;;;:24;;;;24822:53;24849:10;24861:13;24822;;;;;;;;;;;:26;;;;:53;;;;;:::i;:::-;24906:10;24895:61;;;24926:13;;;;;;;;;;;24942;24895:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;24745:223;24980:21;25004:8;:20;25013:10;25004:20;;;;;;;;;;;;;;;;24980:44;;25055:1;25039:13;:17;25035:223;;;25096:1;25073:8;:20;25082:10;25073:20;;;;;;;;;;;;;;;:24;;;;25112:53;25139:10;25151:13;25112;;;;;;;;;;;:26;;;;:53;;;;;:::i;:::-;25196:10;25185:61;;;25216:13;;;;;;;;;;;25232;25185:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;25035:223;28489:1;;16639;16675:13;;16659:12;:29;16651:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24613:652;:::o;23545:123::-;23601:7;23628:32;23644:15;;23628:11;;:15;;:32;;;;:::i;:::-;23621:39;;23545:123;:::o;21139:58::-;;;;;;;;;;;;;;;;;:::o;21094:36::-;;;;:::o;17731:29::-;;;;;;;;;;;;;:::o;26966:131::-;18420:12;:10;:12::i;:::-;27050:1;28011:17;:15;:17::i;:::-;27987:21;:41;;;;28063:17;:15;:17::i;:::-;28039:21;:41;;;;28108:26;:24;:26::i;:::-;28091:14;:43;;;;28168:1;28149:21;;:7;:21;;;28145:161;;28207:16;28215:7;28207;:16::i;:::-;28187:8;:17;28196:7;28187:17;;;;;;;;;;;;;;;:36;;;;28273:21;;28238:23;:32;28262:7;28238:32;;;;;;;;;;;;;;;:56;;;;28145:161;28341:1;28322:21;;:7;:21;;;28318:161;;28380:16;28388:7;28380;:16::i;:::-;28360:8;:17;28369:7;28360:17;;;;;;;;;;;;;;;:36;;;;28446:21;;28411:23;:32;28435:7;28411:32;;;;;;;;;;;;;;;:56;;;;28318:161;27080:9;27065:12;:24;;;;18443:1;26966:131;:::o;19407:18::-;;;;;;;;;;;;;:::o;20756:27::-;;;;;;;;;;;;;:::o;23322:215::-;23377:7;23417:112;23511:8;:17;23520:7;23511:17;;;;;;;;;;;;;;;;23417:89;23501:4;23417:79;23440:55;23462:23;:32;23486:7;23462:32;;;;;;;;;;;;;;;;23440:17;:15;:17::i;:::-;:21;;:55;;;;:::i;:::-;23417:9;:18;23427:7;23417:18;;;;;;;;;;;;;;;;:22;;:79;;;;:::i;:::-;:83;;:89;;;;:::i;:::-;:93;;:112;;;;:::i;:::-;23397:132;;23322:215;;;:::o;22768:336::-;22816:7;22856:1;22840:12;;:17;22836:78;;;22881:21;;22874:28;;;;22836:78;22946:150;22990:91;23068:12;;22990:73;23058:4;22990:63;23041:11;;22990:46;23021:14;;22990:26;:24;:26::i;:::-;:30;;:46;;;;:::i;:::-;:50;;:63;;;;:::i;:::-;:67;;:73;;;;:::i;:::-;:77;;:91;;;;:::i;:::-;22946:21;;:25;;:150;;;;:::i;:::-;22926:170;;22768:336;;:::o;22167:112::-;22226:7;22253:9;:18;22263:7;22253:18;;;;;;;;;;;;;;;;22246:25;;22167:112;;;:::o;20824:26::-;;;;;;;;;;;;;:::o;18111:271::-;18180:14;;;;;;;;;;;18166:28;;:10;:28;;;18158:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18268:35;18281:5;;;;;;;;;;;18288:14;;;;;;;;;;;18268:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18322:14;;;;;;;;;;;18314:5;;:22;;;;;;;;;;;;;;;;;;18372:1;18347:14;;:27;;;;;;;;;;;;;;;;;;18111:271::o;22287:131::-;22344:7;22371:39;22380:15;22397:12;;22371:8;:39::i;:::-;22364:46;;22287:131;:::o;20790:27::-;;;;;;;;;;;;;:::o;27212:302::-;18420:12;:10;:12::i;:::-;27339;;;;;;;;;;;27315:37;;:12;:37;;;;27307:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27401:53;27435:5;;;;;;;;;;;27442:11;27408:12;27401:33;;;;:53;;;;;:::i;:::-;27470:36;27480:12;27494:11;27470:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;27212:302;;:::o;17704:20::-;;;;;;;;;;;;;:::o;19375:25::-;;;;:::o;23861:379::-;16580:1;16563:13;;:18;;;;;;;;;;;16592:20;16615:13;;16592:36;;20398:6;;;;;;;;;;;20397:7;20389:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23937:10;28011:17;:15;:17::i;:::-;27987:21;:41;;;;28063:17;:15;:17::i;:::-;28039:21;:41;;;;28108:26;:24;:26::i;:::-;28091:14;:43;;;;28168:1;28149:21;;:7;:21;;;28145:161;;28207:16;28215:7;28207;:16::i;:::-;28187:8;:17;28196:7;28187:17;;;;;;;;;;;;;;;:36;;;;28273:21;;28238:23;:32;28262:7;28238:32;;;;;;;;;;;;;;;:56;;;;28145:161;28341:1;28322:21;;:7;:21;;;28318:161;;28380:16;28388:7;28380;:16::i;:::-;28360:8;:17;28369:7;28360:17;;;;;;;;;;;;;;;:36;;;;28446:21;;28411:23;:32;28435:7;28411:32;;;;;;;;;;;;;;;:56;;;;28318:161;23977:1;23968:6;:10;23960:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24023:24;24040:6;24023:12;;:16;;:24;;;;:::i;:::-;24008:12;:39;;;;24082:33;24108:6;24082:9;:21;24092:10;24082:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;24058:9;:21;24068:10;24058:21;;;;;;;;;;;;;;;:57;;;;24126:64;24156:10;24176:4;24183:6;24126:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;24213:10;24206:26;;;24225:6;24206:26;;;;;;;;;;;;;;;;;;20480:1;16675:13;;16659:12;:29;16651:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23861:379;;:::o;22426:334::-;22474:7;22514:1;22498:12;;:17;22494:78;;;22539:21;;22532:28;;;;22494:78;22602:150;22646:91;22724:12;;22646:73;22714:4;22646:63;22697:11;;22646:46;22677:14;;22646:26;:24;:26::i;:::-;:30;;:46;;;;:::i;:::-;:50;;:63;;;;:::i;:::-;:67;;:73;;;;:::i;:::-;:77;;:91;;;;:::i;:::-;22602:21;;:25;;:150;;;;:::i;:::-;22582:170;;22426:334;;:::o;23676:123::-;23732:7;23759:32;23775:15;;23759:11;;:15;;:32;;;;:::i;:::-;23752:39;;23676:123;:::o;21319:43::-;;;;;;;;;;;;;;;;;:::o;21015:29::-;;;;:::o;27522:360::-;18420:12;:10;:12::i;:::-;27646;;27628:15;:30;27606:168;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27803:16;27785:15;:34;;;;27835:39;27858:15;;27835:39;;;;;;;;;;;;;;;;;;27522:360;:::o;19088:158::-;18420:12;:10;:12::i;:::-;19214:24;19188:23;;:50;;;;;;;;;;;;;;;;;;19088:158;:::o;25273:97::-;25309:31;25318:9;:21;25328:10;25318:21;;;;;;;;;;;;;;;;25309:8;:31::i;:::-;25351:11;:9;:11::i;:::-;25273:97::o;20857:31::-;;;;:::o;20932:30::-;;;;:::o;21051:36::-;;;;:::o;18788:38::-;;;;;;;;;;;;;:::o;18460:133::-;18528:5;;;;;;;;;;;18514:19;;:10;:19;;;18506:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18460:133::o;3942:184::-;4000:7;4033:1;4028;:6;;4020:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4080:9;4096:1;4092;:5;4080:17;;4117:1;4110:8;;;3942:184;;;;:::o;4377:470::-;4435:7;4684:1;4679;:6;4675:47;;;4709:1;4702:8;;;;4675:47;4734:9;4750:1;4746;:5;4734:17;;4779:1;4774;4770;:5;;;;;;:10;4762:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4838:1;4831:8;;;4377:470;;;;;:::o;5315:333::-;5373:7;5472:1;5468;:5;5460:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5515:9;5531:1;5527;:5;;;;;;5515:17;;5639:1;5632:8;;;5315:333;;;;:::o;3486:181::-;3544:7;3564:9;3580:1;3576;:5;3564:17;;3605:1;3600;:6;;3592:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3658:1;3651:8;;;3486:181;;;;:::o;12140:176::-;12223:85;12242:5;12272;:14;;;:23;;;;12297:2;12301:5;12249:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;12249: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;;;12249:58:0;12223:18;:85::i;:::-;12140:176;;;:::o;2227:106::-;2285:7;2316:1;2312;:5;:13;;2324:1;2312:13;;;2320:1;2312:13;2305:20;;2227:106;;;;:::o;12324:204::-;12425:95;12444:5;12474;:18;;;:27;;;;12503:4;12509:2;12513:5;12451:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;12451: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;;;12451:68:0;12425:18;:95::i;:::-;12324:204;;;;:::o;14134:1114::-;14738:27;14746:5;14738:25;;;:27::i;:::-;14730:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14875:12;14889:23;14924:5;14916:19;;14936:4;14916: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;;;14916: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;;14874:67:0;;;;14960:7;14952:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15041:1;15021:10;:17;:21;15017:224;;;15163:10;15152:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15152:30:0;;;;;;;;;;;;;;;;15144:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15017:224;14134:1114;;;;:::o;11151:422::-;11211:4;11419:12;11530:7;11518:20;11510:28;;11564:1;11557:4;:8;11550:15;;;11151:422;;;:::o

Swarm Source

bzzr://df933d8da6b99b1d8abbae0f010dd67dd175a41316f3800546e6660e739730b8

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  ]

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.