Contract 0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c14

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x84d3c835ad364090ea3d83f3a83f8664f99c07430495a78b37e2ff0e2db18d9773655532021-05-13 4:56:0939 days 23 hrs ago0x0abceea992c41e60a83b40aaa935558235408fb5 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.00926172
0x147b704eb8c23a5f610e71bb10deddccf73f46e5021fa87021d3e57221ab848573296392021-05-11 20:26:1141 days 8 hrs ago0xcf3a2101871ab0ac82ba464ba5c8c4975bcf1d9d IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.010234587
0x83ff716d1822b8e676dbb80cde648b7dd365d9730bb744051f5015b3cf110eb172928312021-05-10 8:44:4742 days 20 hrs ago0xd0b0fd6ea26b83864b244bc32c931407f7d89ccc IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.0047451267
0xdc35c97d0909352e875bce862aa8d88ad4119d1225f4e9e9c5360b1b3feddc2472746922021-05-09 17:03:0943 days 11 hrs ago0x584d242f929d52f61c10d5e008adde396c6d210e IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.00929838
0x14840d6769c1133b5e33f421156a83a65519bf7b3602ecef60ef7ec0a47a579d72650232021-05-09 8:31:4643 days 20 hrs ago0xc71d239309941ee7aa63bb17ce703613445ce27b IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x8d622b067878bed0116fbbdc49cf34edd62d3dc0f9c197b62407013b5cb2d29972556252021-05-09 0:17:4444 days 4 hrs ago0xdda5c4abe7c38f707f8c07f71939e800ad8ef86c IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.005579028
0x2f8a08fc594e16427cbae30ee8d7e971efeac41695b2563ff421375624c19f7472543742021-05-08 23:13:2644 days 5 hrs ago0xcf3a2101871ab0ac82ba464ba5c8c4975bcf1d9d IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.001791
0xa7e2de0b97e29be725b10a169da035787a606238cabf207e216c917ad2f2dfb272543632021-05-08 23:12:5344 days 5 hrs ago0xcf3a2101871ab0ac82ba464ba5c8c4975bcf1d9d IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x4909699af9c70be5ec1de557a809bdf72b4c413c51e21e16485e4198742f165172471202021-05-08 16:50:1744 days 12 hrs ago0x2de55dd0fb27b263c1460f04e4d52152c1ce84c1 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x220bbf46626a27587d7365d45d89b61299626b87cd84a32e1abb0ed3c39a2ca472414112021-05-08 11:48:0844 days 17 hrs ago0x61e432f0ab3b9c0845178eedcd7d74af157ecf6e IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x102343102672b68f9517e2f317cac6059b974360515b966d9b3d0adff686b4f172287922021-05-08 1:07:2745 days 3 hrs ago0x048ecae6329e42379b5181fec899225384256291 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x96cbabacad2cbd6934894113091a0cff1161fa10fbf6dfe4a33dc3a1cfc93d0072278632021-05-08 0:20:5945 days 4 hrs ago0x021a36a9f5148cc79af3058c268838b850717154 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0xccc1340b88e0be7740b0ebeb30042b3ec50c66f2f0ec80acdbed496413989c8872259152021-05-07 22:41:2245 days 6 hrs ago0xe2f4d66bb93c4846ca801c123b8b440e0d757349 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x73c1b9fcde693f815f3e64a2f6cd8ed5cf621af6c691ef4890339d82bc3cb0ae72246952021-05-07 21:38:3845 days 7 hrs ago0x7748381bd6b60425d616defe176188933e35ce7e IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652145
0x0be72c3456f4775846b063f8247b25f9c1109b170496b6682c717c3f2907839572235022021-05-07 20:36:4245 days 8 hrs ago0x0786b7f69170281f69e5b67fffb5802cbee55322 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.00464919
0x802abd1047c99dcc790b758894e47c3b1508fc996f7f4abb0d3494b91bc4ac5d72234432021-05-07 20:33:4545 days 8 hrs ago0xc4784bb8ee943f408a876fac881ce4ef1100409a IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x1348d5f0c1b27692095be3968baf7195bdfd527d52dd81da2ec9956b49d31f7872223292021-05-07 19:38:0045 days 9 hrs ago0xaec3ff7f6e33ffcd469e61a71351cc0439594d34 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652025
0xf651f879e54f53b70d5e16387167c09898c0f148e564d229515695c09836785d72218682021-05-07 19:14:5245 days 9 hrs ago0xf7da7b7c3e7158098ec0fd4c04443bb562d45a46 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x645c16eccf7a046a47b75ffb51eb6553aaad53716174efb552226a5dc0aae9be72217182021-05-07 19:07:2245 days 9 hrs ago0x4664f068b13850e4362c9724679b8ad5562ffdc5 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x4174d274bd369dfd83b2649e7d08ae065c9147aaac1ae4f039c2be414cb7797572214932021-05-07 18:56:0745 days 9 hrs ago0x267c2d469820013f455d98eb2a5f4508d2e8ddd8 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.00479776
0xa318de58aa55105742e7554569d72fce4d159d92d01dbbeb0c95bd46cf0e620772212972021-05-07 18:46:1945 days 10 hrs ago0xf843607638fb6b0b281ff338b1fbc4f3336c7c9b IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0x2fd53d4d9fbc309d022e0c067011b5fccf85b170f759ca2ae7fe1d0d15a31d4172211242021-05-07 18:37:4045 days 10 hrs ago0x970bdecc22148f85e2a2580ce071542ed6f07d08 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.00479777
0x2c53d4c0c8c41217080e0128ae1860329a3d4d906d3c5f1634a0816948d3d51b72210582021-05-07 18:34:2245 days 10 hrs ago0x80b53eb6d63067d4bbfa725b667f813bcde7a6dd IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0xc0c7702d0310cfe97b540062cfb06ec39e6f87b8b0fd57a12bb1502fa30411d972208232021-05-07 18:22:3745 days 10 hrs ago0x4ec69ad97e6f53907409f0cc7959ee563d454c68 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.004652085
0xd2cbeccd67250493ada5a68839e1d3730fe01feed56b8f36577ae773a76c587472208132021-05-07 18:22:0745 days 10 hrs ago0xe65dc9d9b24905f233e067dbd6336df6ca8549e6 IN  0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c140 BNB0.00463086
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0xe66398748b59b34d3b53df60be96f880f871e2fcfba0ee863d0e821a9246783c68210452021-04-23 17:21:0359 days 11 hrs ago 0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c14  Contract Creation0 BNB
0xe66398748b59b34d3b53df60be96f880f871e2fcfba0ee863d0e821a9246783c68210452021-04-23 17:21:0359 days 11 hrs ago 0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c14  Contract Creation0 BNB
0xe66398748b59b34d3b53df60be96f880f871e2fcfba0ee863d0e821a9246783c68210452021-04-23 17:21:0359 days 11 hrs ago 0x77b5f0b64c80e148ef0a5cc3d08a3f5abe301c14  Contract Creation0 BNB
0xe66398748b59b34d3b53df60be96f880f871e2fcfba0ee863d0e821a9246783c68210452021-04-23 17:21:0359 days 11 hrs ago 0xdf7fbfda20d09973d003a84d8ce441ff4196e667  Contract Creation0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SuperNova

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-04-23
*/

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

// File: @openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.6.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/Address.sol

