Contract 0xb105d4d17a09397960f2678526a4063a64fad9bd

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x1de87dd7fc656405069ffde2dd5408cedff2677bf66a26a14b353e13f81409b3Exit77900722021-12-04 9:19:2149 mins ago0x227a4c3d4f0b633f17fdcc994aa85de5a7204dc1 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.001704625
0x42ee6f646204655f2b7cd96004007829b49412e850634d94f29bda892f644063Exit77900152021-12-04 9:17:2651 mins ago0x227a4c3d4f0b633f17fdcc994aa85de5a7204dc1 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.004347225
0xf878f21609f67422fe6f4d18bb05fb2cdbedb6931f0d300f1b8bff5865a3759bStake77888412021-12-04 8:38:121 hr 30 mins ago0x6c59c0baed4915b4af0eba44b0de21581d809cf7 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.0034925
0xc0decb7eb851f6d71d9c0ca648a0661e6010e5ef1cd41d1921c085af11aca603Stake With Permi...77882422021-12-04 8:18:121 hr 50 mins ago0xdf407ea454679a72a119b7441d5cb69bfcaf813b IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.0054344525
0xb4d66b46c97d483ea1f0b4ecc66034062dbbe9813d282eb182f7ce79a4910996Stake With Permi...77853812021-12-04 6:43:203 hrs 25 mins ago0x464a0247aba6d76e32e081988a8ed4b06d2b47f2 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.01465346069467.415316892
0xa913736eae60f8452110d3f9105084df3b8f17fca737c68d0fa70408671d52e8Exit77843342021-12-04 6:08:034 hrs ago0xae9f060ff1632f44df523c400bf2aa24251efcf7 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.043762350625213.207591585
0x5fb56c70afad9e162b1575551fb05e4e2f385f52815e0ae02f71fb5963f63a00Exit77827352021-12-04 5:15:064 hrs 53 mins ago0xc241f36db615e90b6b09a62f9456b67c64908489 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.027966960398148.636300527
0xf028d014d5200dbc6e6081d4d5d6ca829bd15b87aadbb48855690725f8b015beStake With Permi...77799312021-12-04 3:46:086 hrs 22 mins ago0xa2fc9ed9d2983631faccdcaf6799bc4bc64cdfc2 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.0042216525
0x152bf5f5896d199e022a342c8411aced12dd55ae7aa0d2e5763634d767a950e8Get Reward77799082021-12-04 3:45:206 hrs 23 mins ago0xa2fc9ed9d2983631faccdcaf6799bc4bc64cdfc2 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00296277525
0xb76d457bd72ea7222ed4748ac7d04dd57ed12155c775d3daef411b4e07eacca7Stake With Permi...77796432021-12-04 3:36:186 hrs 32 mins ago0xe84b8c42ec24f45533c3572f2781efa79d30fb47 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00422152525
0x501d831c0aec15e500cd85a48c3ce91e888d16cbf561abd249f4f0650ebdac9eStake With Permi...77742762021-12-04 0:35:539 hrs 33 mins ago0x6e868846b2182235c16fd122fcd44739e55a58e4 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.0042219525
0x11e7937621a8f74fe76e94f132ae0e48c6523077d02ac4737fd7ca7ff96d3b10Get Reward77742462021-12-04 0:34:519 hrs 34 mins ago0x6e868846b2182235c16fd122fcd44739e55a58e4 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00296277525
0x7fd263d0877304c89513dc2f3cdc4a1bf2076a12dba24dba82c417755c3b98deGet Reward77672152021-12-03 20:38:4413 hrs 30 mins ago0xff4f7b726ee86f810531d2842b3bdd8a512db594 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00747088909255.090583303
0x713ae788b9854b32c97c4fd71988429bad6375d0e790496566d92c1eeff5f2d8Stake With Permi...77663782021-12-03 20:11:1913 hrs 57 mins ago0xecf2e7bc1253d74e5ae624b0d6875e499bd1e234 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00920966434754.539913581
0x36cf80b4f4a9e14774ef59257f65a778018d8edbe7ee70b4af634c3326f330c9Get Reward77663572021-12-03 20:10:3113 hrs 58 mins ago0xecf2e7bc1253d74e5ae624b0d6875e499bd1e234 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00548800981654.116514149
0x90678ac0e3319e07458170e8c60737aaf2a183629bf12f3f531ad0c4dc6a6ab5Stake77645032021-12-03 19:20:1514 hrs 48 mins ago0x6c59c0baed4915b4af0eba44b0de21581d809cf7 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00427996878825.029057242
0x371d62b8ee69394972d21a6d51f23c1a03142ea556987a7a51f78d4c8d650b07Get Reward77644192021-12-03 19:17:2514 hrs 51 mins ago0x80b31b9a8ddc1845d9531ef871815d4ad595feab IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00339027525
0xc4e128add5714a84f0d52521dd2d8ad0709d80a28962b7a09991be7b9002143aExit77612122021-12-03 17:31:2916 hrs 37 mins ago0x111fdc70eeb89ff4c099a444a38fc6ebfe07caf5 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.0064737142134.405917452
0xbf8a3cb1a92ace86dcbe062e227f5608b9a6f2e1035036fa507b759d797160abExit77601972021-12-03 16:59:1317 hrs 9 mins ago0x68b7e27e951b5b21cfcff78839cff1a2344b8e63 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00514107398326.918308917
0x338b489fc409e9aabe0a658d01b7bb0da13725a001217a6f8c5fbd65902c15edStake With Permi...77588862021-12-03 16:15:0917 hrs 53 mins ago0x5a7d259582331f108ac18cf3fb9d4024c665fc0e IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00379402525
0x2115e782430334ec17c43c59e3d58b65200e807ffe6d2c1b7355c18f16beebcdGet Reward77581072021-12-03 15:49:3218 hrs 19 mins ago0x68b7e27e951b5b21cfcff78839cff1a2344b8e63 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00296277525
0xe6cb8c29daca7253c0c7bcb5c76e3fa9f5c6c3532e19198052a3003d71a840f5Stake With Permi...77549312021-12-03 14:02:3720 hrs 6 mins ago0x06499d73541a8bd62cd92f5c505a065af7d9a5b8 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00422152525
0xbea3f930d5f71380298e3a751b7197bb4363e9363ac5fe517bbf8d5d98bda451Stake With Permi...77546402021-12-03 13:52:4820 hrs 16 mins ago0x34a855a6ab7c26756a20d228b96bb75c212934a8 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.0054347525
0xc8eff66bf220123e54befc7ad74cc141776d5839e72f39074ffd5cc76a353356Stake With Permi...77505892021-12-03 11:36:1522 hrs 32 mins ago0x111fdc70eeb89ff4c099a444a38fc6ebfe07caf5 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.00543432525
0x947b7103e2a79c8c7a9298e4735d13bf0cc3b41c0d2f0ddba70ff9ef076d3e6bExit77480242021-12-03 10:09:4623 hrs 59 mins ago0xe25c35358a3f83856b9dc1dbc238ac3c97d25ba6 IN  0xb105d4d17a09397960f2678526a4063a64fad9bd0 AVAX0.0050606525
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingRewards

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2021-11-16
*/

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

// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]


pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}


// File @openzeppelin/contracts/utils/math/[email protected]


pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

    /**
     * @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) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

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


// File @openzeppelin/contracts/security/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}


// File @openzeppelin/contracts/security/[email protected]


pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]


pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]


pragma solidity ^0.8.0;


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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - 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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/interfaces/IElkERC20.sol


pragma solidity >=0.5.0;

interface IElkERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

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


// File contracts/StakingRewardsNew.sol


pragma solidity ^0.8.0;






contract StakingRewards is ReentrancyGuard, Ownable, Pausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public rewardsDuration;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

    IERC20 public boosterToken;
    uint256 public boosterRewardRate;
    uint256 public boosterRewardPerTokenStored;

    mapping(address => uint256) public userBoosterRewardPerTokenPaid;
    mapping(address => uint256) public boosterRewards;

    mapping(address => uint256) public coverages;
    uint256 public totalCoverage;

    uint256[] public feeSchedule;
    uint256[] public withdrawalFeesPct;
    mapping(address => uint256) public lastStakedTime;
    uint256 public totalFees;

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

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

    constructor(
        address _rewardsToken,
        address _stakingToken,
        address _boosterToken,
        uint256 _rewardsDuration,
        uint256[] memory _feeSchedule,       // assumes a sorted array
        uint256[] memory _withdrawalFeesPct  // aligned to fee schedule, percentage (/1000)
    ) public {
        require(_boosterToken != _rewardsToken, "The booster token must be different from the reward token");
        require(_boosterToken != _stakingToken, "The booster token must be different from the staking token");
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        boosterToken = IERC20(_boosterToken);
        rewardsDuration = _rewardsDuration;
        _setWithdrawalFees(_feeSchedule, _withdrawalFeesPct);
        _pause();
    }

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

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

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

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

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

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

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

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

    function boosterEarned(address account) public view returns (uint256) {
        return _balances[account].mul(boosterRewardPerToken().sub(userBoosterRewardPerTokenPaid[account])).div(1e18).add(boosterRewards[account]);
    }

    function getBoosterRewardForDuration() external view returns (uint256) {
        return boosterRewardRate.mul(rewardsDuration);
    }

    function exitFee(address account) public view returns (uint256) {
        return fee(account, _balances[account]);
    }

    function fee(address account, uint256 withdrawalAmount) public view returns (uint256) {
        for (uint i=0; i < feeSchedule.length; ++i) {
            if (block.timestamp.sub(lastStakedTime[account]) < feeSchedule[i]) {
                return withdrawalAmount.mul(withdrawalFeesPct[i]).div(1000);
            }
        }
        return 0;
    }

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

    function stake(uint256 amount) external nonReentrant whenNotPaused 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);
        lastStakedTime[msg.sender] = block.timestamp;
        emit Staked(msg.sender, amount);
    }

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

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

        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        lastStakedTime[msg.sender] = block.timestamp;
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        _withdraw(amount);
    }

    function emergencyWithdraw(uint256 amount) public nonReentrant {
        _withdraw(amount);
    }

    function _withdraw(uint256 amount) private {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        uint256 collectedFee = fee(msg.sender, amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        uint256 withdrawableBalance = amount.sub(collectedFee);
        stakingToken.safeTransfer(msg.sender, withdrawableBalance);
        emit Withdrawn(msg.sender, withdrawableBalance);
        if (collectedFee > 0) {
            emit FeesCollected(msg.sender, collectedFee);
            totalFees = totalFees.add(collectedFee);
        }
    }

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

    function getBoosterReward() public nonReentrant updateReward(msg.sender) {
        if (address(boosterToken) != address(0)) {
            uint256 reward = boosterRewards[msg.sender];
            if (reward > 0) {
                boosterRewards[msg.sender] = 0;
                boosterToken.safeTransfer(msg.sender, reward);
                emit BoosterRewardPaid(msg.sender, reward);
            }
        }
    }

    function getCoverage() public nonReentrant {
        uint256 coverageAmount = coverages[msg.sender];
        if (coverageAmount > 0) {
            totalCoverage = totalCoverage.sub(coverages[msg.sender]);
            coverages[msg.sender] = 0;
            rewardsToken.safeTransfer(msg.sender, coverageAmount);
            emit CoveragePaid(msg.sender, coverageAmount);
        }
    }

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

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

    function sendRewardsAndStartEmission(uint256 reward, uint256 boosterReward, uint256 duration) external onlyOwner /*whenPaused*/ {
        rewardsToken.safeTransferFrom(owner(), address(this), reward);
        if (address(boosterToken) != address(0) && boosterReward > 0) {
            boosterToken.safeTransferFrom(owner(), address(this), boosterReward);
        }
        _startEmission(reward, boosterReward, duration);
    }

    function startEmission(uint256 reward, uint256 boosterReward, uint256 duration) external onlyOwner /*whenPaused*/ {
        _startEmission(reward, boosterReward, duration);
    }

    function stopEmission() external onlyOwner whenNotPaused {
        require(block.timestamp < periodFinish, "Cannot stop rewards emissions if not started or already finished");

        uint256 tokensToBurn;
        uint256 boosterTokensToBurn;

        if (_totalSupply == 0) {
            tokensToBurn = rewardsToken.balanceOf(address(this));
            if (address(boosterToken) != address(0)) {
                boosterTokensToBurn = boosterToken.balanceOf(address(this));
            } else {
                boosterTokensToBurn = 0;
            }
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            tokensToBurn = rewardRate.mul(remaining);
            boosterTokensToBurn = boosterRewardRate.mul(remaining);
        }

        periodFinish = block.timestamp;
        if (tokensToBurn > 0) {
            rewardsToken.safeTransfer(owner(), tokensToBurn);
        }
        if (address(boosterToken) != address(0) && boosterTokensToBurn > 0) {
            boosterToken.safeTransfer(owner(), boosterTokensToBurn);
        }

        _pause();

        emit RewardsEmissionEnded(tokensToBurn);
    }

    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 recoverLeftoverReward() external onlyOwner {
        require(_totalSupply == 0 && rewardsToken == stakingToken, "Cannot recover leftover reward if it is not the staking token or there are still staked tokens");
        uint256 tokensToBurn = rewardsToken.balanceOf(address(this));
        if (tokensToBurn > 0) {
            rewardsToken.safeTransfer(owner(), tokensToBurn);
        }
        emit LeftoverRewardRecovered(tokensToBurn);
    }

    function recoverLeftoverBooster() external onlyOwner {
        require(address(boosterToken) != address(0), "Cannot recover leftover booster if there was no booster token set");
        require(_totalSupply == 0, "Cannot recover leftover booster if there are still staked tokens");
        uint256 tokensToBurn = boosterToken.balanceOf(address(this));
        if (tokensToBurn > 0) {
            boosterToken.safeTransfer(owner(), tokensToBurn);
        }
        emit LeftoverBoosterRecovered(tokensToBurn);
    }

    function recoverFees() external onlyOwner {
        stakingToken.safeTransfer(owner(), totalFees);
        emit FeesRecovered(totalFees);
        totalFees = 0;
    }

    function setReward(address addr, uint256 amount) public onlyOwner {
        rewards[addr] = amount;
    }

    function setRewards(address[] memory addresses, uint256[] memory amounts) external onlyOwner {
        require(addresses.length == amounts.length, "The same number of addresses and amounts must be provided");
        for (uint i=0; i < addresses.length; ++i) {
            setReward(addresses[i], amounts[i]);
        }
    }

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

    // Booster Rewards

    function setBoosterToken(address _boosterToken) external onlyOwner {
        require(_boosterToken != address(rewardsToken), "The booster token must be different from the reward token");
        require(_boosterToken != address(stakingToken), "The booster token must be different from the staking token");
        boosterToken = IERC20(_boosterToken);
        emit BoosterRewardSet(_boosterToken);
    }

    function setBoosterReward(address addr, uint256 amount) public onlyOwner {
        boosterRewards[addr] = amount;
    }

    function setBoosterRewards(address[] memory addresses, uint256[] memory amounts) external onlyOwner {
        require(addresses.length == amounts.length, "The same number of addresses and amounts must be provided");
        for (uint i=0; i < addresses.length; ++i) {
            setBoosterReward(addresses[i], amounts[i]);
        }
    }

    // ILP

    function setCoverageAmount(address addr, uint256 amount) public onlyOwner {
        totalCoverage = totalCoverage.sub(coverages[addr]);
        coverages[addr] = amount;
        totalCoverage = totalCoverage.add(coverages[addr]);
    }

    function setCoverageAmounts(address[] memory addresses, uint256[] memory amounts) external onlyOwner {
        require(addresses.length == amounts.length, "The same number of addresses and amounts must be provided");
        for (uint i=0; i < addresses.length; ++i) {
            setCoverageAmount(addresses[i], amounts[i]);
        }
    }

    function pause() public virtual {
        _pause();
    }

    function unpause() public virtual {
        _unpause();
    }

    // Withdrawal Fees

    function setWithdrawalFees(uint256[] memory _feeSchedule, uint256[] memory _withdrawalFees) external onlyOwner {
        _setWithdrawalFees(_feeSchedule, _withdrawalFees);
    }

    // Private functions

    function _setRewardsDuration(uint256 duration) private {
        rewardsDuration = duration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    function _setWithdrawalFees(uint256[] memory _feeSchedule, uint256[] memory _withdrawalFeesPct) private {
        require(_feeSchedule.length == _withdrawalFeesPct.length, "Fee schedule and withdrawal fees arrays must be the same length!");
        feeSchedule = _feeSchedule;
        withdrawalFeesPct = _withdrawalFeesPct;
        emit WithdrawalFeesSet(_feeSchedule, _withdrawalFeesPct);
    }

    // Must send reward before calling this!
    function _startEmission(uint256 reward, uint256 boosterReward, uint256 duration) private updateReward(address(0)) {
        if (duration > 0) {
            _setRewardsDuration(duration);
        }

        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
            boosterRewardRate = boosterReward.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(rewardsDuration);
            uint256 boosterLeftover = remaining.mul(boosterRewardRate);
            boosterRewardRate = boosterReward.add(boosterLeftover).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(rewardsDuration) || (rewardsToken == stakingToken && rewardRate <= balance.div(rewardsDuration).sub(_totalSupply)), "Provided reward too high");

        if (address(boosterToken) != address(0)) {
            uint boosterBalance = boosterToken.balanceOf(address(this));
            require(boosterRewardRate <= boosterBalance.div(rewardsDuration), "Provided booster reward too high");
        }

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);

        _unpause();

        emit RewardsEmissionStarted(reward, boosterReward, duration);
    }

    /* ========== DEPRECATED ========== */

    function coverageOf(address account) external view returns (uint256) {
        return coverages[account];
    }

    function updateLastTime(uint timestamp) external onlyOwner {
	    lastUpdateTime = timestamp;
    }

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

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        boosterRewardPerTokenStored = boosterRewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
            boosterRewards[account] = boosterEarned(account);
            userBoosterRewardPerTokenPaid[account] = boosterRewardPerTokenStored;
        }
        _;
    }

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

    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event CoveragePaid(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event BoosterRewardPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
    event LeftoverRewardRecovered(uint256 amount);
    event LeftoverBoosterRecovered(uint256 amount);
    event RewardsEmissionStarted(uint256 reward, uint256 boosterReward, uint256 duration);
    event RewardsEmissionEnded(uint256 amount);
    event BoosterRewardSet(address token);
    event WithdrawalFeesSet(uint256[] _feeSchedule, uint256[] _withdrawalFees);
    event FeesCollected(address indexed user, uint256 amount);
    event FeesRecovered(uint256 amount);
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_boosterToken","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"},{"internalType":"uint256[]","name":"_feeSchedule","type":"uint256[]"},{"internalType":"uint256[]","name":"_withdrawalFeesPct","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"BoosterRewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"BoosterRewardSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CoveragePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LeftoverBoosterRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LeftoverRewardRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsEmissionEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boosterReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RewardsEmissionStarted","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"_feeSchedule","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_withdrawalFees","type":"uint256[]"}],"name":"WithdrawalFeesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"boosterEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterRewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"boosterRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boosterToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"coverageOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"coverages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"exitFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"withdrawalAmount","type":"uint256"}],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"feeSchedule","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBoosterReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBoosterRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCoverage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastStakedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverLeftoverBooster","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverLeftoverReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"boosterReward","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"sendRewardsAndStartEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setBoosterReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setBoosterRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_boosterToken","type":"address"}],"name":"setBoosterToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setCoverageAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setCoverageAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_feeSchedule","type":"uint256[]"},{"internalType":"uint256[]","name":"_withdrawalFees","type":"uint256[]"}],"name":"setWithdrawalFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"stakeWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"boosterReward","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"startEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalCoverage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"updateLastTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userBoosterRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawalFeesPct","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003f1138038062003f118339810160408190526200003491620004ba565b60016000556200004433620001a5565b6001805460ff60a01b191690556001600160a01b038481169087161415620000c85760405162461bcd60e51b8152602060048201526039602482015260008051602062003ef183398151915260448201527f656e742066726f6d207468652072657761726420746f6b656e0000000000000060648201526084015b60405180910390fd5b846001600160a01b0316846001600160a01b03161415620001415760405162461bcd60e51b815260206004820152603a602482015260008051602062003ef183398151915260448201527f656e742066726f6d20746865207374616b696e6720746f6b656e0000000000006064820152608401620000bf565b600280546001600160a01b038089166001600160a01b03199283161790925560038054888416908316179055600b80549287169290911691909117905560068390556200018f8282620001f7565b62000199620002dd565b505050505050620005ea565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b805182511462000272576040805162461bcd60e51b81526020600482015260248101919091527f466565207363686564756c6520616e64207769746864726177616c206665657360448201527f20617272617973206d757374206265207468652073616d65206c656e677468216064820152608401620000bf565b8151620002879060129060208501906200038c565b5080516200029d9060139060208401906200038c565b507fe5a2c1e4acf2a2da539a1183c56fbbcec4b66dbc828b76f1c1bf365f1887886b8282604051620002d1929190620005a2565b60405180910390a15050565b620002f1600154600160a01b900460ff1690565b15620003335760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620000bf565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200036f3390565b6040516001600160a01b03909116815260200160405180910390a1565b828054828255906000526020600020908101928215620003ca579160200282015b82811115620003ca578251825591602001919060010190620003ad565b50620003d8929150620003dc565b5090565b5b80821115620003d85760008155600101620003dd565b80516001600160a01b03811681146200040b57600080fd5b919050565b600082601f8301126200042257600080fd5b815160206001600160401b0380831115620004415762000441620005d4565b8260051b604051601f19603f83011681018181108482111715620004695762000469620005d4565b604052848152838101925086840182880185018910156200048957600080fd5b600092505b85831015620004ae5780518452928401926001929092019184016200048e565b50979650505050505050565b60008060008060008060c08789031215620004d457600080fd5b620004df87620003f3565b9550620004ef60208801620003f3565b9450620004ff60408801620003f3565b6060880151608089015191955093506001600160401b03808211156200052457600080fd5b620005328a838b0162000410565b935060a08901519150808211156200054957600080fd5b506200055889828a0162000410565b9150509295509295509295565b600081518084526020808501945080840160005b83811015620005975781518752958201959082019060010162000579565b509495945050505050565b604081526000620005b7604083018562000565565b8281036020840152620005cb818562000565565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b6138f780620005fa6000396000f3fe608060405234801561001057600080fd5b50600436106103c45760003560e01c806380faa57d116101ff578063cd3daf9d1161011a578063ebe2b12b116100ad578063f3f0ffda1161007c578063f3f0ffda146107cd578063f86e55ca146107d5578063faef375e146107e8578063ffb13208146107f057600080fd5b8063ebe2b12b1461077e578063ecd9ba8214610787578063f22797d81461079a578063f2fde38b146107ba57600080fd5b8063d9142bbe116100e9578063d9142bbe14610747578063df136d651461075a578063e9fad8ee14610763578063eacccaf01461076b57600080fd5b8063cd3daf9d1461071b578063cdeae37114610723578063d1af0c7d1461072b578063d51942e21461073e57600080fd5b80639292052211610192578063be0bf75111610161578063be0bf751146106d6578063c57a202c146106df578063c8f33c91146106ff578063cc1a378f1461070857600080fd5b8063929205221461068a5780639465d4a11461069d5780639e6eda18146106b0578063a694fc3a146106c357600080fd5b80638bb95b45116101ce5780638bb95b45146106405780638da5cb5b146106535780638f0bb79c14610664578063905b7d3c1461067757600080fd5b806380faa57d146105fd5780638456cb59146106055780638980f11f1461060d5780638b8763471461062057600080fd5b80633f4ba83a116102ef57806366a03c7f1161028257806372f702f31161025157806372f702f3146105bb57806377075130146105ce57806377191605146105e15780637b0a47ee146105f457600080fd5b806366a03c7f146105795780636de4ab871461058257806370a082311461058a578063715018a6146105b357600080fd5b8063576c23ab116102be578063576c23ab146105095780635c975abb146105345780635d129544146105515780636439ea4c1461057157600080fd5b80633f4ba83a146104c857806343d45c17146104d05780634b03f2e9146104e35780635312ea8e146104f657600080fd5b80631c1f78eb1161036757806335ceec0f1161033657806335ceec0f14610491578063386a9525146104a45780633b8e4f7e146104ad5780633d18b912146104c057600080fd5b80631c1f78eb146104665780632459a6991461046e5780632cbe61d3146104765780632e1a7d4d1461047e57600080fd5b806310cbbe38116103a357806310cbbe3814610419578063120459871461042c57806313114a9d1461045557806318160ddd1461045e57600080fd5b80628cc262146103c95780630700037d146103ef5780630e9bb0a31461040f575b600080fd5b6103dc6103d7366004613473565b610810565b6040519081526020015b60405180910390f35b6103dc6103fd366004613473565b600a6020526000908152604090205481565b61041761088e565b005b6103dc610427366004613473565b610bb5565b6103dc61043a366004613473565b6001600160a01b031660009081526010602052604090205490565b6103dc60155481565b6016546103dc565b6103dc610bd9565b610417610bf7565b610417610d7a565b61041761048c3660046135ee565b610f5d565b6103dc61049f3660046135ee565b611058565b6103dc60065481565b6103dc6104bb366004613473565b611079565b6104176110c0565b610417611223565b6104176104de36600461348e565b61122d565b6104176104f136600461348e565b6112cc565b6104176105043660046135ee565b611330565b600b5461051c906001600160a01b031681565b6040516001600160a01b0390911681526020016103e6565b600154600160a01b900460ff1660405190151581526020016103e6565b6103dc61055f366004613473565b600e6020526000908152604090205481565b6103dc611391565b6103dc600d5481565b6104176113dd565b6103dc610598366004613473565b6001600160a01b031660009081526017602052604090205490565b6104176114cf565b60035461051c906001600160a01b031681565b6104176105dc36600461357f565b611521565b6104176105ef366004613620565b611577565b6103dc60055481565b6103dc611640565b61041761164e565b61041761061b36600461348e565b611656565b6103dc61062e366004613473565b60096020526000908152604090205481565b61041761064e366004613620565b611787565b6001546001600160a01b031661051c565b6103dc6106723660046135ee565b6117cf565b6104176106853660046134b8565b6117df565b6104176106983660046134b8565b6118f6565b6104176106ab366004613473565b611a0d565b6103dc6106be36600461348e565b611bb8565b6104176106d13660046135ee565b611c67565b6103dc600c5481565b6103dc6106ed366004613473565b60146020526000908152604090205481565b6103dc60075481565b6104176107163660046135ee565b611e91565b6103dc611f82565b610417611fc8565b60025461051c906001600160a01b031681565b6103dc60115481565b6104176107553660046135ee565b61207d565b6103dc60085481565b6104176120ca565b61041761077936600461348e565b6120fb565b6103dc60045481565b61041761079536600461364c565b61215f565b6103dc6107a8366004613473565b600f6020526000908152604090205481565b6104176107c8366004613473565b6123f4565b6103dc6124c1565b6104176107e33660046134b8565b6124da565b6104176125f1565b6103dc6107fe366004613473565b60106020526000908152604090205481565b6001600160a01b0381166000908152600a60209081526040808320546009909252822054610888919061088290670de0b6b3a76400009061087c9061085d90610857611f82565b9061281e565b6001600160a01b03881660009081526017602052604090205490612831565b9061283d565b90612849565b92915050565b6001546001600160a01b031633146108db5760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064015b60405180910390fd5b600154600160a01b900460ff16156109285760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108d2565b60045442106109a1576040805162461bcd60e51b81526020600482015260248101919091527f43616e6e6f742073746f70207265776172647320656d697373696f6e7320696660448201527f206e6f742073746172746564206f7220616c72656164792066696e697368656460648201526084016108d2565b60008060165460001415610ac8576002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156109f257600080fd5b505afa158015610a06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2a9190613607565b600b549092506001600160a01b031615610ac057600b546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610a8157600080fd5b505afa158015610a95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab99190613607565b9050610afc565b506000610afc565b600454600090610ad8904261281e565b600554909150610ae89082612831565b600c54909350610af89082612831565b9150505b426004558115610b2e57610b2e610b1b6001546001600160a01b031690565b6002546001600160a01b03169084612855565b600b546001600160a01b031615801590610b485750600081115b15610b7557610b75610b626001546001600160a01b031690565b600b546001600160a01b03169083612855565b610b7d6128fe565b6040518281527f6d815f6a8a51efb6f4140923189859b9e9caaa228c9334179e8eb7edefc6838e906020015b60405180910390a15050565b6001600160a01b038116600090815260176020526040812054610888908390611bb8565b6000610bf260065460055461283190919063ffffffff16565b905090565b60026000541415610c4a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108d2565b600260005533610c58611f82565b600855610c63611391565b600d55610c6e611640565b6007556001600160a01b03811615610ce957610c8981610810565b6001600160a01b0382166000908152600a6020908152604080832093909355600854600990915291902055610cbd81611079565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b600b546001600160a01b031615610d7257336000908152600f60205260409020548015610d7057336000818152600f6020526040812055600b54610d39916001600160a01b039091169083612855565b60405181815233907fd1e5531ac01ffc9c7971b52c82806a6e5ae8907ddedd2e3153afaafcfdf175d6906020015b60405180910390a25b505b506001600055565b6001546001600160a01b03163314610dc25760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b601654158015610de257506003546002546001600160a01b039081169116145b610e7a5760405162461bcd60e51b815260206004820152605e60248201527f43616e6e6f74207265636f766572206c6566746f76657220726577617264206960448201527f66206974206973206e6f7420746865207374616b696e6720746f6b656e206f7260648201527f20746865726520617265207374696c6c207374616b656420746f6b656e730000608482015260a4016108d2565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610ebe57600080fd5b505afa158015610ed2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef69190613607565b90508015610f2657610f26610f136001546001600160a01b031690565b6002546001600160a01b03169083612855565b6040518181527ff6d91c6a1bf05d7c0f2c157905a97d3bc2f860a1402d71dd52a27fabb5bcaf8d906020015b60405180910390a150565b60026000541415610fb05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108d2565b600260005533610fbe611f82565b600855610fc9611391565b600d55610fd4611640565b6007556001600160a01b0381161561104f57610fef81610810565b6001600160a01b0382166000908152600a602090815260408083209390935560085460099091529190205561102381611079565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610d70826129a3565b6012818154811061106857600080fd5b600091825260209091200154905081565b6001600160a01b0381166000908152600f6020908152604080832054600e909252822054610888919061088290670de0b6b3a76400009061087c9061085d90610857611391565b600260005414156111135760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108d2565b600260005533611121611f82565b60085561112c611391565b600d55611137611640565b6007556001600160a01b038116156111b25761115281610810565b6001600160a01b0382166000908152600a602090815260408083209390935560085460099091529190205561118681611079565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b336000908152600a60205260409020548015610d7057336000818152600a60205260408120556002546111f1916001600160a01b039091169083612855565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048690602001610d67565b61122b612ae8565b565b6001546001600160a01b031633146112755760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6001600160a01b03821660009081526010602052604090205460115461129a9161281e565b60119081556001600160a01b0383166000908152601060205260409020829055546112c59082612849565b6011555050565b6001546001600160a01b031633146113145760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6001600160a01b039091166000908152600f6020526040902055565b600260005414156113835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108d2565b6002600055610d72816129a3565b6000601654600014156113a55750600d5490565b610bf26113d460165461087c670de0b6b3a76400006113ce600c546113ce600754610857611640565b90612831565b600d5490612849565b600260005414156114305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108d2565b60026000908155338152601060205260409020548015610d7257336000908152601060205260409020546011546114669161281e565b60115533600081815260106020526040812055600254611492916001600160a01b039091169083612855565b60405181815233907fef4696bdcf47e292773442e4169d670e1b2d0d3f5ceff2a5c1e236c10109ee809060200160405180910390a2506001600055565b6001546001600160a01b031633146115175760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b61122b6000612b75565b6001546001600160a01b031633146115695760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6115738282612bd4565b5050565b6001546001600160a01b031633146115bf5760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6115e86115d46001546001600160a01b031690565b6002546001600160a01b0316903086612ca6565b600b546001600160a01b0316158015906116025750600082115b156116305761163061161c6001546001600160a01b031690565b600b546001600160a01b0316903085612ca6565b61163b838383612cfd565b505050565b6000610bf2426004546130c6565b61122b6128fe565b6001546001600160a01b0316331461169e5760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6003546001600160a01b03838116911614156117225760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b6560448201527f6e0000000000000000000000000000000000000000000000000000000000000060648201526084016108d2565b6117486117376001546001600160a01b031690565b6001600160a01b0384169083612855565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa289101610ba9565b6001546001600160a01b031633146116305760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6013818154811061106857600080fd5b6001546001600160a01b031633146118275760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b805182511461189e5760405162461bcd60e51b815260206004820152603960248201527f5468652073616d65206e756d626572206f662061646472657373657320616e6460448201527f20616d6f756e7473206d7573742062652070726f76696465640000000000000060648201526084016108d2565b60005b825181101561163b576118e68382815181106118bf576118bf613875565b60200260200101518383815181106118d9576118d9613875565b602002602001015161122d565b6118ef81613844565b90506118a1565b6001546001600160a01b0316331461193e5760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b80518251146119b55760405162461bcd60e51b815260206004820152603960248201527f5468652073616d65206e756d626572206f662061646472657373657320616e6460448201527f20616d6f756e7473206d7573742062652070726f76696465640000000000000060648201526084016108d2565b60005b825181101561163b576119fd8382815181106119d6576119d6613875565b60200260200101518383815181106119f0576119f0613875565b60200260200101516120fb565b611a0681613844565b90506119b8565b6001546001600160a01b03163314611a555760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6002546001600160a01b0382811691161415611ad95760405162461bcd60e51b815260206004820152603960248201527f54686520626f6f7374657220746f6b656e206d7573742062652064696666657260448201527f656e742066726f6d207468652072657761726420746f6b656e0000000000000060648201526084016108d2565b6003546001600160a01b0382811691161415611b5d5760405162461bcd60e51b815260206004820152603a60248201527f54686520626f6f7374657220746f6b656e206d7573742062652064696666657260448201527f656e742066726f6d20746865207374616b696e6720746f6b656e00000000000060648201526084016108d2565b600b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f0c6fec5b80219c372da56cb4d1ef3e172069953fa5c72ececf0d0dfe1109260b90602001610f52565b6000805b601254811015611c5d5760128181548110611bd957611bd9613875565b60009182526020808320909101546001600160a01b03871683526014909152604090912054611c0990429061281e565b1015611c4d57611c456103e861087c60138481548110611c2b57611c2b613875565b90600052602060002001548661283190919063ffffffff16565b915050610888565b611c5681613844565b9050611bbc565b5060009392505050565b60026000541415611cba5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108d2565b6002600055600154600160a01b900460ff1615611d0c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108d2565b33611d15611f82565b600855611d20611391565b600d55611d2b611640565b6007556001600160a01b03811615611da657611d4681610810565b6001600160a01b0382166000908152600a6020908152604080832093909355600854600990915291902055611d7a81611079565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b60008211611df65760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b65203000000000000000000000000000000000000060448201526064016108d2565b601654611e039083612849565b60165533600090815260176020526040902054611e209083612849565b33600081815260176020526040902091909155600354611e4d916001600160a01b03909116903085612ca6565b3360008181526014602052604090819020429055517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90610d679085815260200190565b6001546001600160a01b03163314611ed95760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6004544211611f765760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a4016108d2565b611f7f816130dc565b50565b600060165460001415611f96575060085490565b610bf2611fbf60165461087c670de0b6b3a76400006113ce6005546113ce600754610857611640565b60085490612849565b6001546001600160a01b031633146120105760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b61203b6120256001546001600160a01b031690565b6015546003546001600160a01b03169190612855565b7f6857c770f3cb43e9c19050a37dd914ec876241c1f4b487d26a1d4f5d3054f49b60155460405161206e91815260200190565b60405180910390a16000601555565b6001546001600160a01b031633146120c55760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b600755565b336000908152601760205260409020546120e390610f5d565b6120eb6110c0565b6120f3610bf7565b61122b6113dd565b6001546001600160a01b031633146121435760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6001600160a01b039091166000908152600a6020526040902055565b600260005414156121b25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108d2565b6002600055336121c0611f82565b6008556121cb611391565b600d556121d6611640565b6007556001600160a01b03811615612251576121f181610810565b6001600160a01b0382166000908152600a602090815260408083209390935560085460099091529190205561222581611079565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b600086116122a15760405162461bcd60e51b815260206004820152600e60248201527f43616e6e6f74207374616b65203000000000000000000000000000000000000060448201526064016108d2565b6016546122ae9087612849565b601655336000908152601760205260409020546122cb9087612849565b33600081815260176020526040908190209290925560035491517fd505accf0000000000000000000000000000000000000000000000000000000081526004810191909152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c481018490526001600160a01b039091169063d505accf9060e401600060405180830381600087803b15801561236a57600080fd5b505af115801561237e573d6000803e3d6000fd5b505060035461239b92506001600160a01b03169050333089612ca6565b3360008181526014602052604090819020429055517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906123df9089815260200190565b60405180910390a25050600160005550505050565b6001546001600160a01b0316331461243c5760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b6001600160a01b0381166124b85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108d2565b611f7f81612b75565b6000610bf2600654600c5461283190919063ffffffff16565b6001546001600160a01b031633146125225760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b80518251146125995760405162461bcd60e51b815260206004820152603960248201527f5468652073616d65206e756d626572206f662061646472657373657320616e6460448201527f20616d6f756e7473206d7573742062652070726f76696465640000000000000060648201526084016108d2565b60005b825181101561163b576125e18382815181106125ba576125ba613875565b60200260200101518383815181106125d4576125d4613875565b60200260200101516112cc565b6125ea81613844565b905061259c565b6001546001600160a01b031633146126395760405162461bcd60e51b815260206004820181905260248201526000805160206138a283398151915260448201526064016108d2565b600b546001600160a01b03166126dd5760405162461bcd60e51b815260206004820152604160248201527f43616e6e6f74207265636f766572206c6566746f76657220626f6f737465722060448201527f696620746865726520776173206e6f20626f6f7374657220746f6b656e20736560648201527f7400000000000000000000000000000000000000000000000000000000000000608482015260a4016108d2565b60165415612755576040805162461bcd60e51b81526020600482015260248101919091527f43616e6e6f74207265636f766572206c6566746f76657220626f6f737465722060448201527f696620746865726520617265207374696c6c207374616b656420746f6b656e7360648201526084016108d2565b600b546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561279957600080fd5b505afa1580156127ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127d19190613607565b905080156127ee576127ee610b626001546001600160a01b031690565b6040518181527fa075ee3dcd38efb87f0f97160a935b6a43768378263338beea06b9681f66151d90602001610f52565b600061282a8284613801565b9392505050565b600061282a82846137e2565b600061282a82846137c0565b600061282a82846137a8565b6040516001600160a01b03831660248201526044810182905261163b9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152613111565b600154600160a01b900460ff161561294b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108d2565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129863390565b6040516001600160a01b03909116815260200160405180910390a1565b600081116129f35760405162461bcd60e51b815260206004820152601160248201527f43616e6e6f74207769746864726177203000000000000000000000000000000060448201526064016108d2565b601654612a00908261281e565b6016556000612a0f3383611bb8565b33600090815260176020526040902054909150612a2c908361281e565b33600090815260176020526040812091909155612a49838361281e565b600354909150612a63906001600160a01b03163383612855565b60405181815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d59060200160405180910390a2811561163b5760405182815233907f9dc46f23cfb5ddcad0ae7ea2be38d47fec07bb9382ec7e564efc69e036dd66ce9060200160405180910390a2601554612ae09083612849565b601555505050565b600154600160a01b900460ff16612b415760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016108d2565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612986565b600180546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051825114612c4d576040805162461bcd60e51b81526020600482015260248101919091527f466565207363686564756c6520616e64207769746864726177616c206665657360448201527f20617272617973206d757374206265207468652073616d65206c656e6774682160648201526084016108d2565b8151612c60906012906020850190613385565b508051612c74906013906020840190613385565b507fe5a2c1e4acf2a2da539a1183c56fbbcec4b66dbc828b76f1c1bf365f1887886b8282604051610ba99291906136f2565b6040516001600160a01b0380851660248301528316604482015260648101829052612cf79085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161289a565b50505050565b6000612d07611f82565b600855612d12611391565b600d55612d1d611640565b6007556001600160a01b03811615612d9857612d3881610810565b6001600160a01b0382166000908152600a6020908152604080832093909355600854600990915291902055612d6c81611079565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b8115612da757612da7826130dc565b6004544210612dd757600654612dbe90859061283d565b600555600654612dcf90849061283d565b600c55612e43565b600454600090612de7904261281e565b90506000612e006005548361283190919063ffffffff16565b600654909150612e149061087c8884612849565b600555600c54600090612e28908490612831565b600654909150612e3c9061087c8884612849565b600c555050505b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612e8757600080fd5b505afa158015612e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ebf9190613607565b9050612ed66006548261283d90919063ffffffff16565b600554111580612f1d57506003546002546001600160a01b039081169116148015612f1d5750612f176016546108576006548461283d90919063ffffffff16565b60055411155b612f695760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f2068696768000000000000000060448201526064016108d2565b600b546001600160a01b03161561306057600b546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015612fbe57600080fd5b505afa158015612fd2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ff69190613607565b905061300d6006548261283d90919063ffffffff16565b600c54111561305e5760405162461bcd60e51b815260206004820181905260248201527f50726f766964656420626f6f737465722072657761726420746f6f206869676860448201526064016108d2565b505b4260078190556006546130739190612849565b60045561307e612ae8565b60408051868152602081018690529081018490527f748824204e79acdab8f1a9977cbc584250e206ad90d05ef198799f9d6ee93a7d9060600160405180910390a15050505050565b60008183106130d5578161282a565b5090919050565b60068190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d390602001610f52565b6000613166826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131f69092919063ffffffff16565b80519091501561163b578080602001905181019061318491906135cc565b61163b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016108d2565b6060613205848460008561320d565b949350505050565b6060824710156132855760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016108d2565b843b6132d35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108d2565b600080866001600160a01b031685876040516132ef91906136d6565b60006040518083038185875af1925050503d806000811461332c576040519150601f19603f3d011682016040523d82523d6000602084013e613331565b606091505b509150915061334182828661334c565b979650505050505050565b6060831561335b57508161282a565b82511561336b5782518084602001fd5b8160405162461bcd60e51b81526004016108d29190613720565b8280548282559060005260206000209081019282156133c0579160200282015b828111156133c05782518255916020019190600101906133a5565b506133cc9291506133d0565b5090565b5b808211156133cc57600081556001016133d1565b80356001600160a01b03811681146133fc57600080fd5b919050565b600082601f83011261341257600080fd5b8135602061342761342283613784565b613753565b80838252828201915082860187848660051b890101111561344757600080fd5b60005b858110156134665781358452928401929084019060010161344a565b5090979650505050505050565b60006020828403121561348557600080fd5b61282a826133e5565b600080604083850312156134a157600080fd5b6134aa836133e5565b946020939093013593505050565b600080604083850312156134cb57600080fd5b823567ffffffffffffffff808211156134e357600080fd5b818501915085601f8301126134f757600080fd5b8135602061350761342283613784565b8083825282820191508286018a848660051b890101111561352757600080fd5b600096505b848710156135515761353d816133e5565b83526001969096019591830191830161352c565b509650508601359250508082111561356857600080fd5b5061357585828601613401565b9150509250929050565b6000806040838503121561359257600080fd5b823567ffffffffffffffff808211156135aa57600080fd5b6135b686838701613401565b9350602085013591508082111561356857600080fd5b6000602082840312156135de57600080fd5b8151801515811461282a57600080fd5b60006020828403121561360057600080fd5b5035919050565b60006020828403121561361957600080fd5b5051919050565b60008060006060848603121561363557600080fd5b505081359360208301359350604090920135919050565b600080600080600060a0868803121561366457600080fd5b8535945060208601359350604086013560ff8116811461368357600080fd5b94979396509394606081013594506080013592915050565b600081518084526020808501945080840160005b838110156136cb578151875295820195908201906001016136af565b509495945050505050565b600082516136e8818460208701613818565b9190910192915050565b604081526000613705604083018561369b565b8281036020840152613717818561369b565b95945050505050565b602081526000825180602084015261373f816040850160208701613818565b601f01601f19169190910160400192915050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561377c5761377c61388b565b604052919050565b600067ffffffffffffffff82111561379e5761379e61388b565b5060051b60200190565b600082198211156137bb576137bb61385f565b500190565b6000826137dd57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156137fc576137fc61385f565b500290565b6000828210156138135761381361385f565b500390565b60005b8381101561383357818101518382015260200161381b565b83811115612cf75750506000910152565b60006000198214156138585761385861385f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220300e2fe0d7eae2da2af82be509a9e7bdd8208815b07717b1b56d6ede9c833bc564736f6c6343000807003354686520626f6f7374657220746f6b656e206d75737420626520646966666572000000000000000000000000e1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c000000000000000000000000e1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278d0000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000093a800000000000000000000000000000000000000000000000000000000000278d00000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a

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

