ETH Price: $3,158.31 (+2.92%)

Token

 

Overview

Max Total Supply

2,650

Holders

648

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
lookslikemadness.eth
0x95fc542c5d193184be8d4e6c7f7cff818c580c67
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SerumStaking

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : SerumStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/Strings.sol";


contract SerumStaking is ERC1155, IERC721Receiver, Ownable, ReentrancyGuard, Pausable {
    using EnumerableSet for EnumerableSet.UintSet; 
    using Strings for uint256;

    struct SerumReward {
        uint256 startTime;
        uint256 fishDeposited;
    }
  
    IERC721Enumerable public erc721Token;
    IERC20 public erc20Token;
    string private baseURI;

    uint256 public constant SERUM = 1;

    uint256 public fishFor25Boost = 10 ether;
    uint256 public fishFor50Boost = 25 ether;
    uint256 public fishFor100Boost = 50 ether;

    uint256 public timeToStakeForReward = 60 days;
    uint256 public expiration;
    uint256 public rate;
    bool public pauseRewards;
  
    // address => list of tokenIds staked
    mapping(address => EnumerableSet.UintSet) private _deposits;
    // tokenId => SerumRewards
    mapping(uint256 => SerumReward) public _tokenRewards;

    constructor(string memory _baseURI) ERC1155(_baseURI) {
        baseURI =_baseURI;
        _pause();
    }   

    modifier requireContractsSet() {
        require(address(erc20Token) != address(0) 
          && address(erc721Token) != address(0), "Contracts not set");
        _;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    //check deposit amount. 
    function depositsOf(address account)
      external 
      view 
      returns (uint256[] memory)
    {
      EnumerableSet.UintSet storage depositSet = _deposits[account];
      uint256[] memory tokenIds = new uint256[] (depositSet.length());

      for (uint256 i; i < depositSet.length(); i++) {
        tokenIds[i] = depositSet.at(i);
      }

      return tokenIds;
    }

    function togglePauseRewards() external onlyOwner {
        pauseRewards = !pauseRewards;
    }

    function setURI(string memory newuri) external onlyOwner {
        _setURI(newuri);
    }

    function setContracts(address erc721Address, address erc20Address) external onlyOwner {
      erc721Token = IERC721Enumerable(erc721Address);
      erc20Token = IERC20(erc20Address);
    }

    function setFishBoostAmts(uint256 boost25, uint256 boost50, uint256 boost100) external onlyOwner {
        fishFor25Boost = boost25;
        fishFor50Boost = boost50;
        fishFor100Boost = boost100;
    }

    function feedGorilla(uint256 tokenId, uint256 fishAmt) external {
        _tokenRewards[tokenId].fishDeposited += fishAmt;
        erc20Token.transferFrom(_msgSender(), address(this), fishAmt);
    }

    //deposit function. 
    function deposit(uint256[] calldata tokenIds) external requireContractsSet whenNotPaused {
        
        for (uint256 i; i < tokenIds.length; i++) {
            erc721Token.safeTransferFrom(
                msg.sender,
                address(this),
                tokenIds[i],
                ""
            );

            _deposits[msg.sender].add(tokenIds[i]);
            _tokenRewards[tokenIds[i]] = SerumReward(block.timestamp, 0);
        }
    }

    //withdrawal function.
    function withdraw(uint256[] calldata tokenIds) external requireContractsSet whenNotPaused {

        for (uint256 i; i < tokenIds.length; i++) {
            require(
                _deposits[msg.sender].contains(tokenIds[i]),
                "Staking: token not deposited"
            );

            _deposits[msg.sender].remove(tokenIds[i]);
            delete _tokenRewards[tokenIds[i]];

            erc721Token.safeTransferFrom(
                address(this),
                msg.sender,
                tokenIds[i],
                ""
            );
        }
    }

    //withdrawal function.
    function withdrawSerum() external requireContractsSet onlyOwner {
        uint256 tokenSupply = balanceOf(address(this), SERUM);
        safeTransferFrom(address(this), msg.sender, SERUM, tokenSupply, "");
    }

    //withdrawal function.
    function withdrawTokens() external requireContractsSet onlyOwner {
        uint256 tokenSupply = erc20Token.balanceOf(address(this));
        erc20Token.transfer(msg.sender, tokenSupply);
    }

    function claimSerum() external whenNotPaused {
        require(!pauseRewards, "Reward claiming is paused");
        uint256 serums;
        for (uint256 i = 0; i < _deposits[_msgSender()].length(); i++) {
            uint256 curToken = _deposits[_msgSender()].at(i);
            SerumReward storage serum = _tokenRewards[curToken];
            uint256 serumCreationTime = serum.startTime + timeToStakeForReward;
            if(serum.fishDeposited >= fishFor100Boost) {
                // remove 100% of the maximum allowed serum production time reduction.
                // Since the maximum reduction time is 50%, we divide by 2.
                serumCreationTime = serumCreationTime - (timeToStakeForReward / 2);
            }
            else if(serum.fishDeposited >= fishFor50Boost) {
                // remove 50% of the maximum allowed serum production time reduction.
                // We want 1/4 of the total time it takes because
                //  1/2 of 1/2 max production = 1/4
                serumCreationTime = serumCreationTime - (timeToStakeForReward / 4);
            }
            else if(serum.fishDeposited >= fishFor25Boost) {
                // remove 25% of the maximum allowed serum production time reduction.
                // We want 1/8 of the total time it takes because
                //  1/4 of 1/2 max production = 1/8
                serumCreationTime = serumCreationTime - (timeToStakeForReward / 8);
            }
            if(serum.startTime > 0 && block.timestamp >= serumCreationTime) {
                serums += 1;
                // Set the new start time to exactly when the last serum was claimable
                serum.startTime = serumCreationTime;
                // If the gorilla was given more than was needed for 1 serum,
                //  the gorilla didn't eat all of it and will eat them for the next serum
                if(serum.fishDeposited > fishFor100Boost) {
                    serum.fishDeposited -= fishFor100Boost;
                }
                else {
                    serum.fishDeposited = 0;
                }
            }
        }
        require(serums > 0, "No serum to claim");
        _mint( _msgSender(), SERUM, serums, "");
    }

    function getClaimableSerumAmt(address addr) public view returns(uint256 numRewards) {
        for (uint256 i = 0; i < _deposits[addr].length(); i++) {
            uint256 curToken = _deposits[_msgSender()].at(i);
            SerumReward storage serum = _tokenRewards[curToken];
            uint256 serumCreationTime = serum.startTime + timeToStakeForReward;
            if(serum.fishDeposited >= fishFor100Boost) {
                // remove 100% of the maximum allowed serum production time reduction.
                // Since the maximum reduction time is 50%, we divide by 2.
                serumCreationTime = serumCreationTime - (timeToStakeForReward / 2);
            }
            else if(serum.fishDeposited >= fishFor50Boost) {
                // remove 50% of the maximum allowed serum production time reduction.
                // We want 1/4 of the total time it takes because
                //  1/2 of 1/2 max production = 1/4
                serumCreationTime = serumCreationTime - (timeToStakeForReward / 4);
            }
            else if(serum.fishDeposited >= fishFor25Boost) {
                // remove 25% of the maximum allowed serum production time reduction.
                // We want 1/8 of the total time it takes because
                //  1/4 of 1/2 max production = 1/8
                serumCreationTime = serumCreationTime - (timeToStakeForReward / 8);
            }
            if(serum.startTime > 0 && block.timestamp >= serumCreationTime) {
                numRewards += 1;
            }
        }
    }

    function setBaseUri(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    function uri(uint256 typeId)
        public
        view                
        override
        returns (string memory)
    {
        require(typeId == SERUM, "invalid type");
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, SERUM.toString())) : baseURI;
    }

    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }
}

