Contract 0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x6899f898f3737e6592a71cdfc21259c6acaac63dcd84b60e64668a1f9de9ff3767225732021-04-20 5:40:4416 hrs 27 mins ago0x5c4e422b01ae7fdbd6a580a2a04cc6482dc381d0 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536345
0x49f5871512a56e4129fef53283f2299c058c9dc3217b90c033f48714415994d967116332021-04-19 20:30:151 day 1 hr ago0xab1a5840a121fbab4ad9237bb4a17da4eb89df94 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536345
0x957784ed0031c4184a943c06d651f526221852d4789149632d0de3265fc795f466730162021-04-18 12:10:452 days 9 hrs ago0x7a50f6ac2052c761228c1d473a4be7bb20ee5a2b IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000493085
0xbbe34c9e628f7692bcb75d923c0c899dfd9a67086ad0804bd1e681789ff5865466724842021-04-18 11:44:092 days 10 hrs ago0x3aaf6f36ae49007c88d4a5c5f00da4218690a057 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000461285
0x1631c676ad0e71cc8c6e0e77f6f11831a1792e5dc777976d4bc94ed364a3172a66702422021-04-18 9:51:242 days 12 hrs ago0x59e8459c647c531f47a518f96447ea71b128ced7 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536345
0x8fa4ce0d07fd10107e98ab16cdba16eb8f7c04caead17aede46d6ebb537e872d66501432021-04-17 17:06:093 days 5 hrs ago0xe7a1964c3927d9f7fd85e7743c4edbbb31ed5d2d IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000386345
0x645ee2fef5d1945041f0f90c113b3c529dc2be920bdcbbbc936fab47707003ed66496482021-04-17 16:41:233 days 5 hrs ago0xb1832ed2cc44f7d8ec00b51ea0a16a717d36d511 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.00031275
0xa8059c72095ccdde66e1f2bbed0c9401c0bc451f24a5983164444565db7bf82066495922021-04-17 16:38:353 days 5 hrs ago0xb1832ed2cc44f7d8ec00b51ea0a16a717d36d511 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.00031275
0xf9b7175f3fd732ca03737b83581e4c629b5a433188daa53487b4abff4463a9dc66495912021-04-17 16:38:323 days 5 hrs ago0xb1832ed2cc44f7d8ec00b51ea0a16a717d36d511 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.00031275
0xd8d608e1b6980308b33bef94d3fa3ecdee5570bb3c716f8b71ea5164153b913566495342021-04-17 16:35:413 days 5 hrs ago0xb1832ed2cc44f7d8ec00b51ea0a16a717d36d511 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.00021213
0xcd35debe381023fb5bb7a2028cf4bc6c40b46caf77f64a77ab34faefb5aeecf966495342021-04-17 16:35:413 days 5 hrs ago0xb1832ed2cc44f7d8ec00b51ea0a16a717d36d511 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000563475
0x360dc3b22b4f3d7470b8996f0a257675f9c4519213051b566cd23a9e87b8d94c66488352021-04-17 16:00:443 days 6 hrs ago0xc72f2d0fd4d9a38d05d5f59acba61ca7cca2a2af IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.00028107
0x23d4734ed1d09aab31dabdcf4a227e9528607bda4fff9a569afa1f0023e5c6f866482532021-04-17 15:31:383 days 6 hrs ago0xb1a66c67d4878a6331d0550e7ec4c18c69d6dd9d IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000461345
0x7f5f7c5c134493e37242855c98b7e25952c1693cc26521a0efa0771ffbc7bcdb66459812021-04-17 13:38:023 days 8 hrs ago0x8948e76b10612d4c3360917b02edfa45b56588a9 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000563535
0x1a52084b7f3b336bfc2946b2ba1ed8e82d394353bc39a7484362de031be178a766405412021-04-17 9:06:023 days 13 hrs ago0xb4c571ea0da60e55f1d308a239f05ff833221025 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000746535
0xc95efa582c0500335b644511d22c2ab36a009050362444c9131f16671b17dcbf66396352021-04-17 8:20:443 days 13 hrs ago0x94ca3794ac8458eeb97a6a96f20e3365f7f8ed96 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536345
0x5222dac083d515ae71fa537fb02b6183796f10c1cb8361c3f25a0d5167f0b69a66396272021-04-17 8:20:203 days 13 hrs ago0x796fb8006d4e11a792eb3fda10af507b86e89ad7 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536285
0x69ad18403dd8c901e6e2db4e54f331771913426bad0955915d9bcbf07de71dc566387842021-04-17 7:38:113 days 14 hrs ago0x65186a4a2e24fe0362c0a56d2b18824ce1a1d9a0 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000435725
0x684839b06d28f1fa7bc36a0329fa0fad455f98b662cc2ca5ca9ab0f088ab9f5866385682021-04-17 7:27:233 days 14 hrs ago0xf57c72dd6bf52e7b9551502383c1c9738c1f901f IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536345
0x80e11f4eff7304be4b1c5f6dafc23bb86770e1cc2449bff9d78e360fc273900b66380652021-04-17 7:02:143 days 15 hrs ago0xa7728057d0df778e34ca2ebde3d302d9e8843198 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000392465
0x132e2b9baf548405febfbf3bf290bbcc4b37ad2dfd858cafb3cbde3d2f7dc2d766377092021-04-17 6:44:263 days 15 hrs ago0xece99f33a504cbaa4094235f438520f2416fbba5 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536345
0x0cb57a1b2c61f5c785344b2b4301e57ffa9da0809286b65f24f041eafaed8a2766367202021-04-17 5:54:593 days 16 hrs ago0xce8447a43f346e5e13cf1ea1de0ab78aa3b045a6 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000461345
0xdd969401150453cabcfbf78338a17e7b676af5c562b7990476a2394cd2cfef8c66362722021-04-17 5:32:353 days 16 hrs ago0xc3cca8bf45c58157211d8d7b36185ea4b09f5606 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000536345
0x03a338c87357e905bc1941b4c7f91f2b03bf39015b9750b1cc238a53170ee27966354012021-04-17 4:48:533 days 17 hrs ago0xf6ee629678256a0bbfe9f286b1a47c576f53453d IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000386345
0x61021b9745af45cb1c92fbb14638ee76f4028caac7926bddf21fc52d046429f166346102021-04-17 4:09:203 days 17 hrs ago0x16cc94364378388aa5b422d11eef788f7cb099c3 IN  0x29d51cdb835cdd08c28d78c0203eed4439a8cc6a0 BNB0.000386345
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x4A6aF165EeED38b672Fa8f64cb7e99b304cC0FFE

Contract Name:
UraniumMoneyPot

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

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

// File: @pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol


pragma solidity >=0.4.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;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

// File: @pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol


pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

    /**
     * @dev Returns the token symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the token name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @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: @pancakeswap/pancake-swap-lib/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: @pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol


pragma solidity ^0.6.0;




/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(
        IBEP20 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
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 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),
            'SafeBEP20: approve from non-zero to non-zero allowance'
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 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(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            'SafeBEP20: 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(IBEP20 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, 'SafeBEP20: low-level call failed');
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), 'SafeBEP20: BEP20 operation did not succeed');
        }
    }
}

// File: @pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol


pragma solidity >=0.4.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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// File: @pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol


pragma solidity >=0.4.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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


pragma solidity 0.6.12;


/*
 * @dev Implementation of the {IBEP20} interface.
 * This implementation is a copy of @pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol
 * with a burn supply management.
 */
contract UraniumBEP20 is Context, IBEP20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;
    uint256 private _burnSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {BEP20-totalSupply}.
     */
    function totalSupply() public override view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {BEP20-totalSupply}.
     */
    function burnSupply() public view returns (uint256) {
        return _burnSupply;
    }

    /**
     * @dev See {BEP20-balanceOf}.
     */
    function balanceOf(address account) public override view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {BEP20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {BEP20-allowance}.
     */
    function allowance(address owner, address spender) public override view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {BEP20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance")
        );
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero")
        );
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "BEP20: transfer from the zero address");
        require(recipient != address(0), "BEP20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "BEP20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "BEP20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "BEP20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        _burnSupply = _burnSupply.add(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), "BEP20: approve from the zero address");
        require(spender != address(0), "BEP20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller"s allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance")
        );
    }
}


// File: contracts/SRadsToken.sol

pragma solidity 0.6.12;