000000000000000000000000e1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c000000000000000000000000e1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278d0000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000093a800000000000000000000000000000000000000000000000000000000000278d00000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c
Arg [1] : _stakingToken (address): 0xe1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c
Arg [2] : _boosterToken (address): 0x0000000000000000000000000000000000000000
Arg [3] : _rewardsDuration (uint256): 2592000
Arg [4] : _feeSchedule (uint256[]): 3600,604800,2592000
Arg [5] : _withdrawalFeesPct (uint256[]): 50,20,10

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 000000000000000000000000e1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c
Arg [1] : 000000000000000000000000e1c110e1b1b4a1ded0caf3e42bfbdbb7b5d7ce1c
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000278d00
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [8] : 0000000000000000000000000000000000000000000000000000000000093a80
Arg [9] : 0000000000000000000000000000000000000000000000000000000000278d00
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000a


Deployed ByteCode Sourcemap

32522:17894:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35284:198;;;;;;:::i;:::-;;:::i;:::-;;;17279:25:1;;;17267:2;17252:18;35284:198:0;;;;;;;;33023:42;;;;;;:::i;:::-;;;;;;;;;;;;;;40822:1174;;;:::i;:::-;;36362:122;;;;;;:::i;:::-;;:::i;48659:113::-;;;;;;:::i;:::-;-1:-1:-1;;;;;48746:18:0;48719:7;48746:18;;;:9;:18;;;;;;;48659:113;33546:24;;;;;;34586:93;34659:12;;34586:93;;35490:121;;;:::i;39148:422::-;;;:::i;42316:458::-;;;:::i;37969:115::-;;;;;;:::i;:::-;;:::i;33414:28::-;;;;;;:::i;:::-;;:::i;32842:30::-;;;;;;35985:226;;;;;;:::i;:::-;;:::i;38833:307::-;;;:::i;45848:63::-;;;:::i;45180:239::-;;;;;;:::i;:::-;;:::i;44685:121::-;;;;;;:::i;:::-;;:::i;38092:99::-;;;;;;:::i;:::-;;:::i;33074:26::-;;;;;-1:-1:-1;;;;;33074:26:0;;;;;;-1:-1:-1;;;;;5513:55:1;;;5495:74;;5483:2;5468:18;33074:26:0;5349:226:1;12462:86:0;12533:7;;-1:-1:-1;;;12533:7:0;;;;12462:86;;7618:14:1;;7611:22;7593:41;;7581:2;7566:18;12462:86:0;7453:187:1;33197:64:0;;;;;;:::i;:::-;;;;;;;;;;;;;;35619:358;;;:::i;33146:42::-;;;;;;39578:393;;;:::i;34687:112::-;;;;;;:::i;:::-;-1:-1:-1;;;;;34773:18:0;34746:7;34773:18;;;:9;:18;;;;;;;34687:112;2560:94;;;:::i;32743:26::-;;;;;-1:-1:-1;;;;;32743:26:0;;;45945:179;;;;;;:::i;:::-;;:::i;40193:433::-;;;;;;:::i;:::-;;:::i;32810:25::-;;;;;;34807:131;;;:::i;45781:59::-;;;:::i;42004:304::-;;;;;;:::i;:::-;;:::i;32959:57::-;;;;;;:::i;:::-;;;;;;;;;;;;;;40634:180;;;;;;:::i;:::-;;:::i;1909:87::-;1982:6;;-1:-1:-1;;;;;1982:6:0;1909:87;;33449:34;;;;;;:::i;:::-;;:::i;45427:346::-;;;;;;:::i;:::-;;:::i;43605:330::-;;;;;;:::i;:::-;;:::i;44269:408::-;;;;;;:::i;:::-;;:::i;36492:354::-;;;;;;:::i;:::-;;:::i;36908:438::-;;;;;;:::i;:::-;;:::i;33107:32::-;;;;;;33490:49;;;;;;:::i;:::-;;;;;;;;;;;;;;32879:29;;;;;;43943:292;;;;;;:::i;:::-;;:::i;34946:330::-;;;:::i;43312:170::-;;;:::i;32710:26::-;;;;;-1:-1:-1;;;;;32710:26:0;;;33377:28;;;;;;48780:101;;;;;;:::i;:::-;;:::i;32915:35::-;;;;;;39979:150;;;:::i;43490:107::-;;;;;;:::i;:::-;;:::i;32776:27::-;;;;;;37354:607;;;;;;:::i;:::-;;:::i;33268:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;2809:192;;;;;;:::i;:::-;;:::i;36219:135::-;;;:::i;44814:344::-;;;;;;:::i;:::-;;:::i;42782:522::-;;;:::i;33326:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;35284:198;-1:-1:-1;;;;;35457:16:0;;35338:7;35457:16;;;:7;:16;;;;;;;;;35409:22;:31;;;;;;35365:109;;35457:16;35365:87;;35447:4;;35365:77;;35388:53;;:16;:14;:16::i;:::-;:20;;:53::i;:::-;-1:-1:-1;;;;;35365:18:0;;;;;;:9;:18;;;;;;;:22;:77::i;:::-;:81;;:87::i;:::-;:91;;:109::i;:::-;35358:116;35284:198;-1:-1:-1;;35284:198:0:o;40822:1174::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;;;;;;;;;12533:7;;-1:-1:-1;;;12533:7:0;;;;12787:9:::1;12779:38;;;::::0;-1:-1:-1;;;12779:38:0;;12633:2:1;12779:38:0::1;::::0;::::1;12615:21:1::0;12672:2;12652:18;;;12645:30;-1:-1:-1;;;12691:18:1;;;12684:46;12747:18;;12779:38:0::1;12431:340:1::0;12779:38:0::1;40916:12:::2;;40898:15;:30;40890:107;;;::::0;;-1:-1:-1;;;40890:107:0;;12978:2:1;40890:107:0::2;::::0;::::2;12960:21:1::0;12997:18;;;12990:30;;;;13056:34;13036:18;;;13029:62;13127:34;13107:18;;;13100:62;13179:19;;40890:107:0::2;12776:428:1::0;40890:107:0::2;41010:20;41041:27:::0;41085:12:::2;;41101:1;41085:17;41081:525;;;41134:12;::::0;:37:::2;::::0;-1:-1:-1;;;41134:37:0;;41165:4:::2;41134:37;::::0;::::2;5495:74:1::0;-1:-1:-1;;;;;41134:12:0;;::::2;::::0;:22:::2;::::0;5468:18:1;;41134:37:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41198:12;::::0;41119:52;;-1:-1:-1;;;;;;41198:12:0::2;41190:35:::0;41186:199:::2;;41268:12;::::0;:37:::2;::::0;-1:-1:-1;;;41268:37:0;;41299:4:::2;41268:37;::::0;::::2;5495:74:1::0;-1:-1:-1;;;;;41268:12:0;;::::2;::::0;:22:::2;::::0;5468:18:1;;41268:37:0::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41246:59;;41081:525;;41186:199;-1:-1:-1::0;41368:1:0::2;41081:525;;;41437:12;::::0;41417:17:::2;::::0;41437:33:::2;::::0;41454:15:::2;41437:16;:33::i;:::-;41500:10;::::0;41417:53;;-1:-1:-1;41500:25:0::2;::::0;41417:53;41500:14:::2;:25::i;:::-;41562:17;::::0;41485:40;;-1:-1:-1;41562:32:0::2;::::0;41584:9;41562:21:::2;:32::i;:::-;41540:54;;41402:204;41081:525;41633:15;41618:12;:30:::0;41663:16;;41659:97:::2;;41696:48;41722:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;41722:7:::2;41696:12;::::0;-1:-1:-1;;;;;41696:12:0::2;::::0;41731;41696:25:::2;:48::i;:::-;41778:12;::::0;-1:-1:-1;;;;;41778:12:0::2;41770:35:::0;;::::2;::::0;:62:::2;;;41831:1;41809:19;:23;41770:62;41766:150;;;41849:55;41875:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;41875:7:::2;41849:12;::::0;-1:-1:-1;;;;;41849:12:0::2;::::0;41884:19;41849:25:::2;:55::i;:::-;41928:8;:6;:8::i;:::-;41954:34;::::0;17279:25:1;;;41954:34:0::2;::::0;17267:2:1;17252:18;41954:34:0::2;;;;;;;;40879:1117;;40822:1174::o:0;36362:122::-;-1:-1:-1;;;;;36457:18:0;;36417:7;36457:18;;;:9;:18;;;;;;36444:32;;36448:7;;36444:3;:32::i;35490:121::-;35545:7;35572:31;35587:15;;35572:10;;:14;;:31;;;;:::i;:::-;35565:38;;35490:121;:::o;39148:422::-;15401:1;15997:7;;:19;;15989:63;;;;-1:-1:-1;;;15989:63:0;;16147:2:1;15989:63:0;;;16129:21:1;16186:2;16166:18;;;16159:30;16225:33;16205:18;;;16198:61;16276:18;;15989:63:0;15945:355:1;15989:63:0;15401:1;16130:7;:18;39209:10:::1;49007:16;:14;:16::i;:::-;48984:20;:39:::0;49064:23:::1;:21;:23::i;:::-;49034:27;:53:::0;49115:26:::1;:24;:26::i;:::-;49098:14;:43:::0;-1:-1:-1;;;;;49156:21:0;::::1;::::0;49152:303:::1;;49213:15;49220:7;49213:6;:15::i;:::-;-1:-1:-1::0;;;;;49194:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;49277:20:::1;::::0;49243:22:::1;:31:::0;;;;;;:54;49338:22:::1;49202:7:::0;49338:13:::1;:22::i;:::-;-1:-1:-1::0;;;;;49312:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;:48;;;;49416:27:::1;::::0;49375:29:::1;:38:::0;;;;;;:68;49152:303:::1;39244:12:::2;::::0;-1:-1:-1;;;;;39244:12:0::2;39236:35:::0;39232:331:::2;;39320:10;39288:14;39305:26:::0;;;:14:::2;:26;::::0;;;;;39350:10;;39346:206:::2;;39396:10;39410:1;39381:26:::0;;;:14:::2;:26;::::0;;;;:30;39430:12:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;39430:12:0;;::::2;::::0;39468:6;39430:25:::2;:45::i;:::-;39499:37;::::0;17279:25:1;;;39517:10:0::2;::::0;39499:37:::2;::::0;17267:2:1;17252:18;39499:37:0::2;;;;;;;;39346:206;39273:290;39232:331;-1:-1:-1::0;15357:1:0;16309:7;:22;39148:422::o;42316:458::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;42387:12:::1;::::0;:17;:49;::::1;;;-1:-1:-1::0;42424:12:0::1;::::0;42408::::1;::::0;-1:-1:-1;;;;;42408:12:0;;::::1;42424::::0;::::1;42408:28;42387:49;42379:156;;;::::0;-1:-1:-1;;;42379:156:0;;9326:2:1;42379:156:0::1;::::0;::::1;9308:21:1::0;9365:2;9345:18;;;9338:30;9404:34;9384:18;;;9377:62;9475:34;9455:18;;;9448:62;9547:32;9526:19;;;9519:61;9597:19;;42379:156:0::1;9124:498:1::0;42379:156:0::1;42569:12;::::0;:37:::1;::::0;-1:-1:-1;;;42569:37:0;;42600:4:::1;42569:37;::::0;::::1;5495:74:1::0;42546:20:0::1;::::0;-1:-1:-1;;;;;42569:12:0::1;::::0;:22:::1;::::0;5468:18:1;;42569:37:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42546:60:::0;-1:-1:-1;42621:16:0;;42617:97:::1;;42654:48;42680:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;42680:7:::1;42654:12;::::0;-1:-1:-1;;;;;42654:12:0::1;::::0;42689;42654:25:::1;:48::i;:::-;42729:37;::::0;17279:25:1;;;42729:37:0::1;::::0;17267:2:1;17252:18;42729:37:0::1;;;;;;;;42368:406;42316:458::o:0;37969:115::-;15401:1;15997:7;;:19;;15989:63;;;;-1:-1:-1;;;15989:63:0;;16147:2:1;15989:63:0;;;16129:21:1;16186:2;16166:18;;;16159:30;16225:33;16205:18;;;16198:61;16276:18;;15989:63:0;15945:355:1;15989:63:0;15401:1;16130:7;:18;38036:10:::1;49007:16;:14;:16::i;:::-;48984:20;:39:::0;49064:23:::1;:21;:23::i;:::-;49034:27;:53:::0;49115:26:::1;:24;:26::i;:::-;49098:14;:43:::0;-1:-1:-1;;;;;49156:21:0;::::1;::::0;49152:303:::1;;49213:15;49220:7;49213:6;:15::i;:::-;-1:-1:-1::0;;;;;49194:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;49277:20:::1;::::0;49243:22:::1;:31:::0;;;;;;:54;49338:22:::1;49202:7:::0;49338:13:::1;:22::i;:::-;-1:-1:-1::0;;;;;49312:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;:48;;;;49416:27:::1;::::0;49375:29:::1;:38:::0;;;;;;:68;49152:303:::1;38059:17:::2;38069:6;38059:9;:17::i;33414:28::-:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33414:28:0;:::o;35985:226::-;-1:-1:-1;;;;;36179:23:0;;36046:7;36179:23;;;:14;:23;;;;;;;;;36124:29;:38;;;;;;36073:130;;36179:23;36073:101;;36169:4;;36073:91;;36096:67;;:23;:21;:23::i;38833:307::-;15401:1;15997:7;;:19;;15989:63;;;;-1:-1:-1;;;15989:63:0;;16147:2:1;15989:63:0;;;16129:21:1;16186:2;16166:18;;;16159:30;16225:33;16205:18;;;16198:61;16276:18;;15989:63:0;15945:355:1;15989:63:0;15401:1;16130:7;:18;38887:10:::1;49007:16;:14;:16::i;:::-;48984:20;:39:::0;49064:23:::1;:21;:23::i;:::-;49034:27;:53:::0;49115:26:::1;:24;:26::i;:::-;49098:14;:43:::0;-1:-1:-1;;;;;49156:21:0;::::1;::::0;49152:303:::1;;49213:15;49220:7;49213:6;:15::i;:::-;-1:-1:-1::0;;;;;49194:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;49277:20:::1;::::0;49243:22:::1;:31:::0;;;;;;:54;49338:22:::1;49202:7:::0;49338:13:::1;:22::i;:::-;-1:-1:-1::0;;;;;49312:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;:48;;;;49416:27:::1;::::0;49375:29:::1;:38:::0;;;;;;:68;49152:303:::1;38935:10:::2;38910:14;38927:19:::0;;;:7:::2;:19;::::0;;;;;38961:10;;38957:176:::2;;38996:10;39010:1;38988:19:::0;;;:7:::2;:19;::::0;;;;:23;39026:12:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;39026:12:0;;::::2;::::0;39064:6;39026:25:::2;:45::i;:::-;39091:30;::::0;17279:25:1;;;39102:10:0::2;::::0;39091:30:::2;::::0;17267:2:1;17252:18;39091:30:0::2;17133:177:1::0;45848:63:0;45893:10;:8;:10::i;:::-;45848:63::o;45180:239::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;-1:-1:-1;;;;;45299:15:0;::::1;;::::0;;;:9:::1;:15;::::0;;;;;45281:13:::1;::::0;:34:::1;::::0;:17:::1;:34::i;:::-;45265:13;:50:::0;;;-1:-1:-1;;;;;45326:15:0;::::1;;::::0;;;:9:::1;:15;::::0;;;;:24;;;45377:13;:34:::1;::::0;45344:6;45377:17:::1;:34::i;:::-;45361:13;:50:::0;-1:-1:-1;;45180:239:0:o;44685:121::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;-1:-1:-1;;;;;44769:20:0;;::::1;;::::0;;;:14:::1;:20;::::0;;;;:29;44685:121::o;38092:99::-;15401:1;15997:7;;:19;;15989:63;;;;-1:-1:-1;;;15989:63:0;;16147:2:1;15989:63:0;;;16129:21:1;16186:2;16166:18;;;16159:30;16225:33;16205:18;;;16198:61;16276:18;;15989:63:0;15945:355:1;15989:63:0;15401:1;16130:7;:18;38166:17:::1;38176:6:::0;38166:9:::1;:17::i;35619:358::-:0;35673:7;35697:12;;35713:1;35697:17;35693:84;;;-1:-1:-1;35738:27:0;;;35619:358::o;35693:84::-;35807:162;35857:97;35941:12;;35857:79;35931:4;35857:69;35908:17;;35857:46;35888:14;;35857:26;:24;:26::i;:46::-;:50;;:69::i;:97::-;35807:27;;;:31;:162::i;39578:393::-;15401:1;15997:7;;:19;;15989:63;;;;-1:-1:-1;;;15989:63:0;;16147:2:1;15989:63:0;;;16129:21:1;16186:2;16166:18;;;16159:30;16225:33;16205:18;;;16198:61;16276:18;;15989:63:0;15945:355:1;15989:63:0;15401:1;16130:7;:18;;;39667:10:::1;39657:21:::0;;:9:::1;:21;::::0;;;;;39693:18;;39689:275:::1;;39772:10;39762:21;::::0;;;:9:::1;:21;::::0;;;;;39744:13:::1;::::0;:40:::1;::::0;:17:::1;:40::i;:::-;39728:13;:56:::0;39809:10:::1;39823:1;39799:21:::0;;;:9:::1;:21;::::0;;;;:25;39839:12:::1;::::0;:53:::1;::::0;-1:-1:-1;;;;;39839:12:0;;::::1;::::0;39877:14;39839:25:::1;:53::i;:::-;39912:40;::::0;17279:25:1;;;39925:10:0::1;::::0;39912:40:::1;::::0;17267:2:1;17252:18;39912:40:0::1;;;;;;;-1:-1:-1::0;15357:1:0;16309:7;:22;39578:393::o;2560:94::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;2625:21:::1;2643:1;2625:9;:21::i;45945:179::-:0;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;46067:49:::1;46086:12;46100:15;46067:18;:49::i;:::-;45945:179:::0;;:::o;40193:433::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;40332:61:::1;40362:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;40362:7:::1;40332:12;::::0;-1:-1:-1;;;;;40332:12:0::1;::::0;40379:4:::1;40386:6:::0;40332:29:::1;:61::i;:::-;40416:12;::::0;-1:-1:-1;;;;;40416:12:0::1;40408:35:::0;;::::1;::::0;:56:::1;;;40463:1;40447:13;:17;40408:56;40404:157;;;40481:68;40511:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;40511:7:::1;40481:12;::::0;-1:-1:-1;;;;;40481:12:0::1;::::0;40528:4:::1;40535:13:::0;40481:29:::1;:68::i;:::-;40571:47;40586:6;40594:13;40609:8;40571:14;:47::i;:::-;40193:433:::0;;;:::o;34807:131::-;34864:7;34891:39;34900:15;34917:12;;34891:8;:39::i;45781:59::-;45824:8;:6;:8::i;42004:304::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;42131:12:::1;::::0;-1:-1:-1;;;;;42107:37:0;;::::1;42131:12:::0;::::1;42107:37;;42099:83;;;::::0;-1:-1:-1;;;42099:83:0;;16507:2:1;42099:83:0::1;::::0;::::1;16489:21:1::0;16546:2;16526:18;;;16519:30;16585:34;16565:18;;;16558:62;16656:3;16636:18;;;16629:31;16677:19;;42099:83:0::1;16305:397:1::0;42099:83:0::1;42193:55;42227:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;42227:7:::1;-1:-1:-1::0;;;;;42193:33:0;::::1;::::0;42236:11;42193:33:::1;:55::i;:::-;42264:36;::::0;;-1:-1:-1;;;;;6873:55:1;;6855:74;;6960:2;6945:18;;6938:34;;;42264:36:0::1;::::0;6828:18:1;42264:36:0::1;6681:297:1::0;40634:180:0;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;33449:34:0;;;;;;;;;;;;45427:346;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;45567:7:::1;:14;45547:9;:16;:34;45539:104;;;::::0;-1:-1:-1;;;45539:104:0;;11439:2:1;45539:104:0::1;::::0;::::1;11421:21:1::0;11478:2;11458:18;;;11451:30;11517:34;11497:18;;;11490:62;11588:27;11568:18;;;11561:55;11633:19;;45539:104:0::1;11237:421:1::0;45539:104:0::1;45659:6;45654:112;45673:9;:16;45669:1;:20;45654:112;;;45711:43;45729:9;45739:1;45729:12;;;;;;;;:::i;:::-;;;;;;;45743:7;45751:1;45743:10;;;;;;;;:::i;:::-;;;;;;;45711:17;:43::i;:::-;45691:3;::::0;::::1;:::i;:::-;;;45654:112;;43605:330:::0;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;43737:7:::1;:14;43717:9;:16;:34;43709:104;;;::::0;-1:-1:-1;;;43709:104:0;;11439:2:1;43709:104:0::1;::::0;::::1;11421:21:1::0;11478:2;11458:18;;;11451:30;11517:34;11497:18;;;11490:62;11588:27;11568:18;;;11561:55;11633:19;;43709:104:0::1;11237:421:1::0;43709:104:0::1;43829:6;43824:104;43843:9;:16;43839:1;:20;43824:104;;;43881:35;43891:9;43901:1;43891:12;;;;;;;;:::i;:::-;;;;;;;43905:7;43913:1;43905:10;;;;;;;;:::i;:::-;;;;;;;43881:9;:35::i;:::-;43861:3;::::0;::::1;:::i;:::-;;;43824:104;;44269:408:::0;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;44380:12:::1;::::0;-1:-1:-1;;;;;44355:38:0;;::::1;44380:12:::0;::::1;44355:38;;44347:108;;;::::0;-1:-1:-1;;;44347:108:0;;16909:2:1;44347:108:0::1;::::0;::::1;16891:21:1::0;16948:2;16928:18;;;16921:30;16987:34;16967:18;;;16960:62;17058:27;17038:18;;;17031:55;17103:19;;44347:108:0::1;16707:421:1::0;44347:108:0::1;44499:12;::::0;-1:-1:-1;;;;;44474:38:0;;::::1;44499:12:::0;::::1;44474:38;;44466:109;;;::::0;-1:-1:-1;;;44466:109:0;;11012:2:1;44466:109:0::1;::::0;::::1;10994:21:1::0;11051:2;11031:18;;;11024:30;11090:34;11070:18;;;11063:62;11161:28;11141:18;;;11134:56;11207:19;;44466:109:0::1;10810:422:1::0;44466:109:0::1;44586:12;:36:::0;;-1:-1:-1;;44586:36:0::1;-1:-1:-1::0;;;;;44586:36:0;::::1;::::0;;::::1;::::0;;;44638:31:::1;::::0;5495:74:1;;;44638:31:0::1;::::0;5483:2:1;5468:18;44638:31:0::1;5349:226:1::0;36492:354:0;36569:7;;36589:231;36608:11;:18;36604:22;;36589:231;;;36699:11;36711:1;36699:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;36672:23:0;;;;:14;:23;;;;;;;;36652:44;;:15;;:19;:44::i;:::-;:61;36648:161;;;36741:52;36788:4;36741:42;36762:17;36780:1;36762:20;;;;;;;;:::i;:::-;;;;;;;;;36741:16;:20;;:42;;;;:::i;:52::-;36734:59;;;;;36648:161;36628:3;;;:::i;:::-;;;36589:231;;;-1:-1:-1;36837:1:0;;36492:354;-1:-1:-1;;;36492:354:0:o;36908:438::-;15401:1;15997:7;;:19;;15989:63;;;;-1:-1:-1;;;15989:63:0;;16147:2:1;15989:63:0;;;16129:21:1;16186:2;16166:18;;;16159:30;16225:33;16205:18;;;16198:61;16276:18;;15989:63:0;15945:355:1;15989:63:0;15401:1;16130:7;:18;12533:7;;-1:-1:-1;;;12533:7:0;;;;12787:9:::1;12779:38;;;::::0;-1:-1:-1;;;12779:38:0;;12633:2:1;12779:38:0::1;::::0;::::1;12615:21:1::0;12672:2;12652:18;;;12645:30;-1:-1:-1;;;12691:18:1;;;12684:46;12747:18;;12779:38:0::1;12431:340:1::0;12779:38:0::1;36988:10:::2;49007:16;:14;:16::i;:::-;48984:20;:39:::0;49064:23:::2;:21;:23::i;:::-;49034:27;:53:::0;49115:26:::2;:24;:26::i;:::-;49098:14;:43:::0;-1:-1:-1;;;;;49156:21:0;::::2;::::0;49152:303:::2;;49213:15;49220:7;49213:6;:15::i;:::-;-1:-1:-1::0;;;;;49194:16:0;::::2;;::::0;;;:7:::2;:16;::::0;;;;;;;:34;;;;49277:20:::2;::::0;49243:22:::2;:31:::0;;;;;;:54;49338:22:::2;49202:7:::0;49338:13:::2;:22::i;:::-;-1:-1:-1::0;;;;;49312:23:0;::::2;;::::0;;;:14:::2;:23;::::0;;;;;;;:48;;;;49416:27:::2;::::0;49375:29:::2;:38:::0;;;;;;:68;49152:303:::2;37028:1:::3;37019:6;:10;37011:37;;;::::0;-1:-1:-1;;;37011:37:0;;10236:2:1;37011:37:0::3;::::0;::::3;10218:21:1::0;10275:2;10255:18;;;10248:30;10314:16;10294:18;;;10287:44;10348:18;;37011:37:0::3;10034:338:1::0;37011:37:0::3;37074:12;::::0;:24:::3;::::0;37091:6;37074:16:::3;:24::i;:::-;37059:12;:39:::0;37143:10:::3;37133:21;::::0;;;:9:::3;:21;::::0;;;;;:33:::3;::::0;37159:6;37133:25:::3;:33::i;:::-;37119:10;37109:21;::::0;;;:9:::3;:21;::::0;;;;:57;;;;37177:12:::3;::::0;:64:::3;::::0;-1:-1:-1;;;;;37177:12:0;;::::3;::::0;37227:4:::3;37234:6:::0;37177:29:::3;:64::i;:::-;37267:10;37252:26;::::0;;;:14:::3;:26;::::0;;;;;;37281:15:::3;37252:44:::0;;37312:26;::::3;::::0;::::3;::::0;37331:6;17279:25:1;;17267:2;17252:18;;17133:177;43943:292:0;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;44059:12:::1;;44041:15;:30;44019:168;;;::::0;-1:-1:-1;;;44019:168:0;;8480:2:1;44019:168:0::1;::::0;::::1;8462:21:1::0;8519:2;8499:18;;;8492:30;8558:34;8538:18;;;8531:62;8629:34;8609:18;;;8602:62;8701:26;8680:19;;;8673:55;8745:19;;44019:168:0::1;8278:492:1::0;44019:168:0::1;44198:29;44218:8;44198:19;:29::i;:::-;43943:292:::0;:::o;34946:330::-;34993:7;35017:12;;35033:1;35017:17;35013:77;;;-1:-1:-1;35058:20:0;;;34946:330::o;35013:77::-;35120:148;35163:90;35240:12;;35163:72;35230:4;35163:62;35214:10;;35163:46;35194:14;;35163:26;:24;:26::i;:90::-;35120:20;;;:24;:148::i;43312:170::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;43365:45:::1;43391:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;43391:7:::1;43400:9;::::0;43365:12:::1;::::0;-1:-1:-1;;;;;43365:12:0::1;::::0;:45;:25:::1;:45::i;:::-;43426:24;43440:9;;43426:24;;;;17279:25:1::0;;17267:2;17252:18;;17133:177;43426:24:0::1;;;;;;;;43473:1;43461:9;:13:::0;43312:170::o;48780:101::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;48847:14:::1;:26:::0;48780:101::o;39979:150::-;40034:10;40024:21;;;;:9;:21;;;;;;40015:31;;:8;:31::i;:::-;40057:11;:9;:11::i;:::-;40079:18;:16;:18::i;:::-;40108:13;:11;:13::i;43490:107::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;-1:-1:-1;;;;;43567:13:0;;::::1;;::::0;;;:7:::1;:13;::::0;;;;:22;43490:107::o;37354:607::-;15401:1;15997:7;;:19;;15989:63;;;;-1:-1:-1;;;15989:63:0;;16147:2:1;15989:63:0;;;16129:21:1;16186:2;16166:18;;;16159:30;16225:33;16205:18;;;16198:61;16276:18;;15989:63:0;15945:355:1;15989:63:0;15401:1;16130:7;:18;37476:10:::1;49007:16;:14;:16::i;:::-;48984:20;:39:::0;49064:23:::1;:21;:23::i;:::-;49034:27;:53:::0;49115:26:::1;:24;:26::i;:::-;49098:14;:43:::0;-1:-1:-1;;;;;49156:21:0;::::1;::::0;49152:303:::1;;49213:15;49220:7;49213:6;:15::i;:::-;-1:-1:-1::0;;;;;49194:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;49277:20:::1;::::0;49243:22:::1;:31:::0;;;;;;:54;49338:22:::1;49202:7:::0;49338:13:::1;:22::i;:::-;-1:-1:-1::0;;;;;49312:23:0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;;;:48;;;;49416:27:::1;::::0;49375:29:::1;:38:::0;;;;;;:68;49152:303:::1;37516:1:::2;37507:6;:10;37499:37;;;::::0;-1:-1:-1;;;37499:37:0;;10236:2:1;37499:37:0::2;::::0;::::2;10218:21:1::0;10275:2;10255:18;;;10248:30;10314:16;10294:18;;;10287:44;10348:18;;37499:37:0::2;10034:338:1::0;37499:37:0::2;37562:12;::::0;:24:::2;::::0;37579:6;37562:16:::2;:24::i;:::-;37547:12;:39:::0;37631:10:::2;37621:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;37647:6;37621:25:::2;:33::i;:::-;37607:10;37597:21;::::0;;;:9:::2;:21;::::0;;;;;;:57;;;;37704:12:::2;::::0;37686:93;;;;;::::2;::::0;::::2;6355:34:1::0;;;;37746:4:0::2;6405:18:1::0;;;6398:43;6457:18;;;6450:34;;;6500:18;;;6493:34;;;6576:4;6564:17;;6543:19;;;6536:46;6598:19;;;6591:35;;;6642:19;;;6635:35;;;-1:-1:-1;;;;;37704:12:0;;::::2;::::0;37686:39:::2;::::0;6266:19:1;;37686:93:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;37792:12:0::2;::::0;:64:::2;::::0;-1:-1:-1;;;;;;37792:12:0::2;::::0;-1:-1:-1;37822:10:0::2;37842:4;37849:6:::0;37792:29:::2;:64::i;:::-;37882:10;37867:26;::::0;;;:14:::2;:26;::::0;;;;;;37896:15:::2;37867:44:::0;;37927:26;::::2;::::0;::::2;::::0;37946:6;17279:25:1;;17267:2;17252:18;;17133:177;37927:26:0::2;;;;;;;;-1:-1:-1::0;;15357:1:0;16309:7;:22;-1:-1:-1;;;;37354:607:0:o;2809:192::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;-1:-1:-1;;;;;2898:22:0;::::1;2890:73;;;::::0;-1:-1:-1;;;2890:73:0;;9829:2:1;2890:73:0::1;::::0;::::1;9811:21:1::0;9868:2;9848:18;;;9841:30;9907:34;9887:18;;;9880:62;9978:8;9958:18;;;9951:36;10004:19;;2890:73:0::1;9627:402:1::0;2890:73:0::1;2974:19;2984:8;2974:9;:19::i;36219:135::-:0;36281:7;36308:38;36330:15;;36308:17;;:21;;:38;;;;:::i;44814:344::-;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;44953:7:::1;:14;44933:9;:16;:34;44925:104;;;::::0;-1:-1:-1;;;44925:104:0;;11439:2:1;44925:104:0::1;::::0;::::1;11421:21:1::0;11478:2;11458:18;;;11451:30;11517:34;11497:18;;;11490:62;11588:27;11568:18;;;11561:55;11633:19;;44925:104:0::1;11237:421:1::0;44925:104:0::1;45045:6;45040:111;45059:9;:16;45055:1;:20;45040:111;;;45097:42;45114:9;45124:1;45114:12;;;;;;;;:::i;:::-;;;;;;;45128:7;45136:1;45128:10;;;;;;;;:::i;:::-;;;;;;;45097:16;:42::i;:::-;45077:3;::::0;::::1;:::i;:::-;;;45040:111;;42782:522:::0;1982:6;;-1:-1:-1;;;;;1982:6:0;773:10;2129:23;2121:68;;;;-1:-1:-1;;;2121:68:0;;13757:2:1;2121:68:0;;;13739:21:1;;;13776:18;;;13769:30;-1:-1:-1;;;;;;;;;;;13815:18:1;;;13808:62;13887:18;;2121:68:0;13555:356:1;2121:68:0;42862:12:::1;::::0;-1:-1:-1;;;;;42862:12:0::1;42846:113;;;::::0;-1:-1:-1;;;42846:113:0;;14471:2:1;42846:113:0::1;::::0;::::1;14453:21:1::0;14510:2;14490:18;;;14483:30;14549:34;14529:18;;;14522:62;14620:34;14600:18;;;14593:62;14692:3;14671:19;;;14664:32;14713:19;;42846:113:0::1;14269:469:1::0;42846:113:0::1;42978:12;::::0;:17;42970:94:::1;;;::::0;;-1:-1:-1;;;42970:94:0;;15303:2:1;42970:94:0::1;::::0;::::1;15285:21:1::0;15322:18;;;15315:30;;;;15381:34;15361:18;;;15354:62;15452:34;15432:18;;;15425:62;15504:19;;42970:94:0::1;15101:428:1::0;42970:94:0::1;43098:12;::::0;:37:::1;::::0;-1:-1:-1;;;43098:37:0;;43129:4:::1;43098:37;::::0;::::1;5495:74:1::0;43075:20:0::1;::::0;-1:-1:-1;;;;;43098:12:0::1;::::0;:22:::1;::::0;5468:18:1;;43098:37:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43075:60:::0;-1:-1:-1;43150:16:0;;43146:97:::1;;43183:48;43209:7;1982:6:::0;;-1:-1:-1;;;;;1982:6:0;;1909:87;43183:48:::1;43258:38;::::0;17279:25:1;;;43258:38:0::1;::::0;17267:2:1;17252:18;43258:38:0::1;17133:177:1::0;7600:98:0;7658:7;7685:5;7689:1;7685;:5;:::i;:::-;7678:12;7600:98;-1:-1:-1;;;7600:98:0:o;7957:::-;8015:7;8042:5;8046:1;8042;:5;:::i;8356:98::-;8414:7;8441:5;8445:1;8441;:5;:::i;7219:98::-;7277:7;7304:5;7308:1;7304;:5;:::i;27925:211::-;28069:58;;-1:-1:-1;;;;;6873:55:1;;28069:58:0;;;6855:74:1;6945:18;;;6938:34;;;28042:86:0;;28062:5;;28092:23;;6828:18:1;;28069:58:0;;;;-1:-1:-1;;28069:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;28042:19;:86::i;13262:118::-;12533:7;;-1:-1:-1;;;12533:7:0;;;;12787:9;12779:38;;;;-1:-1:-1;;;12779:38:0;;12633:2:1;12779:38:0;;;12615:21:1;12672:2;12652:18;;;12645:30;-1:-1:-1;;;12691:18:1;;;12684:46;12747:18;;12779:38:0;12431:340:1;12779:38:0;13332:4:::1;13322:14:::0;;-1:-1:-1;;;;13322:14:0::1;-1:-1:-1::0;;;13322:14:0::1;::::0;;13352:20:::1;13359:12;773:10:::0;;693:98;13359:12:::1;13352:20;::::0;-1:-1:-1;;;;;5513:55:1;;;5495:74;;5483:2;5468:18;13352:20:0::1;;;;;;;13262:118::o:0;38199:626::-;38270:1;38261:6;:10;38253:40;;;;-1:-1:-1;;;38253:40:0;;13411:2:1;38253:40:0;;;13393:21:1;13450:2;13430:18;;;13423:30;13489:19;13469:18;;;13462:47;13526:18;;38253:40:0;13209:341:1;38253:40:0;38319:12;;:24;;38336:6;38319:16;:24::i;:::-;38304:12;:39;38354:20;38377:23;38381:10;38393:6;38377:3;:23::i;:::-;38445:10;38435:21;;;;:9;:21;;;;;;38354:46;;-1:-1:-1;38435:33:0;;38461:6;38435:25;:33::i;:::-;38421:10;38411:21;;;;:9;:21;;;;;:57;;;;38509:24;:6;38520:12;38509:10;:24::i;:::-;38544:12;;38479:54;;-1:-1:-1;38544:58:0;;-1:-1:-1;;;;;38544:12:0;38570:10;38479:54;38544:25;:58::i;:::-;38618:42;;17279:25:1;;;38628:10:0;;38618:42;;17267:2:1;17252:18;38618:42:0;;;;;;;38675:16;;38671:147;;38713:39;;17279:25:1;;;38727:10:0;;38713:39;;17267:2:1;17252:18;38713:39:0;;;;;;;38779:9;;:27;;38793:12;38779:13;:27::i;:::-;38767:9;:39;38242:583;;38199:626;:::o;13521:120::-;12533:7;;-1:-1:-1;;;12533:7:0;;;;13057:41;;;;-1:-1:-1;;;13057:41:0;;8977:2:1;13057:41:0;;;8959:21:1;9016:2;8996:18;;;8989:30;9055:22;9035:18;;;9028:50;9095:18;;13057:41:0;8775:344:1;13057:41:0;13580:7:::1;:15:::0;;-1:-1:-1;;;;13580:15:0::1;::::0;;13611:22:::1;773:10:::0;13620:12:::1;693:98:::0;3009:173;3084:6;;;-1:-1:-1;;;;;3101:17:0;;;-1:-1:-1;;3101:17:0;;;;;;;3134:40;;3084:6;;;3101:17;3084:6;;3134:40;;3065:16;;3134:40;3054:128;3009:173;:::o;46323:401::-;46469:18;:25;46446:12;:19;:48;46438:125;;;;;-1:-1:-1;;;46438:125:0;;10579:2:1;46438:125:0;;;10561:21:1;10598:18;;;10591:30;;;;10657:34;10637:18;;;10630:62;10728:34;10708:18;;;10701:62;10780:19;;46438:125:0;10377:428:1;46438:125:0;46574:26;;;;:11;;:26;;;;;:::i;:::-;-1:-1:-1;46611:38:0;;;;:17;;:38;;;;;:::i;:::-;;46665:51;46683:12;46697:18;46665:51;;;;;;;:::i;28144:248::-;28315:68;;-1:-1:-1;;;;;5861:15:1;;;28315:68:0;;;5843:34:1;5913:15;;5893:18;;;5886:43;5945:18;;;5938:34;;;28288:96:0;;28308:5;;28338:27;;5755:18:1;;28315:68:0;5580:398:1;28288:96:0;28144:248;;;;:::o;46778:1827::-;46888:1;49007:16;:14;:16::i;:::-;48984:20;:39;49064:23;:21;:23::i;:::-;49034:27;:53;49115:26;:24;:26::i;:::-;49098:14;:43;-1:-1:-1;;;;;49156:21:0;;;49152:303;;49213:15;49220:7;49213:6;:15::i;:::-;-1:-1:-1;;;;;49194:16:0;;;;;;:7;:16;;;;;;;;:34;;;;49277:20;;49243:22;:31;;;;;;:54;49338:22;49202:7;49338:13;:22::i;:::-;-1:-1:-1;;;;;49312:23:0;;;;;;:14;:23;;;;;;;;:48;;;;49416:27;;49375:29;:38;;;;;;:68;49152:303;46907:12;;46903:74:::1;;46936:29;46956:8;46936:19;:29::i;:::-;47012:12;;46993:15;:31;46989:550;;47065:15;::::0;47054:27:::1;::::0;:6;;:10:::1;:27::i;:::-;47041:10;:40:::0;47134:15:::1;::::0;47116:34:::1;::::0;:13;;:17:::1;:34::i;:::-;47096:17;:54:::0;46989:550:::1;;;47203:12;::::0;47183:17:::1;::::0;47203:33:::1;::::0;47220:15:::1;47203:16;:33::i;:::-;47183:53;;47251:16;47270:25;47284:10;;47270:9;:13;;:25;;;;:::i;:::-;47348:15;::::0;47251:44;;-1:-1:-1;47323:41:0::1;::::0;:20:::1;:6:::0;47251:44;47323:10:::1;:20::i;:41::-;47310:10;:54:::0;47419:17:::1;::::0;47379:23:::1;::::0;47405:32:::1;::::0;:9;;:13:::1;:32::i;:::-;47511:15;::::0;47379:58;;-1:-1:-1;47472:55:0::1;::::0;:34:::1;:13:::0;47379:58;47472:17:::1;:34::i;:55::-;47452:17;:75:::0;-1:-1:-1;;;46989:550:0::1;47914:12;::::0;:37:::1;::::0;-1:-1:-1;;;47914:37:0;;47945:4:::1;47914:37;::::0;::::1;5495:74:1::0;47899:12:0::1;::::0;-1:-1:-1;;;;;47914:12:0::1;::::0;:22:::1;::::0;5468:18:1;;47914:37:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47899:52;;47984:28;47996:15;;47984:7;:11;;:28;;;;:::i;:::-;47970:10;;:42;;:140;;;-1:-1:-1::0;48033:12:0::1;::::0;48017::::1;::::0;-1:-1:-1;;;;;48017:12:0;;::::1;48033::::0;::::1;48017:28;:92:::0;::::1;;;;48063:46;48096:12;;48063:28;48075:15;;48063:7;:11;;:28;;;;:::i;:46::-;48049:10;;:60;;48017:92;47962:177;;;::::0;-1:-1:-1;;;47962:177:0;;14118:2:1;47962:177:0::1;::::0;::::1;14100:21:1::0;14157:2;14137:18;;;14130:30;14196:26;14176:18;;;14169:54;14240:18;;47962:177:0::1;13916:348:1::0;47962:177:0::1;48164:12;::::0;-1:-1:-1;;;;;48164:12:0::1;48156:35:::0;48152:243:::1;;48230:12;::::0;:37:::1;::::0;-1:-1:-1;;;48230:37:0;;48261:4:::1;48230:37;::::0;::::1;5495:74:1::0;48208:19:0::1;::::0;-1:-1:-1;;;;;48230:12:0::1;::::0;:22:::1;::::0;5468:18:1;;48230:37:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;48208:59;;48311:35;48330:15;;48311:14;:18;;:35;;;;:::i;:::-;48290:17;;:56;;48282:101;;;::::0;-1:-1:-1;;;48282:101:0;;12272:2:1;48282:101:0::1;::::0;::::1;12254:21:1::0;;;12291:18;;;12284:30;12350:34;12330:18;;;12323:62;12402:18;;48282:101:0::1;12070:356:1::0;48282:101:0::1;48193:202;48152:243;48424:15;48407:14;:32:::0;;;48485:15:::1;::::0;48465:36:::1;::::0;48424:15;48465:19:::1;:36::i;:::-;48450:12;:51:::0;48514:10:::1;:8;:10::i;:::-;48542:55;::::0;;17517:25:1;;;17573:2;17558:18;;17551:34;;;17601:18;;;17594:34;;;48542:55:0::1;::::0;17505:2:1;17490:18;48542:55:0::1;;;;;;;46892:1713;46778:1827:::0;;;;:::o;3629:106::-;3687:7;3718:1;3714;:5;:13;;3726:1;3714:13;;;-1:-1:-1;3722:1:0;;3629:106;-1:-1:-1;3629:106:0:o;46160:155::-;46226:15;:26;;;46268:39;;17279:25:1;;;46268:39:0;;17267:2:1;17252:18;46268:39:0;17133:177:1;30498:716:0;30922:23;30948:69;30976:4;30948:69;;;;;;;;;;;;;;;;;30956:5;-1:-1:-1;;;;;30948:27:0;;;:69;;;;;:::i;:::-;31032:17;;30922:95;;-1:-1:-1;31032:21:0;31028:179;;31129:10;31118:30;;;;;;;;;;;;:::i;:::-;31110:85;;;;-1:-1:-1;;;31110:85:0;;15736:2:1;31110:85:0;;;15718:21:1;15775:2;15755:18;;;15748:30;15814:34;15794:18;;;15787:62;15885:12;15865:18;;;15858:40;15915:19;;31110:85:0;15534:406:1;22767:229:0;22904:12;22936:52;22958:6;22966:4;22972:1;22975:12;22936:21;:52::i;:::-;22929:59;22767:229;-1:-1:-1;;;;22767:229:0:o;23887:510::-;24057:12;24115:5;24090:21;:30;;24082:81;;;;-1:-1:-1;;;24082:81:0;;11865:2:1;24082:81:0;;;11847:21:1;11904:2;11884:18;;;11877:30;11943:34;11923:18;;;11916:62;12014:8;11994:18;;;11987:36;12040:19;;24082:81:0;11663:402:1;24082:81:0;20284:20;;24174:60;;;;-1:-1:-1;;;24174:60:0;;14945:2:1;24174:60:0;;;14927:21:1;14984:2;14964:18;;;14957:30;15023:31;15003:18;;;14996:59;15072:18;;24174:60:0;14743:353:1;24174:60:0;24248:12;24262:23;24289:6;-1:-1:-1;;;;;24289:11:0;24308:5;24315:4;24289:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24247:73;;;;24338:51;24355:7;24364:10;24376:12;24338:16;:51::i;:::-;24331:58;23887:510;-1:-1:-1;;;;;;;23887:510:0:o;26573:712::-;26723:12;26752:7;26748:530;;;-1:-1:-1;26783:10:0;26776:17;;26748:530;26897:17;;:21;26893:374;;27095:10;27089:17;27156:15;27143:10;27139:2;27135:19;27128:44;26893:374;27238:12;27231:20;;-1:-1:-1;;;27231:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:196:1;82:20;;-1:-1:-1;;;;;131:54:1;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:673::-;269:5;322:3;315:4;307:6;303:17;299:27;289:55;;340:1;337;330:12;289:55;376:6;363:20;402:4;426:60;442:43;482:2;442:43;:::i;:::-;426:60;:::i;:::-;508:3;532:2;527:3;520:15;560:2;555:3;551:12;544:19;;595:2;587:6;583:15;647:3;642:2;636;633:1;629:10;621:6;617:23;613:32;610:41;607:61;;;664:1;661;654:12;607:61;686:1;696:163;710:2;707:1;704:9;696:163;;;767:17;;755:30;;805:12;;;;837;;;;728:1;721:9;696:163;;;-1:-1:-1;877:5:1;;215:673;-1:-1:-1;;;;;;;215:673:1:o;893:186::-;952:6;1005:2;993:9;984:7;980:23;976:32;973:52;;;1021:1;1018;1011:12;973:52;1044:29;1063:9;1044:29;:::i;1084:254::-;1152:6;1160;1213:2;1201:9;1192:7;1188:23;1184:32;1181:52;;;1229:1;1226;1219:12;1181:52;1252:29;1271:9;1252:29;:::i;:::-;1242:39;1328:2;1313:18;;;;1300:32;;-1:-1:-1;;;1084:254:1:o;1343:1157::-;1461:6;1469;1522:2;1510:9;1501:7;1497:23;1493:32;1490:52;;;1538:1;1535;1528:12;1490:52;1578:9;1565:23;1607:18;1648:2;1640:6;1637:14;1634:34;;;1664:1;1661;1654:12;1634:34;1702:6;1691:9;1687:22;1677:32;;1747:7;1740:4;1736:2;1732:13;1728:27;1718:55;;1769:1;1766;1759:12;1718:55;1805:2;1792:16;1827:4;1851:60;1867:43;1907:2;1867:43;:::i;1851:60::-;1933:3;1957:2;1952:3;1945:15;1985:2;1980:3;1976:12;1969:19;;2016:2;2012;2008:11;2064:7;2059:2;2053;2050:1;2046:10;2042:2;2038:19;2034:28;2031:41;2028:61;;;2085:1;2082;2075:12;2028:61;2107:1;2098:10;;2117:169;2131:2;2128:1;2125:9;2117:169;;;2188:23;2207:3;2188:23;:::i;:::-;2176:36;;2149:1;2142:9;;;;;2232:12;;;;2264;;2117:169;;;-1:-1:-1;2305:5:1;-1:-1:-1;;2348:18:1;;2335:32;;-1:-1:-1;;2379:16:1;;;2376:36;;;2408:1;2405;2398:12;2376:36;;2431:63;2486:7;2475:8;2464:9;2460:24;2431:63;:::i;:::-;2421:73;;;1343:1157;;;;;:::o;2505:595::-;2623:6;2631;2684:2;2672:9;2663:7;2659:23;2655:32;2652:52;;;2700:1;2697;2690:12;2652:52;2740:9;2727:23;2769:18;2810:2;2802:6;2799:14;2796:34;;;2826:1;2823;2816:12;2796:34;2849:61;2902:7;2893:6;2882:9;2878:22;2849:61;:::i;:::-;2839:71;;2963:2;2952:9;2948:18;2935:32;2919:48;;2992:2;2982:8;2979:16;2976:36;;;3008:1;3005;2998:12;3105:277;3172:6;3225:2;3213:9;3204:7;3200:23;3196:32;3193:52;;;3241:1;3238;3231:12;3193:52;3273:9;3267:16;3326:5;3319:13;3312:21;3305:5;3302:32;3292:60;;3348:1;3345;3338:12;3387:180;3446:6;3499:2;3487:9;3478:7;3474:23;3470:32;3467:52;;;3515:1;3512;3505:12;3467:52;-1:-1:-1;3538:23:1;;3387:180;-1:-1:-1;3387:180:1:o;3572:184::-;3642:6;3695:2;3683:9;3674:7;3670:23;3666:32;3663:52;;;3711:1;3708;3701:12;3663:52;-1:-1:-1;3734:16:1;;3572:184;-1:-1:-1;3572:184:1:o;3761:316::-;3838:6;3846;3854;3907:2;3895:9;3886:7;3882:23;3878:32;3875:52;;;3923:1;3920;3913:12;3875:52;-1:-1:-1;;3946:23:1;;;4016:2;4001:18;;3988:32;;-1:-1:-1;4067:2:1;4052:18;;;4039:32;;3761:316;-1:-1:-1;3761:316:1:o;4082:543::-;4175:6;4183;4191;4199;4207;4260:3;4248:9;4239:7;4235:23;4231:33;4228:53;;;4277:1;4274;4267:12;4228:53;4313:9;4300:23;4290:33;;4370:2;4359:9;4355:18;4342:32;4332:42;;4424:2;4413:9;4409:18;4396:32;4468:4;4461:5;4457:16;4450:5;4447:27;4437:55;;4488:1;4485;4478:12;4437:55;4082:543;;;;-1:-1:-1;4511:5:1;;4563:2;4548:18;;4535:32;;-1:-1:-1;4614:3:1;4599:19;4586:33;;4082:543;-1:-1:-1;;4082:543:1:o;4630:435::-;4683:3;4721:5;4715:12;4748:6;4743:3;4736:19;4774:4;4803:2;4798:3;4794:12;4787:19;;4840:2;4833:5;4829:14;4861:1;4871:169;4885:6;4882:1;4879:13;4871:169;;;4946:13;;4934:26;;4980:12;;;;5015:15;;;;4907:1;4900:9;4871:169;;;-1:-1:-1;5056:3:1;;4630:435;-1:-1:-1;;;;;4630:435:1:o;5070:274::-;5199:3;5237:6;5231:13;5253:53;5299:6;5294:3;5287:4;5279:6;5275:17;5253:53;:::i;:::-;5322:16;;;;;5070:274;-1:-1:-1;;5070:274:1:o;6983:465::-;7240:2;7229:9;7222:21;7203:4;7266:56;7318:2;7307:9;7303:18;7295:6;7266:56;:::i;:::-;7370:9;7362:6;7358:22;7353:2;7342:9;7338:18;7331:50;7398:44;7435:6;7427;7398:44;:::i;:::-;7390:52;6983:465;-1:-1:-1;;;;;6983:465:1:o;7890:383::-;8039:2;8028:9;8021:21;8002:4;8071:6;8065:13;8114:6;8109:2;8098:9;8094:18;8087:34;8130:66;8189:6;8184:2;8173:9;8169:18;8164:2;8156:6;8152:15;8130:66;:::i;:::-;8257:2;8236:15;-1:-1:-1;;8232:29:1;8217:45;;;;8264:2;8213:54;;7890:383;-1:-1:-1;;7890:383:1:o;17639:275::-;17710:2;17704:9;17775:2;17756:13;;-1:-1:-1;;17752:27:1;17740:40;;17810:18;17795:34;;17831:22;;;17792:62;17789:88;;;17857:18;;:::i;:::-;17893:2;17886:22;17639:275;;-1:-1:-1;17639:275:1:o;17919:183::-;17979:4;18012:18;18004:6;18001:30;17998:56;;;18034:18;;:::i;:::-;-1:-1:-1;18079:1:1;18075:14;18091:4;18071:25;;17919:183::o;18107:128::-;18147:3;18178:1;18174:6;18171:1;18168:13;18165:39;;;18184:18;;:::i;:::-;-1:-1:-1;18220:9:1;;18107:128::o;18240:274::-;18280:1;18306;18296:189;;-1:-1:-1;;;18338:1:1;18331:88;18442:4;18439:1;18432:15;18470:4;18467:1;18460:15;18296:189;-1:-1:-1;18499:9:1;;18240:274::o;18519:168::-;18559:7;18625:1;18621;18617:6;18613:14;18610:1;18607:21;18602:1;18595:9;18588:17;18584:45;18581:71;;;18632:18;;:::i;:::-;-1:-1:-1;18672:9:1;;18519:168::o;18692:125::-;18732:4;18760:1;18757;18754:8;18751:34;;;18765:18;;:::i;:::-;-1:-1:-1;18802:9:1;;18692:125::o;18822:258::-;18894:1;18904:113;18918:6;18915:1;18912:13;18904:113;;;18994:11;;;18988:18;18975:11;;;18968:39;18940:2;18933:10;18904:113;;;19035:6;19032:1;19029:13;19026:48;;;-1:-1:-1;;19070:1:1;19052:16;;19045:27;18822:258::o;19085:135::-;19124:3;-1:-1:-1;;19145:17:1;;19142:43;;;19165:18;;:::i;:::-;-1:-1:-1;19212:1:1;19201:13;;19085:135::o;19225:184::-;-1:-1:-1;;;19274:1:1;19267:88;19374:4;19371:1;19364:15;19398:4;19395:1;19388:15;19414:184;-1:-1:-1;;;19463:1:1;19456:88;19563:4;19560:1;19553:15;19587:4;19584:1;19577:15;19603:184;-1:-1:-1;;;19652:1:1;19645:88;19752:4;19749:1;19742:15;19776:4;19773:1;19766:15

Swarm Source

ipfs://300e2fe0d7eae2da2af82be509a9e7bdd8208815b07717b1b56d6ede9c833bc5
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.