Contract 0xd718baa0b1f4f70dcc8458154042120ffe0deffa 2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x266e655b97cf4282471bc0f85787a6353f708044aa83b63272c48fa696df00deClaim Reward109140922021-09-14 18:32:264 days 12 hrs ago0xc10aba68018085c6df9f7f453ef1530b58c9405a IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0x5ac761b234d8021f3b3c95c60da265aac9ace0ef00d335bdec27231253690492Claim Reward109093272021-09-14 14:32:174 days 16 hrs ago0xa7954b99b0bd722ac40d00609582db9e95da29bd IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.00043248
0xa9f354d01f8cb002e0b00b05326d9f8ab50794d92683b5bbd65f6b853f0051e6Claim Reward109002832021-09-14 6:59:145 days 3 mins ago0xc86cfc3cda4add38d64daea038a7b4350073a387 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x9bba4cc49312d0dadc0fcebf6e8fc235e7615a7640444d4ed398e87b4fe0b305Claim Reward108300072021-09-11 20:17:237 days 10 hrs ago0x9620e21e1c6cfb63dc9c7c5c53183415c0236d01 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0xbec756884b7f53252e2d9cf3193b3a524efb60b787c5b63c834aac5cbfeab5d3Claim Reward108127262021-09-11 5:46:438 days 1 hr ago0xdb2b6f8c8b14af335d09891aaef2c12591c2aedf IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x4d16ec720825eb717c4866516f53241d5b8694128ae2c27223ba46bac1c08f5dClaim Reward108096222021-09-11 3:08:568 days 3 hrs ago0x30d53ed0c22ecfb83ad78e7b977672a078dcf882 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0x30d16df1ff359dabdaaeff4c84b7e433a86c5d05a9715107e2946451b44cc9e7Claim Reward108001902021-09-10 19:11:598 days 11 hrs ago0x24f76e3abac51752dcef9ca840267467b93cbdf9 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x9626d2cf5745081fe1e6f5651ff21da8ab85d30b772e872cd3840f0c71db6f24Claim Reward107999852021-09-10 19:01:448 days 12 hrs ago0x361cbb3d0eb86b1929f2444af7a77111a7e4eb6c IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.00039956
0x664485af080340c37763d0ca401e102c2b63f35a030bcff003ea665703cb947bClaim Reward107939182021-09-10 13:50:448 days 17 hrs ago0x6e01c980dd18a841b02274bbbde258c04ea600cf IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x7231385239dc22a0598f28a11ee133b6a43992868c641056a8c29d8d072fc0a6Claim Reward107886362021-09-10 9:24:378 days 21 hrs ago0x1cab90d36e2e9e1b73bf01ba6af242be7ca783cb IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.00043248
0x22621e1b0d310df75720e4c63ef18e7d74c32f8797a47ba942e791f91da59a85Claim Reward107834442021-09-10 5:01:489 days 2 hrs ago0x71d8857d3a4eaad3e9f9c047e3dff37348d9c91e IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0xb53da9a88b335163760b41a4f1d776de301161ed7af9271c49e3fe376c986ce2Claim Reward107478212021-09-08 23:03:3110 days 7 hrs ago0x6e7f2ca53d41bb0c159c88ca9a27f09e64745709 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0x1e8662718790402b4da693e903a3440dd1738ac407a03bb60709e5635b3705c8Claim Reward107331982021-09-08 10:44:2610 days 20 hrs ago0x8610d989f22d29330cb13e527b173eba99af3fc2 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x776d1f4d735a178a1cdec5feaa56ea5b64cdc7e6cc465beffa8faa89bb9c4d65Claim Reward107242822021-09-08 3:12:2811 days 3 hrs ago0x07bb01977655f49b04405effec0d6e030fb22218 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0xb2e0ed47a945a1ce1a26a72c2e611929bf8f426fe145a9526aa7fe6bf30e1202Claim Reward107080352021-09-07 13:17:5411 days 17 hrs ago0x41d79e4de8f4783cb6cfd307b6b8a6c8898e3a2d IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0xa87cdb11264d3ce2f8cf7f8b925787b29a8375306210a92aa2819e07e5657ec0Claim Reward107064472021-09-07 11:58:0311 days 19 hrs ago0xe522581c9778bfb7702ae72f6c5a22c2b1a470b3 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.00043248
0x113c3e82d74cb7e6206e7328e99a00a54b068ecebb083e0b6619f3267f3fe1b8Claim Reward107013762021-09-07 7:43:0011 days 23 hrs ago0x4ab4786665928864644be826baffdfd9da082c0f IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0xfc28a644235b6dfb8ccb816b6c7f02fd58a5409fceb586a2838cc5df14e57c7dClaim Reward107006932021-09-07 7:08:1811 days 23 hrs ago0x324ac96619f7dc9a38d41f7f6a18246be15496b0 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x374d7d970b77a05271c44acd98e3afa5f9ef09267231a4d00e6ee918ad15c4dfClaim Reward106962732021-09-07 3:22:5512 days 3 hrs ago0xc3e92e58771ca69081bfc127f5c855a30742cbf2 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.00050456
0x32b0caf093ea27e7254b45bd35fae48cc557c11899c9739c881ab4df781e6754Claim Reward106954382021-09-07 2:40:4112 days 4 hrs ago0x8b514210c540b205a745d96fe7da41d3c38292cd IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0x97be99d6bb29f8915dcf299a80014906e3beeda204215781ec1955336bbba00eClaim Reward106907382021-09-06 22:43:0512 days 8 hrs ago0x624f118f798df77d6f7d20f1e753ba7d72f1846d IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x4408cec89968064fca2e23b3d26d55c88686fa9b7d17432e56bfd122a33f3703Claim Reward106861282021-09-06 18:48:2812 days 12 hrs ago0x651d5260e1cc2719c63560dc286dfb87a387a638 IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0x18b3de1d5f4617c9f7a399ab5eabef674f69ed68412241edf873cfbfad5a371dClaim Reward106642402021-09-06 0:29:4213 days 6 hrs ago0xa56a84a3929f0e1151b2bb5449e7b19b84fe53bf IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
0x7befc28270c1cbda27e8f2528a09de78fa245709ab5a986ac176300e0b3a9282Claim Reward106548012021-09-05 16:37:1613 days 14 hrs ago0x4811d1c5e77cf7c6177682f3fcdb6d7bba8ccd0d IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0003604
0x93ddbedafa1ec488c225a8c461769d36997eabd97083f9558707e2b4af779b79Claim Reward106395162021-09-05 3:50:5814 days 3 hrs ago0xd504bd85eb78e6f37afd2d6124edfce14c0b037b IN  0xd718baa0b1f4f70dcc8458154042120ffe0deffa0 BNB0.0002854
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TradingCompV1

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

// File: bsc-library/contracts/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: @openzeppelin/contracts/utils/Address.sol

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

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

// File: bsc-library/contracts/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: contracts/interfaces/IPancakeProfile.sol

pragma solidity ^0.6.0;

/** @title IPancakeProfile.
 */
interface IPancakeProfile {
    function createProfile(
        uint256 _teamId,
        address _nftAddress,
        uint256 _tokenId
    ) external;

    /**
     * @dev To pause user profile. It releases the NFT.
     * Callable only by registered users.
     */
    function pauseProfile() external;

    /**
     * @dev To update user profile.
     * Callable only by registered users.
     */
    function updateProfile() external;

    /**
     * @dev To reactivate user profile.
     * Callable only by registered users.
     */
    function reactivateProfile(address _nftAddress, uint256 _tokenId) external;

    /**
     * @dev To increase the number of points for a user.
     * Callable only by point admins
     */
    function increaseUserPoints(
        address _userAddress,
        uint256 _numberPoints,
        uint256 _campaignId
    ) external;

    /**
     * @dev To increase the number of points for a set of users.
     * Callable only by point admins
     */
    function increaseUserPointsMultiple(
        address[] calldata _userAddresses,
        uint256 _numberPoints,
        uint256 _campaignId
    ) external;

    /**
     * @dev To increase the number of points for a team.
     * Callable only by point admins
     */

    function increaseTeamPoints(
        uint256 _teamId,
        uint256 _numberPoints,
        uint256 _campaignId
    ) external;

    /**
     * @dev To remove the number of points for a user.
     * Callable only by point admins
     */
    function removeUserPoints(address _userAddress, uint256 _numberPoints) external;

    /**
     * @dev To remove a set number of points for a set of users.
     */
    function removeUserPointsMultiple(address[] calldata _userAddresses, uint256 _numberPoints) external;

    /**
     * @dev To remove the number of points for a team.
     * Callable only by point admins
     */

    function removeTeamPoints(uint256 _teamId, uint256 _numberPoints) external;

    /**
     * @dev To add a NFT contract address for users to set their profile.
     * Callable only by owner admins.
     */
    function addNftAddress(address _nftAddress) external;

    /**
     * @dev Add a new teamId
     * Callable only by owner admins.
     */
    function addTeam() external;

    /**
     * @dev Function to change team.
     * Callable only by special admins.
     */
    function changeTeam(address _userAddress, uint256 _newTeamId) external;

    /**
     * @dev Claim CAKE to burn later.
     * Callable only by owner admins.
     */
    function claimFee(uint256 _amount) external;

    /**
     * @dev Make a team joinable again.
     * Callable only by owner admins.
     */
    function makeTeamJoinable(uint256 _teamId) external;