// SRadsToken with Governance.
contract SRadsToken is UraniumBEP20("Uranium ShareRads", "sRADS") {
    using SafeMath for uint256;
    using SafeMath for uint8;

    struct HolderInfo {
        uint256 amount;
        uint256 avgTransactionBlock;
        uint256 amountSwapped;
    }

    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    UraniumMoneyPot public moneyPot;
    RadsToken public rads;
    bool private _isRadsSetup = false;
    bool private _isMoneyPotSetup = false;

    uint256 public immutable SWAP_PENALTY_MAX_PERIOD ; // after 24h penalty of holding sRads. Swap penalty is at the minimum
    uint8 public immutable SWAP_PENALTY_MAX_PER_SRADS ; // 30% => 1 srads = 0.3 rads

    mapping(address => HolderInfo) public holdersInfo;

    constructor (uint256 swapPenaltyMaxPeriod, uint8 swapPenaltyMaxPerSRads) public{
        SWAP_PENALTY_MAX_PERIOD = swapPenaltyMaxPeriod; // default 28800: after 24h penalty of holding sRads. Swap penalty is at the minimum
        SWAP_PENALTY_MAX_PER_SRADS = swapPenaltyMaxPerSRads; // 30% => 1 srads = 0.3 rads
    }

    function setupRads(RadsToken _rads) external onlyOwner {
        require(!_isRadsSetup, "Rads: already setup");
        rads = _rads;
        _isRadsSetup = true;
    }

    function setupMoneyPot(UraniumMoneyPot _moneyPot) external onlyOwner {
        require(!_isMoneyPotSetup, "MoneyPot already setup");
        moneyPot = _moneyPot;
        _isMoneyPotSetup = true;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == owner();
    }

    /**
     * @dev Returns true if the caller is the rads contract.
     */
    function isRads() internal view returns (bool) {
        return msg.sender == address(rads);
    }

    function swapToRads(uint256 _amount) external {
        require(_amount > 0, "amount 0");
        address _from = msg.sender;
        uint256 radsAmount = _swapRadsAmount( _from, _amount);
        super._burn(_from, _amount);
        holdersInfo[_from].avgTransactionBlock = _getAvgTransactionBlock(holdersInfo[_from], _amount, true);
        holdersInfo[_from].amount = holdersInfo[_from].amount.sub(_amount);
        if (holdersInfo[_from].amount > 0) {
            uint256 amountTRadsSwapped = getSRadsAtMinPenalty(_from);
            if (amountTRadsSwapped > _amount){
                amountTRadsSwapped = amountTRadsSwapped.sub(_amount);
            }
            holdersInfo[_from].amountSwapped = holdersInfo[_from].amountSwapped.add(amountTRadsSwapped);
        }
        else{
            holdersInfo[_from].amountSwapped = 0;
        }
        rads.mint(_from, radsAmount);

        if (address(moneyPot) != address(0)) {
            moneyPot.updateSRadsHolder(_from);
        }
    }

    /* @notice Preview swap return in rads with _sRadsAmount by _holderAddress
    *  this function used by front-end to show how much rads will be retrieve if _holderAddress swap _sRadsAmount
    */
    function previewSwapRadsExpectedAmount(address _holderAddress, uint256 _sRadsAmount) external view returns (uint256 expectedRads){
        return _swapRadsAmount( _holderAddress, _sRadsAmount);
    }

    function getSRadsAtMinPenalty(address _holderAddress) public view returns (uint256){
        HolderInfo storage holderInfo = holdersInfo[_holderAddress];
        if(holderInfo.avgTransactionBlock.add(SWAP_PENALTY_MAX_PERIOD) <= block.number ){
            return holderInfo.amount;
        }
        return (((block.number.sub(holderInfo.avgTransactionBlock)).mul(1000).div(SWAP_PENALTY_MAX_PERIOD))
                .mul(holderInfo.amount.sub(holderInfo.amountSwapped))).div(1000);
    }

    /* @notice Calculate the adjustment for a user if he want to swap _sRadsAmount to rads */
    function _swapRadsAmount(address _holderAddress, uint256 _sRadsAmount) internal view returns (uint256 expectedRads){
        HolderInfo storage holderInfo = holdersInfo[_holderAddress];
        require(holderInfo.amount >= _sRadsAmount, "Not enough sRADS");
        if(block.number >= holderInfo.avgTransactionBlock.add(SWAP_PENALTY_MAX_PERIOD)){
            return _sRadsAmount;
        }

        uint256 _sRadsAtMinPenalty = getSRadsAtMinPenalty(_holderAddress);

        if (_sRadsAtMinPenalty >= _sRadsAmount){
            return _sRadsAmount;
        }

        uint256 swapPenaltyPerSRads = SWAP_PENALTY_MAX_PER_SRADS.sub(
            (_sRadsAtMinPenalty.div(holderInfo.amount)).mul(SWAP_PENALTY_MAX_PER_SRADS)
        );
        uint256 _sRadsWithPenalty = _sRadsAmount.sub(_sRadsAtMinPenalty);
        uint256 _radsForSRadsWithPenalty = _sRadsWithPenalty.sub(_sRadsWithPenalty.mul(swapPenaltyPerSRads).div(100));
        return _radsForSRadsWithPenalty.add(_sRadsAtMinPenalty);
    }

    /* @notice Calculate average deposit/withdraw block for _holderAddress */
    function _getAvgTransactionBlock(HolderInfo storage holderInfo, uint256 _sRadsAmount, bool _onWithdraw) internal view returns (uint256){
        if (holderInfo.amount == 0) {
            return block.number;
        }
        uint256 transactionBlockWeight;
        if (_onWithdraw) {
            if (holderInfo.amount == _sRadsAmount) {
                return 0;
            }
            else {
                return holderInfo.avgTransactionBlock;
            }
        }
        else {
            transactionBlockWeight = (holderInfo.amount.mul(holderInfo.avgTransactionBlock).add(block.number.mul(_sRadsAmount)));
        }
        return transactionBlockWeight.div(holderInfo.amount.add(_sRadsAmount));
    }


    /// @notice Creates `_amount` token to `_to`.
    function mint(address _to, uint256 _amount) external onlyOwner() {
        HolderInfo storage holder = holdersInfo[_to];
        _mint(_to, _amount);
        holder.avgTransactionBlock = _getAvgTransactionBlock(holder, _amount, false);
        holder.amount = holder.amount.add(_amount);
        _moveDelegates(address(0), _delegates[_to], _amount);

        if (address(moneyPot) != address(0)) {
            moneyPot.updateSRadsHolder(_to);
        }
    }

    /// @dev overrides transfer function to meet tokenomics of RADS
    function _transfer(address _sender, address _recipient, uint256 _amount) internal virtual override {
        holdersInfo[_sender].avgTransactionBlock = _getAvgTransactionBlock(holdersInfo[_sender], _amount, true);
        holdersInfo[_sender].amount = holdersInfo[_sender].amount.sub(_amount);
        if (_recipient == BURN_ADDRESS) {
            super._burn(_sender, _amount);
            if (address(moneyPot) != address(0)) {
                moneyPot.updateSRadsHolder(_sender);
            }
            emit Transfer(_sender, _recipient, 0);
        } else {
            super._transfer(_sender, _recipient, _amount);
            holdersInfo[_recipient].avgTransactionBlock = _getAvgTransactionBlock(holdersInfo[_recipient], _amount, false);
            holdersInfo[_recipient].amount = holdersInfo[_recipient].amount.add(_amount);

            if (address(moneyPot) != address(0)) {
                moneyPot.updateSRadsHolder(_sender);
                if (_sender != _recipient){
                    moneyPot.updateSRadsHolder(_recipient);
                }
            }
        }

    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @dev A record of each accounts delegate
    mapping(address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping(address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
    keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH =
    keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping(address => uint) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
    external
    view
    returns (address)
    {
        return _delegates[delegator];
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
    external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "RADS::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "RADS::delegateBySig: invalid nonce");
        require(now <= expiry, "RADS::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
    external
    view
    returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
    external
    view
    returns (uint256)
    {
        require(blockNumber < block.number, "RADS::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2;
            // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
    internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator);
        // balance of underlying RADSs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
    internal
    {
        uint32 blockNumber = safe32(block.number, "RADS::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2 ** 32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly {chainId := chainid()}
        return chainId;
    }
}

// File: contracts/RadsToken.sol

// RadsToken with Governance.
contract RadsToken is UraniumBEP20("Uranium Rads", "RADS") {

    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;
    SRadsToken public sRads;
    bool private _isSRadsSetup = false;

    /*
     * @dev Throws if called by any account other than the owner or sRads
     */
    modifier onlyOwnerOrSRads() {
        require(isOwner() || isSRads(), "caller is not the owner or sRads");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == owner();
    }

    /**
     * @dev Returns true if the caller is sRads contracts.
     */
    function isSRads() internal view returns (bool) {
        return msg.sender == address(sRads);
    }

    function setupSRads(SRadsToken _sRads) external onlyOwner{
        require(!_isSRadsSetup, "sRads: already setup");
        sRads = _sRads;
        _isSRadsSetup = true;
    }

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterUranium).
    function mint(address _to, uint256 _amount) external onlyOwnerOrSRads {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    /// @dev overrides transfer function to meet tokenomics of RADS
    function _transfer(address sender, address recipient, uint256 amount) internal virtual override {
        require(amount > 0, "amount 0");

        if (recipient == BURN_ADDRESS) {
            super._burn(sender, amount);
            emit Transfer(sender, recipient, 0);
        } else {
            // 2% of every transfer burnt
            uint256 burnAmount = amount.mul(2).div(100);
            // 98% of transfer sent to recipient
            uint256 sendAmount = amount.sub(burnAmount);
            require(amount == sendAmount + burnAmount, "RADS::transfer: Burn value invalid");

            super._burn(sender, burnAmount);
            super._transfer(sender, recipient, sendAmount);
            amount = sendAmount;
        }
    }

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @dev A record of each accounts delegate
    mapping (address => address) internal _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint256 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

      /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

   /**
    * @notice Delegate votes from `msg.sender` to `delegatee`
    * @param delegatee The address to delegate votes to
    */
    function delegate(address delegatee) external {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "RADS::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "RADS::delegateBySig: invalid nonce");
        require(now <= expiry, "RADS::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account)
        external
        view
        returns (uint256)
    {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber)
        external
        view
        returns (uint256)
    {
        require(blockNumber < block.number, "RADS::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying RADSs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint256 oldVotes,
        uint256 newVotes
    )
        internal
    {
        uint32 blockNumber = safe32(block.number, "RADS::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}


// File: contracts/UraniumMoneyPot.sol

pragma solidity 0.6.12;




/*
* This contract is used to collect sRADS stacking rewards from fee (like swap, deposit on pools or farms)
*/
contract UraniumMoneyPot is Ownable {
    using SafeBEP20 for IBEP20;
    using SafeMath for uint256;


    struct TokenPot {
        uint256 tokenAmount;
        uint256 accTokenPerShare;
        uint256 lastRewardBlock;
        uint256 lastUpdateTokenPotBlocks;
    }

    struct UserInfo {
        uint256 rewardDept;
        uint256 pending;
    }

    SRadsToken public sRads;

    uint256 public updateMoneyPotPeriodNbBlocks;
    uint256 public lastUpdateMoneyPotBlocks;
    uint256 public startBlock;

    // _token => user => rewardsDebt / pending
    mapping(address => mapping (address => UserInfo)) public sRadsHoldersRewardsInfo;
    // user => LastSRadsAmountSaved
    mapping (address => uint256) public sRadsHoldersInfo;

    address[] public registeredToken; // Should never be too weight !
    mapping (address => bool )  public tokenInitialized;

    address public masterUranium;
    address public feeManager;

    mapping (address => TokenPot) private _distributedMoneyPot;
    mapping (address => uint256 ) public pendingTokenAmount;
    mapping (address => uint256) public reserveTokenAmount;

    uint256 public lastSRadsSupply;

    constructor (SRadsToken _sRads, address _feeManager, address _masterUranium, uint256 _startBlock, uint256 _initialUpdateMoneyPotPeriodNbBlocks) public{
        updateMoneyPotPeriodNbBlocks = _initialUpdateMoneyPotPeriodNbBlocks;
        startBlock = _startBlock;
        lastUpdateMoneyPotBlocks = _startBlock;
        sRads = _sRads;
        masterUranium = _masterUranium;
        feeManager = _feeManager;
    }

    function distributedMoneyPot(address _token) external view returns (uint256 tokenAmount, uint256 accTokenPerShare, uint256 lastRewardBlock ){
        return (
            _distributedMoneyPot[_token].tokenAmount,
            _distributedMoneyPot[_token].accTokenPerShare,
            _distributedMoneyPot[_token].lastRewardBlock
        );
    }

    function getRegisteredTokenLength() external view returns (uint256){
        return registeredToken.length;
    }

    function getTokenAmountPotFromMoneyPot(address _token) external view returns (uint256 tokenAmount){
        return _distributedMoneyPot[_token].tokenAmount;
    }

    function tokenPerBlock(address _token) external view returns (uint256){
        return _distributedMoneyPot[_token].tokenAmount.div(updateMoneyPotPeriodNbBlocks);
    }

    function massUpdateMoneyPot() public {
        uint256 length = registeredToken.length;
        for (uint256 index = 0; index < length; ++index) {
            _updateTokenPot(registeredToken[index]);
        }
    }

    function updateCurrentMoneyPot(address _token) external{
        _updateTokenPot(_token);
    }

    function getMultiplier(uint256 _from, uint256 _to) internal pure returns (uint256){
        return _to.sub(_from);
    }

    function _updateTokenPot(address _token) internal {
        TokenPot storage tokenPot = _distributedMoneyPot[_token];
        if (block.number <= tokenPot.lastRewardBlock) {
            return;
        }

        if (lastSRadsSupply == 0) {
            tokenPot.lastRewardBlock = block.number;
            return;
        }

        if (block.number >= tokenPot.lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks)){
            if(tokenPot.tokenAmount > 0){
                uint256 multiplier = getMultiplier(tokenPot.lastRewardBlock, tokenPot.lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks));
                uint256 tokenRewardsPerBlock = tokenPot.tokenAmount.div(updateMoneyPotPeriodNbBlocks);
                tokenPot.accTokenPerShare = tokenPot.accTokenPerShare.add(tokenRewardsPerBlock.mul(multiplier).mul(1e12).div(lastSRadsSupply));
            }
            tokenPot.tokenAmount = pendingTokenAmount[_token];
            pendingTokenAmount[_token] = 0;
            tokenPot.lastRewardBlock = tokenPot.lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks);
            tokenPot.lastUpdateTokenPotBlocks = tokenPot.lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks);
            lastUpdateMoneyPotBlocks = tokenPot.lastUpdateTokenPotBlocks;

            if (block.number >= tokenPot.lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks)){
//                _updateTokenPot(_token);
                // If something bad happen in blockchain and moneyPot aren't able to be updated since
                // return here, will allow us to re-call updatePool manually, instead of directly doing it recursively here
                // which can cause too much gas error and so break all the MP contract
                return;
            }
        }
        if(tokenPot.tokenAmount > 0){
            uint256 multiplier = getMultiplier(tokenPot.lastRewardBlock, block.number);
            uint256 tokenRewardsPerBlock = tokenPot.tokenAmount.div(updateMoneyPotPeriodNbBlocks);
            tokenPot.accTokenPerShare = tokenPot.accTokenPerShare.add(tokenRewardsPerBlock.mul(multiplier).mul(1e12).div(lastSRadsSupply));
        }

        tokenPot.lastRewardBlock = block.number;

        if (block.number >= tokenPot.lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks)){
            lastUpdateMoneyPotBlocks = tokenPot.lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks);
        }
    }

    function pendingTokenRewardsAmount(address _token, address _user) external view returns (uint256){

        if(lastSRadsSupply == 0){
            return 0;
        }

        uint256 accTokenPerShare = _distributedMoneyPot[_token].accTokenPerShare;
        uint256 tokenReward = _distributedMoneyPot[_token].tokenAmount.div(updateMoneyPotPeriodNbBlocks);
        uint256 lastRewardBlock = _distributedMoneyPot[_token].lastRewardBlock;
        uint256 lastUpdateTokenPotBlocks = _distributedMoneyPot[_token].lastUpdateTokenPotBlocks;
        if (block.number >= lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks)){
            accTokenPerShare = (accTokenPerShare.add(
                    tokenReward.mul(getMultiplier(lastRewardBlock, lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks))
                ).mul(1e12).div(lastSRadsSupply)));
            lastRewardBlock = lastUpdateTokenPotBlocks.add(updateMoneyPotPeriodNbBlocks);
            tokenReward = pendingTokenAmount[_token].div(updateMoneyPotPeriodNbBlocks);
        }

        if (block.number > lastRewardBlock && lastSRadsSupply != 0 && tokenReward > 0) {
            accTokenPerShare = accTokenPerShare.add(
                    tokenReward.mul(getMultiplier(lastRewardBlock, block.number)
                ).mul(1e12).div(lastSRadsSupply));
        }
        return (sRads.balanceOf(_user).mul(accTokenPerShare).div(1e12).sub(sRadsHoldersRewardsInfo[_token][_user].rewardDept))
                    .add(sRadsHoldersRewardsInfo[_token][_user].pending);
    }

    function updateSRadsHolder(address _sRadsHolder) external {
        uint256 holderPreviousSRadsAmount = sRadsHoldersInfo[_sRadsHolder];
        uint256 holderBalance = sRads.balanceOf(_sRadsHolder);
        uint256 length = registeredToken.length;
        for (uint256 index = 0; index < length; ++index) {
            _updateTokenPot(registeredToken[index]);
            TokenPot storage tokenPot = _distributedMoneyPot[registeredToken[index]];
            if(holderPreviousSRadsAmount > 0 && tokenPot.accTokenPerShare > 0){
                uint256 pending = holderPreviousSRadsAmount.mul(tokenPot.accTokenPerShare).div(1e12).sub(sRadsHoldersRewardsInfo[registeredToken[index]][_sRadsHolder].rewardDept);
                if(pending > 0) {
                    if (_sRadsHolder == masterUranium) {
                        reserveTokenAmount[registeredToken[index]] = reserveTokenAmount[registeredToken[index]].add(pending);
                    }
                    else {
                        sRadsHoldersRewardsInfo[registeredToken[index]][_sRadsHolder].pending = sRadsHoldersRewardsInfo[registeredToken[index]][_sRadsHolder].pending.add(pending);
                    }
                }
            }
            sRadsHoldersRewardsInfo[registeredToken[index]][_sRadsHolder].rewardDept = holderBalance.mul(tokenPot.accTokenPerShare).div(1e12);
        }
        if (holderPreviousSRadsAmount > 0){
            lastSRadsSupply = lastSRadsSupply.sub(holderPreviousSRadsAmount);
        }
        lastSRadsSupply = lastSRadsSupply.add(holderBalance);
        sRadsHoldersInfo[_sRadsHolder] = holderBalance;
    }

    function harvestRewards(address _sRadsHolder) external {
        uint256 length = registeredToken.length;

        for (uint256 index = 0; index < length; ++index) {
            harvestReward(_sRadsHolder, registeredToken[index]);
        }
    }

    function harvestReward(address _sRadsHolder, address _token) public {
        uint256 holderBalance = sRadsHoldersInfo[_sRadsHolder];
        _updateTokenPot(_token);
        TokenPot storage tokenPot = _distributedMoneyPot[_token];
        if(holderBalance > 0 && tokenPot.accTokenPerShare > 0){
            uint256 pending = holderBalance.mul(tokenPot.accTokenPerShare).div(1e12).sub(sRadsHoldersRewardsInfo[_token][_sRadsHolder].rewardDept);
            if(pending > 0) {
                if (_sRadsHolder == masterUranium) {
                    reserveTokenAmount[_token] = reserveTokenAmount[_token].add(pending);
                }
                else {
                    sRadsHoldersRewardsInfo[_token][_sRadsHolder].pending = sRadsHoldersRewardsInfo[_token][_sRadsHolder].pending.add(pending);
                }
            }
        }
        if ( sRadsHoldersRewardsInfo[_token][_sRadsHolder].pending > 0 ){
            safeTokenTransfer(_token, _sRadsHolder, sRadsHoldersRewardsInfo[_token][_sRadsHolder].pending);
            sRadsHoldersRewardsInfo[_token][_sRadsHolder].pending = 0;
        }
        sRadsHoldersRewardsInfo[_token][_sRadsHolder].rewardDept = holderBalance.mul(tokenPot.accTokenPerShare).div(1e12);
    }

    /*
    * Used by feeManager contract to deposit rewards (collected from many sources)
    */
    function depositRewards(address _token, uint256 _amount) external{
        require(msg.sender == feeManager);
        massUpdateMoneyPot();

        IBEP20(_token).safeTransferFrom(msg.sender, address(this), _amount);

        if(block.number < startBlock){
            reserveTokenAmount[_token] = reserveTokenAmount[_token].add(_amount);
        }
        else {
            pendingTokenAmount[_token] = pendingTokenAmount[_token].add(_amount);
        }
    }

    /*
    * Used by dev to deposit bonus rewards that can be added to pending pot at any time
    */
    function depositBonusRewards(address _token, uint256 _amount) external onlyOwner{
        IBEP20(_token).safeTransferFrom(msg.sender, address(this), _amount);
        reserveTokenAmount[_token] = reserveTokenAmount[_token].add(_amount);
    }

    function addTokenToRewards(address _token) external onlyOwner{
        if (!tokenInitialized[_token]){
            registeredToken.push(_token);
            _distributedMoneyPot[_token].lastRewardBlock = lastUpdateMoneyPotBlocks > block.number ? lastUpdateMoneyPotBlocks : lastUpdateMoneyPotBlocks.add(updateMoneyPotPeriodNbBlocks);
            _distributedMoneyPot[_token].accTokenPerShare = 0;
            _distributedMoneyPot[_token].tokenAmount = 0;
            _distributedMoneyPot[_token].lastUpdateTokenPotBlocks = _distributedMoneyPot[_token].lastRewardBlock;
            tokenInitialized[_token] = true;
        }
    }

    function removeTokenToRewards(address _token) external onlyOwner{
        require(_distributedMoneyPot[_token].tokenAmount == 0, "cannot remove before end of distribution");
        if (tokenInitialized[_token]){
            uint256 length = registeredToken.length;
            uint256 indexToRemove = length; // If token not found web do not try to remove bad index
            for (uint256 index = 0; index < length; ++index) {
                if(registeredToken[index] == _token){
                    indexToRemove = index;
                    break;
                }
            }
            if(indexToRemove < length){ // Should never be false.. Or something wrong happened
                registeredToken[indexToRemove] = registeredToken[registeredToken.length-1];
                registeredToken.pop();
            }
            tokenInitialized[_token] = false;
            return;
        }
    }

    function nextMoneyPotUpdateBlock() external view returns (uint256){
        return lastUpdateMoneyPotBlocks.add(updateMoneyPotPeriodNbBlocks);
    }

    function setUpdateMoneyPotPeriodNbBlocks(uint256 _updateRewardsDelay) external onlyOwner{
        updateMoneyPotPeriodNbBlocks = _updateRewardsDelay.div(3 * 1 seconds);
    }

    function addToPendingFromReserveTokenAmount(address _token, uint256 _amount) external onlyOwner{
        require(_amount <= reserveTokenAmount[_token], "Insufficient amount");
        reserveTokenAmount[_token] = reserveTokenAmount[_token].sub(_amount);
        pendingTokenAmount[_token] = pendingTokenAmount[_token].add(_amount);
    }


    // Safe Token transfer function, just in case if rounding error causes pool to not have enough Tokens.
    function safeTokenTransfer(address _token, address _to, uint256 _amount) internal {
        IBEP20 token = IBEP20(_token);
        uint256 tokenBal = token.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > tokenBal) {
            transferSuccess = token.transfer(_to, tokenBal);
        } else {
            transferSuccess = token.transfer(_to, _amount);
        }
        require(transferSuccess, "safeSRadsTransfer: Transfer failed");
    }

// Only use in testnet !
//    function emergencyWithdraw(IBEP20 _token) external onlyOwner {
//        _token.safeTransfer(address(msg.sender), _token.balanceOf(address(this)));
//    }

}

Contract ABI

[{"inputs":[{"internalType":"contract SRadsToken","name":"_sRads","type":"address"},{"internalType":"address","name":"_feeManager","type":"address"},{"internalType":"address","name":"_masterUranium","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_initialUpdateMoneyPotPeriodNbBlocks","type":"uint256"}],"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"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addToPendingFromReserveTokenAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"addTokenToRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositBonusRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"distributedMoneyPot","outputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"accTokenPerShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRegisteredTokenLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getTokenAmountPotFromMoneyPot","outputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sRadsHolder","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"harvestReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sRadsHolder","type":"address"}],"name":"harvestRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastSRadsSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateMoneyPotBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdateMoneyPot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"masterUranium","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextMoneyPotUpdateBlock","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":"address","name":"","type":"address"}],"name":"pendingTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingTokenRewardsAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"registeredToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"removeTokenToRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reserveTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sRads","outputs":[{"internalType":"contract SRadsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sRadsHoldersInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"sRadsHoldersRewardsInfo","outputs":[{"internalType":"uint256","name":"rewardDept","type":"uint256"},{"internalType":"uint256","name":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_updateRewardsDelay","type":"uint256"}],"name":"setUpdateMoneyPotPeriodNbBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"tokenPerBlock","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":"address","name":"_token","type":"address"}],"name":"updateCurrentMoneyPot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateMoneyPotPeriodNbBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sRadsHolder","type":"address"}],"name":"updateSRadsHolder","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405162002b0f38038062002b0f833981810160405260a081101561003557600080fd5b50805160208201516040830151606084015160809094015192939192909190600061005e6100f5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506002556004819055600355600180546001600160a01b039485166001600160a01b0319918216179091556009805492851692821692909217909155600a80549290931691161790556100f9565b3390565b612a0680620001096000396000f3fe608060405234801561001057600080fd5b506004361061020b5760003560e01c8063715018a61161012a578063b47e26ac116100bd578063d96ed9391161008c578063deb5235011610071578063deb5235014610680578063e367ae20146106b9578063f2fde38b146106f25761020b565b8063d96ed93914610645578063dbba0c2d1461064d5761020b565b8063b47e26ac146105ae578063bcac296f14610602578063c27cfbb614610635578063d0fb02031461063d5761020b565b80639e1df171116100f95780639e1df17114610505578063a17a71031461050d578063b310000d14610548578063b4254a881461057b5761020b565b8063715018a61461049f5780638da5cb5b146104a757806397ad1cce146104af5780639c7e2655146104e85761020b565b806349980c5b116101a257806362bfad8e1161017157806362bfad8e146103fe5780636403b85b146104315780636c4b95d914610464578063713cfdb4146104975761020b565b806349980c5b14610388578063515ce5171461039057806351645e28146103c3578063598e88ee146103cb5761020b565b80633b4d4c37116101de5780633b4d4c37146102e15780634253ff4b1461031c578063470eacf61461034d57806348cd4cb1146103805761020b565b806303dcc3b51461021057806304506bbc146102615780632cbbd864146102805780633188d7571461029a575b600080fd5b6102436004803603602081101561022657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610725565b60408051938452602084019290925282820152519081900360600190f35b61027e6004803603602081101561027757600080fd5b503561075a565b005b6102886107fc565b60408051918252519081900360200190f35b6102cd600480360360208110156102b057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610802565b604080519115158252519081900360200190f35b610288600480360360408110156102f757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610817565b610324610a8e565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102886004803603602081101561036357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610aaa565b610288610adf565b610288610ae5565b61027e600480360360208110156103a657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b03565b610324610b56565b610288600480360360208110156103e157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b72565b6102886004803603602081101561041457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b84565b61027e6004803603602081101561044757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b96565b6102886004803603602081101561047a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610fae565b610288610fc0565b61027e610fc6565b6103246110c6565b61027e600480360360408110156104c557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356110e2565b610324600480360360208110156104fe57600080fd5b50356111f0565b610288611224565b61027e6004803603604081101561052357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661122a565b61027e6004803603602081101561055e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611500565b6102886004803603602081101561059157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661150c565b6105e9600480360360408110156105c457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611534565b6040805192835260208301919091528051918290030190f35b61027e6004803603602081101561061857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611558565b610288611868565b61032461186e565b61027e61188a565b61027e6004803603602081101561066357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118b0565b61027e6004803603604081101561069657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611a75565b61027e600480360360408110156106cf57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611c06565b61027e6004803603602081101561070857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611d16565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b60205260409020805460018201546002909201549092565b610762611db0565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146107eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6107f6816003611db4565b60025550565b60035481565b60086020526000908152604090205460ff1681565b6000600e546000141561082c57506000610a88565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600b60205260408120600181015460025491549092916108689190611db4565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600b60205260409020600280820154600390920154905492935090916108ab908290611dfd565b431061094e576108fe6108f7600e546108f164e8d4a510006108eb6108e4886108df6002548a611dfd90919063ffffffff16565b611e71565b8990611e7d565b90611e7d565b90611db4565b8590611dfd565b935061091560025482611dfd90919063ffffffff16565b60025473ffffffffffffffffffffffffffffffffffffffff89166000908152600c602052604090205491935061094b9190611db4565b92505b814311801561095e5750600e5415155b801561096a5750600083115b156109915761098e6108f7600e546108f164e8d4a510006108eb6108e48843611e71565b93505b73ffffffffffffffffffffffffffffffffffffffff87811660009081526005602090815260408083208a8516808552908352928190206001808201549154905483517f70a0823100000000000000000000000000000000000000000000000000000000815260048101969096529251610a81969295610a7b959294610a759464e8d4a51000946108f1948f9493909216926370a082319260248083019392829003018186803b158015610a4357600080fd5b505afa158015610a57573d6000803e3d6000fd5b505050506040513d6020811015610a6d57600080fd5b505190611e7d565b90611ef0565b90611dfd565b9450505050505b92915050565b60095473ffffffffffffffffffffffffffffffffffffffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff82166000908152600b60205260408120549091610a889190611db4565b60045481565b6000610afe600254600354611dfd90919063ffffffff16565b905090565b60075460005b81811015610b5157610b498360078381548110610b2257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1661122a565b600101610b09565b505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020526000908152604090205481565b600c6020526000908152604090205481565b73ffffffffffffffffffffffffffffffffffffffff80821660008181526006602090815260408083205460015482517f70a08231000000000000000000000000000000000000000000000000000000008152600481019690965291519095939491909316926370a0823192602480840193919291829003018186803b158015610c1e57600080fd5b505afa158015610c32573d6000803e3d6000fd5b505050506040513d6020811015610c4857600080fd5b505160075490915060005b81811015610f5857610c9260078281548110610c6b57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16611f32565b6000600b600060078481548110610ca557fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001902090508415801590610ceb575060008160010154115b15610edc576000610d636005600060078681548110610d0657fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220938c168252929092529020546001840154610a759064e8d4a51000906108f1908b90611e7d565b90508015610eda5760095473ffffffffffffffffffffffffffffffffffffffff88811691161415610e2357610ddb81600d600060078781548110610da357fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff16835282019290925260400190205490611dfd565b600d600060078681548110610dec57fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff168352820192909252604001902055610eda565b610e83816005600060078781548110610e3857fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220938d1682529290925290206001015490611dfd565b6005600060078681548110610e9457fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220938c168252929092529020600101555b505b610efc64e8d4a510006108f1836001015487611e7d90919063ffffffff16565b6005600060078581548110610f0d57fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283018220938b1682529290925290205550600101610c53565b508215610f7057600e54610f6c9084611ef0565b600e555b600e54610f7d9083611dfd565b600e555073ffffffffffffffffffffffffffffffffffffffff90921660009081526006602052604090209190915550565b60066020526000908152604090205481565b60025481565b610fce611db0565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461105757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600a5473ffffffffffffffffffffffffffffffffffffffff16331461110657600080fd5b61110e61188a565b61113073ffffffffffffffffffffffffffffffffffffffff8316333084612112565b6004544310156111955773ffffffffffffffffffffffffffffffffffffffff82166000908152600d602052604090205461116a9082611dfd565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d60205260409020556111ec565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600c60205260409020546111c59082611dfd565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600c60205260409020555b5050565b600781815481106111fd57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60075490565b73ffffffffffffffffffffffffffffffffffffffff821660009081526006602052604090205461125982611f32565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602052604090208115801590611291575060008160010154115b156113ea5773ffffffffffffffffffffffffffffffffffffffff808416600090815260056020908152604080832093881683529290529081205460018301546112eb9190610a759064e8d4a51000906108f1908890611e7d565b905080156113e85760095473ffffffffffffffffffffffffffffffffffffffff868116911614156113715773ffffffffffffffffffffffffffffffffffffffff84166000908152600d60205260409020546113469082611dfd565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600d60205260409020556113e8565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600560209081526040808320938916835292905220600101546113b19082611dfd565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152600560209081526040808320938a16835292905220600101555b505b73ffffffffffffffffffffffffffffffffffffffff808416600090815260056020908152604080832093881683529290522060010154156114a15773ffffffffffffffffffffffffffffffffffffffff80841660009081526005602090815260408083209388168352929052206001015461146890849086906121ad565b73ffffffffffffffffffffffffffffffffffffffff80841660009081526005602090815260408083209388168352929052908120600101555b6114c164e8d4a510006108f1836001015485611e7d90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff93841660009081526005602090815260408083209790961682529590955292909320919091555050565b61150981611f32565b50565b73ffffffffffffffffffffffffffffffffffffffff166000908152600b602052604090205490565b60056020908152600092835260408084209091529082529020805460019091015482565b611560611db0565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146115e957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b602052604090205415611665576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806129a96028913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526008602052604090205460ff1615611509576007548060005b828110156116fe578373ffffffffffffffffffffffffffffffffffffffff16600782815481106116c657fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156116f6578091506116fe565b60010161169a565b508181101561181657600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061173757fe5b6000918252602090912001546007805473ffffffffffffffffffffffffffffffffffffffff909216918390811061176a57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060078054806117bd57fe5b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190555b505073ffffffffffffffffffffffffffffffffffffffff8116600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055611509565b600e5481565b600a5473ffffffffffffffffffffffffffffffffffffffff1681565b60075460005b818110156111ec576118a860078281548110610c6b57fe5b600101611890565b6118b8611db0565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461194157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526008602052604090205460ff1661150957600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff831617905560035443106119fb576002546003546119f691611dfd565b6119ff565b6003545b73ffffffffffffffffffffffffffffffffffffffff82166000908152600b602090815260408083206002810185905560018082018590558482556003909101949094556008909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016909117905550565b611a7d611db0565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611b0657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600d6020526040902054811115611b9a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f496e73756666696369656e7420616d6f756e7400000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166000908152600d6020526040902054611bca9082611ef0565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d6020908152604080832093909355600c905220546111c59082611dfd565b611c0e611db0565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611c9757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b611cb973ffffffffffffffffffffffffffffffffffffffff8316333084612112565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600d6020526040902054611ce99082611dfd565b73ffffffffffffffffffffffffffffffffffffffff9092166000908152600d602052604090209190915550565b611d1e611db0565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614611da757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b611509816123f8565b3390565b6000611df683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506124f1565b9392505050565b600082820183811015611df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000611df68284611ef0565b600082611e8c57506000610a88565b82820282848281611e9957fe5b0414611df6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806129886021913960400191505060405180910390fd5b6000611df683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506125ad565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600b6020526040902060028101544311611f685750611509565b600e54611f7b5743600290910155611509565b6002546003820154611f8c91611dfd565b43106120815780541561200a576000611fbc82600201546108df6002548560030154611dfd90919063ffffffff16565b6002548354919250600091611fd091611db4565b9050612002611ff7600e546108f164e8d4a510006108eb8787611e7d90919063ffffffff16565b600185015490611dfd565b600184015550505b73ffffffffffffffffffffffffffffffffffffffff82166000908152600c602052604081208054835555600254600382015461204591611dfd565b60028083019190915554600382015461205d91611dfd565b60038083018290558190556002546120759190611dfd565b43106120815750611509565b8054156120db576000612098826002015443611e71565b60025483549192506000916120ac91611db4565b90506120d3611ff7600e546108f164e8d4a510006108eb8787611e7d90919063ffffffff16565b600184015550505b436002808301919091555460038201546120f491611dfd565b43106111ec57600254600382015461210b91611dfd565b6003555050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526121a7908590612621565b50505050565b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051849160009173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b15801561221e57600080fd5b505afa158015612232573d6000803e3d6000fd5b505050506040513d602081101561224857600080fd5b505190506000818411156122fa578273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156122c757600080fd5b505af11580156122db573d6000803e3d6000fd5b505050506040513d60208110156122f157600080fd5b5051905061239a565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561236b57600080fd5b505af115801561237f573d6000803e3d6000fd5b505050506040513d602081101561239557600080fd5b505190505b806123f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806129666022913960400191505060405180910390fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff8116612464576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806129406026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008183612597576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561255c578181015183820152602001612544565b50505050905090810190601f1680156125895780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816125a357fe5b0495945050505050565b60008184841115612619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561255c578181015183820152602001612544565b505050900390565b6060612683826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126f99092919063ffffffff16565b805190915015610b51578080602001905160208110156126a257600080fd5b5051610b51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612916602a913960400191505060405180910390fd5b60606127088484600085612710565b949350505050565b606061271b856128dc565b61278657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106127f057805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016127b3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612852576040519150601f19603f3d011682016040523d82523d6000602084013e612857565b606091505b5091509150811561286b5791506127089050565b80511561287b5780518082602001fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815286516024840152865187939192839260440191908501908083836000831561255c578181015183820152602001612544565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061270857505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573737361666553526164735472616e736665723a205472616e73666572206661696c6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7763616e6e6f742072656d6f7665206265666f726520656e64206f6620646973747269627574696f6ea2646970667358221220d0caaef99bc98532a70ce342d20e309a9102215222836b3ae27198672333507c64736f6c634300060c0033000000000000000000000000c15337d72b1d4f946be639124e3558c1c11df2d2000000000000000000000000f49b673507677ec8bd85e2ab3f429c80c7cd4e7e000000000000000000000000b6b61d828437f767d2be798d596a0b7d0a71702500000000000000000000000000000000000000000000000000000000005fbe8c0000000000000000000000000000000000000000000000000000000000007080

Deployed ByteCode Sourcemap

59542:14149:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61169:351;;;;;;;;;;;;;;;;-1:-1:-1;61169:351:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;72361:176;;;;;;;;;;;;;;;;-1:-1:-1;72361:176:0;;:::i;:::-;;59998:39;;;:::i;:::-;;;;;;;;;;;;;;;;60382:51;;;;;;;;;;;;;;;;-1:-1:-1;60382:51:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;64947:1559;;;;;;;;;;;;;;;;-1:-1:-1;64947:1559:0;;;;;;;;;;;:::i;60442:28::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;61823:170;;;;;;;;;;;;;;;;-1:-1:-1;61823:170:0;;;;:::i;60044:25::-;;;:::i;72203:150::-;;;:::i;68161:252::-;;;;;;;;;;;;;;;;-1:-1:-1;68161:252:0;;;;:::i;59916:23::-;;;:::i;60638:54::-;;;;;;;;;;;;;;;;-1:-1:-1;60638:54:0;;;;:::i;60576:55::-;;;;;;;;;;;;;;;;-1:-1:-1;60576:55:0;;;;:::i;66514:1639::-;;;;;;;;;;;;;;;;-1:-1:-1;66514:1639:0;;;;:::i;60250:52::-;;;;;;;;;;;;;;;;-1:-1:-1;60250:52:0;;;;:::i;59948:43::-;;;:::i;22628:140::-;;;:::i;21986:79::-;;;:::i;69785:474::-;;;;;;;;;;;;;;;;-1:-1:-1;69785:474:0;;;;;;;;;:::i;60311:32::-;;;;;;;;;;;;;;;;-1:-1:-1;60311:32:0;;:::i;61528:115::-;;;:::i;68421:1256::-;;;;;;;;;;;;;;;;-1:-1:-1;68421:1256:0;;;;;;;;;;;:::i;62229:97::-;;;;;;;;;;;;;;;;-1:-1:-1;62229:97:0;;;;:::i;61651:164::-;;;;;;;;;;;;;;;;-1:-1:-1;61651:164:0;;;;:::i;60126:80::-;;;;;;;;;;;;;;;;-1:-1:-1;60126:80:0;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;71270:925;;;;;;;;;;;;;;;;-1:-1:-1;71270:925:0;;;;:::i;60701:30::-;;;:::i;60477:25::-;;;:::i;62001:220::-;;;:::i;70625:637::-;;;;;;;;;;;;;;;;-1:-1:-1;70625:637:0;;;;:::i;72545:341::-;;;;;;;;;;;;;;;;-1:-1:-1;72545:341:0;;;;;;;;;:::i;70372:245::-;;;;;;;;;;;;;;;;-1:-1:-1;70372:245:0;;;;;;;;;:::i;22923:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22923:109:0;;;;:::i;61169:351::-;61342:28;;61237:19;61342:28;;;:20;:28;;;;;:40;;61397:45;;;;61457:44;;;;;61342:40;;61169:351::o;72361:176::-;22208:12;:10;:12::i;:::-;22198:6;;:22;:6;;;:22;;;22190:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72491:38:::1;:19:::0;72515:13:::1;72491:23;:38::i;:::-;72460:28;:69:::0;-1:-1:-1;72361:176:0:o;59998:39::-;;;;:::o;60382:51::-;;;;;;;;;;;;;;;:::o;64947:1559::-;65036:7;65060:15;;65079:1;65060:20;65057:59;;;-1:-1:-1;65103:1:0;65096:8;;65057:59;65155:28;;;65128:24;65155:28;;;:20;:28;;;;;:45;;;;65278:28;;65233:40;;65155:45;;65128:24;65233:74;;:40;:44;:74::i;:::-;65344:28;;;65318:23;65344:28;;;:20;:28;;;;;:44;;;;;65434:53;;;;;65547:28;;65211:96;;-1:-1:-1;65344:44:0;;65518:58;;65434:53;;65518:28;:58::i;:::-;65502:12;:74;65498:507;;65612:200;65655:156;65795:15;;65655:135;65785:4;65655:125;65671:90;65685:15;65702:58;65731:28;;65702:24;:28;;:58;;;;:::i;:::-;65671:13;:90::i;:::-;65655:11;;:15;:125::i;:::-;:129;;:135::i;:::-;:139;;:156::i;:::-;65612:16;;:20;:200::i;:::-;65592:221;;65846:58;65875:28;;65846:24;:28;;:58;;;;:::i;:::-;65964:28;;65933:26;;;;;;;:18;:26;;;;;;65828:76;;-1:-1:-1;65933:60:0;;:26;:30;:60::i;:::-;65919:74;;65498:507;66036:15;66021:12;:30;:54;;;;-1:-1:-1;66055:15:0;;:20;;66021:54;:73;;;;;66093:1;66079:11;:15;66021:73;66017:279;;;66130:154;66173:110;66267:15;;66173:89;66257:4;66173:79;66189:44;66203:15;66220:12;66189:13;:44::i;66130:154::-;66111:173;;66017:279;66451:31;;;;;;;;:23;:31;;;;;;;;:38;;;;;;;;;;;;;:46;;;;;66373:49;;66314:5;;:22;;;;;;;;;;;;;;66313:185;;66451:46;;66314:109;;66373:49;;66314:54;;66363:4;;66314:44;;66341:16;;66314:5;;;;;:15;;:22;;;;;66451:31;66314:22;;;;;:5;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66314:22:0;;:26;:44::i;:54::-;:58;;:109::i;:::-;66313:137;;:185::i;:::-;66306:192;;;;;;64947:1559;;;;;:::o;60442:28::-;;;;;;:::o;61823:170::-;61956:28;;61911;;;61885:7;61911:28;;;:20;:28;;;;;:40;61885:7;;61911:74;;:40;:44;:74::i;60044:25::-;;;;:::o;72203:150::-;72261:7;72287:58;72316:28;;72287:24;;:28;;:58;;;;:::i;:::-;72280:65;;72203:150;:::o;68161:252::-;68244:15;:22;68227:14;68279:127;68311:6;68303:5;:14;68279:127;;;68343:51;68357:12;68371:15;68387:5;68371:22;;;;;;;;;;;;;;;;;;;;68343:13;:51::i;:::-;68319:7;;68279:127;;;;68161:252;;:::o;59916:23::-;;;;;;:::o;60638:54::-;;;;;;;;;;;;;:::o;60576:55::-;;;;;;;;;;;;;:::o;66514:1639::-;66619:30;;;;66583:33;66619:30;;;:16;:30;;;;;;;;;66684:5;;:29;;;;;;;;;;;;;;66619:30;;66583:33;;66684:5;;;;;:15;;:29;;;;;66619:30;;66684:29;;;;;;:5;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66684:29:0;66741:15;:22;66684:29;;-1:-1:-1;66724:14:0;66774:1117;66806:6;66798:5;:14;66774:1117;;;66838:39;66854:15;66870:5;66854:22;;;;;;;;;;;;;;;;;;;;66838:15;:39::i;:::-;66892:25;66920:20;:44;66941:15;66957:5;66941:22;;;;;;;;;;;;;;;;;;;;;;66920:44;;;;;;;;;;;;;-1:-1:-1;66982:29:0;;;;;:62;;;67043:1;67015:8;:25;;;:29;66982:62;66979:757;;;67064:15;67082:144;67153:23;:47;67177:15;67193:5;67177:22;;;;;;;;;;;;;;;;;;;;;;;;67153:47;;;;;;;;;;;;;;;:61;;;;;;;;;;;:72;67177:22;67112:25;;;67082:66;;67143:4;;67082:56;;:25;;:29;:56::i;:144::-;67064:162;-1:-1:-1;67248:11:0;;67245:476;;67304:13;;;67288:29;;;67304:13;;67288:29;67284:418;;;67391:55;67438:7;67391:18;:42;67410:15;67426:5;67410:22;;;;;;;;;;;;;;;;;;;;;;67391:42;;;;;;;;;;;;;;:46;:55::i;:::-;67346:18;:42;67365:15;67381:5;67365:22;;;;;;;;;;;;;;;;;;;;;;67346:42;;;;;;;;;;;;:100;67284:418;;;67596:82;67670:7;67596:23;:47;67620:15;67636:5;67620:22;;;;;;;;;;;;;;;;;;;;;;;;67596:47;;;;;;;;;;;;;;;:61;;;;;;;;;;;67620:22;67596:69;;;:73;:82::i;:::-;67524:23;:47;67548:15;67564:5;67548:22;;;;;;;;;;;;;;;;;;;;;;;;67524:47;;;;;;;;;;;;;;;:61;;;;;;;;;;;67548:22;67524:69;:154;67284:418;66979:757;;67825:54;67874:4;67825:44;67843:8;:25;;;67825:13;:17;;:44;;;;:::i;:54::-;67750:23;:47;67774:15;67790:5;67774:22;;;;;;;;;;;;;;;;;;;;;;;;67750:47;;;;;;;;;;;;;;;:61;;;;;;;;;;;:129;-1:-1:-1;67774:22:0;66814:7;66774:1117;;;-1:-1:-1;67905:29:0;;67901:125;;67968:15;;:46;;67988:25;67968:19;:46::i;:::-;67950:15;:64;67901:125;68054:15;;:34;;68074:13;68054:19;:34::i;:::-;68036:15;:52;-1:-1:-1;68099:30:0;;;;;;;;:16;:30;;;;;:46;;;;-1:-1:-1;66514:1639:0:o;60250:52::-;;;;;;;;;;;;;:::o;59948:43::-;;;;:::o;22628:140::-;22208:12;:10;:12::i;:::-;22198:6;;:22;:6;;;:22;;;22190:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22727:1:::1;22711:6:::0;;22690:40:::1;::::0;::::1;22711:6:::0;;::::1;::::0;22690:40:::1;::::0;22727:1;;22690:40:::1;22758:1;22741:19:::0;;;::::1;::::0;;22628:140::o;21986:79::-;22024:7;22051:6;;;21986:79;:::o;69785:474::-;69883:10;;;;69869;:24;69861:33;;;;;;69905:20;:18;:20::i;:::-;69938:67;:31;;;69970:10;69990:4;69997:7;69938:31;:67::i;:::-;70036:10;;70021:12;:25;70018:234;;;70091:26;;;;;;;:18;:26;;;;;;:39;;70122:7;70091:30;:39::i;:::-;70062:26;;;;;;;:18;:26;;;;;:68;70018:234;;;70201:26;;;;;;;:18;:26;;;;;;:39;;70232:7;70201:30;:39::i;:::-;70172:26;;;;;;;:18;:26;;;;;:68;70018:234;69785:474;;:::o;60311:32::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60311:32:0;:::o;61528:115::-;61613:15;:22;61528:115;:::o;68421:1256::-;68524:30;;;68500:21;68524:30;;;:16;:30;;;;;;68565:23;68581:6;68565:15;:23::i;:::-;68627:28;;;68599:25;68627:28;;;:20;:28;;;;;68669:17;;;;;:50;;;68718:1;68690:8;:25;;;:29;68669:50;68666:613;;;68812:31;;;;68735:15;68812:31;;;:23;:31;;;;;;;;:45;;;;;;;;;;;:56;68771:25;;;;68753:116;;68812:56;68753:54;;68802:4;;68753:44;;:13;;:17;:44::i;:116::-;68735:134;-1:-1:-1;68887:11:0;;68884:384;;68939:13;;;68923:29;;;68939:13;;68923:29;68919:334;;;69006:26;;;;;;;:18;:26;;;;;;:39;;69037:7;69006:30;:39::i;:::-;68977:26;;;;;;;:18;:26;;;;;:68;68919:334;;;69167:31;;;;;;;;:23;:31;;;;;;;;:45;;;;;;;;;:53;;;:66;;69225:7;69167:57;:66::i;:::-;69111:31;;;;;;;;:23;:31;;;;;;;;:45;;;;;;;;;:53;;:122;68919:334;68666:613;;69294:31;;;;69350:1;69294:31;;;:23;:31;;;;;;;;:45;;;;;;;;;:53;;;:57;69289:257;;69408:31;;;;;;;;:23;:31;;;;;;;;:45;;;;;;;;;:53;;;69368:94;;69386:6;;69394:12;;69368:17;:94::i;:::-;69477:31;;;;69533:1;69477:31;;;:23;:31;;;;;;;;:45;;;;;;;;;;;:53;;:57;69289:257;69615:54;69664:4;69615:44;69633:8;:25;;;69615:13;:17;;:44;;;;:::i;:54::-;69556:31;;;;;;;;:23;:31;;;;;;;;:45;;;;;;;;;;;;;;:113;;;;-1:-1:-1;;68421:1256:0:o;62229:97::-;62295:23;62311:6;62295:15;:23::i;:::-;62229:97;:::o;61651:164::-;61767:28;;61729:19;61767:28;;;:20;:28;;;;;:40;;61651:164::o;60126:80::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;71270:925::-;22208:12;:10;:12::i;:::-;22198:6;;:22;:6;;;:22;;;22190:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71353:28:::1;::::0;::::1;;::::0;;;:20:::1;:28;::::0;;;;:40;:45;71345:98:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71458:24;::::0;::::1;;::::0;;;:16:::1;:24;::::0;;;;;::::1;;71454:734;;;71515:15;:22:::0;;71498:14:::1;71654:211;71686:6;71678:5;:14;71654:211;;;71751:6;71725:32;;:15;71741:5;71725:22;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;::::1;;:32;71722:128;;;71797:5;71781:21;;71825:5;;71722:128;71694:7;;71654:211;;;;71898:6;71882:13;:22;71879:230;;;72012:15;72028:22:::0;;:24;;;;72012:41;::::1;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;71979:15:::1;:30:::0;;72012:41:::1;::::0;;::::1;::::0;71995:13;;71979:30;::::1;;;;;;;;;;;;;:74;;;;;;;;;;;;;;;;;;72072:15;:21;;;;;;;;::::0;;;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;;71879:230:::1;-1:-1:-1::0;;72123:24:0::1;::::0;::::1;72150:5;72123:24:::0;;;:16:::1;:24;::::0;;;;:32;;;::::1;::::0;;72170:7:::1;;60701:30:::0;;;;:::o;60477:25::-;;;;;;:::o;62001:220::-;62066:15;:22;62049:14;62099:115;62131:6;62123:5;:14;62099:115;;;62163:39;62179:15;62195:5;62179:22;;;;;;;62163:39;62139:7;;62099:115;;70625:637;22208:12;:10;:12::i;:::-;22198:6;;:22;:6;;;:22;;;22190:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70702:24:::1;::::0;::::1;;::::0;;;:16:::1;:24;::::0;;;;;::::1;;70697:558;;70742:15;:28:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;70742:28:0;;;;;::::1;::::0;;;::::1;;::::0;::::1;;::::0;;70832:24:::1;::::0;70859:12:::1;-1:-1:-1::0;70832:127:0::1;;70930:28;::::0;70901:24:::1;::::0;:58:::1;::::0;:28:::1;:58::i;:::-;70832:127;;;70874:24;;70832:127;70785:28;::::0;::::1;;::::0;;;:20:::1;:28;::::0;;;;;;;:44:::1;::::0;::::1;:174:::0;;;70974:45:::1;::::0;;::::1;:49:::0;;;71038:44;;;71097:53:::1;::::0;;::::1;:100:::0;;;;71212:16:::1;:24:::0;;;;;:31;;;::::1;::::0;;::::1;::::0;;70625:637;:::o;72545:341::-;22208:12;:10;:12::i;:::-;22198:6;;:22;:6;;;:22;;;22190:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72670:26:::1;::::0;::::1;;::::0;;;:18:::1;:26;::::0;;;;;72659:37;::::1;;72651:69;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;72760:26;::::0;::::1;;::::0;;;:18:::1;:26;::::0;;;;;:39:::1;::::0;72791:7;72760:30:::1;:39::i;:::-;72731:26;::::0;::::1;;::::0;;;:18:::1;:26;::::0;;;;;;;:68;;;;72839:18:::1;:26:::0;;;;:39:::1;::::0;72870:7;72839:30:::1;:39::i;70372:245::-:0;22208:12;:10;:12::i;:::-;22198:6;;:22;:6;;;:22;;;22190:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70463::::1;:31;::::0;::::1;70495:10;70515:4;70522:7:::0;70463:31:::1;:67::i;:::-;70570:26;::::0;::::1;;::::0;;;:18:::1;:26;::::0;;;;;:39:::1;::::0;70601:7;70570:30:::1;:39::i;:::-;70541:26;::::0;;::::1;;::::0;;;:18:::1;:26;::::0;;;;:68;;;;-1:-1:-1;70372:245:0:o;22923:109::-;22208:12;:10;:12::i;:::-;22198:6;;:22;:6;;;:22;;;22190:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22996:28:::1;23015:8;22996:18;:28::i;20538:98::-:0;20618:10;20538:98;:::o;3275:132::-;3333:7;3360:39;3364:1;3367;3360:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3353:46;3275:132;-1:-1:-1;;;3275:132:0:o;940:181::-;998:7;1030:5;;;1054:6;;;;1046:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62334:122;62408:7;62434:14;:3;62442:5;62434:7;:14::i;2328:471::-;2386:7;2631:6;2627:47;;-1:-1:-1;2661:1:0;2654:8;;2627:47;2698:5;;;2702:1;2698;:5;:1;2722:5;;;;;:10;2714:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1404:136;1462:7;1489:43;1493:1;1496;1489:43;;;;;;;;;;;;;;;;;:3;:43::i;62464:2475::-;62553:28;;;62525:25;62553:28;;;:20;:28;;;;;62612:24;;;;62596:12;:40;62592:79;;62653:7;;;62592:79;62687:15;;62683:113;;62751:12;62724:24;;;;:39;62778:7;;62683:113;62866:28;;62828:33;;;;:67;;:37;:67::i;:::-;62812:12;:83;62808:1471;;62914:20;;:24;62911:441;;62958:18;62979:108;62993:8;:24;;;63019:67;63057:28;;63019:8;:33;;;:37;;:67;;;;:::i;62979:108::-;63162:28;;63137:20;;62958:129;;-1:-1:-1;63106:28:0;;63137:54;;:24;:54::i;:::-;63106:85;;63238:98;63268:67;63319:15;;63268:46;63309:4;63268:36;63293:10;63268:20;:24;;:36;;;;:::i;:67::-;63238:25;;;;;:29;:98::i;:::-;63210:25;;;:126;-1:-1:-1;;62911:441:0;63389:26;;;;;;;:18;:26;;;;;;;63366:49;;63430:30;63540:28;;63502:33;;;;:67;;:37;:67::i;:::-;63475:24;;;;:94;;;;63658:28;63620:33;;;;:67;;:37;:67::i;:::-;63584:33;;;;:103;;;63702:60;;;63837:28;;63799:67;;63584:103;63799:37;:67::i;:::-;63783:12;:83;63779:489;;64246:7;;;63779:489;64292:20;;:24;64289:370;;64332:18;64353:53;64367:8;:24;;;64393:12;64353:13;:53::i;:::-;64477:28;;64452:20;;64332:74;;-1:-1:-1;64421:28:0;;64452:54;;:24;:54::i;:::-;64421:85;;64549:98;64579:67;64630:15;;64579:46;64620:4;64579:36;64604:10;64579:20;:24;;:36;;;;:::i;64549:98::-;64521:25;;;:126;-1:-1:-1;;64289:370:0;64698:12;64671:24;;;;:39;;;;64781:28;64743:33;;;;:67;;:37;:67::i;:::-;64727:12;:83;64723:209;;64891:28;;64853:33;;;;:67;;:37;:67::i;:::-;64826:24;:94;62464:2475;;:::o;16620:248::-;16791:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16814:27;16791:68;;;16764:96;;16784:5;;16764:19;:96::i;:::-;16620:248;;;;:::o;73004:489::-;73156:30;;;;;;73180:4;73156:30;;;;;;73119:6;;73097:12;;73156:15;;;;;;:30;;;;;;;;;;;;;;:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73156:30:0;;-1:-1:-1;73197:20:0;73240:18;;;73236:177;;;73293:5;:14;;;73308:3;73313:8;73293:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73293:29:0;;-1:-1:-1;73236:177:0;;;73373:5;:14;;;73388:3;73393:7;73373:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73373:28:0;;-1:-1:-1;73236:177:0;73431:15;73423:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73004:489;;;;;;:::o;23138:229::-;23212:22;;;23204:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23314:6;;;23293:38;;;;;;;23314:6;;;23293:38;;;23342:6;:17;;;;;;;;;;;;;;;23138:229::o;3903:312::-;4023:7;4058:12;4051:5;4043:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4082:9;4098:1;4094;:5;;;;;;;3903:312;-1:-1:-1;;;;;3903:312:0:o;1843:226::-;1963:7;1999:12;1991:6;;;;1983:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2035:5:0;;;1843:226::o;18936:774::-;19360:23;19386:69;19414:4;19386:69;;;;;;;;;;;;;;;;;19394:5;19386:27;;;;:69;;;;;:::i;:::-;19470:17;;19360:95;;-1:-1:-1;19470:21:0;19466:237;;19625:10;19614:30;;;;;;;;;;;;;;;-1:-1:-1;19614:30:0;19606:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13214:230;13351:12;13383:53;13406:6;13414:4;13420:1;13423:12;13383:22;:53::i;:::-;13376:60;13214:230;-1:-1:-1;;;;13214:230:0:o;14702:1020::-;14875:12;14908:18;14919:6;14908:10;:18::i;:::-;14900:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15034:12;15048:23;15075:6;:11;;15094:8;15104:4;15075:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15033:76;;;;15124:7;15120:595;;;15155:10;-1:-1:-1;15148:17:0;;-1:-1:-1;15148:17:0;15120:595;15269:17;;:21;15265:439;;15532:10;15526:17;15593:15;15580:10;15576:2;15572:19;15565:44;15480:148;15668:20;;;;;;;;;;;;;;;;;;;;15675:12;;15668:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10077:641;10137:4;10618:20;;10448:66;10667:23;;;;;;:42;;-1:-1:-1;;10694:15:0;;;10659:51;-1:-1:-1;;10077:641:0:o

Swarm Source

ipfs://d0caaef99bc98532a70ce342d20e309a9102215222836b3ae27198672333507c
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.