Contract 0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf2 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xcdbdf843ca3928c9cdb80c46f7b20989b7bbe8696a5cdb3fe89a5b0527ea9aa9Emergency Withdr...111033612021-09-21 8:51:26118 days 11 hrs ago0x224a4e7638932ee2200280fb3a167501e5f99aab IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.00018522
0x1ef8564f31c18ce1c771ea8131f9bb1e314270cf6aa9193fd7a738bae9530e3aEmergency Withdr...84403562021-06-19 19:12:25212 days 53 mins ago0x1a1df8e8f73b6751c788ef39813d598170148517 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.003
0x3693315dd7e5a5c5f4a255734e2d6e4393a29aa4ae59e03c587660329bdab1bdEmergency Withdr...67396672021-04-20 20:02:28272 days 3 mins ago0x6d9d3ff78faf1a4bb9f7001b9e9c82f9801f2396 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x37b43cc796e8f55b6318c97c9bdc29454b04b9c4287977f0e056e6f8e8b52b38Emergency Withdr...67331262021-04-20 14:30:37272 days 5 hrs ago0x2eaa17b903dcf0dea79b4927c957833bd16b2382 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x6b1e35bcb65d545d76991bd84f9b95aea63b85f9f58d45eabbea2aa50185c584Emergency Withdr...67225802021-04-20 5:41:05272 days 14 hrs ago0x5c4e422b01ae7fdbd6a580a2a04cc6482dc381d0 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0xeec60522ba02e9ca27e1e336685b6028a556cb0446d0ff6be78e0692420124deEmergency Withdr...67115732021-04-19 20:27:15272 days 23 hrs ago0xab1a5840a121fbab4ad9237bb4a17da4eb89df94 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x0551f3dd8be91d450d1dbaf1176f1f8d67ef3895623ca90e02c154117a2840b9Emergency Withdr...67028932021-04-19 13:12:27273 days 6 hrs ago0xc30e87434ef4b6e9b426b81c8f9d4b8a240bcdd9 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x031f682ae282f142e68afbcf6c8fb11fc0cf2a93d81fc411d02f41e922a14eb0Emergency Withdr...66952272021-04-19 6:43:10273 days 13 hrs ago0x9a5de38ae816f4b0a8bd8a4120f3b5807de25860 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.00019422
0xf47791c5ed24e82239789d2ba101933546ee4dde46130f473c706c7076bb4104Emergency Withdr...66942882021-04-19 5:55:55273 days 14 hrs ago0x32d9062e88f28c1bbe16aec319ba6da5aba98224 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0xe0c0df06b2b84c208a79a67fe46be2b38f497be5d12987241d4a809541cacd1fEmergency Withdr...66942772021-04-19 5:55:22273 days 14 hrs ago0x32d9062e88f28c1bbe16aec319ba6da5aba98224 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0xf1e892e4a0a294256dbfe9b292439c578dceb9bfdcd879b96405f2e8894c39c5Emergency Withdr...66822202021-04-18 19:52:27274 days 13 mins ago0x59e8459c647c531f47a518f96447ea71b128ced7 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0xa13a2cd2eb6fd9536eff2cc43aac52611231a81412c54738240a66c849d3b444Emergency Withdr...66723632021-04-18 11:38:06274 days 8 hrs ago0x3aaf6f36ae49007c88d4a5c5f00da4218690a057 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0xda0456f4b12b90bc41536c8867713ef323041d14860eb32c98ff080dec4f362eEmergency Withdr...66523562021-04-17 18:56:48275 days 1 hr ago0x7a50f6ac2052c761228c1d473a4be7bb20ee5a2b IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.00038713
0x2fba3a12bd9bf446d84534d8150b437fc65f84df9c3c4ef06f77164ec4c712f0Emergency Withdr...66512442021-04-17 18:01:12275 days 2 hrs ago0x85812c2519151aaa9a4819b74f8e5a6d800a35f9 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x38e734a2465d3b1bb9a62a84ec378066690ab76334678722d72a4564f2b2c150Emergency Withdr...66496542021-04-17 16:41:41275 days 3 hrs ago0xb1832ed2cc44f7d8ec00b51ea0a16a717d36d511 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000184565
0x3cb00ebe00f1b6439141c4d86988d0d896ba648495075cb8c962b1cd5bae3308Emergency Withdr...66496532021-04-17 16:41:38275 days 3 hrs ago0xb1832ed2cc44f7d8ec00b51ea0a16a717d36d511 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000258391
0xcfeddc7cc31b844640939ab36a799a5815ec238b7febeaf5506c8eae82148647Emergency Withdr...66459802021-04-17 13:37:59275 days 6 hrs ago0x12136d055c9bc0c283b182e7540218e37830ef48 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.00019422
0x3a89b35433b18669adf5c889715e7ccd13451566eecd03b26bd1cf8bcab6e7afEmergency Withdr...66439282021-04-17 11:55:23275 days 8 hrs ago0x563178f7e9658b9ba5e9b44686f22534e7c5134a IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000197675
0x2632efb3e6063ffb4856f64555a05b5a609bfadc1c9bb200cfcbab564f6fe6b4Emergency Withdr...66411602021-04-17 9:36:59275 days 10 hrs ago0xd1f37253430053705dab0d6c733505caa998a338 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x36c31d62ba01cd8ff3e05ccd34f09c08c26916ce011cf06f30a6a7e775c55835Emergency Withdr...66409222021-04-17 9:25:05275 days 10 hrs ago0xdcb1f2b786ec6cc2188f4eb12a7539a92bae79da IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0xf8c49cc0c62b8528d6a4ded76346e37a0c79a60cac367153f5822ac72ad12782Emergency Withdr...66379672021-04-17 6:57:20275 days 13 hrs ago0x6b42aeb2e51e3b3dc2264155f045b157a5ca7bdb IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x8e18c2ead484e12937b110abd413b1c2ded5aec01694be9a432c40864dc8804cEmergency Withdr...66343842021-04-17 3:58:02275 days 16 hrs ago0xeb2d39651ff45877143dc7613a9af5d4bacbf3dc IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000197675
0xa5e4e3293ce80e320c428094434a47e40360b8cc676c61301fce589ac3106412Emergency Withdr...66298032021-04-17 0:08:59275 days 19 hrs ago0xb22780440f54e92efa791731b46e4ed9820cdf19 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
0x07c20d16239acede2a62669be30563075972c83c5d3903561ac7665b61175fc3Emergency Withdr...66297912021-04-17 0:08:23275 days 19 hrs ago0xd9db419b100b8045a8d503628783a480a9eeaa07 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.00024822
0x2fe49e0b3c57ae8219e9aede36b48321c3bf43b9ebf1be316d8586364f7523d1Emergency Withdr...66290332021-04-16 23:30:16275 days 20 hrs ago0xc8ab87a5354ca007dd5d78c1e0b07bf5abd217d2 IN  0xd5aac41d315c1d382dcf1c39d4ed9b37c224edf20 BNB0.000193565
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xF49b673507677ec8BD85e2AB3f429c80c7cD4e7e

Contract Name:
MasterUranium

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/UraniumMoneyPot.sol

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

}


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


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

pragma solidity 0.6.12;