    /**
     * @dev Make a team not joinable.
     * Callable only by owner admins.
     */
    function makeTeamNotJoinable(uint256 _teamId) external;

    /**
     * @dev Rename a team
     * Callable only by owner admins.
     */
    function renameTeam() external;

    /**
     * @dev Update the number of CAKE to register
     * Callable only by owner admins.
     */
    function updateNumberCake() external;

    /**
     * @dev Check the user's profile for a given address
     */
    function getUserProfile(address _userAddress)
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            address,
            uint256,
            bool
        );

    /**
     * @dev Check the user's status for a given address
     */
    function getUserStatus(address _userAddress) external view returns (bool);

    /**
     * @dev Check a team's profile
     */
    function getTeamProfile(uint256 _teamId)
        external
        view
        returns (
            string memory,
            string memory,
            uint256,
            uint256,
            bool
        );
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

// File: @openzeppelin/contracts/introspection/IERC165.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol

pragma solidity >=0.6.2 <0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol

pragma solidity >=0.6.2 <0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts/introspection/ERC165.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor() internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;
        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(
        Map storage map,
        bytes32 key,
        bytes32 value
    ) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) {
            // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({_key: key, _value: value}));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) {
            // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(
        Map storage map,
        bytes32 key,
        string memory errorMessage
    ) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        UintToAddressMap storage map,
        uint256 key,
        address value
    ) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToAddressMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = bytes1(uint8(48 + (temp % 10)));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping(address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(base, tokenId.toString()));
    }

    /**
     * @dev Returns the base URI set via {_setBaseURI}. This will be
     * automatically added as a prefix in {tokenURI} to each token's URI, or
     * to the token ID if no specific URI is set for that token ID.
     */
    function baseURI() public view virtual returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId); // internal owner

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (!to.isContract()) {
            return true;
        }
        bytes memory returndata =
            to.functionCall(
                abi.encodeWithSelector(
                    IERC721Receiver(to).onERC721Received.selector,
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                ),
                "ERC721: transfer to non ERC721Receiver implementer"
            );
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File: contracts/PancakeBunnies.sol

pragma solidity ^0.6.0;

/** @title PancakeBunnies.
 * @notice It is the contracts for PancakeSwap NFTs.
 */
contract PancakeBunnies is ERC721, Ownable {
    using Counters for Counters.Counter;

    // Map the number of tokens per bunnyId
    mapping(uint8 => uint256) public bunnyCount;

    // Map the number of tokens burnt per bunnyId
    mapping(uint8 => uint256) public bunnyBurnCount;

    // Used for generating the tokenId of new NFT minted
    Counters.Counter private _tokenIds;

    // Map the bunnyId for each tokenId
    mapping(uint256 => uint8) private bunnyIds;

    // Map the bunnyName for a tokenId
    mapping(uint8 => string) private bunnyNames;

    constructor(string memory _baseURI) public ERC721("Pancake Bunnies", "PB") {
        _setBaseURI(_baseURI);
    }

    /**
     * @dev Get bunnyId for a specific tokenId.
     */
    function getBunnyId(uint256 _tokenId) external view returns (uint8) {
        return bunnyIds[_tokenId];
    }

    /**
     * @dev Get the associated bunnyName for a specific bunnyId.
     */
    function getBunnyName(uint8 _bunnyId) external view returns (string memory) {
        return bunnyNames[_bunnyId];
    }

    /**
     * @dev Get the associated bunnyName for a unique tokenId.
     */
    function getBunnyNameOfTokenId(uint256 _tokenId) external view returns (string memory) {
        uint8 bunnyId = bunnyIds[_tokenId];
        return bunnyNames[bunnyId];
    }

    /**
     * @dev Mint NFTs. Only the owner can call it.
     */
    function mint(
        address _to,
        string calldata _tokenURI,
        uint8 _bunnyId
    ) external onlyOwner returns (uint256) {
        uint256 newId = _tokenIds.current();
        _tokenIds.increment();
        bunnyIds[newId] = _bunnyId;
        bunnyCount[_bunnyId] = bunnyCount[_bunnyId].add(1);
        _mint(_to, newId);
        _setTokenURI(newId, _tokenURI);
        return newId;
    }

    /**
     * @dev Set a unique name for each bunnyId. It is supposed to be called once.
     */
    function setBunnyName(uint8 _bunnyId, string calldata _name) external onlyOwner {
        bunnyNames[_bunnyId] = _name;
    }

    /**
     * @dev Burn a NFT token. Callable by owner only.
     */
    function burn(uint256 _tokenId) external onlyOwner {
        uint8 bunnyIdBurnt = bunnyIds[_tokenId];
        bunnyCount[bunnyIdBurnt] = bunnyCount[bunnyIdBurnt].sub(1);
        bunnyBurnCount[bunnyIdBurnt] = bunnyBurnCount[bunnyIdBurnt].add(1);
        _burn(_tokenId);
    }
}

// File: contracts/BunnyMintingStation.sol

pragma solidity ^0.6.0;

/** @title BunnyMintingStation.
 * @dev This contract allows different factories to mint
 * Pancake Collectibles/Bunnies.
 */