pragma solidity ^0.6.2;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.6.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 SafeMath for uint256;
    using Address for address;

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

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

    /**
     * @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'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity ^0.6.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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

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


// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol

pragma solidity ^0.6.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].
 */
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 () internal {
        _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: contracts/IStaking.sol

/*
Staking interface
EIP-900 staking interface
https://github.com/gysr-io/core
h/t https://github.com/ethereum/EIPs/blob/master/EIPS/eip-900.md
*/

pragma solidity ^0.6.12;

interface IStaking {
    // events
    event Staked(
        address indexed user,
        uint256 amount,
        uint256 total,
        bytes data
    );
    event Unstaked(
        address indexed user,
        uint256 amount,
        uint256 total,
        bytes data
    );

    /**
     * @notice stakes a certain amount of tokens, transferring this amount from
     the user to the contract
     * @param amount number of tokens to stake
     */
    function stake(uint256 amount, bytes calldata) external;

    /**
     * @notice stakes a certain amount of tokens for an address, transfering this
     amount from the caller to the contract, on behalf of the specified address
     * @param user beneficiary address
     * @param amount number of tokens to stake
     */
    function stakeFor(
        address user,
        uint256 amount,
        bytes calldata
    ) external;

    /**
     * @notice unstakes a certain amount of tokens, returning these tokens
     to the user
     * @param amount number of tokens to unstake
     */
    function unstake(uint256 amount, bytes calldata) external;

    /**
     * @param addr the address of interest
     * @return the current total of tokens staked for an address
     */
    function totalStakedFor(address addr) external view returns (uint256);

    /**
     * @return the current total amount of tokens staked by all users
     */
    function totalStaked() external view returns (uint256);

    /**
     * @return the staking token for this staking contract
     */
    function token() external view returns (address);

    /**
     * @return true if the staking contract support history
     */
    function supportsHistory() external pure returns (bool);
}


// File: contracts/ISuperNova.sol


/*
Supernova interface
This defines the core SuperNova contract interface as an extension to the
standard IStaking interface
*/

pragma solidity ^0.6.12;

/**
 * @title SuperNova interface
 */
abstract contract ISuperNova is IStaking, Ownable {
    // events
    event RewardsDistributed(address indexed user, uint256 amount);
    event RewardsFunded(
        uint256 amount,
        uint256 duration,
        uint256 start,
        uint256 total
    );
    event RewardsUnlocked(uint256 amount, uint256 total);
    event RewardsExpired(uint256 amount, uint256 duration, uint256 start);
    event PolarSpent(address indexed user, uint256 amount);
    event PolarWithdrawn(uint256 amount);

    // IStaking
    /**
     * @notice no support for history
     * @return false
     */
    function supportsHistory() external override pure returns (bool) {
        return false;
    }

    // ISuperNova
    /**
     * @return staking token for this SuperNova
     */
    function stakingToken() external virtual view returns (address);

    /**
     * @return reward token for this SuperNova
     */
    function rewardToken() external virtual view returns (address);

    /**
     * @notice fund SuperNova by locking up reward tokens for distribution
     * @param amount number of reward tokens to lock up as funding
     * @param duration period (seconds) over which funding will be unlocked
     */
    function fund(uint256 amount, uint256 duration) external virtual;

    /**
     * @notice fund SuperNova by locking up reward tokens for future distribution
     * @param amount number of reward tokens to lock up as funding
     * @param duration period (seconds) over which funding will be unlocked
     * @param start time (seconds) at which funding begins to unlock
     */
    function fund(
        uint256 amount,
        uint256 duration,
        uint256 start
    ) external virtual;

    /**
     * @notice withdraw POLAR tokens applied during unstaking
     * @param amount number of POLAR to withdraw
     */
    function withdraw(uint256 amount) external virtual;

    /**
     * @notice unstake while applying POLAR token for boosted rewards
     * @param amount number of tokens to unstake
     * @param polar number of POLAR tokens to apply for boost
     */
    function unstake(
        uint256 amount,
        uint256 polar,
        bytes calldata
    ) external virtual;

    /**
     * @notice update accounting, unlock tokens, etc.
     */
    function update() external virtual;

    /**
     * @notice clean SuperNova, expire old fundings, etc.
     */
    function clean() external virtual;
}


// File: contracts/SuperNovaPool.sol


/*
SuperNova token pool
Simple contract to implement token pool of arbitrary ERC20 token.
This is owned and used by a parent SuperNova
*/

pragma solidity ^0.6.12;

contract SuperNovaPool is Ownable {
    using SafeERC20 for IERC20;

    IERC20 public token;

    constructor(address token_) public {
        token = IERC20(token_);
    }

    function balance() public view returns (uint256) {
        return token.balanceOf(address(this));
    }

    function transfer(address to, uint256 value) external onlyOwner {
        token.safeTransfer(to, value);
    }
}

// File: contracts/MathUtils.sol

/*
Math utilities
This library implements various logarithmic math utilies which support
other contracts and specifically the GYSR multiplier calculation
https://github.com/gysr-io/core
h/t https://github.com/abdk-consulting/abdk-libraries-solidity
*/

pragma solidity ^0.6.12;

library MathUtils {
    /**
     * Calculate binary logarithm of x.  Revert if x <= 0.
     *
     * @param x signed 64.64-bit fixed point number
     * @return signed 64.64-bit fixed point number
     */
    function logbase2(int128 x) internal pure returns (int128) {
        require(x > 0);

        int256 msb = 0;
        int256 xc = x;
        if (xc >= 0x10000000000000000) {
            xc >>= 64;
            msb += 64;
        }
        if (xc >= 0x100000000) {
            xc >>= 32;
            msb += 32;
        }
        if (xc >= 0x10000) {
            xc >>= 16;
            msb += 16;
        }
        if (xc >= 0x100) {
            xc >>= 8;
            msb += 8;
        }
        if (xc >= 0x10) {
            xc >>= 4;
            msb += 4;
        }
        if (xc >= 0x4) {
            xc >>= 2;
            msb += 2;
        }
        if (xc >= 0x2) msb += 1; // No need to shift xc anymore

        int256 result = (msb - 64) << 64;
        uint256 ux = uint256(x) << (127 - msb);
        for (int256 bit = 0x8000000000000000; bit > 0; bit >>= 1) {
            ux *= ux;
            uint256 b = ux >> 255;
            ux >>= 127 + b;
            result += bit * int256(b);
        }

        return int128(result);
    }

    /**
     * @notice calculate natural logarithm of x
     * @dev magic constant comes from ln(2) * 2^128 -> hex
     * @param x signed 64.64-bit fixed point number, require x > 0
     * @return signed 64.64-bit fixed point number
     */
    function ln(int128 x) internal pure returns (int128) {
        require(x > 0);

        return
            int128(
                (uint256(logbase2(x)) * 0xB17217F7D1CF79ABC9E3B39803F2F6AF) >>
                    128
            );
    }

    /**
     * @notice calculate logarithm base 10 of x
     * @dev magic constant comes from log10(2) * 2^128 -> hex
     * @param x signed 64.64-bit fixed point number, require x > 0
     * @return signed 64.64-bit fixed point number
     */
    function logbase10(int128 x) internal pure returns (int128) {
        require(x > 0);

        return
            int128(
                (uint256(logbase2(x)) * 0x4d104d427de7fce20a6e420e02236748) >>
                    128
            );
    }

    // wrapper functions to allow testing
    function testlogbase2(int128 x) public pure returns (int128) {
        return logbase2(x);
    }

    function testlogbase10(int128 x) public pure returns (int128) {
        return logbase10(x);
    }
}


// File: contracts/Geyser.sol

/*
SuperNova
This implements the core SuperNova contract, which allows for generalized
staking, yield farming, and token distribution. This also implements
the POLAR spending mechanic for boosted reward distribution.
*/

pragma solidity ^0.6.12;

/**
 * @title SuperNova
 */
contract SuperNova is ISuperNova, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using MathUtils for int128;

    // single stake by user
    struct Stake {
        uint256 shares;
        uint256 timestamp;
    }

    // summary of total user stake/shares
    struct User {
        uint256 shares;
        uint256 shareSeconds;
        uint256 lastUpdated;
    }

    // single funding/reward schedule
    struct Funding {
        uint256 amount;
        uint256 shares;
        uint256 unlocked;
        uint256 lastUpdated;
        uint256 start;
        uint256 end;
        uint256 duration;
    }

    // constants
    uint256 public constant BONUS_DECIMALS = 18;
    uint256 public constant INITIAL_SHARES_PER_TOKEN = 10**6;
    uint256 public constant MAX_ACTIVE_FUNDINGS = 16;

    // token pool fields
    SuperNovaPool private immutable _stakingPool;
    SuperNovaPool private immutable _unlockedPool;
    SuperNovaPool private immutable _lockedPool;
    Funding[] public fundings;

    // user staking fields
    mapping(address => User) public userTotals;
    mapping(address => Stake[]) public userStakes;

    // time bonus fields
    uint256 public immutable bonusMin;
    uint256 public immutable bonusMax;
    uint256 public immutable bonusPeriod;

    // global state fields
    uint256 public totalLockedShares;
    uint256 public totalStakingShares;
    uint256 public totalRewards;
    uint256 public totalPolarRewards;
    uint256 public totalStakingShareSeconds;
    uint256 public lastUpdated;

    // polar fields
    IERC20 private immutable _polar;

    /**
     * @param stakingToken_ the token that will be staked
     * @param rewardToken_ the token distributed to users as they unstake
     * @param bonusMin_ initial time bonus
     * @param bonusMax_ maximum time bonus
     * @param bonusPeriod_ period (in seconds) over which time bonus grows to max
     * @param polar_ address for Polar token
     */
    constructor(
        address stakingToken_,
        address rewardToken_,
        uint256 bonusMin_,
        uint256 bonusMax_,
        uint256 bonusPeriod_,
        address polar_
    ) public {
        require(
            bonusMin_ <= bonusMax_,
            "SuperNova: initial time bonus greater than max"
        );

        _stakingPool = new SuperNovaPool(stakingToken_);
        _unlockedPool = new SuperNovaPool(rewardToken_);
        _lockedPool = new SuperNovaPool(rewardToken_);

        bonusMin = bonusMin_;
        bonusMax = bonusMax_;
        bonusPeriod = bonusPeriod_;

        _polar = IERC20(polar_);

        lastUpdated = block.timestamp;
    }

    // IStaking

    /**
     * @inheritdoc IStaking
     */
    function stake(uint256 amount, bytes calldata) external override {
        _stake(msg.sender, msg.sender, amount);
    }

    /**
     * @inheritdoc IStaking
     */
    function stakeFor(
        address user,
        uint256 amount,
        bytes calldata
    ) external override {
        _stake(msg.sender, user, amount);
    }

    /**
     * @inheritdoc IStaking
     */
    function unstake(uint256 amount, bytes calldata) external override {
        _unstake(amount, 0);
    }

    /**
     * @inheritdoc IStaking
     */
    function totalStakedFor(address addr)
        public
        override
        view
        returns (uint256)
    {
        if (totalStakingShares == 0) {
            return 0;
        }
        return
            totalStaked().mul(userTotals[addr].shares).div(totalStakingShares);
    }

    /**
     * @inheritdoc IStaking
     */
    function totalStaked() public override view returns (uint256) {
        return _stakingPool.balance();
    }

    /**
     * @inheritdoc IStaking
     * @dev redundant with stakingToken() in order to implement IStaking (EIP-900)
     */
    function token() external override view returns (address) {
        return address(_stakingPool.token());
    }

    // ISuperNova

    /**
     * @inheritdoc ISuperNova
     */
    function stakingToken() public override view returns (address) {
        return address(_stakingPool.token());
    }

    /**
     * @inheritdoc ISuperNova
     */
    function rewardToken() public override view returns (address) {
        return address(_unlockedPool.token());
    }

    /**
     * @inheritdoc ISuperNova
     */
    function fund(uint256 amount, uint256 duration) public override {
        fund(amount, duration, block.timestamp);
    }

    /**
     * @inheritdoc ISuperNova
     */
    function fund(
        uint256 amount,
        uint256 duration,
        uint256 start
    ) public override onlyOwner {
        // validate
        require(amount > 0, "SuperNova: funding amount is zero");
        require(start >= block.timestamp, "SuperNova: funding start is past");
        require(
            fundings.length < MAX_ACTIVE_FUNDINGS,
            "SuperNova: exceeds max active funding schedules"
        );

        // update bookkeeping
        _update(msg.sender);

        // mint shares at current rate
        uint256 lockedTokens = totalLocked();
        uint256 mintedLockedShares = (lockedTokens > 0)
            ? totalLockedShares.mul(amount).div(lockedTokens)
            : amount.mul(INITIAL_SHARES_PER_TOKEN);

        totalLockedShares = totalLockedShares.add(mintedLockedShares);

        // create new funding
        fundings.push(
            Funding({
                amount: amount,
                shares: mintedLockedShares,
                unlocked: 0,
                lastUpdated: start,
                start: start,
                end: start.add(duration),
                duration: duration
            })
        );

        // do transfer of funding
        _lockedPool.token().safeTransferFrom(
            msg.sender,
            address(_lockedPool),
            amount
        );
        emit RewardsFunded(amount, duration, start, totalLocked());
    }

    /**
     * @inheritdoc ISuperNova
     */
    function withdraw(uint256 amount) external override onlyOwner {
        require(amount > 0, "SuperNova: withdraw amount is zero");
        require(
            amount <= _polar.balanceOf(address(this)),
            "SuperNova: withdraw amount exceeds balance"
        );
        // do transfer
        //Burn Half tokens and half transfer to owner address
        uint256 burnedToken = amount.div(2);
        _polar.safeTransfer(address(1), burnedToken);
        _polar.safeTransfer(msg.sender, burnedToken);

        emit PolarWithdrawn(amount);
    }

    /**
     * @inheritdoc ISuperNova
     */
    function unstake(
        uint256 amount,
        uint256 polar,
        bytes calldata
    ) external override {
        _unstake(amount, polar);
    }

    /**
     * @inheritdoc ISuperNova
     */
    function update() external override nonReentrant {
        _update(msg.sender);
    }

    /**
     * @inheritdoc ISuperNova
     */
    function clean() external override onlyOwner {
        // update bookkeeping
        _update(msg.sender);

        // check for stale funding schedules to expire
        uint256 removed = 0;
        uint256 originalSize = fundings.length;
        for (uint256 i = 0; i < originalSize; i++) {
            Funding storage funding = fundings[i.sub(removed)];
            uint256 idx = i.sub(removed);

            if (_unlockable(idx) == 0 && block.timestamp >= funding.end) {
                emit RewardsExpired(
                    funding.amount,
                    funding.duration,
                    funding.start
                );

                // remove at idx by copying last element here, then popping off last
                // (we don't care about order)
                fundings[idx] = fundings[fundings.length.sub(1)];
                fundings.pop();
                removed = removed.add(1);
            }
        }
    }

    // SuperNova

    /**
     * @dev internal implementation of staking methods
     * @param staker address to do deposit of staking tokens
     * @param beneficiary address to gain credit for this stake operation
     * @param amount number of staking tokens to deposit
     */
    function _stake(
        address staker,
        address beneficiary,
        uint256 amount
    ) private nonReentrant {
        // validate
        require(amount > 0, "SuperNova: stake amount is zero");
        require(
            beneficiary != address(0),
            "Supernova: beneficiary is zero address"
        );

        // mint staking shares at current rate
        uint256 mintedStakingShares = (totalStakingShares > 0)
            ? totalStakingShares.mul(amount).div(totalStaked())
            : amount.mul(INITIAL_SHARES_PER_TOKEN);
        require(mintedStakingShares > 0, "SuperNova: stake amount too small");

        // update bookkeeping
        _update(beneficiary);

        // update user staking info
        User storage user = userTotals[beneficiary];
        user.shares = user.shares.add(mintedStakingShares);
        user.lastUpdated = block.timestamp;

        userStakes[beneficiary].push(
            Stake(mintedStakingShares, block.timestamp)
        );

        // add newly minted shares to global total
        totalStakingShares = totalStakingShares.add(mintedStakingShares);

        // transactions
        _stakingPool.token().safeTransferFrom(
            staker,
            address(_stakingPool),
            amount
        );

        emit Staked(beneficiary, amount, totalStakedFor(beneficiary), "");
    }

    /**
     * @dev internal implementation of unstaking methods
     * @param amount number of tokens to unstake
     * @param polar number of POLAR tokens applied to unstaking operation
     * @return number of reward tokens distributed
     */
    function _unstake(uint256 amount, uint256 polar)
        private
        nonReentrant
        returns (uint256)
    {
        // validate
        require(amount > 0, "SuperNova: unstake amount is zero");
        require(
            totalStakedFor(msg.sender) >= amount,
            "Supernova: unstake amount exceeds balance"
        );

        // update bookkeeping
        _update(msg.sender);

        // do unstaking, first-in last-out, respecting time bonus
        uint256 timeWeightedShareSeconds = _unstakeFirstInLastOut(amount);

        // compute and apply POLAR token bonus
        uint256 polarWeightedShareSeconds = polarBonus(polar)
            .mul(timeWeightedShareSeconds)
            .div(10**BONUS_DECIMALS);

        uint256 rewardAmount = totalUnlocked()
            .mul(polarWeightedShareSeconds)
            .div(totalStakingShareSeconds.add(polarWeightedShareSeconds));

        // update global stats for distributions
        if (polar > 0) {
            totalPolarRewards = totalPolarRewards.add(rewardAmount);
        }
        totalRewards = totalRewards.add(rewardAmount);

        // transactions
        _stakingPool.transfer(msg.sender, amount);
        emit Unstaked(msg.sender, amount, totalStakedFor(msg.sender), "");
        if (rewardAmount > 0) {
            _unlockedPool.transfer(msg.sender, rewardAmount);
            emit RewardsDistributed(msg.sender, rewardAmount);
        }
        if (polar > 0) {
            _polar.safeTransferFrom(msg.sender, address(this), polar);
            emit PolarSpent(msg.sender, polar);
        }
        return rewardAmount;
    }

    /**
     * @dev helper function to actually execute unstaking, first-in last-out, 
     while computing and applying time bonus. This function also updates
     user and global totals for shares and share-seconds.
     * @param amount number of staking tokens to withdraw
     * @return time bonus weighted staking share seconds
     */
    function _unstakeFirstInLastOut(uint256 amount) private returns (uint256) {
        uint256 stakingSharesToBurn = totalStakingShares.mul(amount).div(
            totalStaked()
        );
        require(stakingSharesToBurn > 0, "Supernova: unstake amount too small");

        // redeem from most recent stake and go backwards in time.
        uint256 shareSecondsToBurn = 0;
        uint256 sharesLeftToBurn = stakingSharesToBurn;
        uint256 bonusWeightedShareSeconds = 0;
        Stake[] storage stakes = userStakes[msg.sender];
        while (sharesLeftToBurn > 0) {
            Stake storage lastStake = stakes[stakes.length - 1];
            uint256 stakeTime = block.timestamp.sub(lastStake.timestamp);

            uint256 bonus = timeBonus(stakeTime);

            if (lastStake.shares <= sharesLeftToBurn) {
                // fully redeem a past stake
                bonusWeightedShareSeconds = bonusWeightedShareSeconds.add(
                    lastStake.shares.mul(stakeTime).mul(bonus).div(
                        10**BONUS_DECIMALS
                    )
                );
                shareSecondsToBurn = shareSecondsToBurn.add(
                    lastStake.shares.mul(stakeTime)
                );
                sharesLeftToBurn = sharesLeftToBurn.sub(lastStake.shares);
                stakes.pop();
            } else {
                // partially redeem a past stake
                bonusWeightedShareSeconds = bonusWeightedShareSeconds.add(
                    sharesLeftToBurn.mul(stakeTime).mul(bonus).div(
                        10**BONUS_DECIMALS
                    )
                );
                shareSecondsToBurn = shareSecondsToBurn.add(
                    sharesLeftToBurn.mul(stakeTime)
                );
                lastStake.shares = lastStake.shares.sub(sharesLeftToBurn);
                sharesLeftToBurn = 0;
            }
        }
        // update user totals
        User storage user = userTotals[msg.sender];
        user.shareSeconds = user.shareSeconds.sub(shareSecondsToBurn);
        user.shares = user.shares.sub(stakingSharesToBurn);
        user.lastUpdated = block.timestamp;

        // update global totals
        totalStakingShareSeconds = totalStakingShareSeconds.sub(
            shareSecondsToBurn
        );
        totalStakingShares = totalStakingShares.sub(stakingSharesToBurn);

        return bonusWeightedShareSeconds;
    }

    /**
     * @dev internal implementation of update method
     * @param addr address for user accounting update
     */
    function _update(address addr) private {
        _unlockTokens();

        // global accounting
        uint256 deltaTotalShareSeconds = (block.timestamp.sub(lastUpdated)).mul(
            totalStakingShares
        );
        totalStakingShareSeconds = totalStakingShareSeconds.add(
            deltaTotalShareSeconds
        );
        lastUpdated = block.timestamp;

        // user accounting
        User storage user = userTotals[addr];
        uint256 deltaUserShareSeconds = (block.timestamp.sub(user.lastUpdated))
            .mul(user.shares);
        user.shareSeconds = user.shareSeconds.add(deltaUserShareSeconds);
        user.lastUpdated = block.timestamp;
    }

    /**
     * @dev unlocks reward tokens based on funding schedules
     */
    function _unlockTokens() private {
        uint256 tokensToUnlock = 0;
        uint256 lockedTokens = totalLocked();

        if (totalLockedShares == 0) {
            // handle any leftover
            tokensToUnlock = lockedTokens;
        } else {
            // normal case: unlock some shares from each funding schedule
            uint256 sharesToUnlock = 0;
            for (uint256 i = 0; i < fundings.length; i++) {
                uint256 shares = _unlockable(i);
                Funding storage funding = fundings[i];
                if (shares > 0) {
                    funding.unlocked = funding.unlocked.add(shares);
                    funding.lastUpdated = block.timestamp;
                    sharesToUnlock = sharesToUnlock.add(shares);
                }
            }
            tokensToUnlock = sharesToUnlock.mul(lockedTokens).div(
                totalLockedShares
            );
            totalLockedShares = totalLockedShares.sub(sharesToUnlock);
        }

        if (tokensToUnlock > 0) {
            _lockedPool.transfer(address(_unlockedPool), tokensToUnlock);
            emit RewardsUnlocked(tokensToUnlock, totalUnlocked());
        }
    }

    /**
     * @dev helper function to compute updates to funding schedules
     * @param idx index of the funding
     * @return the number of unlockable shares
     */
    function _unlockable(uint256 idx) private view returns (uint256) {
        Funding storage funding = fundings[idx];

        // funding schedule is in future
        if (block.timestamp < funding.start) {
            return 0;
        }
        // empty
        if (funding.unlocked >= funding.shares) {
            return 0;
        }
        // handle zero-duration period or leftover dust from integer division
        if (block.timestamp >= funding.end) {
            return funding.shares.sub(funding.unlocked);
        }

        return
            (block.timestamp.sub(funding.lastUpdated)).mul(funding.shares).div(
                funding.duration
            );
    }

    /**
     * @notice compute time bonus earned as a function of staking time
     * @param time length of time for which the tokens have been staked
     * @return bonus multiplier for time
     */
    function timeBonus(uint256 time) public view returns (uint256) {
        if (time >= bonusPeriod) {
            return uint256(10**BONUS_DECIMALS).add(bonusMax);
        }

        // linearly interpolate between bonus min and bonus max
        uint256 bonus = bonusMin.add(
            (bonusMax.sub(bonusMin)).mul(time).div(bonusPeriod)
        );
        return uint256(10**BONUS_DECIMALS).add(bonus);
    }

    /**
     * @notice compute POLAR bonus as a function of usage ratio and POLAR spent
     * @param polar number of POLAR token applied to bonus
     * @return multiplier value
     */
    function polarBonus(uint256 polar) public view returns (uint256) {
        if (polar == 0) {
            return 10**BONUS_DECIMALS;
        }


        uint256 buffer = uint256(10**(BONUS_DECIMALS - 2)); // 0.01
        uint256 r = ratio().add(buffer);
        uint256 x = polar.add(buffer);

        return
            uint256(10**BONUS_DECIMALS).add(
                uint256(int128(x.mul(2**64).div(r)).logbase10())
                    .mul(10**BONUS_DECIMALS)
                    .div(2**64)
            );
    }

    /**
     * @return portion of rewards which have been boosted by POLAR token
     */
    function ratio() public view returns (uint256) {
        if (totalRewards == 0) {
            return 0;
        }
        return totalPolarRewards.mul(10**BONUS_DECIMALS).div(totalRewards);
    }

    // SuperNova -- informational functions

    /**
     * @return total number of locked reward tokens
     */
    function totalLocked() public view returns (uint256) {
        return _lockedPool.balance();
    }

    /**
     * @return total number of unlocked reward tokens
     */
    function totalUnlocked() public view returns (uint256) {
        return _unlockedPool.balance();
    }

    /**
     * @return number of active funding schedules
     */
    function fundingCount() public view returns (uint256) {
        return fundings.length;
    }

    /**
     * @param addr address of interest
     * @return number of active stakes for user
     */
    function stakeCount(address addr) public view returns (uint256) {
        return userStakes[addr].length;
    }

    /**
     * @notice preview estimated reward distribution for full unstake with no POLAR applied
     * @return estimated reward
     * @return estimated overall multiplier
     * @return estimated raw user share seconds that would be burned
     * @return estimated total unlocked rewards
     */
    function preview()
        public
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return preview(msg.sender, totalStakedFor(msg.sender), 0);
    }

    /**
     * @notice preview estimated reward distribution for unstaking
     * @param addr address of interest for preview
     * @param amount number of tokens that would be unstaked
     * @param polar number of POLAR tokens that would be applied
     * @return estimated reward
     * @return estimated overall multiplier
     * @return estimated raw user share seconds that would be burned
     * @return estimated total unlocked rewards
     */
    function preview(
        address addr,
        uint256 amount,
        uint256 polar
    )
        public
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        // compute expected updates to global totals
        uint256 deltaUnlocked = 0;
        if (totalLockedShares != 0) {
            uint256 sharesToUnlock = 0;
            for (uint256 i = 0; i < fundings.length; i++) {
                sharesToUnlock = sharesToUnlock.add(_unlockable(i));
            }
            deltaUnlocked = sharesToUnlock.mul(totalLocked()).div(
                totalLockedShares
            );
        }

        // no need for unstaking/rewards computation
        if (amount == 0) {
            return (0, 0, 0, totalUnlocked().add(deltaUnlocked));
        }

        // check unstake amount
        require(
            amount <= totalStakedFor(addr),
            "SuperNova: preview amount exceeds balance"
        );

        // compute unstake amount in shares
        uint256 shares = totalStakingShares.mul(amount).div(totalStaked());
        require(shares > 0, "SuperNova: preview amount too small");

        uint256 rawShareSeconds = 0;
        uint256 timeBonusShareSeconds = 0;

        // compute first-in-last-out, time bonus weighted, share seconds
        uint256 i = userStakes[addr].length.sub(1);
        while (shares > 0) {
            Stake storage s = userStakes[addr][i];
            uint256 time = block.timestamp.sub(s.timestamp);

            if (s.shares < shares) {
                rawShareSeconds = rawShareSeconds.add(s.shares.mul(time));
                timeBonusShareSeconds = timeBonusShareSeconds.add(
                    s.shares.mul(time).mul(timeBonus(time)).div(
                        10**BONUS_DECIMALS
                    )
                );
                shares = shares.sub(s.shares);
            } else {
                rawShareSeconds = rawShareSeconds.add(shares.mul(time));
                timeBonusShareSeconds = timeBonusShareSeconds.add(
                    shares.mul(time).mul(timeBonus(time)).div(
                        10**BONUS_DECIMALS
                    )
                );
                break;
            }
            // this will throw on underflow
            i = i.sub(1);
        }

        // apply polar bonus
        uint256 polarBonusShareSeconds = polarBonus(polar)
            .mul(timeBonusShareSeconds)
            .div(10**BONUS_DECIMALS);

        // compute rewards based on expected updates
        uint256 expectedTotalShareSeconds = totalStakingShareSeconds
            .add((block.timestamp.sub(lastUpdated)).mul(totalStakingShares))
            .add(polarBonusShareSeconds)
            .sub(rawShareSeconds);

        uint256 reward = (totalUnlocked().add(deltaUnlocked))
            .mul(polarBonusShareSeconds)
            .div(expectedTotalShareSeconds);

        // compute effective bonus
        uint256 bonus = uint256(10**BONUS_DECIMALS)
            .mul(polarBonusShareSeconds)
            .div(rawShareSeconds);

        return (
            reward,
            bonus,
            rawShareSeconds,
            totalUnlocked().add(deltaUnlocked)
        );
    }

    function unlockFundInSec(uint256 timestamp) external view returns (uint256 unlockAmount) {
        unlockAmount = 0;
        uint256 fundingLen = fundings.length;
        for (uint8 i=0; i<fundingLen; i++) {
            Funding storage funding = fundings[i];
            if (timestamp < funding.end) {
                unlockAmount = unlockAmount.add((funding.shares).div(funding.duration));
            }
        }
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"stakingToken_","type":"address"},{"internalType":"address","name":"rewardToken_","type":"address"},{"internalType":"uint256","name":"bonusMin_","type":"uint256"},{"internalType":"uint256","name":"bonusMax_","type":"uint256"},{"internalType":"uint256","name":"bonusPeriod_","type":"uint256"},{"internalType":"address","name":"polar_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PolarSpent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PolarWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"}],"name":"RewardsExpired","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"}],"name":"RewardsFunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"}],"name":"RewardsUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"BONUS_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_SHARES_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ACTIVE_FUNDINGS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clean","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundingCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fundings","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"unlocked","type":"uint256"},{"internalType":"uint256","name":"lastUpdated","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"polar","type":"uint256"}],"name":"polarBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"polar","type":"uint256"}],"name":"preview","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preview","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"stakeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"stakeFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supportsHistory","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"timeBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLockedShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPolarRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"totalStakedFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakingShareSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakingShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnlocked","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":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"unlockFundInSec","outputs":[{"internalType":"uint256","name":"unlockAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"polar","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userStakes","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userTotals","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"shareSeconds","type":"uint256"},{"internalType":"uint256","name":"lastUpdated","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101606040523480156200001257600080fd5b5060405162003ec038038062003ec0833981810160405260c08110156200003857600080fd5b508051602082015160408301516060840151608085015160a09095015193949293919290916000620000696200020e565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001805582841115620000f85760405162461bcd60e51b815260040180806020018281038252602e81526020018062003e92602e913960400191505060405180910390fd5b85604051620001079062000212565b6001600160a01b03909116815260405190819003602001906000f08015801562000135573d6000803e3d6000fd5b5060601b6001600160601b0319166080526040518590620001569062000212565b6001600160a01b03909116815260405190819003602001906000f08015801562000184573d6000803e3d6000fd5b5060601b6001600160601b03191660a0526040518590620001a59062000212565b6001600160a01b03909116815260405190819003602001906000f080158015620001d3573d6000803e3d6000fd5b506001600160601b0319606091821b811660c05260e0959095526101009390935261012091909152901b1661014052505042600a5562000220565b3390565b610a6c806200342683390190565b60805160601c60a05160601c60c05160601c60e05161010051610120516101405160601c613147620002df60003980610cf45280610dc05280610df552806125db525080610e95528061119e528061120652508061110852806111d1528061122e525080610beb528061124f5280611275525080610adb5280610afd5280610f15528061274452508061133a52806119ab528061253252806127735250806110af528061112e5280611e3e5280611e60528061243152506131476000f3fe608060405234801561001057600080fd5b50600436106102e95760003560e01c806381c39bec11610191578063d0b06f5d116100e3578063efae230511610097578063f7c618c111610071578063f7c618c114610841578063fc0c546a14610540578063fc4333cd14610849576102e9565b8063efae23051461080b578063f1c0628b14610813578063f2fde38b1461081b576102e9565b8063d4936d19116100c8578063d4936d19146107c9578063db60adb7146107e6578063dc16ceb914610803576102e9565b8063d0b06f5d1461076c578063d13cb1fb14610774576102e9565b8063a65e2cfd11610145578063c20e81371161011f578063c20e813714610621578063c8fd6ed014610679578063cd6ef9b1146106f0576102e9565b8063a65e2cfd146105b1578063a779d080146105d4578063b5d5b5fa146105dc576102e9565b80639e57e491116101765780639e57e49114610584578063a2e62045146105a1578063a5be655c146105a9576102e9565b806381c39bec146105745780638da5cb5b1461057c576102e9565b80634b341aed1161024a57806370c6a17e116101fe57806372f702f3116101d857806372f702f3146105405780637aba86d214610564578063817b1cd21461056c576102e9565b806370c6a17e14610528578063715018a61461053057806371ca337d14610538576102e9565b80634fb2f5541161022f5780634fb2f554146104fc57806356891412146105045780637033e4a61461050c576102e9565b80634b341aed146104ce5780634b8456b8146104f4576102e9565b80631dc27fde116102a157806333060d901161028657806333060d901461045c578063385c9e7d146104825780634af4a127146104c6576102e9565b80631dc27fde146104375780632e1a7d4d1461043f576102e9565b80630ef96356116102d25780630ef9635614610381578063111d7d50146104065780631b87d58a1461042f576102e9565b80630e15561a146102ee5780630e89439b14610308575b600080fd5b6102f6610851565b60408051918252519081900360200190f35b61037f6004803603604081101561031e57600080fd5b8135919081019060408101602082013564010000000081111561034057600080fd5b82018360208201111561035257600080fd5b8035906020019184600183028401116401000000008311171561037457600080fd5b509092509050610857565b005b61037f6004803603606081101561039757600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156103c757600080fd5b8201836020820111156103d957600080fd5b803590602001918460018302840111640100000000831117156103fb57600080fd5b509092509050610867565b61037f6004803603606081101561041c57600080fd5b5080359060208101359060400135610878565b6102f6610be9565b6102f6610c0d565b61037f6004803603602081101561045557600080fd5b5035610c12565b6102f66004803603602081101561047257600080fd5b50356001600160a01b0316610e53565b6104a86004803603602081101561049857600080fd5b50356001600160a01b0316610e72565b60408051938452602084019290925282820152519081900360600190f35b6102f6610e93565b6102f6600480360360208110156104e457600080fd5b50356001600160a01b0316610eb7565b6102f6610f05565b6102f6610f0a565b6102f6610f11565b610514610f9d565b604080519115158252519081900360200190f35b6102f6610fa2565b61037f610fa8565b6102f6611074565b6105486110ab565b604080516001600160a01b039092168252519081900360200190f35b6102f6611106565b6102f661112a565b6102f6611185565b61054861118b565b6102f66004803603602081101561059a57600080fd5b503561119a565b61037f6112b5565b6102f6611321565b61037f600480360360408110156105c757600080fd5b5080359060200135611327565b6102f6611336565b610608600480360360408110156105f257600080fd5b506001600160a01b038135169060200135611391565b6040805192835260208301919091528051918290030190f35b6106536004803603606081101561063757600080fd5b506001600160a01b0381351690602081013590604001356113ca565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61037f6004803603604081101561068f57600080fd5b813591908101906040810160208201356401000000008111156106b157600080fd5b8201836020820111156106c357600080fd5b803590602001918460018302840111640100000000831117156106e557600080fd5b5090925090506116dd565b61037f6004803603606081101561070657600080fd5b81359160208101359181019060608101604082013564010000000081111561072d57600080fd5b82018360208201111561073f57600080fd5b8035906020019184600183028401116401000000008311171561076157600080fd5b5090925090506116e8565b6102f66116f9565b6107916004803603602081101561078a57600080fd5b50356116ff565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b6102f6600480360360208110156107df57600080fd5b503561174e565b6102f6600480360360208110156107fc57600080fd5b50356117c0565b6102f6611850565b610653611857565b6102f661187f565b61037f6004803603602081101561083157600080fd5b50356001600160a01b0316611885565b6105486119a7565b61037f611a02565b60075481565b610862333385611c36565b505050565b610872338585611c36565b50505050565b610880611f1e565b6000546001600160a01b039081169116146108e2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600083116109215760405162461bcd60e51b81526004018080602001828103825260218152602001806130306021913960400191505060405180910390fd5b42811015610976576040805162461bcd60e51b815260206004820181905260248201527f53757065724e6f76613a2066756e64696e672073746172742069732070617374604482015290519081900360640190fd5b6002546010116109b75760405162461bcd60e51b815260040180806020018281038252602f815260200180612f76602f913960400191505060405180910390fd5b6109c033611f22565b60006109ca610f11565b905060008082116109e7576109e285620f4240611fb2565b610a06565b610a0682610a0087600554611fb290919063ffffffff16565b9061200b565b600554909150610a16908261204d565b60058190555060026040518060e0016040528087815260200183815260200160008152602001858152602001858152602001610a5b878761204d90919063ffffffff16565b8152602001868152509080600181540180825580915050600190039060005260206000209060070201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c082015181600601555050610b91337f0000000000000000000000000000000000000000000000000000000000000000877f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d6020811015610b7e57600080fd5b50516001600160a01b03169291906120a7565b7fd3599d59babb3b3382347fcd4e88030d12d499404076688f2fc4efab2d3c4a57858585610bbd610f11565b604080519485526020850193909352838301919091526060830152519081900360800190a15050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b601281565b610c1a611f1e565b6000546001600160a01b03908116911614610c7c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60008111610cbb5760405162461bcd60e51b81526004018080602001828103825260228152602001806130516022913960400191505060405180910390fd5b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015610d3a57600080fd5b505afa158015610d4e573d6000803e3d6000fd5b505050506040513d6020811015610d6457600080fd5b5051811115610da45760405162461bcd60e51b815260040180806020018281038252602a815260200180612f4c602a913960400191505060405180910390fd5b6000610db182600261200b565b9050610de86001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660018361212f565b610e1c6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338361212f565b6040805183815290517f541c50b2b8c0b93aa6f1326f78df682eeb7ea208583c4c50b1240595283bea059181900360200190a15050565b6001600160a01b0381166000908152600460205260409020545b919050565b60036020526000908152604090208054600182015460029092015490919083565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060065460001415610ecc57506000610e6d565b6006546001600160a01b038316600090815260036020526040902054610eff9190610a0090610ef961112a565b90611fb2565b92915050565b601081565b6002545b90565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b69ef8a86040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6c57600080fd5b505afa158015610f80573d6000803e3d6000fd5b505050506040513d6020811015610f9657600080fd5b5051905090565b600090565b60065481565b610fb0611f1e565b6000546001600160a01b03908116911614611012576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006007546000141561108957506000610f0e565b6007546008546110a69190610a0090670de0b6b3a7640000611fb2565b905090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6c57600080fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b69ef8a86040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6c57600080fd5b60055481565b6000546001600160a01b031690565b60007f000000000000000000000000000000000000000000000000000000000000000082106111fc576111f5670de0b6b3a76400007f000000000000000000000000000000000000000000000000000000000000000061204d565b9050610e6d565b600061129a6112737f0000000000000000000000000000000000000000000000000000000000000000610a0086610ef97f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006121af565b7f00000000000000000000000000000000000000000000000000000000000000009061204d565b90506112ae670de0b6b3a76400008261204d565b9392505050565b6002600154141561130d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015561131b33611f22565b60018055565b60095481565b611332828242610878565b5050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b69ef8a86040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6c57600080fd5b600460205281600052604060002081815481106113aa57fe5b600091825260209091206002909102018054600190910154909250905082565b6000806000806000600554600014611424576000805b600254811015611407576113fd6113f6826121f1565b839061204d565b91506001016113e0565b50611420600554610a00611419610f11565b8490611fb2565b9150505b8661144e5760008060006114408461143a611336565b9061204d565b9450945094509450506116d4565b61145788610eb7565b8711156114955760405162461bcd60e51b81526004018080602001828103825260298152602001806130736029913960400191505060405180910390fd5b60006114af6114a261112a565b600654610a00908b611fb2565b9050600081116114f05760405162461bcd60e51b81526004018080602001828103825260238152602001806130c56023913960400191505060405180910390fd5b6001600160a01b038916600090815260046020526040812054819081906115189060016121af565b90505b831561162b576001600160a01b038c16600090815260046020526040812080548390811061154557fe5b90600052602060002090600202019050600061156e8260010154426121af90919063ffffffff16565b905085826000015410156115da5781546115939061158c9083611fb2565b869061204d565b94506115c36115bc670de0b6b3a7640000610a006115b08561119a565b8654610ef99087611fb2565b859061204d565b82549094506115d39087906121af565b9550611617565b6115e761158c8783611fb2565b945061160e6115bc670de0b6b3a7640000610a006116048561119a565b610ef98b87611fb2565b9350505061162b565b6116228360016121af565b9250505061151b565b6000611646670de0b6b3a7640000610a0085610ef98f6117c0565b9050600061167f856116798461143a611670600654610ef9600a54426121af90919063ffffffff16565b6009549061204d565b906121af565b9050600061169782610a0085610ef98c61143a611336565b905060006116b187610a00670de0b6b3a764000087611fb2565b90508181886116c28c61143a611336565b9c509c509c509c505050505050505050505b93509350935093565b61087283600061228d565b6116f2848461228d565b5050505050565b600a5481565b6002818154811061170c57fe5b90600052602060002090600702016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b600254600090815b818160ff1610156117b957600060028260ff168154811061177357fe5b9060005260206000209060070201905080600501548510156117b0576117ad6115bc8260060154836001015461200b90919063ffffffff16565b93505b50600101611756565b5050919050565b6000816117d65750670de0b6b3a7640000610e6d565b662386f26fc1000060006117ec8261143a611074565b905060006117fa858461204d565b905061184761183868010000000000000000610a00670de0b6b3a764000061182f61182788848987611fb2565b600f0b612647565b600f0b90611fb2565b670de0b6b3a76400009061204d565b95945050505050565b620f424081565b6000806000806118713361186a33610eb7565b60006113ca565b935093509350935090919293565b60085481565b61188d611f1e565b6000546001600160a01b039081169116146118ef576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166119345760405162461bcd60e51b8152600401808060200182810382526026815260200180612f056026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6c57600080fd5b611a0a611f1e565b6000546001600160a01b03908116911614611a6c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b611a7533611f22565b600254600090815b818110156108625760006002611a9383866121af565b81548110611a9d57fe5b6000918252602082206007909102019150611ab883866121af565b9050611ac3816121f1565b158015611ad4575081600501544210155b15611c2c5781546006830154600484015460408051938452602084019290925282820152517f3bdea4ef9f7e20da64d7c2f1e5fca1178145d56d25bad0e0a23d7a209261fe7b9181900360600190a160028054611b329060016121af565b81548110611b3c57fe5b906000526020600020906007020160028281548110611b5757fe5b9060005260206000209060070201600082015481600001556001820154816001015560028201548160020155600382015481600301556004820154816004015560058201548160050155600682015481600601559050506002805480611bb957fe5b60008281526020812060077fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909301928302018181556001818101839055600282018390556003820183905560048201839055600582018390556006909101919091559155611c2990869061204d565b94505b5050600101611a7d565b60026001541415611c8e576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015580611ce5576040805162461bcd60e51b815260206004820152601f60248201527f53757065724e6f76613a207374616b6520616d6f756e74206973207a65726f00604482015290519081900360640190fd5b6001600160a01b038216611d2a5760405162461bcd60e51b815260040180806020018281038252602681526020018061300a6026913960400191505060405180910390fd5b60008060065411611d4757611d4282620f4240611fb2565b611d5f565b611d5f611d5261112a565b600654610a009085611fb2565b905060008111611da05760405162461bcd60e51b8152600401808060200182810382526021815260200180612f2b6021913960400191505060405180910390fd5b611da983611f22565b6001600160a01b03831660009081526003602052604090208054611dcd908361204d565b81554260028083018290556001600160a01b03861660009081526004602090815260408083208151808301909252878252818301958652805460018181018355918552929093209051919093029092019182559151910155600654611e32908361204d565b600681905550611eb7857f0000000000000000000000000000000000000000000000000000000000000000857f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5457600080fd5b836001600160a01b03167fc65e53b88159e7d2c0fc12a0600072e28ae53ff73b4c1715369c30f16093514284611eec87610eb7565b6040805192835260208301919091526060828201819052600090830152519081900360a00190a2505060018055505050565b3390565b611f2a612681565b6000611f47600654610ef9600a54426121af90919063ffffffff16565b600954909150611f57908261204d565b60095542600a8190556001600160a01b0383166000908152600360205260408120805460028201549193611f8f92610ef991906121af565b6001830154909150611fa1908261204d565b600183015550426002909101555050565b600082611fc157506000610eff565b82820282848281611fce57fe5b04146112ae5760405162461bcd60e51b8152600401808060200182810382526021815260200180612fc66021913960400191505060405180910390fd5b60006112ae83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612837565b6000828201838110156112ae576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526108729085906128d9565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526108629084906128d9565b60006112ae83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061298a565b6000806002838154811061220157fe5b906000526020600020906007020190508060040154421015612227576000915050610e6d565b8060010154816002015410612240576000915050610e6d565b80600501544210612266576002810154600182015461225e916121af565b915050610e6d565b6112ae8160060154610a008360010154610ef98560030154426121af90919063ffffffff16565b6000600260015414156122e7576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155826123285760405162461bcd60e51b8152600401808060200182810382526021815260200180612fa56021913960400191505060405180910390fd5b8261233233610eb7565b101561236f5760405162461bcd60e51b815260040180806020018281038252602981526020018061309c6029913960400191505060405180910390fd5b61237833611f22565b6000612383846129e4565b905060006123a0670de0b6b3a7640000610a0084610ef9886117c0565b905060006123c86123bc8360095461204d90919063ffffffff16565b610a0084610ef9611336565b905084156123e1576008546123dd908261204d565b6008555b6007546123ee908261204d565b600755604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810188905290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163a9059cbb91604480830192600092919082900301818387803b15801561247857600080fd5b505af115801561248c573d6000803e3d6000fd5b50505050336001600160a01b03167faf01bfc8475df280aca00b578c4a948e6d95700f0db8c13365240f7f973c8754876124c533610eb7565b6040805192835260208301919091526060828201819052600090830152519081900360a00190a280156125c857604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810183905290516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163a9059cbb91604480830192600092919082900301818387803b15801561257957600080fd5b505af115801561258d573d6000803e3d6000fd5b50506040805184815290513393507fdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece08692509081900360200190a25b841561263a576126036001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330886120a7565b60408051868152905133917f09d6a943b19468008579fac8ace9c7a3cc4a299e4ae6ab5d4c2a6aa059b1143e919081900360200190a25b6001805595945050505050565b60008082600f0b1361265857600080fd5b608061266383612c18565b600f0b6f4d104d427de7fce20a6e420e0223674802901c9050919050565b60008061268c610f11565b9050600554600014156126a15780915061273c565b6000805b6002548110156127155760006126ba826121f1565b90506000600283815481106126cb57fe5b90600052602060002090600702019050600082111561270b5760028101546126f3908361204d565b6002820155426003820155612708848361204d565b93505b50506001016126a5565b5060055461272790610a008385611fb2565b60055490935061273790826121af565b600555505b8115611332577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb7f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156127d957600080fd5b505af11580156127ed573d6000803e3d6000fd5b505050507f05b6b33aa8c89542004be445284c4d44c5f3654d65638da167510824426020dd8261281b611336565b6040805192835260208301919091528051918290030190a15050565b600081836128c35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612888578181015183820152602001612870565b50505050905090810190601f1680156128b55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816128cf57fe5b0495945050505050565b606061292e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d299092919063ffffffff16565b8051909150156108625780806020019051602081101561294d57600080fd5b50516108625760405162461bcd60e51b815260040180806020018281038252602a8152602001806130e8602a913960400191505060405180910390fd5b600081848411156129dc5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612888578181015183820152602001612870565b505050900390565b6000806129ff6129f261112a565b600654610a009086611fb2565b905060008111612a405760405162461bcd60e51b8152600401808060200182810382526023815260200180612fe76023913960400191505060405180910390fd5b336000908152600460205260408120829082905b8215612bb557805460009082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110612a8d57fe5b906000526020600020906002020190506000612ab68260010154426121af90919063ffffffff16565b90506000612ac38261119a565b905085836000015411612b6b578254612af49061158c90670de0b6b3a764000090610a00908590610ef99088611fb2565b8354909550612b0e90612b079084611fb2565b889061204d565b8354909750612b1e9087906121af565b955083805480612b2a57fe5b60008281526020812060027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90930192830201818155600101559055612bad565b612b8861158c670de0b6b3a7640000610a0084610ef98b88611fb2565b9450612b97612b078784611fb2565b8354909750612ba690876121af565b8355600095505b505050612a54565b3360009081526003602052604090206001810154612bd390866121af565b60018201558054612be490876121af565b8155426002820155600954612bf990866121af565b600955600654612c0990876121af565b60065550909695505050505050565b60008082600f0b13612c2957600080fd5b6000600f83900b680100000000000000008112612c48576040918201911d5b6401000000008112612c5c576020918201911d5b620100008112612c6e576010918201911d5b6101008112612c7f576008918201911d5b60108112612c8f576004918201911d5b60048112612c9f576002918201911d5b60028112612cae576001820191505b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0820160401b6000607f849003600f87900b82821215612cea57fe5b901b90506780000000000000005b6000811315612d1e5790800260ff81901c8281029390930192607f011c9060011d612cf8565b509095945050505050565b6060612d388484600085612d40565b949350505050565b6060612d4b85612ecb565b612d9c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612df957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612dbc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612e5b576040519150601f19603f3d011682016040523d82523d6000602084013e612e60565b606091505b50915091508115612e74579150612d389050565b805115612e845780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612888578181015183820152602001612870565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612d3857505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737353757065724e6f76613a207374616b6520616d6f756e7420746f6f20736d616c6c53757065724e6f76613a20776974686472617720616d6f756e7420657863656564732062616c616e636553757065724e6f76613a2065786365656473206d6178206163746976652066756e64696e67207363686564756c657353757065724e6f76613a20756e7374616b6520616d6f756e74206973207a65726f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7753757065726e6f76613a20756e7374616b6520616d6f756e7420746f6f20736d616c6c53757065726e6f76613a2062656e6566696369617279206973207a65726f206164647265737353757065724e6f76613a2066756e64696e6720616d6f756e74206973207a65726f53757065724e6f76613a20776974686472617720616d6f756e74206973207a65726f53757065724e6f76613a207072657669657720616d6f756e7420657863656564732062616c616e636553757065726e6f76613a20756e7374616b6520616d6f756e7420657863656564732062616c616e636553757065724e6f76613a207072657669657720616d6f756e7420746f6f20736d616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220745ed92fc24fa1c47b01cbe37fe67a5e3315832b1f43c38635fba4c35a55640864736f6c634300060c0033608060405234801561001057600080fd5b50604051610a6c380380610a6c8339818101604052602081101561003357600080fd5b5051600061003f6100ae565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100b2565b3390565b6109ab806100c16000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063b69ef8a811610050578063b69ef8a8146100eb578063f2fde38b14610105578063fc0c546a1461013857610072565b8063715018a6146100775780638da5cb5b14610081578063a9059cbb146100b2575b600080fd5b61007f610140565b005b610089610240565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61007f600480360360408110156100c857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561025c565b6100f3610315565b60408051918252519081900360200190f35b61007f6004803603602081101561011b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166103b7565b610089610541565b61014861055d565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146101d157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61026461055d565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146102ed57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001546103119073ffffffffffffffffffffffffffffffffffffffff168383610561565b5050565b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561038657600080fd5b505afa15801561039a573d6000803e3d6000fd5b505050506040513d60208110156103b057600080fd5b5051905090565b6103bf61055d565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461044857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166104b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806109266026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b3390565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526105ee9084906105f3565b505050565b6060610655826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166106cb9092919063ffffffff16565b8051909150156105ee5780806020019051602081101561067457600080fd5b50516105ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061094c602a913960400191505060405180910390fd5b60606106da84846000856106e2565b949350505050565b60606106ed856108ec565b61075857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106107c257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610785565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610824576040519150601f19603f3d011682016040523d82523d6000602084013e610829565b606091505b5091509150811561083d5791506106da9050565b80511561084d5780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156108b1578181015183820152602001610899565b50505050905090810190601f1680156108de5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906106da57505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212201fffffab00192638929fc65664cf2002f2f6a1b7ee27a8cb17138c452f36a8ca64736f6c634300060c003353757065724e6f76613a20696e697469616c2074696d6520626f6e75732067726561746572207468616e206d6178000000000000000000000000d66aab62ce2a9bb6985b8e93b86090b0897c3a8e00000000000000000000000005b339b0a346bf01f851dde47a5d485c34fe220c0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000001275000000000000000000000000003a5325f0e5ee4da06a285e988f052d4e45aa64b4

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

000000000000000000000000d66aab62ce2a9bb6985b8e93b86090b0897c3a8e00000000000000000000000005b339b0a346bf01f851dde47a5d485c34fe220c0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000001275000000000000000000000000003a5325f0e5ee4da06a285e988f052d4e45aa64b4

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000d66aab62ce2a9bb6985b8e93b86090b0897c3a8e
Arg [1] : 00000000000000000000000005b339b0a346bf01f851dde47a5d485c34fe220c
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 0000000000000000000000000000000000000000000000000000000000127500
Arg [5] : 0000000000000000000000003a5325f0e5ee4da06a285e988f052d4e45aa64b4


Deployed ByteCode Sourcemap

32825:24872:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34291:27;;;:::i;:::-;;;;;;;;;;;;;;;;35640:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35640:122:0;;-1:-1:-1;35640:122:0;-1:-1:-1;35640:122:0;:::i;:::-;;35817:167;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35817:167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35817:167:0;;-1:-1:-1;35817:167:0;-1:-1:-1;35817:167:0;:::i;37520:1451::-;;;;;;;;;;;;;;;;-1:-1:-1;37520:1451:0;;;;;;;;;;;;:::i;34059:33::-;;;:::i;33519:43::-;;;:::i;39028:565::-;;;;;;;;;;;;;;;;-1:-1:-1;39028:565:0;;:::i;52780:113::-;;;;;;;;;;;;;;;;-1:-1:-1;52780:113:0;-1:-1:-1;;;;;52780:113:0;;:::i;33930:42::-;;;;;;;;;;;;;;;;-1:-1:-1;33930:42:0;-1:-1:-1;;;;;33930:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;34139:36;;;:::i;36199:297::-;;;;;;;;;;;;;;;;-1:-1:-1;36199:297:0;-1:-1:-1;;;;;36199:297:0;;:::i;33632:48::-;;;:::i;52570:95::-;;;:::i;52208:100::-;;;:::i;27072:96::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;34251:33;;;:::i;20965:148::-;;;:::i;51882:200::-;;;:::i;36991:118::-;;;:::i;:::-;;;;-1:-1:-1;;;;;36991:118:0;;;;;;;;;;;;;;34099:33;;;:::i;36551:110::-;;;:::i;34212:32::-;;;:::i;20323:79::-;;;:::i;50631:420::-;;;;;;;;;;;;;;;;-1:-1:-1;50631:420:0;;:::i;39865:87::-;;;:::i;34364:39::-;;;:::i;37341:122::-;;;;;;;;;;;;;;;;-1:-1:-1;37341:122:0;;;;;;;:::i;52389:104::-;;;:::i;33979:45::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;33979:45:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;53927:3330;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;53927:3330:0;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36039:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36039:105:0;;-1:-1:-1;36039:105:0;-1:-1:-1;36039:105:0;:::i;39650:158::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39650:158:0;;-1:-1:-1;39650:158:0;-1:-1:-1;39650:158:0;:::i;34410:26::-;;;:::i;33868:25::-;;;;;;;;;;;;;;;;-1:-1:-1;33868:25:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57265:429;;;;;;;;;;;;;;;;-1:-1:-1;57265:429:0;;:::i;51251:531::-;;;;;;;;;;;;;;;;-1:-1:-1;51251:531:0;;:::i;33569:56::-;;;:::i;53209:247::-;;;:::i;34325:32::-;;;:::i;21268:244::-;;;;;;;;;;;;;;;;-1:-1:-1;21268:244:0;-1:-1:-1;;;;;21268:244:0;;:::i;37166:118::-;;;:::i;40009:965::-;;;:::i;34291:27::-;;;;:::o;35640:122::-;35716:38;35723:10;35735;35747:6;35716;:38::i;:::-;35640:122;;;:::o;35817:167::-;35944:32;35951:10;35963:4;35969:6;35944;:32::i;:::-;35817:167;;;;:::o;37520:1451::-;20545:12;:10;:12::i;:::-;20535:6;;-1:-1:-1;;;;;20535:6:0;;;:22;;;20527:67;;;;;-1:-1:-1;;;20527:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37692:1:::1;37683:6;:10;37675:56;;;;-1:-1:-1::0;;;37675:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37759:15;37750:5;:24;;37742:69;;;::::0;;-1:-1:-1;;;37742:69:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;37844:8;:15:::0;33678:2:::1;-1:-1:-1::0;37822:134:0::1;;;;-1:-1:-1::0;;;37822:134:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38000:19;38008:10;38000:7;:19::i;:::-;38072:20;38095:13;:11;:13::i;:::-;38072:36;;38119:26;38164:1:::0;38149:12:::1;:16;38148:133;;38245:36;:6:::0;33620:5:::1;38245:10;:36::i;:::-;38148:133;;;38182:47;38216:12;38182:29;38204:6;38182:17;;:21;;:29;;;;:::i;:::-;:33:::0;::::1;:47::i;:::-;38314:17;::::0;38119:162;;-1:-1:-1;38314:41:0::1;::::0;38119:162;38314:21:::1;:41::i;:::-;38294:17;:61;;;;38399:8;38427:280;;;;;;;;38462:6;38427:280;;;;38495:18;38427:280;;;;38542:1;38427:280;;;;38575:5;38427:280;;;;38606:5;38427:280;;;;38635:19;38645:8;38635:5;:9;;:19;;;;:::i;:::-;38427:280;;;;38683:8;38427:280;;::::0;38399:319:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38766:128;38817:10;38850:11;38877:6;38766:11;-1:-1:-1::0;;;;;38766:17:0::1;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;38766:19:0;-1:-1:-1;;;;;38766:36:0::1;::::0;:128;;:36:::1;:128::i;:::-;38910:53;38924:6;38932:8;38942:5;38949:13;:11;:13::i;:::-;38910:53;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;::::1;20605:1;;37520:1451:::0;;;:::o;34059:33::-;;;:::o;33519:43::-;33560:2;33519:43;:::o;39028:565::-;20545:12;:10;:12::i;:::-;20535:6;;-1:-1:-1;;;;;20535:6:0;;;:22;;;20527:67;;;;;-1:-1:-1;;;20527:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39118:1:::1;39109:6;:10;39101:57;;;;-1:-1:-1::0;;;39101:57:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39201:31;::::0;;;;;39226:4:::1;39201:31;::::0;::::1;::::0;;;-1:-1:-1;;;;;39201:6:0::1;:16;::::0;::::1;::::0;:31;;;;;::::1;::::0;;;;;;;;:16;:31;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;39201:31:0;39191:41;::::1;;39169:133;;;;-1:-1:-1::0;;;39169:133:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39400:19;39422:13;:6:::0;39433:1:::1;39422:10;:13::i;:::-;39400:35:::0;-1:-1:-1;39446:44:0::1;-1:-1:-1::0;;;;;39446:6:0::1;:19;39474:1;39400:35:::0;39446:19:::1;:44::i;:::-;39501;-1:-1:-1::0;;;;;39501:6:0::1;:19;39521:10;39533:11:::0;39501:19:::1;:44::i;:::-;39563:22;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;20605:1;39028:565:::0;:::o;52780:113::-;-1:-1:-1;;;;;52862:16:0;;52835:7;52862:16;;;:10;:16;;;;;:23;52780:113;;;;:::o;33930:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;34139:36::-;;;:::o;36199:297::-;36303:7;36332:18;;36354:1;36332:23;36328:64;;;-1:-1:-1;36379:1:0;36372:8;;36328:64;36469:18;;-1:-1:-1;;;;;36440:16:0;;;;;;:10;:16;;;;;:23;36422:66;;36469:18;36422:42;;:13;:11;:13::i;:::-;:17;;:42::i;:66::-;36402:86;36199:297;-1:-1:-1;;36199:297:0:o;33632:48::-;33678:2;33632:48;:::o;52570:95::-;52642:8;:15;52570:95;;:::o;52208:100::-;52252:7;52279:11;-1:-1:-1;;;;;52279:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52279:21:0;;-1:-1:-1;52208:100:0;:::o;27072:96::-;27131:4;27072:96;:::o;34251:33::-;;;;:::o;20965:148::-;20545:12;:10;:12::i;:::-;20535:6;;-1:-1:-1;;;;;20535:6:0;;;:22;;;20527:67;;;;;-1:-1:-1;;;20527:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21072:1:::1;21056:6:::0;;21035:40:::1;::::0;-1:-1:-1;;;;;21056:6:0;;::::1;::::0;21035:40:::1;::::0;21072:1;;21035:40:::1;21103:1;21086:19:::0;;;::::1;::::0;;20965:148::o;51882:200::-;51920:7;51944:12;;51960:1;51944:17;51940:58;;;-1:-1:-1;51985:1:0;51978:8;;51940:58;52061:12;;52015:17;;:59;;52061:12;52015:41;;52037:18;52015:21;:41::i;:59::-;52008:66;;51882:200;:::o;36991:118::-;37045:7;37080:12;-1:-1:-1;;;;;37080:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34099:33;;;:::o;36551:110::-;36604:7;36631:12;-1:-1:-1;;;;;36631:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34212:32;;;;:::o;20323:79::-;20361:7;20388:6;-1:-1:-1;;;;;20388:6:0;20323:79;:::o;50631:420::-;50685:7;50717:11;50709:4;:19;50705:100;;50752:41;50760:18;50784:8;50752:31;:41::i;:::-;50745:48;;;;50705:100;50882:13;50898:89;50925:51;50964:11;50925:34;50954:4;50926:22;:8;50939;50926:12;:22::i;50925:51::-;50898:8;;:12;:89::i;:::-;50882:105;-1:-1:-1;51005:38:0;51013:18;50882:105;51005:31;:38::i;:::-;50998:45;50631:420;-1:-1:-1;;;50631:420:0:o;39865:87::-;23252:1;23858:7;;:19;;23850:63;;;;;-1:-1:-1;;;23850:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23252:1;23991:7;:18;39925:19:::1;39933:10;39925:7;:19::i;:::-;23208:1:::0;24170:22;;39865:87::o;34364:39::-;;;;:::o;37341:122::-;37416:39;37421:6;37429:8;37439:15;37416:4;:39::i;:::-;37341:122;;:::o;52389:104::-;52435:7;52462:13;-1:-1:-1;;;;;52462:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33979:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33979:45:0;-1:-1:-1;33979:45:0;:::o;53927:3330::-;54085:7;54107;54129;54151;54240:21;54280:17;;54301:1;54280:22;54276:346;;54319:22;54365:9;54360:132;54384:8;:15;54380:19;;54360:132;;;54442:34;54461:14;54473:1;54461:11;:14::i;:::-;54442;;:18;:34::i;:::-;54425:51;-1:-1:-1;54401:3:0;;54360:132;;;;54522:88;54578:17;;54522:33;54541:13;:11;:13::i;:::-;54522:14;;:18;:33::i;:88::-;54506:104;;54276:346;;54692:11;54688:96;;54728:1;54731;54734;54737:34;54757:13;54737:15;:13;:15::i;:::-;:19;;:34::i;:::-;54720:52;;;;;;;;;;;54688:96;54861:20;54876:4;54861:14;:20::i;:::-;54851:6;:30;;54829:121;;;;-1:-1:-1;;;54829:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55008:14;55025:49;55060:13;:11;:13::i;:::-;55025:18;;:30;;55048:6;55025:22;:30::i;:49::-;55008:66;;55102:1;55093:6;:10;55085:58;;;;-1:-1:-1;;;55085:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;55326:16:0;;55156:23;55326:16;;;:10;:16;;;;;:23;55156;;;;55326:30;;55354:1;55326:27;:30::i;:::-;55314:42;;55367:956;55374:10;;55367:956;;-1:-1:-1;;;;;55419:16:0;;55401:15;55419:16;;;:10;:16;;;;;:19;;55436:1;;55419:19;;;;;;;;;;;;;;;;55401:37;;55453:12;55468:32;55488:1;:11;;;55468:15;:19;;:32;;;;:::i;:::-;55453:47;;55532:6;55521:1;:8;;;:17;55517:723;;;55597:8;;55577:39;;55597:18;;55610:4;55597:12;:18::i;:::-;55577:15;;:19;:39::i;:::-;55559:57;-1:-1:-1;55659:178:0;55707:111;55777:18;55707:39;55730:15;55740:4;55730:9;:15::i;:::-;55707:8;;:18;;55720:4;55707:12;:18::i;:111::-;55659:21;;:25;:178::i;:::-;55876:8;;55635:202;;-1:-1:-1;55865:20:0;;:6;;:10;:20::i;:::-;55856:29;;55517:723;;;55944:37;55964:16;:6;55975:4;55964:10;:16::i;55944:37::-;55926:55;-1:-1:-1;56024:176:0;56072:109;56140:18;56072:37;56093:15;56103:4;56093:9;:15::i;:::-;56072:16;:6;56083:4;56072:10;:16::i;56024:176::-;56000:200;;56219:5;;;;55517:723;56303:8;:1;56309;56303:5;:8::i;:::-;56299:12;;55367:956;;;;;56365:30;56398:96;56475:18;56398:58;56434:21;56398:17;56409:5;56398:10;:17::i;:96::-;56365:129;;56561:33;56597:179;56760:15;56597:144;56718:22;56597:102;56640:58;56679:18;;56641:32;56661:11;;56641:15;:19;;:32;;;;:::i;56640:58::-;56597:24;;;:42;:102::i;:144::-;:162;;:179::i;:::-;56561:215;;56789:14;56806:123;56903:25;56806:78;56861:22;56807:34;56827:13;56807:15;:13;:15::i;56806:123::-;56789:140;-1:-1:-1;56978:13:0;56994:104;57082:15;56994:69;57002:18;57040:22;56994:45;:69::i;:104::-;56978:120;;57133:6;57154:5;57174:15;57204:34;57224:13;57204:15;:13;:15::i;:34::-;57111:138;;;;;;;;;;;;;;;;;53927:3330;;;;;;;;:::o;36039:105::-;36117:19;36126:6;36134:1;36117:8;:19::i;39650:158::-;39777:23;39786:6;39794:5;39777:8;:23::i;:::-;;39650:158;;;;:::o;34410:26::-;;;;:::o;33868:25::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;57265:429::-;57413:8;:15;57332:20;;;57439:248;57457:10;57455:1;:12;;;57439:248;;;57489:23;57515:8;57524:1;57515:11;;;;;;;;;;;;;;;;;;;;57489:37;;57557:7;:11;;;57545:9;:23;57541:135;;;57604:56;57621:38;57642:7;:16;;;57622:7;:14;;;57621:20;;:38;;;;:::i;57604:56::-;57589:71;;57541:135;-1:-1:-1;57469:3:0;;57439:248;;;;57265:429;;;;:::o;51251:531::-;51307:7;51331:10;51327:68;;-1:-1:-1;51365:18:0;51358:25;;51327:68;51434:24;51409:14;51490:19;51434:24;51490:7;:5;:7::i;:19::-;51478:31;-1:-1:-1;51520:9:0;51532:17;:5;51542:6;51532:9;:17::i;:::-;51520:29;-1:-1:-1;51582:192:0;51632:127;51753:5;51632:94;51707:18;51640:39;51647:19;51664:1;51632:94;51520:29;51753:5;51647;:12::i;:19::-;51640:37;;;:39::i;:::-;51632:48;;;:74;:94::i;:127::-;51590:18;;51582:31;:192::i;:::-;51562:212;51251:531;-1:-1:-1;;;;;51251:531:0:o;33569:56::-;33620:5;33569:56;:::o;53209:247::-;53290:7;53312;53334;53356;53398:50;53406:10;53418:26;53433:10;53418:14;:26::i;:::-;53446:1;53398:7;:50::i;:::-;53391:57;;;;;;;;53209:247;;;;:::o;34325:32::-;;;;:::o;21268:244::-;20545:12;:10;:12::i;:::-;20535:6;;-1:-1:-1;;;;;20535:6:0;;;:22;;;20527:67;;;;;-1:-1:-1;;;20527:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21357:22:0;::::1;21349:73;;;;-1:-1:-1::0;;;21349:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21459:6;::::0;;21438:38:::1;::::0;-1:-1:-1;;;;;21438:38:0;;::::1;::::0;21459:6;::::1;::::0;21438:38:::1;::::0;::::1;21487:6;:17:::0;;;::::1;-1:-1:-1::0;;;;;21487:17:0;;;::::1;::::0;;;::::1;::::0;;21268:244::o;37166:118::-;37219:7;37254:13;-1:-1:-1;;;;;37254:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40009:965;20545:12;:10;:12::i;:::-;20535:6;;-1:-1:-1;;;;;20535:6:0;;;:22;;;20527:67;;;;;-1:-1:-1;;;20527:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40096:19:::1;40104:10;40096:7;:19::i;:::-;40237:8;:15:::0;40184::::1;::::0;;40263:704:::1;40287:12;40283:1;:16;40263:704;;;40321:23;40347:8;40356:14;:1:::0;40362:7;40356:5:::1;:14::i;:::-;40347:24;;;;;;;;;::::0;;;::::1;::::0;;::::1;::::0;;::::1;;::::0;-1:-1:-1;40400:14:0::1;:1:::0;40406:7;40400:5:::1;:14::i;:::-;40386:28;;40435:16;40447:3;40435:11;:16::i;:::-;:21:::0;:55;::::1;;;;40479:7;:11;;;40460:15;:30;;40435:55;40431:525;;;40553:14:::0;;40590:16:::1;::::0;::::1;::::0;40629:13:::1;::::0;::::1;::::0;40516:145:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;;::::1;40832:8;40841:15:::0;;:22:::1;::::0;40861:1:::1;40841:19;:22::i;:::-;40832:32;;;;;;;;;;;;;;;;;;40816:8;40825:3;40816:13;;;;;;;;;;;;;;;;;;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40883:8;:14;;;;;;;;::::0;;;::::1;::::0;;::::1;::::0;;;;;;::::1;;::::0;;;::::1;::::0;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;;;40926::::1;::::0;:7;;:11:::1;:14::i;:::-;40916:24;;40431:525;-1:-1:-1::0;;40301:3:0::1;;40263:704;;41271:1398:::0;23252:1;23858:7;;:19;;23850:63;;;;;-1:-1:-1;;;23850:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23252:1;23991:7;:18;41435:10;41427:54:::1;;;::::0;;-1:-1:-1;;;41427:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;41514:25:0;::::1;41492:113;;;;-1:-1:-1::0;;;41492:113:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41666:27;41718:1:::0;41697:18:::1;;:22;41696:141;;41801:36;:6:::0;33620:5:::1;41801:10;:36::i;:::-;41696:141;;;41736:49;41771:13;:11;:13::i;:::-;41736:18;::::0;:30:::1;::::0;41759:6;41736:22:::1;:30::i;:49::-;41666:171;;41878:1;41856:19;:23;41848:69;;;;-1:-1:-1::0;;;41848:69:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41961:20;41969:11;41961:7;:20::i;:::-;-1:-1:-1::0;;;;;42051:23:0;::::1;42031:17;42051:23:::0;;;:10:::1;:23;::::0;;;;42099:11;;:36:::1;::::0;42115:19;42099:15:::1;:36::i;:::-;42085:50:::0;;42165:15:::1;42146:16;::::0;;::::1;:34:::0;;;-1:-1:-1;;;;;42193:23:0;::::1;42085:11;42193:23:::0;;;:10:::1;:23;::::0;;;;;;;42236:43;;;;::::1;::::0;;;;;;;;::::1;::::0;;;42193:97;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;42376:18:::1;::::0;:43:::1;::::0;42242:19;42376:22:::1;:43::i;:::-;42355:18;:64;;;;42457:126;42509:6;42538:12;42566:6;42457:12;-1:-1:-1::0;;;;;42457:18:0::1;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;:126;42608:11;-1:-1:-1::0;;;;;42601:60:0::1;;42621:6;42629:27;42644:11;42629:14;:27::i;:::-;42601:60;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;-1:-1:-1;42601:60:0;;;;;;;;;;;;::::1;-1:-1:-1::0;;23208:1:0;24170:22;;-1:-1:-1;;;41271:1398:0:o;18877:106::-;18965:10;18877:106;:::o;47551:695::-;47601:15;:13;:15::i;:::-;47659:30;47692:82;47745:18;;47693:32;47713:11;;47693:15;:19;;:32;;;;:::i;47692:82::-;47812:24;;47659:115;;-1:-1:-1;47812:76:0;;47659:115;47812:28;:76::i;:::-;47785:24;:103;47913:15;47899:11;:29;;;-1:-1:-1;;;;;47989:16:0;;-1:-1:-1;47989:16:0;;;:10;:16;;;;;48106:11;;48069:16;;;;47989;;48048:70;;48049:37;;47913:15;48049:19;:37::i;48048:70::-;48149:17;;;;48016:102;;-1:-1:-1;48149:44:0;;48016:102;48149:21;:44::i;:::-;48129:17;;;:64;-1:-1:-1;48223:15:0;48204:16;;;;:34;-1:-1:-1;;47551:695:0:o;2381:471::-;2439:7;2684:6;2680:47;;-1:-1:-1;2714:1:0;2707:8;;2680:47;2751:5;;;2755:1;2751;:5;:1;2775:5;;;;;:10;2767:56;;;;-1:-1:-1;;;2767:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3328:132;3386:7;3413:39;3417:1;3420;3413:39;;;;;;;;;;;;;;;;;:3;:39::i;1027:181::-;1085:7;1117:5;;;1141:6;;;;1133:46;;;;;-1:-1:-1;;;1133:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;15365:205;15493:68;;;-1:-1:-1;;;;;15493:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15516:27;15493:68;;;15466:96;;15486:5;;15466:19;:96::i;15180:177::-;15290:58;;;-1:-1:-1;;;;;15290:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15313:23;15290:58;;;15263:86;;15283:5;;15263:19;:86::i;1491:136::-;1549:7;1576:43;1580:1;1583;1576:43;;;;;;;;;;;;;;;;;:3;:43::i;49722:696::-;49778:7;49798:23;49824:8;49833:3;49824:13;;;;;;;;;;;;;;;;;;49798:39;;49914:7;:13;;;49896:15;:31;49892:72;;;49951:1;49944:8;;;;;49892:72;50016:7;:14;;;49996:7;:16;;;:34;49992:75;;50054:1;50047:8;;;;;49992:75;50179:7;:11;;;50160:15;:30;50156:106;;50233:16;;;;50214:14;;;;:36;;:18;:36::i;:::-;50207:43;;;;;50156:106;50294:116;50379:7;:16;;;50294:62;50341:7;:14;;;50295:40;50315:7;:19;;;50295:15;:19;;:40;;;;:::i;42930:1658::-;43036:7;23252:1;23858:7;;:19;;23850:63;;;;;-1:-1:-1;;;23850:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23252:1;23991:7;:18;43090:10;43082:56:::1;;;;-1:-1:-1::0;;;43082:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43201:6;43171:26;43186:10;43171:14;:26::i;:::-;:36;;43149:127;;;;-1:-1:-1::0;;;43149:127:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43320:19;43328:10;43320:7;:19::i;:::-;43419:32;43454:30;43477:6;43454:22;:30::i;:::-;43419:65:::0;-1:-1:-1;43545:33:0::1;43581:99;43661:18:::0;43581:61:::1;43419:65:::0;43581:17:::1;43592:5:::0;43581:10:::1;:17::i;:99::-;43545:135;;43693:20;43716:135;43795:55;43824:25;43795:24;;:28;;:55;;;;:::i;:::-;43716:60;43750:25;43716:15;:13;:15::i;:135::-;43693:158:::0;-1:-1:-1;43918:9:0;;43914:97:::1;;43964:17;::::0;:35:::1;::::0;43986:12;43964:21:::1;:35::i;:::-;43944:17;:55:::0;43914:97:::1;44036:12;::::0;:30:::1;::::0;44053:12;44036:16:::1;:30::i;:::-;44021:12;:45:::0;44104:41:::1;::::0;;;;;44126:10:::1;44104:41;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;44104:12:0::1;:21;::::0;::::1;::::0;:41;;;;;-1:-1:-1;;44104:41:0;;;;;;;-1:-1:-1;44104:21:0;:41;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;44170:10;-1:-1:-1::0;;;;;44161:60:0::1;;44182:6;44190:26;44205:10;44190:14;:26::i;:::-;44161:60;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;-1:-1:-1;44161:60:0;;;;;;;;;;;;::::1;44236:16:::0;;44232:161:::1;;44269:48;::::0;;;;;44292:10:::1;44269:48;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;44269:13:0::1;:22;::::0;::::1;::::0;:48;;;;;-1:-1:-1;;44269:48:0;;;;;;;-1:-1:-1;44269:22:0;:48;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;44337:44:0::1;::::0;;;;;;;44356:10:::1;::::0;-1:-1:-1;44337:44:0::1;::::0;-1:-1:-1;44337:44:0;;;;::::1;::::0;;::::1;44232:161;44407:9:::0;;44403:148:::1;;44433:57;-1:-1:-1::0;;;;;44433:6:0::1;:23;44457:10;44477:4;44484:5:::0;44433:23:::1;:57::i;:::-;44510:29;::::0;;;;;;;44521:10:::1;::::0;44510:29:::1;::::0;;;;;::::1;::::0;;::::1;44403:148;23208:1:::0;24170:22;;44568:12;42930:1658;-1:-1:-1;;;;;42930:1658:0:o;31986:253::-;32038:6;32069:1;32065;:5;;;32057:14;;;;;;32213:3;32138:11;32147:1;32138:8;:11::i;:::-;32130:20;;32153:34;32130:57;32129:87;;32084:147;;31986:253;;;:::o;48334:1205::-;48378:22;48415:20;48438:13;:11;:13::i;:::-;48415:36;;48468:17;;48489:1;48468:22;48464:877;;;48560:12;48543:29;;48464:877;;;48680:22;48726:9;48721:418;48745:8;:15;48741:19;;48721:418;;;48786:14;48803;48815:1;48803:11;:14::i;:::-;48786:31;;48836:23;48862:8;48871:1;48862:11;;;;;;;;;;;;;;;;;;48836:37;;48905:1;48896:6;:10;48892:232;;;48950:16;;;;:28;;48971:6;48950:20;:28::i;:::-;48931:16;;;:47;49023:15;49001:19;;;:37;49078:26;:14;49097:6;49078:18;:26::i;:::-;49061:43;;48892:232;-1:-1:-1;;48762:3:0;;48721:418;;;-1:-1:-1;49225:17:0;;49170:87;;:32;:14;49189:12;49170:18;:32::i;:87::-;49292:17;;49153:104;;-1:-1:-1;49292:37:0;;49314:14;49292:21;:37::i;:::-;49272:17;:57;-1:-1:-1;48464:877:0;49357:18;;49353:179;;49392:11;-1:-1:-1;;;;;49392:20:0;;49421:13;49437:14;49392:60;;;;;;;;;;;;;-1:-1:-1;;;;;49392:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49472:48;49488:14;49504:15;:13;:15::i;:::-;49472:48;;;;;;;;;;;;;;;;;;;;;;48334:1205;;:::o;3956:278::-;4042:7;4077:12;4070:5;4062:28;;;;-1:-1:-1;;;4062:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4101:9;4117:1;4113;:5;;;;;;;3956:278;-1:-1:-1;;;;;3956:278:0:o;17485:761::-;17909:23;17935:69;17963:4;17935:69;;;;;;;;;;;;;;;;;17943:5;-1:-1:-1;;;;;17935:27:0;;;:69;;;;;:::i;:::-;18019:17;;17909:95;;-1:-1:-1;18019:21:0;18015:224;;18161:10;18150:30;;;;;;;;;;;;;;;-1:-1:-1;18150:30:0;18142:85;;;;-1:-1:-1;;;18142:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1930:192;2016:7;2052:12;2044:6;;;;2036:29;;;;-1:-1:-1;;;2036:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2088:5:0;;;1930:192::o;44944:2472::-;45009:7;45029:27;45059:73;45108:13;:11;:13::i;:::-;45059:18;;:30;;45082:6;45059:22;:30::i;:73::-;45029:103;;45173:1;45151:19;:23;45143:71;;;;-1:-1:-1;;;45143:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45477:10;45295:26;45466:22;;;:10;:22;;;;;45363:19;;45295:26;;45499:1383;45506:20;;45499:1383;;45576:13;;45543:23;;45569:6;;45576:17;;;;45569:25;;;;;;;;;;;;;;;;45543:51;;45609:17;45629:40;45649:9;:19;;;45629:15;:19;;:40;;;;:::i;:::-;45609:60;;45686:13;45702:20;45712:9;45702;:20::i;:::-;45686:36;;45763:16;45743:9;:16;;;:36;45739:1132;;45926:16;;45874:185;;45926:114;;45999:18;;45926:42;;45962:5;;45926:31;;45947:9;45926:20;:31::i;45874:185::-;46144:16;;45846:213;;-1:-1:-1;46099:95:0;;46144:31;;46165:9;46144:20;:31::i;:::-;46099:18;;:22;:95::i;:::-;46253:16;;46078:116;;-1:-1:-1;46232:38:0;;:16;;:20;:38::i;:::-;46213:57;;46289:6;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45739:1132;;;46420:185;46472:114;46545:18;46472:42;46508:5;46472:31;:16;46493:9;46472:20;:31::i;46420:185::-;46392:213;-1:-1:-1;46645:95:0;46690:31;:16;46711:9;46690:20;:31::i;46645:95::-;46778:16;;46624:116;;-1:-1:-1;46778:38:0;;46799:16;46778:20;:38::i;:::-;46759:57;;:16;;-1:-1:-1;45739:1132:0;45499:1383;;;;;;46954:10;46923:17;46943:22;;;:10;:22;;;;;46996:17;;;;:41;;47018:18;46996:21;:41::i;:::-;46976:17;;;:61;47062:11;;:36;;47078:19;47062:15;:36::i;:::-;47048:50;;47128:15;47109:16;;;:34;47216:24;;:72;;47259:18;47216:28;:72::i;:::-;47189:24;:99;47320:18;;:43;;47343:19;47320:22;:43::i;:::-;47299:18;:64;-1:-1:-1;47383:25:0;;44944:2472;-1:-1:-1;;;;;;44944:2472:0:o;30148:1079::-;30199:6;30230:1;30226;:5;;;30218:14;;;;;;30245:10;30270:13;;;;30304:19;30298:25;;30294:91;;30347:2;30364:9;;;;30340;30294:91;30405:11;30399:2;:17;30395:83;;30440:2;30457:9;;;;30433;30395:83;30498:7;30492:2;:13;30488:79;;30529:2;30546:9;;;;30522;30488:79;30587:5;30581:2;:11;30577:75;;30616:1;30632:8;;;;30609;30577:75;30672:4;30666:2;:10;30662:74;;30700:1;30716:8;;;;30693;30662:74;30756:3;30750:2;:9;30746:73;;30783:1;30799:8;;;;30776;30746:73;30839:3;30833:2;:9;30829:23;;30851:1;30844:8;;;;30829:23;30913:8;;;30926:2;30912:16;30896:13;30967:3;:9;;;30952:10;;;;:25;;;;;;;;;;;-1:-1:-1;31006:18:0;30988:198;31032:1;31026:3;:7;30988:198;;;31061:8;;;31102:3;31096:9;;;31159:15;;;31149:25;;;;;31127:3;:7;31120:14;;31043:1;31035:9;30988:198;;;-1:-1:-1;31212:6:0;;30148:1079;-1:-1:-1;;;;;30148:1079:0:o;12167:196::-;12270:12;12302:53;12325:6;12333:4;12339:1;12342:12;12302:22;:53::i;:::-;12295:60;12167:196;-1:-1:-1;;;;12167:196:0:o;13544:979::-;13674:12;13707:18;13718:6;13707:10;:18::i;:::-;13699:60;;;;;-1:-1:-1;;;13699:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13833:12;13847:23;13874:6;-1:-1:-1;;;;;13874:11:0;13894:8;13905:4;13874:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13832:78;;;;13925:7;13921:595;;;13956:10;-1:-1:-1;13949:17:0;;-1:-1:-1;13949:17:0;13921:595;14070:17;;:21;14066:439;;14333:10;14327:17;14394:15;14381:10;14377:2;14373:19;14366:44;14281:148;14469:20;;-1:-1:-1;;;14469:20:0;;;;;;;;;;;;;;;;;14476:12;;14469:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9052:619;9112:4;9580:20;;9423:66;9620:23;;;;;;:42;;-1:-1:-1;;9647:15:0;;;9612:51;-1:-1:-1;;9052:619:0:o

Swarm Source

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