contract UraniumBonusAggregator is Ownable{
    using SafeMath for uint256;
    using SafeMath for uint16;

    MasterUranium master;

    mapping(address => mapping(uint256 => uint16)) public userBonusOnFarms;

    mapping (address => bool) public contractBonusSource;

    /**
     * @dev Throws if called by any account other than the verified contracts.
     */
    modifier onlyVerifiedContract() {
        require(contractBonusSource[msg.sender], "caller is not in contract list");
        _;
    }

    function setupMaster(MasterUranium _master) external onlyOwner{
        master = _master;
    }

    function addOrRemoveContractBonusSource(address _contract, bool _add) external onlyOwner{
        contractBonusSource[_contract] = _add;
    }

    function addUserBonusOnFarm(address _user, uint16 _percent, uint256 _pid) external onlyVerifiedContract{
        require(_percent < 10000, "Invalid percent");
        userBonusOnFarms[_user][_pid] = uint16(userBonusOnFarms[_user][_pid].add(_percent));
        master.updateUserBonus(_user, _pid, userBonusOnFarms[_user][_pid]);
    }

    function removeUserBonusOnFarm(address _user, uint16 _percent, uint256 _pid) external onlyVerifiedContract{
        require(_percent < 10000, "Invalid percent");
        userBonusOnFarms[_user][_pid] = uint16(userBonusOnFarms[_user][_pid].sub(_percent));
        master.updateUserBonus(_user, _pid, userBonusOnFarms[_user][_pid]);
    }

    function getBonusOnFarmsForUser(address _user, uint256 _pid) public view returns (uint16){
        return userBonusOnFarms[_user][_pid];
    }

}



// File: contracts/MasterUranium.sol

pragma solidity 0.6.12;

// import "@nomiclabs/buidler/console.sol";