contract BunnyMintingStation is AccessControl {
    PancakeBunnies public pancakeBunnies;

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    // Modifier for minting roles
    modifier onlyMinter() {
        require(hasRole(MINTER_ROLE, _msgSender()), "Not a minting role");
        _;
    }

    // Modifier for admin roles
    modifier onlyOwner() {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Not an admin role");
        _;
    }

    constructor(PancakeBunnies _pancakeBunnies) public {
        pancakeBunnies = _pancakeBunnies;
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /**
     * @notice Mint NFTs from the PancakeBunnies contract.
     * Users can specify what bunnyId they want to mint. Users can claim once.
     * There is a limit on how many are distributed. It requires CAKE balance to be > 0.
     */
    function mintCollectible(
        address _tokenReceiver,
        string calldata _tokenURI,
        uint8 _bunnyId
    ) external onlyMinter returns (uint256) {
        uint256 tokenId = pancakeBunnies.mint(_tokenReceiver, _tokenURI, _bunnyId);
        return tokenId;
    }

    /**
     * @notice Set up names for bunnies.
     * @dev Only the main admins can set it.
     */
    function setBunnyName(uint8 _bunnyId, string calldata _bunnyName) external onlyOwner {
        pancakeBunnies.setBunnyName(_bunnyId, _bunnyName);
    }

    /**
     * @dev It transfers the ownership of the NFT contract to a new address.
     * @dev Only the main admins can set it.
     */
    function changeOwnershipNFTContract(address _newOwner) external onlyOwner {
        pancakeBunnies.transferOwnership(_newOwner);
    }
}

// File: contracts/TradingCompV1.sol

pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

/** @title TradingCompV1.
@notice It is a contract for users to collect points
based on off-chain events
*/
contract TradingCompV1 is Ownable {
    using SafeBEP20 for IBEP20;

    BunnyMintingStation public bunnyMintingStation;
    IBEP20 public cakeToken;
    IPancakeProfile public pancakeProfile;

    uint256 public constant numberTeams = 3;

    uint8 public bunnyId;
    uint256 public winningTeamId; // set to 0 as default
    string public tokenURI;

    enum CompetitionStatus {Registration, Open, Close, Claiming, Over}

    CompetitionStatus public currentStatus;

    mapping(address => UserStats) public userTradingStats;

    mapping(uint256 => CompetitionRewards) private _rewardCompetitions;

    struct CompetitionRewards {
        uint256[5] userCampaignId; // campaignId for user increase
        uint256[5] cakeRewards; // cake rewards per group
        uint256[5] pointUsers; // number of points per user
    }

    struct UserStats {
        uint256 rewardGroup; // 0 to 4 --> 4 top / 0: bottom
        uint256 teamId; // 1 - 3
        bool hasRegistered; // true or false
        bool hasClaimed; // true or false
    }

    event NewCompetitionStatus(CompetitionStatus status);
    event TeamRewardsUpdate(uint256 teamId);
    event UserRegister(address userAddress, uint256 teamId);
    event UserUpdateMultiple(address[] userAddresses, uint256 rewardGroup);
    event WinningTeam(uint256 teamId);

    /**
     * @notice It initializes the contract.
     * @param _pancakeProfileAddress: PancakeProfile address
     * @param _bunnyStationAddress: BunnyMintingStation address
     * @param _cakeTokenAddress: the address of the CAKE token
     */
    constructor(
        address _pancakeProfileAddress,
        address _bunnyStationAddress,
        address _cakeTokenAddress
    ) public {
        pancakeProfile = IPancakeProfile(_pancakeProfileAddress);
        bunnyMintingStation = BunnyMintingStation(_bunnyStationAddress);
        cakeToken = IBEP20(_cakeTokenAddress);
        currentStatus = CompetitionStatus.Registration;
    }

    /**
     * @notice It allows users to claim reward after the end of trading competition.
     * @dev It is only available during claiming phase
     */
    function claimReward() external {
        address senderAddress = _msgSender();

        require(userTradingStats[senderAddress].hasRegistered, "NOT_REGISTERED");
        require(!userTradingStats[senderAddress].hasClaimed, "HAS_CLAIMED");
        require(currentStatus == CompetitionStatus.Claiming, "NOT_IN_CLAIMING");

        userTradingStats[senderAddress].hasClaimed = true;

        uint256 userRewardGroup = userTradingStats[senderAddress].rewardGroup;
        uint256 userTeamId = userTradingStats[senderAddress].teamId;

        CompetitionRewards memory userRewards = _rewardCompetitions[userTeamId];

        if (userRewardGroup > 0) {
            cakeToken.safeTransfer(senderAddress, userRewards.cakeRewards[userRewardGroup]);

            if (userTeamId == winningTeamId) {
                bunnyMintingStation.mintCollectible(senderAddress, tokenURI, bunnyId);
            }
        }

        // User collects points
        pancakeProfile.increaseUserPoints(
            senderAddress,
            userRewards.pointUsers[userRewardGroup],
            userRewards.userCampaignId[userRewardGroup]
        );
    }

    /**
     * @notice It allows users to register for trading competition
     * @dev Only callable if the user has an active PancakeProfile.
     */
    function register() external {
        address senderAddress = _msgSender();

        // 1. Checks if user has registered
        require(!userTradingStats[senderAddress].hasRegistered, "HAS_REGISTERED");

        // 2. Check whether it is joinable
        require(currentStatus == CompetitionStatus.Registration, "NOT_IN_REGISTRATION");

        // 3. Check if active and records the teamId
        uint256 userTeamId;
        bool isUserActive;

        (, , userTeamId, , , isUserActive) = pancakeProfile.getUserProfile(senderAddress);

        require(isUserActive, "NOT_ACTIVE");

        // 4. Write in storage user stats for the registered user
        UserStats storage newUserStats = userTradingStats[senderAddress];
        newUserStats.teamId = userTeamId;
        newUserStats.hasRegistered = true;

        emit UserRegister(senderAddress, userTeamId);
    }

    /**
     * @notice It allows the owner to change the competition status
     * @dev Only callable by owner.
     * @param _status: CompetitionStatus (uint8)
     */
    function updateCompetitionStatus(CompetitionStatus _status) external onlyOwner {
        require(_status != CompetitionStatus.Registration, "IN_REGISTRATION");

        if (_status == CompetitionStatus.Open) {
            require(currentStatus == CompetitionStatus.Registration, "NOT_IN_REGISTRATION");
        } else if (_status == CompetitionStatus.Close) {
            require(currentStatus == CompetitionStatus.Open, "NOT_OPEN");
        } else if (_status == CompetitionStatus.Claiming) {
            require(winningTeamId > 0, "WINNING_TEAM_NOT_SET");
            require(currentStatus == CompetitionStatus.Close, "NOT_CLOSED");
        } else {
            require(currentStatus == CompetitionStatus.Claiming, "NOT_CLAIMING");
        }

        currentStatus = _status;

        emit NewCompetitionStatus(currentStatus);
    }

    /**
     * @notice It allows the owner to claim the CAKE remainder
     * @dev Only callable by owner.
     * @param _amount: amount of CAKE to withdraw (decimals = 18)
     */
    function claimRemainder(uint256 _amount) external onlyOwner {
        require(currentStatus == CompetitionStatus.Over, "NOT_OVER");
        cakeToken.safeTransfer(_msgSender(), _amount);
    }

    /**
     * @notice It allows the owner to update team rewards
     * @dev Only callable by owner.
     * @param _teamId: the teamId
     * @param _userCampaignIds: campaignIds for each user group for teamId
     * @param _cakeRewards: CAKE rewards for each user group for teamId
     * @param _pointRewards: point to collect for each user group for teamId
     */
    function updateTeamRewards(
        uint256 _teamId,
        uint256[5] calldata _userCampaignIds,
        uint256[5] calldata _cakeRewards,
        uint256[5] calldata _pointRewards
    ) external onlyOwner {
        require(currentStatus == CompetitionStatus.Close, "NOT_CLOSED");
        _rewardCompetitions[_teamId].userCampaignId = _userCampaignIds;
        _rewardCompetitions[_teamId].cakeRewards = _cakeRewards;
        _rewardCompetitions[_teamId].pointUsers = _pointRewards;

        emit TeamRewardsUpdate(_teamId);
    }

    /**
     * @notice It allows the owner to update user statuses
     * @dev Only callable by owner. Use with caution!
     * @param _addressesToUpdate: the array of addresses
     * @param _rewardGroup: the reward group
     */
    function updateUserStatusMultiple(address[] calldata _addressesToUpdate, uint256 _rewardGroup) external onlyOwner {
        require(currentStatus == CompetitionStatus.Close, "NOT_CLOSED");
        require(_rewardGroup <= 4, "TOO_HIGH");
        for (uint256 i = 0; i < _addressesToUpdate.length; i++) {
            userTradingStats[_addressesToUpdate[i]].rewardGroup = _rewardGroup;
        }

        emit UserUpdateMultiple(_addressesToUpdate, _rewardGroup);
    }

    /**
     * @notice It allows the owner to set the winning teamId (to collect NFT)
     * @dev Only callable by owner.
     * @param _winningTeamId: the winning teamId
     * @param _tokenURI: the tokenURI
     * @param _bunnyId: the bunnyId for winners (e.g. 15)
     */
    function updateWinningTeamAndTokenURIAndBunnyId(
        uint256 _winningTeamId,
        string calldata _tokenURI,
        uint8 _bunnyId
    ) external onlyOwner {
        require(currentStatus == CompetitionStatus.Close, "NOT_CLOSED");
        require((_winningTeamId > 0) && (_winningTeamId <= numberTeams), "NOT_VALID_TEAM_ID");
        require(_bunnyId > 14, "ID_TOO_LOW");
        winningTeamId = _winningTeamId;
        tokenURI = _tokenURI;
        bunnyId = _bunnyId;
        emit WinningTeam(_winningTeamId);
    }

    /**
     * @notice It checks the claim information
     * @dev It does not check if user has a profile since registration required a profile.
     * @param _userAddress: the user address
     * @return hasRegistered: has the user registered
     * @return hasUserClaimed: whether user has claimed
     * @return userRewardGroup: the final reward group for each user (i.e. tier)
     * @return userCakeRewards: the CAKE to claim/claimed
     * @return userPointReward: the number of points to claim/claimed
     * @return canClaimNFT: whether the user gets/got a NFT
     */
    function claimInformation(address _userAddress)
        external
        view
        returns (
            bool,
            bool,
            uint256,
            uint256,
            uint256,
            bool
        )
    {
        bool hasUserRegistered = userTradingStats[_userAddress].hasRegistered;
        if ((currentStatus != CompetitionStatus.Claiming) && (currentStatus != CompetitionStatus.Over)) {
            return (hasUserRegistered, false, 0, 0, 0, false);
        } else if (!hasUserRegistered) {
            return (hasUserRegistered, false, 0, 0, 0, false);
        } else {
            uint256 userRewardGroup = userTradingStats[_userAddress].rewardGroup;
            uint256 userTeamId = userTradingStats[_userAddress].teamId;

            uint256 userCakeRewards = _rewardCompetitions[userTeamId].cakeRewards[userRewardGroup];
            uint256 userPointRewards = _rewardCompetitions[userTeamId].pointUsers[userRewardGroup];

            bool hasUserClaimed = userTradingStats[_userAddress].hasClaimed;
            bool canClaimNFT;

            if ((userTeamId == winningTeamId) && (userRewardGroup > 0)) {
                canClaimNFT = true;
            }

            return (hasUserRegistered, hasUserClaimed, userRewardGroup, userCakeRewards, userPointRewards, canClaimNFT);
        }
    }

    /**
     * @notice It checks the reward groups for each team
     */
    function viewRewardTeams() external view returns (CompetitionRewards[] memory) {
        CompetitionRewards[] memory listCompetitionRewards = new CompetitionRewards[](numberTeams);
        for (uint256 i = 0; i < numberTeams; i++) {
            listCompetitionRewards[i] = _rewardCompetitions[i + 1];
        }
        return listCompetitionRewards;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pancakeProfileAddress","type":"address"},{"internalType":"address","name":"_bunnyStationAddress","type":"address"},{"internalType":"address","name":"_cakeTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum TradingCompV1.CompetitionStatus","name":"status","type":"uint8"}],"name":"NewCompetitionStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"teamId","type":"uint256"}],"name":"TeamRewardsUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"teamId","type":"uint256"}],"name":"UserRegister","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"userAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256","name":"rewardGroup","type":"uint256"}],"name":"UserUpdateMultiple","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"teamId","type":"uint256"}],"name":"WinningTeam","type":"event"},{"inputs":[],"name":"bunnyId","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bunnyMintingStation","outputs":[{"internalType":"contract BunnyMintingStation","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cakeToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"name":"claimInformation","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimRemainder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentStatus","outputs":[{"internalType":"enum TradingCompV1.CompetitionStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberTeams","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakeProfile","outputs":[{"internalType":"contract IPancakeProfile","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TradingCompV1.CompetitionStatus","name":"_status","type":"uint8"}],"name":"updateCompetitionStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_teamId","type":"uint256"},{"internalType":"uint256[5]","name":"_userCampaignIds","type":"uint256[5]"},{"internalType":"uint256[5]","name":"_cakeRewards","type":"uint256[5]"},{"internalType":"uint256[5]","name":"_pointRewards","type":"uint256[5]"}],"name":"updateTeamRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressesToUpdate","type":"address[]"},{"internalType":"uint256","name":"_rewardGroup","type":"uint256"}],"name":"updateUserStatusMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_winningTeamId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint8","name":"_bunnyId","type":"uint8"}],"name":"updateWinningTeamAndTokenURIAndBunnyId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userTradingStats","outputs":[{"internalType":"uint256","name":"rewardGroup","type":"uint256"},{"internalType":"uint256","name":"teamId","type":"uint256"},{"internalType":"bool","name":"hasRegistered","type":"bool"},{"internalType":"bool","name":"hasClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viewRewardTeams","outputs":[{"components":[{"internalType":"uint256[5]","name":"userCampaignId","type":"uint256[5]"},{"internalType":"uint256[5]","name":"cakeRewards","type":"uint256[5]"},{"internalType":"uint256[5]","name":"pointUsers","type":"uint256[5]"}],"internalType":"struct TradingCompV1.CompetitionRewards[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"winningTeamId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162002510380380620025108339810160408190526200003491620000db565b600062000040620000d7565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600380546001600160a01b039485166001600160a01b0319918216179091556001805493851693821693909317909255600280549190931691161790556006805460ff1916905562000147565b3390565b600080600060608486031215620000f0578283fd5b8351620000fd816200012e565b602085015190935062000110816200012e565b604085015190925062000123816200012e565b809150509250925092565b6001600160a01b03811681146200014457600080fd5b50565b6123b980620001576000396000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80637f8cfbb4116100d8578063b88a802f1161008c578063e8c5408d11610066578063e8c5408d146102bc578063ef8a9235146102cf578063f2fde38b146102e457610177565b8063b88a802f146102a4578063c7d936ec146102ac578063d6948c47146102b457610177565b80638904bf2f116100bd5780638904bf2f1461026f5780638da5cb5b14610277578063a849d38f1461027f57610177565b80637f8cfbb41461024557806388b2d0da1461025a57610177565b80633dd452d61161012f57806351b3795c1161011457806351b3795c14610215578063715018a61461022a5780637f3684f11461023257610177565b80633dd452d6146101ed57806343d6f88b1461020257610177565b80631de403e3116101605780631de403e3146101995780632c3e2bee146101c55780633c130d90146101d857610177565b80630ae137061461017c5780631aa3a00814610191575b600080fd5b61018f61018a36600461190c565b6102f7565b005b61018f61044b565b6101ac6101a73660046118f0565b610640565b6040516101bc94939291906122ee565b60405180910390f35b61018f6101d3366004611a3d565b61066d565b6101e06107cc565b6040516101bc9190611dd8565b6101f5610878565b6040516101bc91906122e5565b61018f6102103660046119bc565b61087d565b61021d610934565b6040516101bc9190611b76565b61018f610950565b61018f6102403660046119ec565b610a18565b61024d610b29565b6040516101bc9190611d21565b610262610c4e565b6040516101bc919061230d565b61021d610c6f565b61021d610c8b565b61029261028d3660046118f0565b610ca7565b6040516101bc96959493929190611d98565b61018f610e28565b61021d6111d3565b6101f56111ef565b61018f6102ca36600461199d565b6111f5565b6102d761141b565b6040516101bc9190611dc4565b61018f6102f23660046118f0565b611424565b6102ff61153d565b73ffffffffffffffffffffffffffffffffffffffff1661031d610c8b565b73ffffffffffffffffffffffffffffffffffffffff16146103595760405162461bcd60e51b81526004016103509061219d565b60405180910390fd5b600260065460ff16600481111561036c57fe5b146103895760405162461bcd60e51b815260040161035090612209565b60048111156103aa5760405162461bcd60e51b815260040161035090611fbf565b60005b8281101561040a5781600760008686858181106103c657fe5b90506020020160208101906103db91906118f0565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020556001016103ad565b507f6de9db9918823e10b6af7ae4803f0d3d676806f2ecc2da6e9aecd9f0c2216ff783838360405161043e93929190611cbe565b60405180910390a1505050565b600061045561153d565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090206002015490915060ff16156104a15760405162461bcd60e51b81526004016103509061212f565b600060065460ff1660048111156104b457fe5b146104d15760405162461bcd60e51b815260040161035090611e29565b6003546040517f987ee156000000000000000000000000000000000000000000000000000000008152600091829173ffffffffffffffffffffffffffffffffffffffff9091169063987ee1569061052c908690600401611b76565b60c06040518083038186803b15801561054457600080fd5b505afa158015610558573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057c9190611acc565b9296509194508493506105a5925050505760405162461bcd60e51b8152600401610350906121d2565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600760205260409081902060018082018590556002820180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016909117905590517fdec4c13f1daa034ca2a06b9cee6c16accc0bd81ad27afacc15604c4f5cea09bb906106329086908690611c6a565b60405180910390a150505050565b60076020526000908152604090208054600182015460029092015490919060ff8082169161010090041684565b61067561153d565b73ffffffffffffffffffffffffffffffffffffffff16610693610c8b565b73ffffffffffffffffffffffffffffffffffffffff16146106c65760405162461bcd60e51b81526004016103509061219d565b600260065460ff1660048111156106d957fe5b146106f65760405162461bcd60e51b815260040161035090612209565b600084118015610707575060038411155b6107235760405162461bcd60e51b81526004016103509061202d565b600e8160ff16116107465760405162461bcd60e51b8152600401610350906120c1565b6004849055610757600584846117ab565b50600380547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff8416021790556040517f888c23f0b9ffe0f2878e3b4eaf2414ed7ea3172647e4773cbbef57966c8fd761906106329086906122e5565b6005805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156108705780601f1061084557610100808354040283529160200191610870565b820191906000526020600020905b81548152906001019060200180831161085357829003601f168201915b505050505081565b600381565b61088561153d565b73ffffffffffffffffffffffffffffffffffffffff166108a3610c8b565b73ffffffffffffffffffffffffffffffffffffffff16146108d65760405162461bcd60e51b81526004016103509061219d565b600460065460ff1660048111156108e957fe5b146109065760405162461bcd60e51b8152600401610350906120f8565b61093161091161153d565b60025473ffffffffffffffffffffffffffffffffffffffff169083611541565b50565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b61095861153d565b73ffffffffffffffffffffffffffffffffffffffff16610976610c8b565b73ffffffffffffffffffffffffffffffffffffffff16146109a95760405162461bcd60e51b81526004016103509061219d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610a2061153d565b73ffffffffffffffffffffffffffffffffffffffff16610a3e610c8b565b73ffffffffffffffffffffffffffffffffffffffff1614610a715760405162461bcd60e51b81526004016103509061219d565b600260065460ff166004811115610a8457fe5b14610aa15760405162461bcd60e51b815260040161035090612209565b6000848152600860205260409020610abb90846005611847565b506000848152600860205260409020610adb906005908101908490611847565b506000848152600860205260409020610af990600a01826005611847565b507f975e819e964a851cc1d16e54bb4a815e8f5af37c7b5863d23c29614b5a9973b08460405161063291906122e5565b60408051600380825260808201909252606091829190816020015b610b4c611874565b815260200190600190039081610b4457905050905060005b6003811015610c485760018101600090815260086020526040908190208151610100810190925281606081018260058282826020028201915b815481526020019060010190808311610b9d5750505091835250506040805160a08101918290526020909201919060058481019182845b815481526020019060010190808311610bd45750505091835250506040805160a081019182905260209092019190600a84019060059082845b815481526020019060010190808311610c0d57505050505081525050828281518110610c3557fe5b6020908102919091010152600101610b64565b50905090565b60035474010000000000000000000000000000000000000000900460ff1681565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600760205260408120600201548190819081908190819060ff16600360065460ff166004811115610cf057fe5b14158015610d0f5750600460065460ff166004811115610d0c57fe5b14155b15610d2b57955060009450849350839250829150819050610e1f565b80610d4757955060009450849350839250829150819050610e1f565b73ffffffffffffffffffffffffffffffffffffffff881660009081526007602090815260408083208054600190910154808552600890935290832090929060059081019084908110610d9557fe5b0154600083815260086020526040812091925090600a018460058110610db757fe5b015473ffffffffffffffffffffffffffffffffffffffff8d16600090815260076020526040812060020154600454929350610100900460ff169185148015610dff5750600086115b15610e08575060015b959b5099509297509550909350909150610e1f9050565b91939550919395565b6000610e3261153d565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090206002015490915060ff16610e7d5760405162461bcd60e51b815260040161035090611f1a565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260076020526040902060020154610100900460ff1615610ecb5760405162461bcd60e51b815260040161035090612166565b600360065460ff166004811115610ede57fe5b14610efb5760405162461bcd60e51b815260040161035090612240565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090206002810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055805460019190910154610f5f611874565b600082815260086020526040908190208151610100810190925281606081018260058282826020028201915b815481526020019060010190808311610f8b5750505091835250506040805160a08101918290526020909201919060058481019182845b815481526020019060010190808311610fc25750505091835250506040805160a081019182905260209092019190600a84019060059082845b815481526020019060010190808311610ffb57505050505081525050905060008311156111325761105b848260200151856005811061103657fe5b602002015160025473ffffffffffffffffffffffffffffffffffffffff169190611541565b600454821415611132576001546003546040517f0f85cb5a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921691630f85cb5a916110de9188916005917401000000000000000000000000000000000000000090910460ff1690600401611b97565b602060405180830381600087803b1580156110f857600080fd5b505af115801561110c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113091906119d4565b505b600354604082015173ffffffffffffffffffffffffffffffffffffffff90911690631bdc17f6908690866005811061116657fe5b60200201518451876005811061117857fe5b60200201516040518463ffffffff1660e01b815260040161119b93929190611c90565b600060405180830381600087803b1580156111b557600080fd5b505af11580156111c9573d6000803e3d6000fd5b5050505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b6111fd61153d565b73ffffffffffffffffffffffffffffffffffffffff1661121b610c8b565b73ffffffffffffffffffffffffffffffffffffffff161461124e5760405162461bcd60e51b81526004016103509061219d565b600081600481111561125c57fe5b141561127a5760405162461bcd60e51b8152600401610350906122ae565b600181600481111561128857fe5b14156112c357600060065460ff1660048111156112a157fe5b146112be5760405162461bcd60e51b815260040161035090611e29565b61139d565b60028160048111156112d157fe5b141561130757600160065460ff1660048111156112ea57fe5b146112be5760405162461bcd60e51b815260040161035090611ff6565b600381600481111561131557fe5b141561136d5760006004541161133d5760405162461bcd60e51b815260040161035090611f51565b600260065460ff16600481111561135057fe5b146112be5760405162461bcd60e51b815260040161035090612209565b600360065460ff16600481111561138057fe5b1461139d5760405162461bcd60e51b815260040161035090611f88565b600680548291907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360048111156113d457fe5b02179055506006546040517f764216cc87d672d651534a1b124f00f678d3ed29aaf5e649af8e92590cbf9f11916114109160ff90911690611dc4565b60405180910390a150565b60065460ff1681565b61142c61153d565b73ffffffffffffffffffffffffffffffffffffffff1661144a610c8b565b73ffffffffffffffffffffffffffffffffffffffff161461147d5760405162461bcd60e51b81526004016103509061219d565b73ffffffffffffffffffffffffffffffffffffffff81166114b05760405162461bcd60e51b815260040161035090611ebd565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b6115e28363a9059cbb60e01b8484604051602401611560929190611c6a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526115e7565b505050565b6060611649826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116839092919063ffffffff16565b8051909150156115e257808060200190518101906116679190611981565b6115e25760405162461bcd60e51b815260040161035090611e60565b6060611692848460008561169c565b90505b9392505050565b6060824710156116be5760405162461bcd60e51b815260040161035090612064565b6116c78561176c565b6116e35760405162461bcd60e51b815260040161035090612277565b600060608673ffffffffffffffffffffffffffffffffffffffff16858760405161170d9190611b5a565b60006040518083038185875af1925050503d806000811461174a576040519150601f19603f3d011682016040523d82523d6000602084013e61174f565b606091505b509150915061175f828286611772565b925050505b949350505050565b3b151590565b60608315611781575081611695565b8251156117915782518084602001fd5b8160405162461bcd60e51b81526004016103509190611dd8565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061180a578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555611837565b82800160010185558215611837579182015b8281111561183757823582559160200191906001019061181c565b506118439291506118a6565b5090565b8260058101928215611837579160200282018281111561183757823582559160200191906001019061181c565b60405180606001604052806118876118bb565b81526020016118946118bb565b81526020016118a16118bb565b905290565b5b8082111561184357600081556001016118a7565b6040518060a001604052806005906020820280368337509192915050565b8060a081018310156118ea57600080fd5b92915050565b600060208284031215611901578081fd5b813561169581612353565b600080600060408486031215611920578182fd5b833567ffffffffffffffff80821115611937578384fd5b818601915086601f83011261194a578384fd5b813581811115611958578485fd5b876020808302850101111561196b578485fd5b6020928301989097509590910135949350505050565b600060208284031215611992578081fd5b815161169581612375565b6000602082840312156119ae578081fd5b813560058110611695578182fd5b6000602082840312156119cd578081fd5b5035919050565b6000602082840312156119e5578081fd5b5051919050565b6000806000806102008587031215611a02578081fd5b84359350611a1386602087016118d9565b9250611a228660c087016118d9565b9150611a328661016087016118d9565b905092959194509250565b60008060008060608587031215611a52578384fd5b84359350602085013567ffffffffffffffff80821115611a70578485fd5b818701915087601f830112611a83578485fd5b813581811115611a91578586fd5b886020828501011115611aa2578586fd5b602083019550809450505050604085013560ff81168114611ac1578182fd5b939692955090935050565b60008060008060008060c08789031215611ae4578182fd5b8651955060208701519450604087015193506060870151611b0481612353565b608088015160a08901519194509250611b1c81612375565b809150509295509295509295565b8060005b6005811015611b4d578151845260209384019390910190600101611b2e565b50505050565b60ff169052565b60008251611b6c818460208701612327565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b60006060820173ffffffffffffffffffffffffffffffffffffffff861683526020606081850152828654600180821660008114611bdb5760018114611c1957611c54565b611beb607f6002850416876122e5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008416815285019350611c54565b60028304611c2781886122e5565b611c308c61231b565b895b83811015611c4b57815483820152908501908801611c32565b91909101955050505b5050508093505050506117646040830184611b53565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9390931683526020830191909152604082015260600190565b6040808252810183905260008460608301825b86811015611d0e5760208335611ce681612353565b73ffffffffffffffffffffffffffffffffffffffff1683529283019290910190600101611cd1565b5060209390930193909352509392505050565b602080825282518282018190526000919060409081850190868401855b82811015611d8b578151611d53858251611b2a565b86810151611d6460a0870182611b2a565b50850151611d76610140860182611b2a565b506101e0939093019290850190600101611d3e565b5091979650505050505050565b95151586529315156020860152604085019290925260608401526080830152151560a082015260c00190565b6020810160058310611dd257fe5b91905290565b6000602082528251806020840152611df7816040850160208701612327565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526013908201527f4e4f545f494e5f524547495354524154494f4e00000000000000000000000000604082015260600190565b6020808252602a908201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600e908201527f4e4f545f52454749535445524544000000000000000000000000000000000000604082015260600190565b60208082526014908201527f57494e4e494e475f5445414d5f4e4f545f534554000000000000000000000000604082015260600190565b6020808252600c908201527f4e4f545f434c41494d494e470000000000000000000000000000000000000000604082015260600190565b60208082526008908201527f544f4f5f48494748000000000000000000000000000000000000000000000000604082015260600190565b60208082526008908201527f4e4f545f4f50454e000000000000000000000000000000000000000000000000604082015260600190565b60208082526011908201527f4e4f545f56414c49445f5445414d5f4944000000000000000000000000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600a908201527f49445f544f4f5f4c4f5700000000000000000000000000000000000000000000604082015260600190565b60208082526008908201527f4e4f545f4f564552000000000000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f4841535f52454749535445524544000000000000000000000000000000000000604082015260600190565b6020808252600b908201527f4841535f434c41494d4544000000000000000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600a908201527f4e4f545f41435449564500000000000000000000000000000000000000000000604082015260600190565b6020808252600a908201527f4e4f545f434c4f53454400000000000000000000000000000000000000000000604082015260600190565b6020808252600f908201527f4e4f545f494e5f434c41494d494e470000000000000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600f908201527f494e5f524547495354524154494f4e0000000000000000000000000000000000604082015260600190565b90815260200190565b9384526020840192909252151560408301521515606082015260800190565b60ff91909116815260200190565b60009081526020902090565b60005b8381101561234257818101518382015260200161232a565b83811115611b4d5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461093157600080fd5b801515811461093157600080fdfea26469706673582212207b6611cea4131fd86cf2011eab62a0cc1cdab6edb088e9d8a43650b24fdde13464736f6c634300060c0033000000000000000000000000df4dbf6536201370f95e06a0f8a7a70fe40e388a00000000000000000000000078c2d17edb8a34fa00dd602994f16964d3fb4bab0000000000000000000000000e09fabb73bd3ade0a17ecc321fd13a19e81ce82

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

000000000000000000000000df4dbf6536201370f95e06a0f8a7a70fe40e388a00000000000000000000000078c2d17edb8a34fa00dd602994f16964d3fb4bab0000000000000000000000000e09fabb73bd3ade0a17ecc321fd13a19e81ce82

-----Decoded View---------------
Arg [0] : _pancakeProfileAddress (address): 0xdf4dbf6536201370f95e06a0f8a7a70fe40e388a
Arg [1] : _bunnyStationAddress (address): 0x78c2d17edb8a34fa00dd602994f16964d3fb4bab
Arg [2] : _cakeTokenAddress (address): 0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000df4dbf6536201370f95e06a0f8a7a70fe40e388a
Arg [1] : 00000000000000000000000078c2d17edb8a34fa00dd602994f16964d3fb4bab
Arg [2] : 0000000000000000000000000e09fabb73bd3ade0a17ecc321fd13a19e81ce82


Deployed ByteCode Sourcemap

93038:10688:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100025:474;;;;;;:::i;:::-;;:::i;:::-;;96536:894;;;:::i;93528:53::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;100789:537;;;;;;:::i;:::-;;:::i;93376:22::-;;;:::i;:::-;;;;;;;:::i;93243:39::-;;;:::i;:::-;;;;;;;:::i;98657:195::-;;;;;;:::i;:::-;;:::i;93114:46::-;;;:::i;:::-;;;;;;;:::i;2778:148::-;;;:::i;99236:544::-;;;;;;:::i;:::-;;:::i;103362:361::-;;;:::i;:::-;;;;;;;:::i;93291:20::-;;;:::i;:::-;;;;;;;:::i;93167:23::-;;;:::i;2127:87::-;;;:::i;101923:1355::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;:::i;95217:1156::-;;;:::i;93197:37::-;;;:::i;93318:28::-;;;:::i;97612:851::-;;;;;;:::i;:::-;;:::i;93481:38::-;;;:::i;:::-;;;;;;;:::i;3081:244::-;;;;;;:::i;:::-;;:::i;100025:474::-;2358:12;:10;:12::i;:::-;2347:23;;:7;:5;:7::i;:::-;:23;;;2339:68;;;;-1:-1:-1;;;2339:68:0;;;;;;;:::i;:::-;;;;;;;;;100175:23:::1;100158:13;::::0;::::1;;:40;::::0;::::1;;;;;;;100150:63;;;;-1:-1:-1::0;;;100150:63:0::1;;;;;;;:::i;:::-;100248:1;100232:12;:17;;100224:38;;;;-1:-1:-1::0;;;100224:38:0::1;;;;;;;:::i;:::-;100278:9;100273:149;100293:29:::0;;::::1;100273:149;;;100398:12;100344:16;:39;100361:18;;100380:1;100361:21;;;;;;;;;;;;;;;;;;;;:::i;:::-;100344:39;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;100344:39:0;:66;100324:3:::1;;100273:149;;;;100439:52;100458:18;;100478:12;100439:52;;;;;;;;:::i;:::-;;;;;;;;100025:474:::0;;;:::o;96536:894::-;96576:21;96600:12;:10;:12::i;:::-;96679:31;;;;;;;:16;:31;;;;;:45;;;96576:36;;-1:-1:-1;96679:45:0;;96678:46;96670:73;;;;-1:-1:-1;;;96670:73:0;;;;;;;:::i;:::-;96825:30;96808:13;;;;:47;;;;;;;;;96800:79;;;;-1:-1:-1;;;96800:79:0;;;;;;;:::i;:::-;97042:14;;:44;;;;;96946:18;;;;97042:14;;;;;:29;;:44;;97072:13;;97042:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97005:81;;-1:-1:-1;97005:81:0;;-1:-1:-1;97005:81:0;;-1:-1:-1;97099:35:0;;-1:-1:-1;;;97099:35:0;;;-1:-1:-1;;;97099:35:0;;;;;;;:::i;:::-;97247:31;;;97214:30;97247:31;;;:16;:31;;;;;;;97289:19;;;;:32;;;97332:26;;;:33;;;;;;;;;97383:39;;;;;;97264:13;;97311:10;;97383:39;:::i;:::-;;;;;;;;96536:894;;;;:::o;93528:53::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;100789:537::-;2358:12;:10;:12::i;:::-;2347:23;;:7;:5;:7::i;:::-;:23;;;2339:68;;;;-1:-1:-1;;;2339:68:0;;;;;;;:::i;:::-;100993:23:::1;100976:13;::::0;::::1;;:40;::::0;::::1;;;;;;;100968:63;;;;-1:-1:-1::0;;;100968:63:0::1;;;;;;;:::i;:::-;101068:1;101051:14;:18;101050:55;;;;;93281:1;101075:14;:29;;101050:55;101042:85;;;;-1:-1:-1::0;;;101042:85:0::1;;;;;;;:::i;:::-;101157:2;101146:8;:13;;;101138:36;;;;-1:-1:-1::0;;;101138:36:0::1;;;;;;;:::i;:::-;101185:13;:30:::0;;;101226:20:::1;:8;101237:9:::0;;101226:20:::1;:::i;:::-;-1:-1:-1::0;101257:7:0::1;:18:::0;;;::::1;::::0;::::1;::::0;::::1;;;::::0;;101291:27:::1;::::0;::::1;::::0;::::1;::::0;101303:14;;101291:27:::1;:::i;93376:22::-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;93243:39::-;93281:1;93243:39;:::o;98657:195::-;2358:12;:10;:12::i;:::-;2347:23;;:7;:5;:7::i;:::-;:23;;;2339:68;;;;-1:-1:-1;;;2339:68:0;;;;;;;:::i;:::-;98753:22:::1;98736:13;::::0;::::1;;:39;::::0;::::1;;;;;;;98728:60;;;;-1:-1:-1::0;;;98728:60:0::1;;;;;;;:::i;:::-;98799:45;98822:12;:10;:12::i;:::-;98799:9;::::0;::::1;;::::0;98836:7;98799:22:::1;:45::i;:::-;98657:195:::0;:::o;93114:46::-;;;;;;:::o;2778:148::-;2358:12;:10;:12::i;:::-;2347:23;;:7;:5;:7::i;:::-;:23;;;2339:68;;;;-1:-1:-1;;;2339:68:0;;;;;;;:::i;:::-;2885:1:::1;2869:6:::0;;2848:40:::1;::::0;::::1;2869:6:::0;;::::1;::::0;2848:40:::1;::::0;2885:1;;2848:40:::1;2916:1;2899:19:::0;;;::::1;::::0;;2778:148::o;99236:544::-;2358:12;:10;:12::i;:::-;2347:23;;:7;:5;:7::i;:::-;:23;;;2339:68;;;;-1:-1:-1;;;2339:68:0;;;;;;;:::i;:::-;99485:23:::1;99468:13;::::0;::::1;;:40;::::0;::::1;;;;;;;99460:63;;;;-1:-1:-1::0;;;99460:63:0::1;;;;;;;:::i;:::-;99534:28;::::0;;;:19:::1;:28;::::0;;;;:62:::1;::::0;99580:16;99534:62:::1;;:::i;:::-;-1:-1:-1::0;99607:28:0::1;::::0;;;:19:::1;:28;::::0;;;;:55:::1;::::0;:40:::1;::::0;;::::1;::::0;99650:12;;99607:55:::1;:::i;:::-;-1:-1:-1::0;99673:28:0::1;::::0;;;:19:::1;:28;::::0;;;;:55:::1;::::0;:39:::1;;99715:13:::0;99673:55:::1;;:::i;:::-;;99746:26;99764:7;99746:26;;;;;;:::i;103362:361::-:0;103505:37;;;93281:1;103505:37;;;;;;;;;103412:27;;;;103505:37;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;103452:90;;103558:9;103553:123;93281:1;103573;:15;103553:123;;;103662:1;103658:5;;103638:26;;;;:19;:26;;;;;;;103610:54;;;;;;;;;;;;103638:26;103610:54;;103638:26;103610:54;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;103610:54:0;;;-1:-1:-1;;103610:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;103610:54:0;;;-1:-1:-1;;103610:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:22;103633:1;103610:25;;;;;;;;;;;;;;;;;:54;103590:3;;103553:123;;;-1:-1:-1;103693:22:0;-1:-1:-1;103362:361:0;:::o;93291:20::-;;;;;;;;;:::o;93167:23::-;;;;;;:::o;2127:87::-;2173:7;2200:6;;;2127:87;:::o;101923:1355::-;102196:30;;;102035:4;102196:30;;;:16;:30;;;;;:44;;;102035:4;;;;;;;;;;102196:44;;102273:26;102256:13;;;;:43;;;;;;;;;;102255:90;;;;-1:-1:-1;102322:22:0;102305:13;;;;:39;;;;;;;;;;102255:90;102251:1020;;;102370:17;-1:-1:-1;102389:5:0;;-1:-1:-1;102389:5:0;;-1:-1:-1;102389:5:0;;-1:-1:-1;102389:5:0;;-1:-1:-1;102389:5:0;;-1:-1:-1;102362:49:0;;102251:1020;102434:17;102429:842;;102476:17;-1:-1:-1;102495:5:0;;-1:-1:-1;102495:5:0;;-1:-1:-1;102495:5:0;;-1:-1:-1;102495:5:0;;-1:-1:-1;102495:5:0;;-1:-1:-1;102468:49:0;;102429:842;102576:30;;;102550:23;102576:30;;;:16;:30;;;;;;;;:42;;102654:37;;;;;102734:31;;;:19;:31;;;;;;102576:42;;102550:23;102734:43;;;;;102576:42;;102734:60;;;;;;;;102809:24;102836:31;;;:19;:31;;;;;102734:60;;-1:-1:-1;102809:24:0;102836:42;;102879:15;102836:59;;;;;;;;;102934:30;;;102912:19;102934:30;;;:16;:30;;;;;:41;;;103042:13;;102836:59;;-1:-1:-1;102934:41:0;;;;;;103028:27;;103027:54;;;;;103079:1;103061:15;:19;103027:54;103023:113;;;-1:-1:-1;103116:4:0;103023:113;103160:17;;-1:-1:-1;103179:14:0;-1:-1:-1;103195:15:0;;-1:-1:-1;103212:15:0;-1:-1:-1;103229:16:0;;-1:-1:-1;103247:11:0;;-1:-1:-1;103152:107:0;;-1:-1:-1;103152:107:0;101923:1355;;;;;;;;:::o;95217:1156::-;95260:21;95284:12;:10;:12::i;:::-;95317:31;;;;;;;:16;:31;;;;;:45;;;95260:36;;-1:-1:-1;95317:45:0;;95309:72;;;;-1:-1:-1;;;95309:72:0;;;;;;;:::i;:::-;95401:31;;;;;;;:16;:31;;;;;:42;;;;;;;;95400:43;95392:67;;;;-1:-1:-1;;;95392:67:0;;;;;;;:::i;:::-;95495:26;95478:13;;;;:43;;;;;;;;;95470:71;;;;-1:-1:-1;;;95470:71:0;;;;;;;:::i;:::-;95554:31;;;;;;;:16;:31;;;;;:42;;;:49;;;;;;;;95642:43;;95599:4;95717:38;;;;;95768:37;;:::i;:::-;95808:31;;;;:19;:31;;;;;;;95768:71;;;;;;;;;;;;95808:31;95768:71;;95808:31;95768:71;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;95768:71:0;;;-1:-1:-1;;95768:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;95768:71:0;;;-1:-1:-1;;95768:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95874:1;95856:15;:19;95852:284;;;95892:79;95915:13;95930:11;:23;;;95954:15;95930:40;;;;;;;;;;;95892:9;;;;;:79;:22;:79::i;:::-;96006:13;;95992:10;:27;95988:137;;;96040:19;;96101:7;;96040:69;;;;;:19;;;;;:35;;:69;;96076:13;;96091:8;;96101:7;;;;;;;96040:69;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;95988:137;96181:14;;96257:22;;;;96181:14;;;;;:33;;96229:13;;96280:15;96257:39;;;;;;;;;;;96311:26;;96338:15;96311:43;;;;;;;;;;;96181:184;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95217:1156;;;;:::o;93197:37::-;;;;;;:::o;93318:28::-;;;;:::o;97612:851::-;2358:12;:10;:12::i;:::-;2347:23;;:7;:5;:7::i;:::-;:23;;;2339:68;;;;-1:-1:-1;;;2339:68:0;;;;;;;:::i;:::-;97721:30:::1;97710:7;:41;;;;;;;;;;97702:69;;;;-1:-1:-1::0;;;97702:69:0::1;;;;;;;:::i;:::-;97799:22;97788:7;:33;;;;;;;;;97784:583;;;97863:30;97846:13;::::0;::::1;;:47;::::0;::::1;;;;;;;97838:79;;;;-1:-1:-1::0;;;97838:79:0::1;;;;;;;:::i;:::-;97784:583;;;97950:23;97939:7;:34;;;;;;;;;97935:432;;;98015:22;97998:13;::::0;::::1;;:39;::::0;::::1;;;;;;;97990:60;;;;-1:-1:-1::0;;;97990:60:0::1;;;;;;;:::i;97935:432::-;98083:26;98072:7;:37;;;;;;;;;98068:299;;;98150:1;98134:13;;:17;98126:50;;;;-1:-1:-1::0;;;98126:50:0::1;;;;;;;:::i;:::-;98216:23;98199:13;::::0;::::1;;:40;::::0;::::1;;;;;;;98191:63;;;;-1:-1:-1::0;;;98191:63:0::1;;;;;;;:::i;98068:299::-;98312:26;98295:13;::::0;::::1;;:43;::::0;::::1;;;;;;;98287:68;;;;-1:-1:-1::0;;;98287:68:0::1;;;;;;;:::i;:::-;98379:13;:23:::0;;98395:7;;98379:13;:23;::::1;::::0;98395:7;98379:23:::1;::::0;::::1;;;;;;;;::::0;;-1:-1:-1;98441:13:0::1;::::0;98420:35:::1;::::0;::::1;::::0;::::1;::::0;98441:13:::1;::::0;;::::1;::::0;98420:35:::1;:::i;:::-;;;;;;;;97612:851:::0;:::o;93481:38::-;;;;;;:::o;3081:244::-;2358:12;:10;:12::i;:::-;2347:23;;:7;:5;:7::i;:::-;:23;;;2339:68;;;;-1:-1:-1;;;2339:68:0;;;;;;;:::i;:::-;3170:22:::1;::::0;::::1;3162:73;;;;-1:-1:-1::0;;;3162:73:0::1;;;;;;;:::i;:::-;3272:6;::::0;;3251:38:::1;::::0;::::1;::::0;;::::1;::::0;3272:6;::::1;::::0;3251:38:::1;::::0;::::1;3300:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;3081:244::o;667:106::-;755:10;667:106;:::o;23013:211::-;23130:86;23150:5;23180:23;;;23205:2;23209:5;23157:58;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23130:19;:86::i;:::-;23013:211;;;:::o;25524:774::-;25948:23;25974:69;26002:4;25974:69;;;;;;;;;;;;;;;;;25982:5;25974:27;;;;:69;;;;;:::i;:::-;26058:17;;25948:95;;-1:-1:-1;26058:21:0;26054:237;;26213:10;26202:30;;;;;;;;;;;;:::i;:::-;26194:85;;;;-1:-1:-1;;;26194:85:0;;;;;;;:::i;10264:229::-;10401:12;10433:52;10455:6;10463:4;10469:1;10472:12;10433:21;:52::i;:::-;10426:59;;10264:229;;;;;;:::o;11384:571::-;11554:12;11612:5;11587:21;:30;;11579:81;;;;-1:-1:-1;;;11579:81:0;;;;;;;:::i;:::-;11679:18;11690:6;11679:10;:18::i;:::-;11671:60;;;;-1:-1:-1;;;11671:60:0;;;;;;;:::i;:::-;11805:12;11819:23;11846:6;:11;;11865:5;11872:4;11846:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11804:73;;;;11895:52;11913:7;11922:10;11934:12;11895:17;:52::i;:::-;11888:59;;;;11384:571;;;;;;;:::o;7324:444::-;7704:20;7752:8;;;7324:444::o;14033:777::-;14183:12;14212:7;14208:595;;;-1:-1:-1;14243:10:0;14236:17;;14208:595;14357:17;;:21;14353:439;;14620:10;14614:17;14681:15;14668:10;14664:2;14660:19;14653:44;14568:148;14763:12;14756:20;;-1:-1:-1;;;14756:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;680:176::-;767:18;811:15;797:30;;794:39;-1:-1;791:2;;;846:1;;836:12;791:2;760:96;;;;:::o;1951:241::-;;2055:2;2043:9;2034:7;2030:23;2026:32;2023:2;;;-1:-1;;2061:12;2023:2;85:6;72:20;97:33;124:5;97:33;:::i;2199:522::-;;;;2355:2;2343:9;2334:7;2330:23;2326:32;2323:2;;;-1:-1;;2361:12;2323:2;2419:17;2406:31;2457:18;;2449:6;2446:30;2443:2;;;-1:-1;;2479:12;2443:2;2580:6;2569:9;2565:22;;;431:3;424:4;416:6;412:17;408:27;398:2;;-1:-1;;439:12;398:2;482:6;469:20;2457:18;501:6;498:30;495:2;;;-1:-1;;531:12;495:2;626:3;575:4;;610:6;606:17;567:6;592:32;;589:41;586:2;;;-1:-1;;633:12;586:2;575:4;563:17;;;;2499:98;;-1:-1;2673:22;;;;1607:20;;2317:404;-1:-1;;;;2317:404::o;2728:257::-;;2840:2;2828:9;2819:7;2815:23;2811:32;2808:2;;;-1:-1;;2846:12;2808:2;945:6;939:13;957:30;981:5;957:30;:::i;2992:285::-;;3118:2;3106:9;3097:7;3093:23;3089:32;3086:2;;;-1:-1;;3124:12;3086:2;1101:6;1088:20;39367:1;39360:5;39357:12;39347:2;;-1:-1;;39373:12;3284:241;;3388:2;3376:9;3367:7;3363:23;3359:32;3356:2;;;-1:-1;;3394:12;3356:2;-1:-1;1607:20;;3350:175;-1:-1;3350:175::o;3532:263::-;;3647:2;3635:9;3626:7;3622:23;3618:32;3615:2;;;-1:-1;;3653:12;3615:2;-1:-1;1755:13;;3609:186;-1:-1;3609:186::o;3802:769::-;;;;;4032:3;4020:9;4011:7;4007:23;4003:33;4000:2;;;-1:-1;;4039:12;4000:2;1620:6;1607:20;4091:63;;4209:78;4279:7;4191:2;4259:9;4255:22;4209:78;:::i;:::-;4199:88;;4343:78;4413:7;4324:3;4393:9;4389:22;4343:78;:::i;:::-;4333:88;;4477:78;4547:7;4458:3;4527:9;4523:22;4477:78;:::i;:::-;4467:88;;3994:577;;;;;;;:::o;4578:613::-;;;;;4734:2;4722:9;4713:7;4709:23;4705:32;4702:2;;;-1:-1;;4740:12;4702:2;1620:6;1607:20;4792:63;;4920:2;4909:9;4905:18;4892:32;4944:18;;4936:6;4933:30;4930:2;;;-1:-1;;4966:12;4930:2;5052:6;5041:9;5037:22;;;1310:3;1303:4;1295:6;1291:17;1287:27;1277:2;;-1:-1;;1318:12;1277:2;1361:6;1348:20;4944:18;1380:6;1377:30;1374:2;;;-1:-1;;1410:12;1374:2;1505:3;4920:2;1485:17;1446:6;1471:32;;1468:41;1465:2;;;-1:-1;;1512:12;1465:2;4920;1446:6;1442:17;4986:83;;;;;;;;5106:2;5147:9;5143:22;1883:20;37431:4;39606:5;37420:16;39583:5;39580:33;39570:2;;-1:-1;;39617:12;39570:2;4696:495;;;;-1:-1;4696:495;;-1:-1;;4696:495::o;5198:940::-;;;;;;;5395:3;5383:9;5374:7;5370:23;5366:33;5363:2;;;-1:-1;;5402:12;5363:2;1761:6;1755:13;5454:74;;5565:2;5619:9;5615:22;1755:13;5573:74;;5684:2;5738:9;5734:22;1755:13;5692:74;;5803:2;5857:9;5853:22;220:13;238:33;265:5;238:33;:::i;:::-;5922:3;5973:22;;1755:13;6042:3;6090:22;;939:13;5811:74;;-1:-1;1755:13;-1:-1;957:30;939:13;957:30;:::i;:::-;6051:71;;;;5357:781;;;;;;;;:::o;8885:640::-;9228:21;9270:1;9255:258;35145:4;9277:1;9274:13;9255:258;;;9341:13;;19543:37;;6818:4;6809:14;;;;35514;;;;9302:1;9295:9;9255:258;;;9259:14;;8987:538;;:::o;19712:107::-;37431:4;37420:16;19779:35;;19773:46::o;19826:271::-;;9804:5;35010:12;9915:52;9960:6;9955:3;9948:4;9941:5;9937:16;9915:52;:::i;:::-;9979:16;;;;;19960:137;-1:-1;;19960:137::o;20104:222::-;37226:42;37215:54;;;;6898:37;;20231:2;20216:18;;20202:124::o;20333:518::-;;20529:2;20518:9;20514:18;37226:42;36886:5;37215:54;6905:3;6898:37;20647:2;20529;20647;20636:9;20632:18;20625:48;-1:-1;11209:5;11203:12;11243:1;;11232:9;11228:17;11256:1;11251:248;;;;11510:1;11505:402;;;;11221:686;;11251:248;11348:71;11329:4;11325:1;11314:9;11310:17;11306:28;11407:3;11348:71;:::i;:::-;11453:9;11438:25;;11426:38;;11478:14;;;-1:-1;11251:248;;11505:402;11574:1;11563:9;11559:17;11590:71;11654:6;11649:3;11590:71;:::i;:::-;11683:38;11715:5;11683:38;:::i;:::-;-1:-1;11745:130;11759:6;11756:1;11753:13;11745:130;;;11818:14;;11805:11;;;11798:35;11852:15;;;;11774:12;;11745:130;;;11889:11;;;;;-1:-1;;;11221:686;;;;20679:83;;;;;;20773:68;20837:2;20826:9;20822:18;20813:6;20773:68;:::i;20858:333::-;37226:42;37215:54;;;;6898:37;;21177:2;21162:18;;19543:37;21013:2;20998:18;;20984:207::o;21198:444::-;37226:42;37215:54;;;;6898:37;;21545:2;21530:18;;19543:37;;;;21628:2;21613:18;;19543:37;21381:2;21366:18;;21352:290::o;21649:501::-;21864:2;21878:47;;;21849:18;;35923:19;;;21649:501;7423:21;35963:14;;;21649:501;7450:291;7475:6;7472:1;7469:13;7450:291;;;35972:4;85:6;72:20;97:33;124:5;97:33;:::i;:::-;37226:42;37215:54;6898:37;;36779:12;;;;6299:14;;;;7497:1;7490:9;7450:291;;;-1:-1;35972:4;22121:18;;;;19543:37;;;;-1:-1;21931:126;21835:315;-1:-1;;;21835:315::o;22157:514::-;22406:2;22420:47;;;35010:12;;22391:18;;;35923:19;;;22157:514;;22406:2;35963:14;;;;;;34559;;;22157:514;8454:368;8479:6;8476:1;8473:13;8454:368;;;8546:6;8540:13;18930:109;19024:14;18907:16;18901:23;18930:109;:::i;:::-;22406:2;19118:5;19114:16;19108:23;19137:109;19240:4;19235:3;19231:14;19217:12;19137:109;:::i;:::-;-1:-1;19320:16;;19314:23;19343:111;19446:6;19437:16;;19314:23;19343:111;:::i;:::-;-1:-1;6634:6;6625:16;;;;;35514:14;;;;8501:1;8494:9;8454:368;;;-1:-1;22473:188;;22377:294;-1:-1;;;;;;;22377:294::o;22678:744::-;36970:13;;36963:21;9598:34;;36970:13;;36963:21;23080:2;23065:18;;9598:34;23163:2;23148:18;;19543:37;;;;23246:2;23231:18;;19543:37;23329:3;23314:19;;19543:37;36970:13;36963:21;23407:3;23392:19;;9598:34;22927:3;22912:19;;22898:524::o;24248:262::-;24395:2;24380:18;;39005:1;38995:12;;38985:2;;39011:9;38985:2;10629:70;;;24366:144;:::o;24517:310::-;;24664:2;24685:17;24678:47;10856:5;35010:12;35935:6;24664:2;24653:9;24649:18;35923:19;10950:52;10995:6;35963:14;24653:9;35963:14;24664:2;10976:5;10972:16;10950:52;:::i;:::-;38897:2;38877:14;38893:7;38873:28;11014:39;;;;35963:14;11014:39;;24635:192;-1:-1;;24635:192::o;24834:416::-;25034:2;25048:47;;;12146:2;25019:18;;;35923:19;12182:21;35963:14;;;12162:42;12223:12;;;25005:245::o;25257:416::-;25457:2;25471:47;;;12474:2;25442:18;;;35923:19;12510:34;35963:14;;;12490:55;12579:12;12565;;;12558:34;12611:12;;;25428:245::o;25680:416::-;25880:2;25894:47;;;12862:2;25865:18;;;35923:19;12898:34;35963:14;;;12878:55;12967:8;12953:12;;;12946:30;12995:12;;;25851:245::o;26103:416::-;26303:2;26317:47;;;13246:2;26288:18;;;35923:19;13282:16;35963:14;;;13262:37;13318:12;;;26274:245::o;26526:416::-;26726:2;26740:47;;;13569:2;26711:18;;;35923:19;13605:22;35963:14;;;13585:43;13647:12;;;26697:245::o;26949:416::-;27149:2;27163:47;;;13898:2;27134:18;;;35923:19;13934:14;35963;;;13914:35;13968:12;;;27120:245::o;27372:416::-;27572:2;27586:47;;;14219:1;27557:18;;;35923:19;14254:10;35963:14;;;14234:31;14284:12;;;27543:245::o;27795:416::-;27995:2;28009:47;;;14535:1;27980:18;;;35923:19;14570:10;35963:14;;;14550:31;14600:12;;;27966:245::o;28218:416::-;28418:2;28432:47;;;14851:2;28403:18;;;35923:19;14887;35963:14;;;14867:40;14926:12;;;28389:245::o;28641:416::-;28841:2;28855:47;;;15177:2;28826:18;;;35923:19;15213:34;35963:14;;;15193:55;15282:8;15268:12;;;15261:30;15310:12;;;28812:245::o;29064:416::-;29264:2;29278:47;;;15561:2;29249:18;;;35923:19;15597:12;35963:14;;;15577:33;15629:12;;;29235:245::o;29487:416::-;29687:2;29701:47;;;15880:1;29672:18;;;35923:19;15915:10;35963:14;;;15895:31;15945:12;;;29658:245::o;29910:416::-;30110:2;30124:47;;;16196:2;30095:18;;;35923:19;16232:16;35963:14;;;16212:37;16268:12;;;30081:245::o;30333:416::-;30533:2;30547:47;;;16519:2;30518:18;;;35923:19;16555:13;35963:14;;;16535:34;16588:12;;;30504:245::o;30756:416::-;30956:2;30970:47;;;30941:18;;;35923:19;16875:34;35963:14;;;16855:55;16929:12;;;30927:245::o;31179:416::-;31379:2;31393:47;;;17180:2;31364:18;;;35923:19;17216:12;35963:14;;;17196:33;17248:12;;;31350:245::o;31602:416::-;31802:2;31816:47;;;17499:2;31787:18;;;35923:19;17535:12;35963:14;;;17515:33;17567:12;;;31773:245::o;32025:416::-;32225:2;32239:47;;;17818:2;32210:18;;;35923:19;17854:17;35963:14;;;17834:38;17891:12;;;32196:245::o;32448:416::-;32648:2;32662:47;;;18142:2;32633:18;;;35923:19;18178:31;35963:14;;;18158:52;18229:12;;;32619:245::o;32871:416::-;33071:2;33085:47;;;18480:2;33056:18;;;35923:19;18516:17;35963:14;;;18496:38;18553:12;;;33042:245::o;33294:222::-;19543:37;;;33421:2;33406:18;;33392:124::o;33523:532::-;19543:37;;;33887:2;33872:18;;19543:37;;;;36970:13;36963:21;33964:2;33949:18;;9598:34;36970:13;36963:21;34041:2;34026:18;;9598:34;33722:3;33707:19;;33693:362::o;34062:214::-;37431:4;37420:16;;;;19779:35;;34185:2;34170:18;;34156:120::o;34706:158::-;;34801:14;;;34843:4;34830:18;;;34760:104::o;38533:268::-;38598:1;38605:101;38619:6;38616:1;38613:13;38605:101;;;38686:11;;;38680:18;38667:11;;;38660:39;38641:2;38634:10;38605:101;;;38721:6;38718:1;38715:13;38712:2;;;-1:-1;;38598:1;38768:16;;38761:27;38582:219::o;39034:117::-;37226:42;39121:5;37215:54;39096:5;39093:35;39083:2;;39142:1;;39132:12;39158:111;39239:5;36970:13;36963:21;39217:5;39214:32;39204:2;;39260:1;;39250:12

Swarm Source

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