File 2 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

File 3 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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;

            if (lastIndex != toDeleteIndex) {
                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] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // 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) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 4 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 19 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

File 8 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @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 9 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 10 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 11 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal 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);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 12 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 13 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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 14 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 15 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 16 of 19 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 17 of 19 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 18 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 19 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"SERUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokenRewards","outputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"fishDeposited","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimSerum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20Token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc721Token","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"expiration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"fishAmt","type":"uint256"}],"name":"feedGorilla","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fishFor100Boost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fishFor25Boost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fishFor50Boost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getClaimableSerumAmt","outputs":[{"internalType":"uint256","name":"numRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc721Address","type":"address"},{"internalType":"address","name":"erc20Address","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"boost25","type":"uint256"},{"internalType":"uint256","name":"boost50","type":"uint256"},{"internalType":"uint256","name":"boost100","type":"uint256"}],"name":"setFishBoostAmts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeToStakeForReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePauseRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawSerum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052678ac7230489e8000060085568015af1d78b58c400006009556802b5e3af16b1880000600a55624f1a00600b553480156200003e57600080fd5b50604051620032f1380380620032f183398101604081905262000061916200025e565b806200006d81620000af565b506200007933620000c8565b60016004556005805460ff1916905580516200009d906007906020840190620001b8565b50620000a86200011a565b5062000387565b8051620000c4906002906020840190620001b8565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60055460ff1615620001655760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200019b3390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620001c69062000334565b90600052602060002090601f016020900481019282620001ea576000855562000235565b82601f106200020557805160ff191683800117855562000235565b8280016001018555821562000235579182015b828111156200023557825182559160200191906001019062000218565b506200024392915062000247565b5090565b5b8082111562000243576000815560010162000248565b6000602080838503121562000271578182fd5b82516001600160401b038082111562000288578384fd5b818501915085601f8301126200029c578384fd5b815181811115620002b157620002b162000371565b604051601f8201601f19908116603f01168101908382118183101715620002dc57620002dc62000371565b816040528281528886848701011115620002f4578687fd5b8693505b82841015620003175784840186015181850187015292850192620002f8565b828411156200032857868684830101525b98975050505050505050565b600181811c908216806200034957607f821691505b602082108114156200036b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612f5a80620003976000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c8063715018a61161013b578063a9ab4a3c116100b8578063e985e9c51161007c578063e985e9c5146104e2578063f242432a1461051e578063f2fde38b14610531578063f3873c5614610544578063f63ca8481461054c57600080fd5b8063a9ab4a3c14610498578063c8741ab5146104a0578063d8952a49146104a9578063e3a9db1a146104bc578063e3c4dd6b146104cf57600080fd5b80638ff903b1116100ff5780638ff903b114610443578063983d95ce14610456578063a0bcfc7f14610469578063a22cb4651461047c578063a58407a21461048f57600080fd5b8063715018a6146104075780638456cb591461040f5780638a13eea7146104175780638d8f2adb1461042a5780638da5cb5b1461043257600080fd5b80632eb2c2d6116101c95780634e1273f41161018d5780634e1273f4146103905780634e2e0f26146103b0578063598b8e71146103b95780635c975abb146103cc5780635f2d6bcd146103d757600080fd5b80632eb2c2d61461031d578063395855e3146103305780633f36afc61461036c5780633f4ba83a1461037f5780634665096d1461038757600080fd5b80630e89341c116102105780630e89341c146102ac578063150b7a02146102cc578063219ca16014610304578063268269951461030c5780632c4e722e1461031457600080fd5b8062fdd58e1461024157806301ffc9a71461026757806302fe53051461028a57806304a96d171461029f575b600080fd5b61025461024f366004612709565b610555565b6040519081526020015b60405180910390f35b61027a610275366004612887565b6105ef565b604051901515815260200161025e565b61029d6102983660046128bf565b61063f565b005b600e5461027a9060ff1681565b6102bf6102ba366004612904565b610675565b60405161025e9190612b83565b6102eb6102da3660046125dc565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161025e565b61029d61078e565b610254600181565b610254600d5481565b61029d61032b366004612537565b6107cc565b61035761033e366004612904565b6010602052600090815260409020805460019091015482565b6040805192835260208301919091520161025e565b61029d61037a366004612955565b610863565b61029d61089b565b610254600c5481565b6103a361039e366004612732565b6108cf565b60405161025e9190612b4b565b610254600a5481565b61029d6103c73660046127fc565b610a30565b60055460ff1661027a565b6005546103ef9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161025e565b61029d610c12565b61029d610c46565b6006546103ef906001600160a01b031681565b61029d610c78565b6003546001600160a01b03166103ef565b61029d610451366004612934565b610dec565b61029d6104643660046127fc565b610eaa565b61029d6104773660046128bf565b6110fa565b61029d61048a3660046126d3565b611137565b610254600b5481565b61029d61120e565b61025460085481565b61029d6104b7366004612505565b61143b565b6103a36104ca3660046124eb565b61149d565b6102546104dd3660046124eb565b61156c565b61027a6104f0366004612505565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61029d61052c366004612671565b61167c565b61029d61053f3660046124eb565b611703565b61029d61179b565b61025460095481565b60006001600160a01b0383166105c65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061062057506001600160e01b031982166303a24d0760e21b145b806105e957506301ffc9a760e01b6001600160e01b03198316146105e9565b6003546001600160a01b031633146106695760405162461bcd60e51b81526004016105bd90612cc2565b61067281611836565b50565b6060600182146106b65760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207479706560a01b60448201526064016105bd565b6000600780546106c590612d8d565b90501161075c57600780546106d990612d8d565b80601f016020809104026020016040519081016040528092919081815260200182805461070590612d8d565b80156107525780601f1061072757610100808354040283529160200191610752565b820191906000526020600020905b81548152906001019060200180831161073557829003601f168201915b50505050506105e9565b60076107686001611849565b604051602001610779929190612a02565b60405160208183030381529060405292915050565b6003546001600160a01b031633146107b85760405162461bcd60e51b81526004016105bd90612cc2565b600e805460ff19811660ff90911615179055565b6001600160a01b0385163314806107e857506107e885336104f0565b61084f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105bd565b61085c858585858561196a565b5050505050565b6003546001600160a01b0316331461088d5760405162461bcd60e51b81526004016105bd90612cc2565b600892909255600955600a55565b6003546001600160a01b031633146108c55760405162461bcd60e51b81526004016105bd90612cc2565b6108cd611b63565b565b606081518351146109345760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105bd565b600083516001600160401b0381111561095d57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610986578160200160208202803683370190505b50905060005b8451811015610a28576109ed8582815181106109b857634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109e057634e487b7160e01b600052603260045260246000fd5b6020026020010151610555565b828281518110610a0d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a2181612dee565b905061098c565b509392505050565b6006546001600160a01b031615801590610a59575060055461010090046001600160a01b031615155b610a755760405162461bcd60e51b81526004016105bd90612bde565b60055460ff1615610a985760405162461bcd60e51b81526004016105bd90612c09565b60005b81811015610c0d5760055461010090046001600160a01b031663b88d4fde3330868686818110610adb57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b158015610b4057600080fd5b505af1158015610b54573d6000803e3d6000fd5b50505050610b99838383818110610b7b57634e487b7160e01b600052603260045260246000fd5b336000908152600f6020908152604090912093910201359050611bf6565b506040518060400160405280428152602001600081525060106000858585818110610bd457634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250818101929092526040016000208251815591015160019091015580610c0581612dee565b915050610a9b565b505050565b6003546001600160a01b03163314610c3c5760405162461bcd60e51b81526004016105bd90612cc2565b6108cd6000611c09565b6003546001600160a01b03163314610c705760405162461bcd60e51b81526004016105bd90612cc2565b6108cd611c5b565b6006546001600160a01b031615801590610ca1575060055461010090046001600160a01b031615155b610cbd5760405162461bcd60e51b81526004016105bd90612bde565b6003546001600160a01b03163314610ce75760405162461bcd60e51b81526004016105bd90612cc2565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610d2b57600080fd5b505afa158015610d3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d63919061291c565b60065460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb90604401602060405180830381600087803b158015610db057600080fd5b505af1158015610dc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de8919061286b565b5050565b60008281526010602052604081206001018054839290610e0d908490612d1a565b90915550506006546001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401602060405180830381600087803b158015610e7257600080fd5b505af1158015610e86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d919061286b565b6006546001600160a01b031615801590610ed3575060055461010090046001600160a01b031615155b610eef5760405162461bcd60e51b81526004016105bd90612bde565b60055460ff1615610f125760405162461bcd60e51b81526004016105bd90612c09565b60005b81811015610c0d57610f5e838383818110610f4057634e487b7160e01b600052603260045260246000fd5b336000908152600f6020908152604090912093910201359050611cb3565b610faa5760405162461bcd60e51b815260206004820152601c60248201527f5374616b696e673a20746f6b656e206e6f74206465706f73697465640000000060448201526064016105bd565b610feb838383818110610fcd57634e487b7160e01b600052603260045260246000fd5b336000908152600f6020908152604090912093910201359050611ccb565b506010600084848481811061101057634e487b7160e01b600052603260045260246000fd5b6020908102929092013583525081019190915260400160009081208181556001015560055461010090046001600160a01b031663b88d4fde303386868681811061106a57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b5050505080806110f290612dee565b915050610f15565b6003546001600160a01b031633146111245760405162461bcd60e51b81526004016105bd90612cc2565b8051610de8906007906020840190612346565b336001600160a01b03831614156111a25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105bd565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60055460ff16156112315760405162461bcd60e51b81526004016105bd90612c09565b600e5460ff16156112845760405162461bcd60e51b815260206004820152601960248201527f52657761726420636c61696d696e67206973207061757365640000000000000060448201526064016105bd565b6000805b336000908152600f602052604090206112a090611cd7565b8110156113da5760006112d182600f83335b6001600160a01b03168152602081019190915260400160002090611ce1565b6000818152601060205260408120600b54815493945090926112f39190612d1a565b9050600a54826001015410611322576002600b546113119190612d32565b61131b9082612d46565b9050611367565b60095482600101541061133e576004600b546113119190612d32565b600854826001015410611367576008600b5461135a9190612d32565b6113649082612d46565b90505b8154158015906113775750804210155b156113c457611387600186612d1a565b818355600a54600184015491965010156113bc57600a548260010160008282546113b19190612d46565b909155506113c49050565b600060018301555b50505080806113d290612dee565b915050611288565b506000811161141f5760405162461bcd60e51b81526020600482015260116024820152704e6f20736572756d20746f20636c61696d60781b60448201526064016105bd565b6106723360018360405180602001604052806000815250611ced565b6003546001600160a01b031633146114655760405162461bcd60e51b81526004016105bd90612cc2565b60058054610100600160a81b0319166101006001600160a01b0394851602179055600680546001600160a01b03191691909216179055565b6001600160a01b0381166000908152600f602052604081206060916114c182611cd7565b6001600160401b038111156114e657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561150f578160200160208202803683370190505b50905060005b61151e83611cd7565b811015610a285761152f8382611ce1565b82828151811061154f57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061156481612dee565b915050611515565b6000805b6001600160a01b0383166000908152600f6020526040902061159190611cd7565b8110156116765760006115a782600f83336112b2565b6000818152601060205260408120600b54815493945090926115c99190612d1a565b9050600a548260010154106115f8576002600b546115e79190612d32565b6115f19082612d46565b905061163d565b600954826001015410611614576004600b546115e79190612d32565b60085482600101541061163d576008600b546116309190612d32565b61163a9082612d46565b90505b81541580159061164d5750804210155b156116605761165d600186612d1a565b94505b505050808061166e90612dee565b915050611570565b50919050565b6001600160a01b038516331480611698575061169885336104f0565b6116f65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105bd565b61085c8585858585611df7565b6003546001600160a01b0316331461172d5760405162461bcd60e51b81526004016105bd90612cc2565b6001600160a01b0381166117925760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105bd565b61067281611c09565b6006546001600160a01b0316158015906117c4575060055461010090046001600160a01b031615155b6117e05760405162461bcd60e51b81526004016105bd90612bde565b6003546001600160a01b0316331461180a5760405162461bcd60e51b81526004016105bd90612cc2565b6000611817306001610555565b905061067230336001846040518060200160405280600081525061167c565b8051610de8906002906020840190612346565b60608161186d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611897578061188181612dee565b91506118909050600a83612d32565b9150611871565b6000816001600160401b038111156118bf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118e9576020820181803683370190505b5090505b8415611962576118fe600183612d46565b915061190b600a86612e09565b611916906030612d1a565b60f81b81838151811061193957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061195b600a86612d32565b94506118ed565b949350505050565b81518351146119cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016105bd565b6001600160a01b0384166119f25760405162461bcd60e51b81526004016105bd90612c33565b3360005b8451811015611af5576000858281518110611a2157634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611a4d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a9d5760405162461bcd60e51b81526004016105bd90612c78565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ada908490612d1a565b9250508190555050505080611aee90612dee565b90506119f6565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b45929190612b5e565b60405180910390a4611b5b818787878787611f14565b505050505050565b60055460ff16611bac5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105bd565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611c02838361207f565b9392505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60055460ff1615611c7e5760405162461bcd60e51b81526004016105bd90612c09565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bd93390565b60008181526001830160205260408120541515611c02565b6000611c0283836120ce565b60006105e9825490565b6000611c0283836121eb565b6001600160a01b038416611d4d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016105bd565b33611d6781600087611d5e88612223565b61085c88612223565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611d97908490612d1a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461085c8160008787878761227c565b6001600160a01b038416611e1d5760405162461bcd60e51b81526004016105bd90612c33565b33611e2d818787611d5e88612223565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611e6e5760405162461bcd60e51b81526004016105bd90612c78565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611eab908490612d1a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f0b82888888888861227c565b50505050505050565b6001600160a01b0384163b15611b5b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611f589089908990889088908890600401612aa8565b602060405180830381600087803b158015611f7257600080fd5b505af1925050508015611fa2575060408051601f3d908101601f19168201909252611f9f918101906128a3565b60015b61204f57611fae612e5f565b806308c379a01415611fe85750611fc3612e77565b80611fce5750611fea565b8060405162461bcd60e51b81526004016105bd9190612b83565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105bd565b6001600160e01b0319811663bc197c8160e01b14611f0b5760405162461bcd60e51b81526004016105bd90612b96565b60008181526001830160205260408120546120c6575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105e9565b5060006105e9565b600081815260018301602052604081205480156121e15760006120f2600183612d46565b855490915060009061210690600190612d46565b905081811461218757600086600001828154811061213457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061216557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806121a657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105e9565b60009150506105e9565b600082600001828154811061221057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061226b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611b5b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122c09089908990889088908890600401612b06565b602060405180830381600087803b1580156122da57600080fd5b505af192505050801561230a575060408051601f3d908101601f19168201909252612307918101906128a3565b60015b61231657611fae612e5f565b6001600160e01b0319811663f23a6e6160e01b14611f0b5760405162461bcd60e51b81526004016105bd90612b96565b82805461235290612d8d565b90600052602060002090601f01602090048101928261237457600085556123ba565b82601f1061238d57805160ff19168380011785556123ba565b828001600101855582156123ba579182015b828111156123ba57825182559160200191906001019061239f565b506123c69291506123ca565b5090565b5b808211156123c657600081556001016123cb565b60006001600160401b038311156123f8576123f8612e49565b60405161240f601f8501601f191660200182612dc2565b80915083815284848401111561242457600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461245357600080fd5b919050565b600082601f830112612468578081fd5b8135602061247582612cf7565b6040516124828282612dc2565b8381528281019150858301600585901b870184018810156124a1578586fd5b855b858110156124bf578135845292840192908401906001016124a3565b5090979650505050505050565b600082601f8301126124dc578081fd5b611c02838335602085016123df565b6000602082840312156124fc578081fd5b611c028261243c565b60008060408385031215612517578081fd5b6125208361243c565b915061252e6020840161243c565b90509250929050565b600080600080600060a0868803121561254e578081fd5b6125578661243c565b94506125656020870161243c565b935060408601356001600160401b0380821115612580578283fd5b61258c89838a01612458565b945060608801359150808211156125a1578283fd5b6125ad89838a01612458565b935060808801359150808211156125c2578283fd5b506125cf888289016124cc565b9150509295509295909350565b6000806000806000608086880312156125f3578081fd5b6125fc8661243c565b945061260a6020870161243c565b93506040860135925060608601356001600160401b038082111561262c578283fd5b818801915088601f83011261263f578283fd5b81358181111561264d578384fd5b89602082850101111561265e578384fd5b9699959850939650602001949392505050565b600080600080600060a08688031215612688578081fd5b6126918661243c565b945061269f6020870161243c565b9350604086013592506060860135915060808601356001600160401b038111156126c7578182fd5b6125cf888289016124cc565b600080604083850312156126e5578182fd5b6126ee8361243c565b915060208301356126fe81612f00565b809150509250929050565b6000806040838503121561271b578182fd5b6127248361243c565b946020939093013593505050565b60008060408385031215612744578182fd5b82356001600160401b038082111561275a578384fd5b818501915085601f83011261276d578384fd5b8135602061277a82612cf7565b6040516127878282612dc2565b8381528281019150858301600585901b870184018b10156127a6578889fd5b8896505b848710156127cf576127bb8161243c565b8352600196909601959183019183016127aa565b50965050860135925050808211156127e5578283fd5b506127f285828601612458565b9150509250929050565b6000806020838503121561280e578182fd5b82356001600160401b0380821115612824578384fd5b818501915085601f830112612837578384fd5b813581811115612845578485fd5b8660208260051b8501011115612859578485fd5b60209290920196919550909350505050565b60006020828403121561287c578081fd5b8151611c0281612f00565b600060208284031215612898578081fd5b8135611c0281612f0e565b6000602082840312156128b4578081fd5b8151611c0281612f0e565b6000602082840312156128d0578081fd5b81356001600160401b038111156128e5578182fd5b8201601f810184136128f5578182fd5b611962848235602084016123df565b600060208284031215612915578081fd5b5035919050565b60006020828403121561292d578081fd5b5051919050565b60008060408385031215612946578182fd5b50508035926020909101359150565b600080600060608486031215612969578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156129af57815187529582019590820190600101612993565b509495945050505050565b600081518084526129d2816020860160208601612d5d565b601f01601f19169290920160200192915050565b600081516129f8818560208601612d5d565b9290920192915050565b600080845482600182811c915080831680612a1e57607f831692505b6020808410821415612a3e57634e487b7160e01b87526022600452602487fd5b818015612a525760018114612a6357612a8f565b60ff19861689528489019650612a8f565b60008b815260209020885b86811015612a875781548b820152908501908301612a6e565b505084890196505b505050505050612a9f81856129e6565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ad490830186612980565b8281036060840152612ae68186612980565b90508281036080840152612afa81856129ba565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612b40908301846129ba565b979650505050505050565b602081526000611c026020830184612980565b604081526000612b716040830185612980565b8281036020840152612a9f8185612980565b602081526000611c0260208301846129ba565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526011908201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b03821115612d1057612d10612e49565b5060051b60200190565b60008219821115612d2d57612d2d612e1d565b500190565b600082612d4157612d41612e33565b500490565b600082821015612d5857612d58612e1d565b500390565b60005b83811015612d78578181015183820152602001612d60565b83811115612d87576000848401525b50505050565b600181811c90821680612da157607f821691505b6020821081141561167657634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715612de757612de7612e49565b6040525050565b6000600019821415612e0257612e02612e1d565b5060010190565b600082612e1857612e18612e33565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115612e7457600481823e5160e01c5b90565b600060443d1015612e855790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612eb457505050505090565b8285019150815181811115612ecc5750505050505090565b843d8701016020828501011115612ee65750505050505090565b612ef560208286010187612dc2565b509095945050505050565b801515811461067257600080fd5b6001600160e01b03198116811461067257600080fdfea2646970667358221220a66032672f5a029e281563d55f31a1b4cd49f50ee921248d90e4bdb7434d369464736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d525976557059534c655931715038574c705755314a633269544275597a434137707158723363636e705676672f00000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061023c5760003560e01c8063715018a61161013b578063a9ab4a3c116100b8578063e985e9c51161007c578063e985e9c5146104e2578063f242432a1461051e578063f2fde38b14610531578063f3873c5614610544578063f63ca8481461054c57600080fd5b8063a9ab4a3c14610498578063c8741ab5146104a0578063d8952a49146104a9578063e3a9db1a146104bc578063e3c4dd6b146104cf57600080fd5b80638ff903b1116100ff5780638ff903b114610443578063983d95ce14610456578063a0bcfc7f14610469578063a22cb4651461047c578063a58407a21461048f57600080fd5b8063715018a6146104075780638456cb591461040f5780638a13eea7146104175780638d8f2adb1461042a5780638da5cb5b1461043257600080fd5b80632eb2c2d6116101c95780634e1273f41161018d5780634e1273f4146103905780634e2e0f26146103b0578063598b8e71146103b95780635c975abb146103cc5780635f2d6bcd146103d757600080fd5b80632eb2c2d61461031d578063395855e3146103305780633f36afc61461036c5780633f4ba83a1461037f5780634665096d1461038757600080fd5b80630e89341c116102105780630e89341c146102ac578063150b7a02146102cc578063219ca16014610304578063268269951461030c5780632c4e722e1461031457600080fd5b8062fdd58e1461024157806301ffc9a71461026757806302fe53051461028a57806304a96d171461029f575b600080fd5b61025461024f366004612709565b610555565b6040519081526020015b60405180910390f35b61027a610275366004612887565b6105ef565b604051901515815260200161025e565b61029d6102983660046128bf565b61063f565b005b600e5461027a9060ff1681565b6102bf6102ba366004612904565b610675565b60405161025e9190612b83565b6102eb6102da3660046125dc565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161025e565b61029d61078e565b610254600181565b610254600d5481565b61029d61032b366004612537565b6107cc565b61035761033e366004612904565b6010602052600090815260409020805460019091015482565b6040805192835260208301919091520161025e565b61029d61037a366004612955565b610863565b61029d61089b565b610254600c5481565b6103a361039e366004612732565b6108cf565b60405161025e9190612b4b565b610254600a5481565b61029d6103c73660046127fc565b610a30565b60055460ff1661027a565b6005546103ef9061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161025e565b61029d610c12565b61029d610c46565b6006546103ef906001600160a01b031681565b61029d610c78565b6003546001600160a01b03166103ef565b61029d610451366004612934565b610dec565b61029d6104643660046127fc565b610eaa565b61029d6104773660046128bf565b6110fa565b61029d61048a3660046126d3565b611137565b610254600b5481565b61029d61120e565b61025460085481565b61029d6104b7366004612505565b61143b565b6103a36104ca3660046124eb565b61149d565b6102546104dd3660046124eb565b61156c565b61027a6104f0366004612505565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61029d61052c366004612671565b61167c565b61029d61053f3660046124eb565b611703565b61029d61179b565b61025460095481565b60006001600160a01b0383166105c65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061062057506001600160e01b031982166303a24d0760e21b145b806105e957506301ffc9a760e01b6001600160e01b03198316146105e9565b6003546001600160a01b031633146106695760405162461bcd60e51b81526004016105bd90612cc2565b61067281611836565b50565b6060600182146106b65760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964207479706560a01b60448201526064016105bd565b6000600780546106c590612d8d565b90501161075c57600780546106d990612d8d565b80601f016020809104026020016040519081016040528092919081815260200182805461070590612d8d565b80156107525780601f1061072757610100808354040283529160200191610752565b820191906000526020600020905b81548152906001019060200180831161073557829003601f168201915b50505050506105e9565b60076107686001611849565b604051602001610779929190612a02565b60405160208183030381529060405292915050565b6003546001600160a01b031633146107b85760405162461bcd60e51b81526004016105bd90612cc2565b600e805460ff19811660ff90911615179055565b6001600160a01b0385163314806107e857506107e885336104f0565b61084f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105bd565b61085c858585858561196a565b5050505050565b6003546001600160a01b0316331461088d5760405162461bcd60e51b81526004016105bd90612cc2565b600892909255600955600a55565b6003546001600160a01b031633146108c55760405162461bcd60e51b81526004016105bd90612cc2565b6108cd611b63565b565b606081518351146109345760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105bd565b600083516001600160401b0381111561095d57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610986578160200160208202803683370190505b50905060005b8451811015610a28576109ed8582815181106109b857634e487b7160e01b600052603260045260246000fd5b60200260200101518583815181106109e057634e487b7160e01b600052603260045260246000fd5b6020026020010151610555565b828281518110610a0d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a2181612dee565b905061098c565b509392505050565b6006546001600160a01b031615801590610a59575060055461010090046001600160a01b031615155b610a755760405162461bcd60e51b81526004016105bd90612bde565b60055460ff1615610a985760405162461bcd60e51b81526004016105bd90612c09565b60005b81811015610c0d5760055461010090046001600160a01b031663b88d4fde3330868686818110610adb57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b158015610b4057600080fd5b505af1158015610b54573d6000803e3d6000fd5b50505050610b99838383818110610b7b57634e487b7160e01b600052603260045260246000fd5b336000908152600f6020908152604090912093910201359050611bf6565b506040518060400160405280428152602001600081525060106000858585818110610bd457634e487b7160e01b600052603260045260246000fd5b60209081029290920135835250818101929092526040016000208251815591015160019091015580610c0581612dee565b915050610a9b565b505050565b6003546001600160a01b03163314610c3c5760405162461bcd60e51b81526004016105bd90612cc2565b6108cd6000611c09565b6003546001600160a01b03163314610c705760405162461bcd60e51b81526004016105bd90612cc2565b6108cd611c5b565b6006546001600160a01b031615801590610ca1575060055461010090046001600160a01b031615155b610cbd5760405162461bcd60e51b81526004016105bd90612bde565b6003546001600160a01b03163314610ce75760405162461bcd60e51b81526004016105bd90612cc2565b6006546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610d2b57600080fd5b505afa158015610d3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d63919061291c565b60065460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb90604401602060405180830381600087803b158015610db057600080fd5b505af1158015610dc4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de8919061286b565b5050565b60008281526010602052604081206001018054839290610e0d908490612d1a565b90915550506006546001600160a01b03166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101849052606401602060405180830381600087803b158015610e7257600080fd5b505af1158015610e86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d919061286b565b6006546001600160a01b031615801590610ed3575060055461010090046001600160a01b031615155b610eef5760405162461bcd60e51b81526004016105bd90612bde565b60055460ff1615610f125760405162461bcd60e51b81526004016105bd90612c09565b60005b81811015610c0d57610f5e838383818110610f4057634e487b7160e01b600052603260045260246000fd5b336000908152600f6020908152604090912093910201359050611cb3565b610faa5760405162461bcd60e51b815260206004820152601c60248201527f5374616b696e673a20746f6b656e206e6f74206465706f73697465640000000060448201526064016105bd565b610feb838383818110610fcd57634e487b7160e01b600052603260045260246000fd5b336000908152600f6020908152604090912093910201359050611ccb565b506010600084848481811061101057634e487b7160e01b600052603260045260246000fd5b6020908102929092013583525081019190915260400160009081208181556001015560055461010090046001600160a01b031663b88d4fde303386868681811061106a57634e487b7160e01b600052603260045260246000fd5b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152608060648201526000608482015260a401600060405180830381600087803b1580156110cf57600080fd5b505af11580156110e3573d6000803e3d6000fd5b5050505080806110f290612dee565b915050610f15565b6003546001600160a01b031633146111245760405162461bcd60e51b81526004016105bd90612cc2565b8051610de8906007906020840190612346565b336001600160a01b03831614156111a25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105bd565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60055460ff16156112315760405162461bcd60e51b81526004016105bd90612c09565b600e5460ff16156112845760405162461bcd60e51b815260206004820152601960248201527f52657761726420636c61696d696e67206973207061757365640000000000000060448201526064016105bd565b6000805b336000908152600f602052604090206112a090611cd7565b8110156113da5760006112d182600f83335b6001600160a01b03168152602081019190915260400160002090611ce1565b6000818152601060205260408120600b54815493945090926112f39190612d1a565b9050600a54826001015410611322576002600b546113119190612d32565b61131b9082612d46565b9050611367565b60095482600101541061133e576004600b546113119190612d32565b600854826001015410611367576008600b5461135a9190612d32565b6113649082612d46565b90505b8154158015906113775750804210155b156113c457611387600186612d1a565b818355600a54600184015491965010156113bc57600a548260010160008282546113b19190612d46565b909155506113c49050565b600060018301555b50505080806113d290612dee565b915050611288565b506000811161141f5760405162461bcd60e51b81526020600482015260116024820152704e6f20736572756d20746f20636c61696d60781b60448201526064016105bd565b6106723360018360405180602001604052806000815250611ced565b6003546001600160a01b031633146114655760405162461bcd60e51b81526004016105bd90612cc2565b60058054610100600160a81b0319166101006001600160a01b0394851602179055600680546001600160a01b03191691909216179055565b6001600160a01b0381166000908152600f602052604081206060916114c182611cd7565b6001600160401b038111156114e657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561150f578160200160208202803683370190505b50905060005b61151e83611cd7565b811015610a285761152f8382611ce1565b82828151811061154f57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061156481612dee565b915050611515565b6000805b6001600160a01b0383166000908152600f6020526040902061159190611cd7565b8110156116765760006115a782600f83336112b2565b6000818152601060205260408120600b54815493945090926115c99190612d1a565b9050600a548260010154106115f8576002600b546115e79190612d32565b6115f19082612d46565b905061163d565b600954826001015410611614576004600b546115e79190612d32565b60085482600101541061163d576008600b546116309190612d32565b61163a9082612d46565b90505b81541580159061164d5750804210155b156116605761165d600186612d1a565b94505b505050808061166e90612dee565b915050611570565b50919050565b6001600160a01b038516331480611698575061169885336104f0565b6116f65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105bd565b61085c8585858585611df7565b6003546001600160a01b0316331461172d5760405162461bcd60e51b81526004016105bd90612cc2565b6001600160a01b0381166117925760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105bd565b61067281611c09565b6006546001600160a01b0316158015906117c4575060055461010090046001600160a01b031615155b6117e05760405162461bcd60e51b81526004016105bd90612bde565b6003546001600160a01b0316331461180a5760405162461bcd60e51b81526004016105bd90612cc2565b6000611817306001610555565b905061067230336001846040518060200160405280600081525061167c565b8051610de8906002906020840190612346565b60608161186d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611897578061188181612dee565b91506118909050600a83612d32565b9150611871565b6000816001600160401b038111156118bf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118e9576020820181803683370190505b5090505b8415611962576118fe600183612d46565b915061190b600a86612e09565b611916906030612d1a565b60f81b81838151811061193957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061195b600a86612d32565b94506118ed565b949350505050565b81518351146119cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016105bd565b6001600160a01b0384166119f25760405162461bcd60e51b81526004016105bd90612c33565b3360005b8451811015611af5576000858281518110611a2157634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611a4d57634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a9d5760405162461bcd60e51b81526004016105bd90612c78565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ada908490612d1a565b9250508190555050505080611aee90612dee565b90506119f6565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b45929190612b5e565b60405180910390a4611b5b818787878787611f14565b505050505050565b60055460ff16611bac5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105bd565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611c02838361207f565b9392505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60055460ff1615611c7e5760405162461bcd60e51b81526004016105bd90612c09565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bd93390565b60008181526001830160205260408120541515611c02565b6000611c0283836120ce565b60006105e9825490565b6000611c0283836121eb565b6001600160a01b038416611d4d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016105bd565b33611d6781600087611d5e88612223565b61085c88612223565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611d97908490612d1a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461085c8160008787878761227c565b6001600160a01b038416611e1d5760405162461bcd60e51b81526004016105bd90612c33565b33611e2d818787611d5e88612223565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611e6e5760405162461bcd60e51b81526004016105bd90612c78565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611eab908490612d1a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611f0b82888888888861227c565b50505050505050565b6001600160a01b0384163b15611b5b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611f589089908990889088908890600401612aa8565b602060405180830381600087803b158015611f7257600080fd5b505af1925050508015611fa2575060408051601f3d908101601f19168201909252611f9f918101906128a3565b60015b61204f57611fae612e5f565b806308c379a01415611fe85750611fc3612e77565b80611fce5750611fea565b8060405162461bcd60e51b81526004016105bd9190612b83565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105bd565b6001600160e01b0319811663bc197c8160e01b14611f0b5760405162461bcd60e51b81526004016105bd90612b96565b60008181526001830160205260408120546120c6575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105e9565b5060006105e9565b600081815260018301602052604081205480156121e15760006120f2600183612d46565b855490915060009061210690600190612d46565b905081811461218757600086600001828154811061213457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061216557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806121a657634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105e9565b60009150506105e9565b600082600001828154811061221057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061226b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611b5b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122c09089908990889088908890600401612b06565b602060405180830381600087803b1580156122da57600080fd5b505af192505050801561230a575060408051601f3d908101601f19168201909252612307918101906128a3565b60015b61231657611fae612e5f565b6001600160e01b0319811663f23a6e6160e01b14611f0b5760405162461bcd60e51b81526004016105bd90612b96565b82805461235290612d8d565b90600052602060002090601f01602090048101928261237457600085556123ba565b82601f1061238d57805160ff19168380011785556123ba565b828001600101855582156123ba579182015b828111156123ba57825182559160200191906001019061239f565b506123c69291506123ca565b5090565b5b808211156123c657600081556001016123cb565b60006001600160401b038311156123f8576123f8612e49565b60405161240f601f8501601f191660200182612dc2565b80915083815284848401111561242457600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461245357600080fd5b919050565b600082601f830112612468578081fd5b8135602061247582612cf7565b6040516124828282612dc2565b8381528281019150858301600585901b870184018810156124a1578586fd5b855b858110156124bf578135845292840192908401906001016124a3565b5090979650505050505050565b600082601f8301126124dc578081fd5b611c02838335602085016123df565b6000602082840312156124fc578081fd5b611c028261243c565b60008060408385031215612517578081fd5b6125208361243c565b915061252e6020840161243c565b90509250929050565b600080600080600060a0868803121561254e578081fd5b6125578661243c565b94506125656020870161243c565b935060408601356001600160401b0380821115612580578283fd5b61258c89838a01612458565b945060608801359150808211156125a1578283fd5b6125ad89838a01612458565b935060808801359150808211156125c2578283fd5b506125cf888289016124cc565b9150509295509295909350565b6000806000806000608086880312156125f3578081fd5b6125fc8661243c565b945061260a6020870161243c565b93506040860135925060608601356001600160401b038082111561262c578283fd5b818801915088601f83011261263f578283fd5b81358181111561264d578384fd5b89602082850101111561265e578384fd5b9699959850939650602001949392505050565b600080600080600060a08688031215612688578081fd5b6126918661243c565b945061269f6020870161243c565b9350604086013592506060860135915060808601356001600160401b038111156126c7578182fd5b6125cf888289016124cc565b600080604083850312156126e5578182fd5b6126ee8361243c565b915060208301356126fe81612f00565b809150509250929050565b6000806040838503121561271b578182fd5b6127248361243c565b946020939093013593505050565b60008060408385031215612744578182fd5b82356001600160401b038082111561275a578384fd5b818501915085601f83011261276d578384fd5b8135602061277a82612cf7565b6040516127878282612dc2565b8381528281019150858301600585901b870184018b10156127a6578889fd5b8896505b848710156127cf576127bb8161243c565b8352600196909601959183019183016127aa565b50965050860135925050808211156127e5578283fd5b506127f285828601612458565b9150509250929050565b6000806020838503121561280e578182fd5b82356001600160401b0380821115612824578384fd5b818501915085601f830112612837578384fd5b813581811115612845578485fd5b8660208260051b8501011115612859578485fd5b60209290920196919550909350505050565b60006020828403121561287c578081fd5b8151611c0281612f00565b600060208284031215612898578081fd5b8135611c0281612f0e565b6000602082840312156128b4578081fd5b8151611c0281612f0e565b6000602082840312156128d0578081fd5b81356001600160401b038111156128e5578182fd5b8201601f810184136128f5578182fd5b611962848235602084016123df565b600060208284031215612915578081fd5b5035919050565b60006020828403121561292d578081fd5b5051919050565b60008060408385031215612946578182fd5b50508035926020909101359150565b600080600060608486031215612969578081fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156129af57815187529582019590820190600101612993565b509495945050505050565b600081518084526129d2816020860160208601612d5d565b601f01601f19169290920160200192915050565b600081516129f8818560208601612d5d565b9290920192915050565b600080845482600182811c915080831680612a1e57607f831692505b6020808410821415612a3e57634e487b7160e01b87526022600452602487fd5b818015612a525760018114612a6357612a8f565b60ff19861689528489019650612a8f565b60008b815260209020885b86811015612a875781548b820152908501908301612a6e565b505084890196505b505050505050612a9f81856129e6565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612ad490830186612980565b8281036060840152612ae68186612980565b90508281036080840152612afa81856129ba565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612b40908301846129ba565b979650505050505050565b602081526000611c026020830184612980565b604081526000612b716040830185612980565b8281036020840152612a9f8185612980565b602081526000611c0260208301846129ba565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526011908201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b03821115612d1057612d10612e49565b5060051b60200190565b60008219821115612d2d57612d2d612e1d565b500190565b600082612d4157612d41612e33565b500490565b600082821015612d5857612d58612e1d565b500390565b60005b83811015612d78578181015183820152602001612d60565b83811115612d87576000848401525b50505050565b600181811c90821680612da157607f821691505b6020821081141561167657634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715612de757612de7612e49565b6040525050565b6000600019821415612e0257612e02612e1d565b5060010190565b600082612e1857612e18612e33565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115612e7457600481823e5160e01c5b90565b600060443d1015612e855790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612eb457505050505090565b8285019150815181811115612ecc5750505050505090565b843d8701016020828501011115612ee65750505050505090565b612ef560208286010187612dc2565b509095945050505050565b801515811461067257600080fd5b6001600160e01b03198116811461067257600080fdfea2646970667358221220a66032672f5a029e281563d55f31a1b4cd49f50ee921248d90e4bdb7434d369464736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d525976557059534c655931715038574c705755314a633269544275597a434137707158723363636e705676672f00000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs://QmRYvUpYSLeY1qP8WLpWU1Jc2iTBuYzCA7pqXr3ccnpVvg/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d525976557059534c655931715038574c705755314a6332
Arg [3] : 69544275597a434137707158723363636e705676672f00000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.