// MasterUranium is the master of RADS AND THO.
// He can make Rads and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once RADS is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterUranium is Ownable {
    using SafeMath for uint256;
    using SafeMath for uint16;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 amountWithBonus;
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of RADSs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accRadsPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accRadsPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 lpSupply;
        uint256 allocPoint;       // How many allocation points assigned to this pool. RADSs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that RADSs distribution occurs.
        uint256 accRadsPerShare; // Accumulated RADSs per share, times 1e12. See below.
        uint16 depositFeeBP;     // deposit Fee
        bool isSRadsRewards;
    }

    UraniumBonusAggregator public bonusAggregator;
    // The RADS TOKEN!
    RadsToken public rads;
    // The SRADS TOKEN!
    SRadsToken public sRads;
    // Dev address.
    address public devaddr;
    // RADS tokens created per block.
    uint256 public radsPerBlock;
    // Deposit Fee address
    address public feeAddress;


    // Info of each user that stakes LP tokens.
    mapping (address => bool) public knownPoolLp;
    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when RADS mining starts.
    uint256 public immutable startBlock;

    // Initial emission rate: 1 RADS per block.
    uint256 public immutable initialEmissionRate;
    // Minimum emission rate: 0.1 RADS per block.
    uint256 public immutable minimumEmissionRate = 100 finney;
    // Reduce emission every 9,600 blocks ~ 12 hours.
    uint256 public immutable emissionReductionPeriodBlocks = 14400;
    // Emission reduction rate per period in basis points: 3%.
    uint256 public immutable emissionReductionRatePerPeriod = 300;
    // Last reduction period index
    uint256 public lastReductionPeriodIndex = 0;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount);

    constructor(
        RadsToken _rads,
        SRadsToken _srads,
        UraniumBonusAggregator _bonusAggregator,
        address _devaddr,
        address _feeAddress,
        uint256 _radsPerBlock,
        uint256 _startBlock
    ) public {
        rads = _rads;
        sRads = _srads;
        bonusAggregator = _bonusAggregator;
        devaddr = _devaddr;
        feeAddress = _feeAddress;
        radsPerBlock = _radsPerBlock;
        startBlock = _startBlock;
        initialEmissionRate = _radsPerBlock;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _rads,
            lpSupply: 0,
            allocPoint: 800,
            lastRewardBlock: _startBlock,
            accRadsPerShare: 0,
            depositFeeBP: 0,
            isSRadsRewards: false
        }));
        totalAllocPoint = 800;
    }

    modifier validatePool(uint256 _pid) {
        require(_pid < poolInfo.length, "validatePool: pool exists?");
        _;
    }

    modifier onlyAggregator() {
        require(msg.sender == address(bonusAggregator), "Ownable: caller is not the owner");
        _;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function userBonus(uint256 _pid, address _user) public view returns (uint16){
        return bonusAggregator.getBonusOnFarmsForUser(_user, _pid);
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return _to.sub(_from);
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _isSRadsRewards, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        require(!knownPoolLp[address(_lpToken)], "add: existing pool");
        knownPoolLp[address(_lpToken)] = true;
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            lpSupply: 0,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accRadsPerShare: 0,
            depositFeeBP : _depositFeeBP,
            isSRadsRewards: _isSRadsRewards
        }));
    }

    // Update the given pool's RADS allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _isSRadsRewards, bool _withUpdate) external onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        poolInfo[_pid].isSRadsRewards = _isSRadsRewards;
        if (prevAllocPoint != _allocPoint) {
            totalAllocPoint = totalAllocPoint.sub(prevAllocPoint).add(_allocPoint);
        }
    }

    // View function to see pending RADSs on frontend.
    function pendingRads(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRadsPerShare = pool.accRadsPerShare;
        uint256 lpSupply = pool.lpSupply;
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 radsReward = multiplier.mul(radsPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accRadsPerShare = accRadsPerShare.add(radsReward.mul(1e12).div(lpSupply));
        }
        return user.amountWithBonus.mul(accRadsPerShare).div(1e12).sub(user.rewardDebt);
    }

    // Reduce emission rate by 3% every 9,600 blocks ~ 8hours
    function updateEmissionRate() internal {
        if(startBlock > 0 && block.number <= startBlock){
            return;
        }
        if(radsPerBlock <= minimumEmissionRate){
            return;
        }

        uint256 currentIndex = block.number.sub(startBlock).div(emissionReductionPeriodBlocks);
        if (currentIndex <= lastReductionPeriodIndex) {
            return;
        }

        uint256 newEmissionRate = radsPerBlock;
        for (uint256 index = lastReductionPeriodIndex; index < currentIndex; ++index) {
            newEmissionRate = newEmissionRate.mul(1e4 - emissionReductionRatePerPeriod).div(1e4);
        }

        newEmissionRate = newEmissionRate < minimumEmissionRate ? minimumEmissionRate : newEmissionRate;
        if (newEmissionRate >= radsPerBlock) {
            return;
        }

        lastReductionPeriodIndex = currentIndex;
        uint256 previousEmissionRate = radsPerBlock;
        radsPerBlock = newEmissionRate;
        emit EmissionRateUpdated(msg.sender, previousEmissionRate, newEmissionRate);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public validatePool(_pid) {
        updateEmissionRate();
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpSupply;
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 radsReward = multiplier.mul(radsPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        uint256 devMintAmount = radsReward.div(10);
        rads.mint(devaddr, devMintAmount);
        if (pool.isSRadsRewards){
            sRads.mint(address(this), radsReward);
        }
        else{
            rads.mint(address(this), radsReward);
        }
        pool.accRadsPerShare = pool.accRadsPerShare.add(radsReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    function updateUserBonus(address _user, uint256 _pid, uint256 bonus) external  validatePool(_pid) onlyAggregator{
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                if(pool.isSRadsRewards){
                    safeSRadsTransfer(_user, pending);
                }
                else{
                    safeRadsTransfer(_user, pending);
                }
            }
        }
        pool.lpSupply = pool.lpSupply.sub(user.amountWithBonus);
        user.amountWithBonus =  user.amount.mul(bonus.add(10000)).div(10000);
        pool.lpSupply = pool.lpSupply.add(user.amountWithBonus);
        user.rewardDebt = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12);
    }

    // Deposit LP tokens to MasterUranium for RADS allocation.
    function deposit(uint256 _pid, uint256 _amount) external validatePool(_pid) {
        address _user = msg.sender;
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                if(pool.isSRadsRewards){
                    safeSRadsTransfer(_user, pending);
                }
                else{
                    safeRadsTransfer(_user, pending);
                }
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(_user), address(this), _amount);
            if (address(pool.lpToken) == address(rads)) {
                uint256 transferTax = _amount.mul(2).div(100);
                _amount = _amount.sub(transferTax);
            }
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
                uint256 _bonusAmount = _amount.sub(depositFee).mul(userBonus(_pid, _user).add(10000)).div(10000);
                user.amountWithBonus = user.amountWithBonus.add(_bonusAmount);
                pool.lpSupply = pool.lpSupply.add(_bonusAmount);
            } else {
                user.amount = user.amount.add(_amount);
                uint256 _bonusAmount = _amount.mul(userBonus(_pid, _user).add(10000)).div(10000);
                user.amountWithBonus = user.amountWithBonus.add(_bonusAmount);
                pool.lpSupply = pool.lpSupply.add(_bonusAmount);
            }
        }
        user.rewardDebt = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12);
        emit Deposit(_user, _pid, _amount);
    }

    // Withdraw LP tokens from MasterUranium.
    function withdraw(uint256 _pid, uint256 _amount) external validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");

        updatePool(_pid);
        uint256 pending = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            if(pool.isSRadsRewards){
                safeSRadsTransfer(msg.sender, pending);
            }
            else{
                safeRadsTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            uint256 _bonusAmount = _amount.mul(userBonus(_pid, msg.sender).add(10000)).div(10000);
            user.amountWithBonus = user.amountWithBonus.sub(_bonusAmount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            pool.lpSupply = pool.lpSupply.sub(_bonusAmount);
        }
        user.rewardDebt = user.amountWithBonus.mul(pool.accRadsPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

    function getPoolInfo(uint256 _pid) external view
    returns(address lpToken, uint256 allocPoint, uint256 lastRewardBlock,
            uint256 accRadsPerShare, uint16 depositFeeBP, bool isSRadsRewards) {
        return (
            address(poolInfo[_pid].lpToken),
            poolInfo[_pid].allocPoint,
            poolInfo[_pid].lastRewardBlock,
            poolInfo[_pid].accRadsPerShare,
            poolInfo[_pid].depositFeeBP,
            poolInfo[_pid].isSRadsRewards
        );
    }

    // Safe rads transfer function, just in case if rounding error causes pool to not have enough RADSs.
    function safeRadsTransfer(address _to, uint256 _amount) internal {
        uint256 radsBal = rads.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > radsBal) {
            transferSuccess = rads.transfer(_to, radsBal);
        } else {
            transferSuccess = rads.transfer(_to, _amount);
        }
        require(transferSuccess, "safeRadsTransfer: Transfer failed");
    }

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

    // Update dev address by the previous dev.
    function dev(address _devaddr) external {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }

    function setFeeAddress(address _feeAddress) external onlyOwner {
        feeAddress = _feeAddress;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract RadsToken","name":"_rads","type":"address"},{"internalType":"contract SRadsToken","name":"_srads","type":"address"},{"internalType":"contract UraniumBonusAggregator","name":"_bonusAggregator","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_radsPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EmissionRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_isSRadsRewards","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bonusAggregator","outputs":[{"internalType":"contract UraniumBonusAggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emissionReductionPeriodBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionReductionRatePerPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"getPoolInfo","outputs":[{"internalType":"address","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRadsPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"bool","name":"isSRadsRewards","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialEmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"knownPoolLp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastReductionPeriodIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minimumEmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRads","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"lpSupply","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accRadsPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"bool","name":"isSRadsRewards","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rads","outputs":[{"internalType":"contract RadsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"radsPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sRads","outputs":[{"internalType":"contract SRadsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_isSRadsRewards","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"}],"name":"updateUserBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"userBonus","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountWithBonus","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040526000600a81905567016345785d8a000060c05261384060e05261012c61010052600b553480156200003557600080fd5b506040516200334e3803806200334e833981810160405260e08110156200005b57600080fd5b508051602082015160408301516060840151608085015160a086015160c0909601519495939492939192909190600062000094620002bc565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b039889166001600160a01b0319918216811790925560038054988a1698821698909817909755600180549689169688169690961786556004805495891695881695909517909455600680549388169387169390931783556005829055608081815260a09283526040805160e0810182529586526000602087018181526103209288018381526060890195865293880182815295880182815260c08901838152600880549b8c0181559093529751989096027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee38101805499909b16989099169790971790985592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee487015591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee586015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6850155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee7840155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee8909201805491511515620100000262ff00001961ffff9490941661ffff199093169290921792909216179055600a55620002c0565b3390565b60805160a05160c05160e0516101005161301c6200033260003980610959528061287852508061209d5280612803525080611fdc52806127d052806128ab52806128d8525080610999525080610c4352806119595280611980528061277852806127a15280612828525061301c6000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80636a9a76601161012a57806395575eef116100bd578063e016f71c1161008c578063e401f43911610071578063e401f439146106be578063f2fde38b146106c6578063fb9788cb146106f957610226565b8063e016f71c14610662578063e2bbb1581461069b57610226565b806395575eef146105c0578063c60dc8e0146105ff578063d49e77cd14610607578063dc9464b91461060f57610226565b80638d88a90e116100f95780638d88a90e1461050b5780638da5cb5b1461053e5780638dbb1e3a1461054657806393f1a40b1461056957610226565b80636a9a766014610481578063715018a6146104895780637d0264f3146104915780638705fcd4146104d857610226565b806341275358116101bd57806351645e281161018c5780635312ea8e116101715780635312ea8e1461041f5780635a4b8f721461043c578063630b5ba11461047957610226565b806351645e28146103fa57806351eb05a61461040257610226565b806341275358146103bd57806341b1cf15146103c5578063441a3e70146103cd57806348cd4cb1146103f257610226565b806317caf6f1116101f957806317caf6f11461030f5780632f380b35146103175780633249af49146103845780633ea69dd7146103b557610226565b8063081e3eda1461022b5780630a130c72146102455780631202dfea146102955780631526fe271461029d575b600080fd5b610233610701565b60408051918252519081900360200190f35b61027e6004803603604081101561025b57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610707565b6040805161ffff9092168252519081900360200190f35b6102336107ba565b6102ba600480360360208110156102b357600080fd5b50356107c0565b6040805173ffffffffffffffffffffffffffffffffffffffff90981688526020880196909652868601949094526060860192909252608085015261ffff1660a0840152151560c0830152519081900360e00190f35b610233610829565b6103346004803603602081101561032d57600080fd5b503561082f565b6040805173ffffffffffffffffffffffffffffffffffffffff9097168752602087019590955285850193909352606085019190915261ffff166080840152151560a0830152519081900360c00190f35b61038c61093b565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610233610957565b61038c61097b565b610233610997565b6103f0600480360360408110156103e357600080fd5b50803590602001356109bb565b005b610233610c41565b61038c610c65565b6103f06004803603602081101561041857600080fd5b5035610c81565b6103f06004803603602081101561043557600080fd5b5035610f9d565b6103f0600480360360a081101561045257600080fd5b5080359060208101359061ffff604082013516906060810135151590608001351515611045565b6103f06111cb565b6102336111ea565b6103f06111f0565b6104c4600480360360208110156104a757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166112f0565b604080519115158252519081900360200190f35b6103f0600480360360208110156104ee57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611305565b6103f06004803603602081101561052157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113dd565b61038c6114aa565b6102336004803603604081101561055c57600080fd5b50803590602001356114c6565b6105a26004803603604081101561057f57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166114d9565b60408051938452602084019290925282820152519081900360600190f35b6103f0600480360360608110156105d657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135611505565b61038c61173e565b61038c61175a565b6103f0600480360360a081101561062557600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff6020820135169061ffff604082013516906060810135151590608001351515611776565b6102336004803603604081101561067857600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611b97565b6103f0600480360360408110156106b157600080fd5b5080359060200135611c98565b610233611fda565b6103f0600480360360208110156106dc57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611ffe565b61023361209b565b60085490565b600154604080517fd76d724e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152602482018690529151600093929092169163d76d724e91604480820192602092909190829003018186803b15801561078557600080fd5b505afa158015610799573d6000803e3d6000fd5b505050506040513d60208110156107af57600080fd5b505190505b92915050565b60055481565b600881815481106107cd57fe5b600091825260209091206006909102018054600182015460028301546003840154600485015460059095015473ffffffffffffffffffffffffffffffffffffffff90941695509193909261ffff81169062010000900460ff1687565b600a5481565b6000806000806000806008878154811061084557fe5b60009182526020909120600690910201546008805473ffffffffffffffffffffffffffffffffffffffff909216918990811061087d57fe5b9060005260206000209060060201600201546008898154811061089c57fe5b90600052602060002090600602016003015460088a815481106108bb57fe5b90600052602060002090600602016004015460088b815481106108da57fe5b906000526020600020906006020160050160009054906101000a900461ffff1660088c8154811061090757fe5b906000526020600020906006020160050160029054906101000a900460ff1695509550955095509550955091939550919395565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60085482908110610a2d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b600060088481548110610a3c57fe5b600091825260208083208784526009825260408085203386529092529220805460069092029092019250841115610ad457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b610add85610c81565b6000610b178260020154610b1164e8d4a51000610b0b876004015487600101546120bf90919063ffffffff16565b90612132565b90612174565b90508015610b4b57600583015462010000900460ff1615610b4157610b3c33826121b6565b610b4b565b610b4b3382612415565b8415610bd9578154610b5d9086612174565b82556000610b89612710610b0b610b8282610b788c33610707565b61ffff169061266e565b89906120bf565b6001840154909150610b9b9082612174565b60018401558354610bc39073ffffffffffffffffffffffffffffffffffffffff1633886126e2565b6001840154610bd29082612174565b6001850155505b610bfd64e8d4a51000610b0b856004015485600101546120bf90919063ffffffff16565b6002830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60085481908110610cf357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b610cfb612774565b600060088381548110610d0a57fe5b9060005260206000209060060201905080600301544311610d2b5750610f99565b600181015480610d42575043600390910155610f99565b6000610d528360030154436114c6565b90506000610d7f600a54610b0b8660020154610d79600554876120bf90919063ffffffff16565b906120bf565b90506000610d8e82600a612132565b60025460048054604080517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316938101939093526024830185905251939450909116916340c10f199160448082019260009290919082900301818387803b158015610e1157600080fd5b505af1158015610e25573d6000803e3d6000fd5b50505050600585015462010000900460ff1615610ed257600354604080517f40c10f1900000000000000000000000000000000000000000000000000000000815230600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff909216916340c10f199160448082019260009290919082900301818387803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50505050610f64565b600254604080517f40c10f1900000000000000000000000000000000000000000000000000000000815230600482015260248101859052905173ffffffffffffffffffffffffffffffffffffffff909216916340c10f199160448082019260009290919082900301818387803b158015610f4b57600080fd5b505af1158015610f5f573d6000803e3d6000fd5b505050505b610f85610f7a85610b0b8564e8d4a510006120bf565b60048701549061266e565b600486015550504360039093019290925550505b5050565b600060088281548110610fac57fe5b60009182526020808320858452600982526040808520338087529352909320805460069093029093018054909450610ffe9273ffffffffffffffffffffffffffffffffffffffff9190911691906126e2565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556002909101555050565b61104d612957565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146110d657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b80156110e4576110e46111cb565b6000600886815481106110f357fe5b9060005260206000209060060201600201549050846008878154811061111557fe5b906000526020600020906006020160020181905550836008878154811061113857fe5b906000526020600020906006020160050160006101000a81548161ffff021916908361ffff160217905550826008878154811061117157fe5b906000526020600020906006020160050160026101000a81548160ff0219169083151502179055508481146111c3576111bf856111b983600a5461217490919063ffffffff16565b9061266e565b600a555b505050505050565b60085460005b81811015610f99576111e281610c81565b6001016111d1565b600b5481565b6111f8612957565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461128157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60076020526000908152604090205460ff1681565b61130d612957565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461139657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60045473ffffffffffffffffffffffffffffffffffffffff16331461146357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f6465763a207775743f0000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60006114d28284612174565b9392505050565b600960209081526000928352604080842090915290825290208054600182015460029092015490919083565b6008548290811061157757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b60015473ffffffffffffffffffffffffffffffffffffffff1633146115fd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60006008848154811061160c57fe5b6000918252602080832087845260098252604080852073ffffffffffffffffffffffffffffffffffffffff8b16865290925292206006909102909101915061165385610c81565b8054156116be5760006116888260020154610b1164e8d4a51000610b0b876004015487600101546120bf90919063ffffffff16565b905080156116bc57600583015462010000900460ff16156116b2576116ad87826121b6565b6116bc565b6116bc8782612415565b505b600180820154908301546116d191612174565b60018301556116f1612710610b0b6116e9878361266e565b8454906120bf565b60018083018290558301546117059161266e565b826001018190555061173164e8d4a51000610b0b846004015484600101546120bf90919063ffffffff16565b6002909101555050505050565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b61177e612957565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461180757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6127108361ffff161115611866576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612f0e6025913960400191505060405180910390fd5b8015611874576118746111cb565b73ffffffffffffffffffffffffffffffffffffffff841660009081526007602052604090205460ff161561190957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6164643a206578697374696e6720706f6f6c0000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8416600090815260076020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f000000000000000000000000000000000000000000000000000000000000000043116119a4577f00000000000000000000000000000000000000000000000000000000000000006119a6565b435b600a549091506119b6908761266e565b600a556040805160e08101825273ffffffffffffffffffffffffffffffffffffffff9687168152600060208201818152928201988952606082019384526080820181815261ffff97881660a0840190815296151560c08401908152600880546001810182559352925160069092027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee38101805493909a167fffffffffffffffffffffffff00000000000000000000000000000000000000009093169290921790985591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee483015596517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee582015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee682015593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee785015550517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee890920180549351151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff939092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009094169390931791909116179055565b60008060088481548110611ba757fe5b6000918252602080832087845260098252604080852073ffffffffffffffffffffffffffffffffffffffff891686529092529220600460069092029092019081015460018201546003830154929450909143118015611c0557508015155b15611c65576000611c1a8560030154436114c6565b90506000611c41600a54610b0b8860020154610d79600554876120bf90919063ffffffff16565b9050611c60611c5984610b0b8464e8d4a510006120bf565b859061266e565b935050505b611c8d8360020154610b1164e8d4a51000610b0b8688600101546120bf90919063ffffffff16565b979650505050505050565b60085482908110611d0a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f76616c6964617465506f6f6c3a20706f6f6c206578697374733f000000000000604482015290519081900360640190fd5b6000339050600060088581548110611d1e57fe5b6000918252602080832088845260098252604080852073ffffffffffffffffffffffffffffffffffffffff88168652909252922060069091029091019150611d6586610c81565b805415611dd0576000611d9a8260020154610b1164e8d4a51000610b0b876004015487600101546120bf90919063ffffffff16565b90508015611dce57600583015462010000900460ff1615611dc457611dbf84826121b6565b611dce565b611dce8482612415565b505b8415611f5c578154611dfa9073ffffffffffffffffffffffffffffffffffffffff1684308861295b565b600254825473ffffffffffffffffffffffffffffffffffffffff90811691161415611e41576000611e316064610b0b8860026120bf565b9050611e3d8682612174565b9550505b600582015461ffff1615611f06576005820154600090611e6e9061271090610b0b90899061ffff166120bf565b6006548454919250611e9a9173ffffffffffffffffffffffffffffffffffffffff9081169116836126e2565b8154611eac908290610b11908961266e565b82556000611ed1612710610b0b611ec782610b788d8b610707565b610d798b87612174565b6001840154909150611ee3908261266e565b600180850191909155840154611ef9908261266e565b600185015550611f5c9050565b8054611f12908661266e565b81556000611f2d612710610b0b610b8282610b788c8a610707565b6001830154909150611f3f908261266e565b600180840191909155830154611f55908261266e565b6001840155505b611f8064e8d4a51000610b0b846004015484600101546120bf90919063ffffffff16565b6002820155604080518681529051879173ffffffffffffffffffffffffffffffffffffffff8616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b612006612957565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461208f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b612098816129f0565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000826120ce575060006107b4565b828202828482816120db57fe5b04146114d2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612fc66021913960400191505060405180910390fd5b60006114d283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612ae9565b60006114d283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612ba5565b600354604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561222757600080fd5b505afa15801561223b573d6000803e3d6000fd5b505050506040513d602081101561225157600080fd5b5051905060008183111561230e57600354604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156122db57600080fd5b505af11580156122ef573d6000803e3d6000fd5b505050506040513d602081101561230557600080fd5b505190506123b9565b600354604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561238a57600080fd5b505af115801561239e573d6000803e3d6000fd5b505050506040513d60208110156123b457600080fd5b505190505b8061240f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612fa46022913960400191505060405180910390fd5b50505050565b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561248657600080fd5b505afa15801561249a573d6000803e3d6000fd5b505050506040513d60208110156124b057600080fd5b5051905060008183111561256d57600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561253a57600080fd5b505af115801561254e573d6000803e3d6000fd5b505050506040513d602081101561256457600080fd5b50519050612618565b600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156125e957600080fd5b505af11580156125fd573d6000803e3d6000fd5b505050506040513d602081101561261357600080fd5b505190505b8061240f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612f836021913960400191505060405180910390fd5b6000828201838110156114d257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261276f908490612c19565b505050565b60007f00000000000000000000000000000000000000000000000000000000000000001180156127c457507f00000000000000000000000000000000000000000000000000000000000000004311155b156127ce57612955565b7f0000000000000000000000000000000000000000000000000000000000000000600554116127fc57612955565b600061284c7f0000000000000000000000000000000000000000000000000000000000000000610b0b437f0000000000000000000000000000000000000000000000000000000000000000612174565b9050600b54811161285d5750612955565b600554600b545b828110156128a85761289e612710610b0b847f000000000000000000000000000000000000000000000000000000000000000083036120bf565b9150600101612864565b507f000000000000000000000000000000000000000000000000000000000000000081106128d657806128f8565b7f00000000000000000000000000000000000000000000000000000000000000005b9050600554811061290a575050612955565b600b82905560058054908290556040805182815260208101849052815133927feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d9511928290030190a25050505b565b3390565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261240f908590612c19565b73ffffffffffffffffffffffffffffffffffffffff8116612a5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612f5d6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008183612b8f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b54578181015183820152602001612b3c565b50505050905090810190601f168015612b815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581612b9b57fe5b0495945050505050565b60008184841115612c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315612b54578181015183820152602001612b3c565b505050900390565b6060612c7b826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612cf19092919063ffffffff16565b80519091501561276f57808060200190516020811015612c9a57600080fd5b505161276f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612f33602a913960400191505060405180910390fd5b6060612d008484600085612d08565b949350505050565b6060612d1385612ed4565b612d7e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612de857805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612dab565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612e4a576040519150601f19603f3d011682016040523d82523d6000602084013e612e4f565b606091505b50915091508115612e63579150612d009050565b805115612e735780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315612b54578181015183820152602001612b3c565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612d0057505015159291505056fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737373616665526164735472616e736665723a205472616e73666572206661696c65647361666553526164735472616e736665723a205472616e73666572206661696c6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220d583684589f7bde2e6658e989215a29207d54ec37c4e8ac0d1f03017c0fa22eb64736f6c634300060c00330000000000000000000000002c579f2ba480705ba27ca94e49264af1fb208dca000000000000000000000000c15337d72b1d4f946be639124e3558c1c11df2d20000000000000000000000005763e0df2a947c689ed6476c1984806fc3278aed000000000000000000000000659aab4b03053fe60002778efe104562a3909762000000000000000000000000b6b61d828437f767d2be798d596a0b7d0a7170250000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000005fbe8c

Deployed ByteCode Sourcemap

75789:16472:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80241:95;;;:::i;:::-;;;;;;;;;;;;;;;;80344:153;;;;;;;;;;;;;;;;-1:-1:-1;80344:153:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;77571:27;;;:::i;77796:26::-;;;;;;;;;;;;;;;;-1:-1:-1;77796:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78039:34;;;:::i;90364:503::-;;;;;;;;;;;;;;;;-1:-1:-1;90364:503:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77399:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;78577:61;;;:::i;77633:25::-;;;:::i;78223:44::-;;;:::i;88760:1167::-;;;;;;;;;;;;;;;;-1:-1:-1;88760:1167:0;;;;;;;:::i;:::-;;78130:35;;;:::i;77452:23::-;;;:::i;84707:983::-;;;;;;;;;;;;;;;;-1:-1:-1;84707:983:0;;:::i;89998:358::-;;;;;;;;;;;;;;;;-1:-1:-1;89998:358:0;;:::i;81837:573::-;;;;;;;;;;;;;;;;-1:-1:-1;81837:573:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;84451:180::-;;;:::i;78681:43::-;;;:::i;22630:140::-;;;:::i;77718:44::-;;;;;;;;;;;;;;;;-1:-1:-1;77718:44:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;92150:106;;;;;;;;;;;;;;;;-1:-1:-1;92150:106:0;;;;:::i;92011:131::-;;;;;;;;;;;;;;;;-1:-1:-1;92011:131:0;;;;:::i;21988:79::-;;;:::i;80573:121::-;;;;;;;;;;;;;;;;-1:-1:-1;80573:121:0;;;;;;;:::i;77878:66::-;;;;;;;;;;;;;;;;-1:-1:-1;77878:66:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;85698:961;;;;;;;;;;;;;;;;-1:-1:-1;85698:961:0;;;;;;;;;;;;;;:::i;77323:45::-;;;:::i;77503:22::-;;;:::i;80863:878::-;;;;;;;;;;;;;;;;-1:-1:-1;80863:878:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;82474:744::-;;;;;;;;;;;;;;;;-1:-1:-1;82474:744:0;;;;;;;;;:::i;86731:1974::-;;;;;;;;;;;;;;;;-1:-1:-1;86731:1974:0;;;;;;;:::i;78325:57::-;;;:::i;22925:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22925:109:0;;;;:::i;78444:62::-;;;:::i;80241:95::-;80313:8;:15;80241:95;:::o;80344:153::-;80438:15;;:51;;;;;;:15;:51;;;;;;;;;;;;;;;80413:6;;80438:15;;;;;:38;;:51;;;;;;;;;;;;;;;:15;:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80438:51:0;;-1:-1:-1;80344:153:0;;;;;:::o;77571:27::-;;;;:::o;77796:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77796:26:0;;;;;;;;;;;;;;:::o;78039:34::-;;;;:::o;90364:503::-;90426:15;90443:18;90463:23;90501;90526:19;90547;90609:8;90618:4;90609:14;;;;;;;;;;;;;;;;;;;;;:22;90647:8;:14;;90609:22;;;;;90656:4;;90647:14;;;;;;;;;;;;;;;;:25;;;90687:8;90696:4;90687:14;;;;;;;;;;;;;;;;;;:30;;;90732:8;90741:4;90732:14;;;;;;;;;;;;;;;;;;:30;;;90777:8;90786:4;90777:14;;;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;90819:8;90828:4;90819:14;;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;90579:280;;;;;;;;;;;;90364:503;;;;;;;:::o;77399:21::-;;;;;;:::o;78577:61::-;;;:::o;77633:25::-;;;;;;:::o;78223:44::-;;;:::o;88760:1167::-;80019:8;:15;88831:4;;80012:22;;80004:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88848:21:::1;88872:8;88881:4;88872:14;;;;;;;;;::::0;;;::::1;::::0;;;88921;;;:8:::1;:14:::0;;;;;;88936:10:::1;88921:26:::0;;;;;;;88966:11;;88872:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;88966:22:0;-1:-1:-1;88966:22:0::1;88958:53;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;89024:16;89035:4;89024:10;:16::i;:::-;89051:15;89069:77;89130:4;:15;;;89069:56;89120:4;89069:46;89094:4;:20;;;89069:4;:20;;;:24;;:46;;;;:::i;:::-;:50:::0;::::1;:56::i;:::-;:60:::0;::::1;:77::i;:::-;89051:95:::0;-1:-1:-1;89160:11:0;;89157:228:::1;;89191:19;::::0;::::1;::::0;;;::::1;;;89188:186;;;89230:38;89248:10;89260:7;89230:17;:38::i;:::-;89188:186;;;89321:37;89338:10;89350:7;89321:16;:37::i;:::-;89398:11:::0;;89395:389:::1;;89440:11:::0;;:24:::1;::::0;89456:7;89440:15:::1;:24::i;:::-;89426:38:::0;;:11:::1;89502:62;89558:5;89502:51;89514:38;89558:5:::0;89514:27:::1;89524:4:::0;89530:10:::1;89514:9;:27::i;:::-;:31;;::::0;::::1;:38::i;:::-;89502:7:::0;;:11:::1;:51::i;:62::-;89602:20;::::0;::::1;::::0;89479:85;;-1:-1:-1;89602:38:0::1;::::0;89479:85;89602:24:::1;:38::i;:::-;89579:20;::::0;::::1;:61:::0;89655:12;;:55:::1;::::0;:12:::1;;89689:10;89702:7:::0;89655:25:::1;:55::i;:::-;89741:13;::::0;::::1;::::0;:31:::1;::::0;89759:12;89741:17:::1;:31::i;:::-;89725:13;::::0;::::1;:47:::0;-1:-1:-1;89395:389:0::1;89812:56;89863:4;89812:46;89837:4;:20;;;89812:4;:20;;;:24;;:46;;;;:::i;:56::-;89794:15;::::0;::::1;:74:::0;89884:35:::1;::::0;;;;;;;89905:4;;89893:10:::1;::::0;89884:35:::1;::::0;;;;::::1;::::0;;::::1;80076:1;;;88760:1167:::0;;;:::o;78130:35::-;;;:::o;77452:23::-;;;;;;:::o;84707:983::-;80019:8;:15;84761:4;;80012:22;;80004:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84778:20:::1;:18;:20::i;:::-;84809:21;84833:8;84842:4;84833:14;;;;;;;;;;;;;;;;;;84809:38;;84878:4;:20;;;84862:12;:36;84858:75;;84915:7;;;84858:75;84962:13;::::0;::::1;::::0;84990;84986:102:::1;;-1:-1:-1::0;85043:12:0::1;85020:20;::::0;;::::1;:35:::0;85070:7:::1;;84986:102;85098:18;85119:49;85133:4;:20;;;85155:12;85119:13;:49::i;:::-;85098:70;;85179:18;85200:70;85254:15;;85200:49;85233:4;:15;;;85200:28;85215:12;;85200:10;:14;;:28;;;;:::i;:::-;:32:::0;::::1;:49::i;:70::-;85179:91:::0;-1:-1:-1;85281:21:0::1;85305:18;85179:91:::0;85320:2:::1;85305:14;:18::i;:::-;85334:4;::::0;85344:7:::1;::::0;;85334:33:::1;::::0;;;;;:4:::1;85344:7:::0;;::::1;85334:33:::0;;::::1;::::0;;;;;;;;;;;85281:42;;-1:-1:-1;85334:4:0;;::::1;::::0;:9:::1;::::0;:33;;;;;:4:::1;::::0;:33;;;;;;;;:4;;:33;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;85382:19:0::1;::::0;::::1;::::0;;;::::1;;;85378:165;;;85417:5;::::0;:37:::1;::::0;;;;;85436:4:::1;85417:37;::::0;::::1;::::0;;;;;;;;;:5:::1;::::0;;::::1;::::0;:10:::1;::::0;:37;;;;;:5:::1;::::0;:37;;;;;;;;:5;;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;85378:165;;;85495:4;::::0;:36:::1;::::0;;;;;85513:4:::1;85495:36;::::0;::::1;::::0;;;;;;;;;:4:::1;::::0;;::::1;::::0;:9:::1;::::0;:36;;;;;:4:::1;::::0;:36;;;;;;;;:4;;:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;85378:165;85576:60;85601:34;85626:8:::0;85601:20:::1;:10:::0;85616:4:::1;85601:14;:20::i;:34::-;85576:20;::::0;::::1;::::0;;:24:::1;:60::i;:::-;85553:20;::::0;::::1;:83:::0;-1:-1:-1;;85670:12:0::1;85647:20;::::0;;::::1;:35:::0;;;;-1:-1:-1;;80076:1:0::1;84707:983:::0;;:::o;89998:358::-;90059:21;90083:8;90092:4;90083:14;;;;;;;;;;;;;;;;90132;;;:8;:14;;;;;;90147:10;90132:26;;;;;;;;90216:11;;90083:14;;;;;;;90169:12;;90083:14;;-1:-1:-1;90169:59:0;;90132:26;90169:12;;;;;90147:10;90169:25;:59::i;:::-;90280:11;;90244:48;;;;;;;90274:4;;90262:10;;90244:48;;;;;;;;;90317:1;90303:15;;;90329;;;;:19;-1:-1:-1;;89998:358:0:o;81837:573::-;22210:12;:10;:12::i;:::-;22200:6;;:22;:6;;;:22;;;22192:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81981:11:::1;81977:61;;;82009:17;:15;:17::i;:::-;82048:22;82073:8;82082:4;82073:14;;;;;;;;;;;;;;;;;;:25;;;82048:50;;82137:11;82109:8;82118:4;82109:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;82189:13;82159:8;82168:4;82159:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;82245:15;82213:8;82222:4;82213:14;;;;;;;;;;;;;;;;;;:29;;;:47;;;;;;;;;;;;;;;;;;82293:11;82275:14;:29;82271:132;;82339:52;82379:11;82339:35;82359:14;82339:15;;:19;;:35;;;;:::i;:::-;:39:::0;::::1;:52::i;:::-;82321:15;:70:::0;82271:132:::1;22270:1;81837:573:::0;;;;;:::o;84451:180::-;84513:8;:15;84496:14;84539:85;84567:6;84561:3;:12;84539:85;;;84597:15;84608:3;84597:10;:15::i;:::-;84575:5;;84539:85;;78681:43;;;;:::o;22630:140::-;22210:12;:10;:12::i;:::-;22200:6;;:22;:6;;;:22;;;22192:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22729:1:::1;22713:6:::0;;22692:40:::1;::::0;::::1;22713:6:::0;;::::1;::::0;22692:40:::1;::::0;22729:1;;22692:40:::1;22760:1;22743:19:::0;;;::::1;::::0;;22630:140::o;77718:44::-;;;;;;;;;;;;;;;:::o;92150:106::-;22210:12;:10;:12::i;:::-;22200:6;;:22;:6;;;:22;;;22192:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92224:10:::1;:24:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;92150:106::o;92011:131::-;92084:7;;;;92070:10;:21;92062:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92116:7;:18;;;;;;;;;;;;;;;92011:131::o;21988:79::-;22026:7;22053:6;;;21988:79;:::o;80573:121::-;80645:7;80672:14;:3;80680:5;80672:7;:14::i;:::-;80665:21;80573:121;-1:-1:-1;;;80573:121:0:o;77878:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;85698:961::-;80019:8;:15;85790:4;;80012:22;;80004:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80160:15:::1;::::0;::::1;;80138:10;:38;80130:83;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;85821:21:::2;85845:8;85854:4;85845:14;;;;;;;;;::::0;;;::::2;::::0;;;85894;;;:8:::2;:14:::0;;;;;;:21:::2;::::0;::::2;::::0;;;;;;;85845:14:::2;::::0;;::::2;::::0;;::::2;::::0;-1:-1:-1;85926:16:0::2;85903:4:::0;85926:10:::2;:16::i;:::-;85957:11:::0;;:15;85953:403:::2;;85989:15;86007:77;86068:4;:15;;;86007:56;86058:4;86007:46;86032:4;:20;;;86007:4;:20;;;:24;;:46;;;;:::i;:77::-;85989:95:::0;-1:-1:-1;86102:11:0;;86099:246:::2;;86137:19;::::0;::::2;::::0;;;::::2;;;86134:196;;;86180:33;86198:5;86205:7;86180:17;:33::i;:::-;86134:196;;;86278:32;86295:5;86302:7;86278:16;:32::i;:::-;85953:403;;86400:20;::::0;;::::2;::::0;86382:13;;::::2;::::0;:39:::2;::::0;:17:::2;:39::i;:::-;86366:13;::::0;::::2;:55:::0;86456:44:::2;86494:5;86456:33;86472:16;:5:::0;86494;86472:9:::2;:16::i;:::-;86456:11:::0;;;:15:::2;:33::i;:44::-;86432:20;::::0;;::::2;:68:::0;;;86527:13;::::2;::::0;:39:::2;::::0;:17:::2;:39::i;:::-;86511:4;:13;;:55;;;;86595:56;86646:4;86595:46;86620:4;:20;;;86595:4;:20;;;:24;;:46;;;;:::i;:56::-;86577:15;::::0;;::::2;:74:::0;-1:-1:-1;;;;;85698:961:0:o;77323:45::-;;;;;;:::o;77503:22::-;;;;;;:::o;80863:878::-;22210:12;:10;:12::i;:::-;22200:6;;:22;:6;;;:22;;;22192:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81031:5:::1;81014:13;:22;;;;81006:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81093:11;81089:61;;;81121:17;:15;:17::i;:::-;81169:30;::::0;::::1;;::::0;;;:11:::1;:30;::::0;;;;;::::1;;81168:31;81160:62;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;81233:30;::::0;::::1;;::::0;;;:11:::1;:30;::::0;;;;:37;;;::::1;81266:4;81233:37;::::0;;81322:10:::1;81307:12;:25;:53;;81350:10;81307:53;;;81335:12;81307:53;81389:15;::::0;81281:79;;-1:-1:-1;81389:32:0::1;::::0;81409:11;81389:19:::1;:32::i;:::-;81371:15;:50:::0;81446:286:::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;81446:286:0::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;;;;;;::::1;;::::0;;;;;;81432:8:::1;:301:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81432:301:0;;;;;;;;;::::1;;::::0;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;;::::1;;::::0;;80863:878::o;82474:744::-;82547:7;82567:21;82591:8;82600:4;82591:14;;;;;;;;;;;;;;;;82640;;;:8;:14;;;;;;:21;;;;;;;;;;82698:20;82591:14;;;;;;;82698:20;;;;82748:13;;;;82791:20;;;;82591:14;;-1:-1:-1;82698:20:0;;82776:12;:35;:52;;;;-1:-1:-1;82815:13:0;;;82776:52;82772:349;;;82845:18;82866:49;82880:4;:20;;;82902:12;82866:13;:49::i;:::-;82845:70;;82930:18;82951:70;83005:15;;82951:49;82984:4;:15;;;82951:28;82966:12;;82951:10;:14;;:28;;;;:::i;:70::-;82930:91;-1:-1:-1;83054:55:0;83074:34;83099:8;83074:20;82930:91;83089:4;83074:14;:20::i;:34::-;83054:15;;:19;:55::i;:::-;83036:73;;82772:349;;;83138:72;83194:4;:15;;;83138:51;83184:4;83138:41;83163:15;83138:4;:20;;;:24;;:41;;;;:::i;:72::-;83131:79;82474:744;-1:-1:-1;;;;;;;82474:744:0:o;86731:1974::-;80019:8;:15;86801:4;;80012:22;;80004:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86818:13:::1;86834:10;86818:26;;86855:21;86879:8;86888:4;86879:14;;;;;;;;;::::0;;;::::1;::::0;;;86928;;;:8:::1;:14:::0;;;;;;:21:::1;::::0;::::1;::::0;;;;;;;86879:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;86960:16:0::1;86937:4:::0;86960:10:::1;:16::i;:::-;86991:11:::0;;:15;86987:403:::1;;87023:15;87041:77;87102:4;:15;;;87041:56;87092:4;87041:46;87066:4;:20;;;87041:4;:20;;;:24;;:46;;;;:::i;:77::-;87023:95:::0;-1:-1:-1;87136:11:0;;87133:246:::1;;87171:19;::::0;::::1;::::0;;;::::1;;;87168:196;;;87214:33;87232:5;87239:7;87214:17;:33::i;:::-;87168:196;;;87312:32;87329:5;87336:7;87312:16;:32::i;:::-;86987:403;;87404:11:::0;;87400:1168:::1;;87432:12:::0;;:69:::1;::::0;:12:::1;;87470:5:::0;87486:4:::1;87493:7:::0;87432:29:::1;:69::i;:::-;87553:4;::::0;87528:12;;87553:4:::1;87528:12:::0;;::::1;87553:4:::0;::::1;87520:38;87516:177;;;87579:19;87601:23;87620:3;87601:14;:7:::0;87613:1:::1;87601:11;:14::i;:23::-;87579:45:::0;-1:-1:-1;87653:24:0::1;:7:::0;87579:45;87653:11:::1;:24::i;:::-;87643:34;;87516:177;;87711:17;::::0;::::1;::::0;::::1;;:21:::0;87707:850:::1;;87786:17;::::0;::::1;::::0;87753:18:::1;::::0;87774:41:::1;::::0;87809:5:::1;::::0;87774:30:::1;::::0;:7;;87786:17:::1;;87774:11;:30::i;:41::-;87860:10;::::0;87834:12;;87753:62;;-1:-1:-1;87834:49:0::1;::::0;87860:10:::1;87834:12:::0;;::::1;::::0;87860:10:::1;87753:62:::0;87834:25:::1;:49::i;:::-;87916:11:::0;;:40:::1;::::0;87945:10;;87916:24:::1;::::0;87932:7;87916:15:::1;:24::i;:40::-;87902:54:::0;;:11:::1;87998:73;88065:5;87998:62;88026:33;88065:5:::0;88026:22:::1;88036:4:::0;88042:5;88026:9:::1;:22::i;:33::-;87998:23;:7:::0;88010:10;87998:11:::1;:23::i;:73::-;88113:20;::::0;::::1;::::0;87975:96;;-1:-1:-1;88113:38:0::1;::::0;87975:96;88113:24:::1;:38::i;:::-;88090:20;::::0;;::::1;:61:::0;;;;88186:13;::::1;::::0;:31:::1;::::0;88204:12;88186:17:::1;:31::i;:::-;88170:13;::::0;::::1;:47:::0;-1:-1:-1;87707:850:0::1;::::0;-1:-1:-1;87707:850:0::1;;88272:11:::0;;:24:::1;::::0;88288:7;88272:15:::1;:24::i;:::-;88258:38:::0;;:11:::1;88338:57;88389:5;88338:46;88350:33;88389:5:::0;88350:22:::1;88360:4:::0;88366:5;88350:9:::1;:22::i;88338:57::-;88437:20;::::0;::::1;::::0;88315:80;;-1:-1:-1;88437:38:0::1;::::0;88315:80;88437:24:::1;:38::i;:::-;88414:20;::::0;;::::1;:61:::0;;;;88510:13;::::1;::::0;:31:::1;::::0;88528:12;88510:17:::1;:31::i;:::-;88494:13;::::0;::::1;:47:::0;-1:-1:-1;87707:850:0::1;88596:56;88647:4;88596:46;88621:4;:20;;;88596:4;:20;;;:24;;:46;;;;:::i;:56::-;88578:15;::::0;::::1;:74:::0;88668:29:::1;::::0;;;;;;;88683:4;;88668:29:::1;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;::::1;80076:1;;;86731:1974:::0;;;:::o;78325:57::-;;;:::o;22925:109::-;22210:12;:10;:12::i;:::-;22200:6;;:22;:6;;;:22;;;22192:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22998:28:::1;23017:8;22998:18;:28::i;:::-;22925:109:::0;:::o;78444:62::-;;;:::o;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3275:132;3333:7;3360:39;3364:1;3367;3360:39;;;;;;;;;;;;;;;;;:3;:39::i;1404:136::-;1462:7;1489:43;1493:1;1496;1489:43;;;;;;;;;;;;;;;;;:3;:43::i;91522:433::-;91618:5;;:30;;;;;;91642:4;91618:30;;;;;;91599:16;;91618:5;;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;91618:30:0;;-1:-1:-1;91659:20:0;91702:18;;;91698:177;;;91755:5;;:29;;;;;;:5;:29;;;;;;;;;;;;;;;:5;;;;;:14;;:29;;;;;;;;;;;;;;:5;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;91755:29:0;;-1:-1:-1;91698:177:0;;;91835:5;;:28;;;;;;:5;:28;;;;;;;;;;;;;;;:5;;;;;:14;;:28;;;;;;;;;;;;;;:5;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;91835:28:0;;-1:-1:-1;91698:177:0;91893:15;91885:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91522:433;;;;:::o;90981:425::-;91075:4;;:29;;;;;;91098:4;91075:29;;;;;;91057:15;;91075:4;;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;91075:29:0;;-1:-1:-1;91115:20:0;91158:17;;;91154:173;;;91210:4;;:27;;;;;;:4;:27;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;91210:27:0;;-1:-1:-1;91154:173:0;;;91288:4;;:27;;;;;;:4;:27;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;91288:27:0;;-1:-1:-1;91154:173:0;91345:15;91337:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;940:181;998:7;1030:5;;;1054:6;;;;1046:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16403:211;16547:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16570:23;16547:58;;;16520:86;;16540:5;;16520:19;:86::i;:::-;16403:211;;;:::o;83289:1079::-;83355:1;83342:10;:14;:44;;;;;83376:10;83360:12;:26;;83342:44;83339:81;;;83402:7;;83339:81;83449:19;83433:12;;:35;83430:72;;83484:7;;83430:72;83514:20;83537:63;83570:29;83537:28;:12;83554:10;83537:16;:28::i;:63::-;83514:86;;83631:24;;83615:12;:40;83611:79;;83672:7;;;83611:79;83728:12;;83772:24;;83751:189;83806:12;83798:5;:20;83751:189;;;83862:66;83924:3;83862:57;:15;83888:30;83882:36;;83862:19;:57::i;:66::-;83844:84;-1:-1:-1;83820:7:0;;83751:189;;;;83988:19;83970:15;:37;:77;;84032:15;83970:77;;;84010:19;83970:77;83952:95;;84081:12;;84062:15;:31;84058:70;;84110:7;;;;84058:70;84140:24;:39;;;84221:12;;;84244:30;;;;84290:70;;;;;;;;;;;;;;84310:10;;84290:70;;;;;;;;83289:1079;;;;:::o;20540:98::-;20620:10;20540:98;:::o;16622:248::-;16793:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16816:27;16793:68;;;16766:96;;16786:5;;16766:19;:96::i;23140:229::-;23214:22;;;23206:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23316:6;;;23295:38;;;;;;;23316:6;;;23295:38;;;23344:6;:17;;;;;;;;;;;;;;;23140: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;18938:774::-;19362:23;19388:69;19416:4;19388:69;;;;;;;;;;;;;;;;;19396:5;19388:27;;;;:69;;;;;:::i;:::-;19472:17;;19362:95;;-1:-1:-1;19472:21:0;19468:237;;19627:10;19616:30;;;;;;;;;;;;;;;-1:-1:-1;19616:30:0;19608:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13216:230;13353:12;13385:53;13408:6;13416:4;13422:1;13425:12;13385:22;:53::i;:::-;13378:60;13216:230;-1:-1:-1;;;;13216:230:0:o;14704:1020::-;14877:12;14910:18;14921:6;14910:10;:18::i;:::-;14902:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15036:12;15050:23;15077:6;:11;;15096:8;15106:4;15077:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15035:76;;;;15126:7;15122:595;;;15157:10;-1:-1:-1;15150:17:0;;-1:-1:-1;15150:17:0;15122:595;15271:17;;:21;15267:439;;15534:10;15528:17;15595:15;15582:10;15578:2;15574:19;15567:44;15482:148;15670:20;;;;;;;;;;;;;;;;;;;;15677:12;;15670:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10079:641;10139:4;10620:20;;10450:66;10669:23;;;;;;:42;;-1:-1:-1;;10696:15:0;;;10661:51;-1:-1:-1;;10079:641:0:o

Swarm Source

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