ETH Price: $3,087.56 (+0.84%)
Gas: 6 Gwei

Token

MoonToken (Moon)
 

Overview

Max Total Supply

13,628,932.434999994548427026 Moon

Holders

179

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
177,918.523333333262165924 Moon

Value
$0.00
0x4fdb1a0c938d374d1c4c41774e0432db52784d21
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:
MoonToken

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion
File 1 of 13 : MoonToken.sol
// contracts/Cheeth.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import '@openzeppelin/contracts/utils/math/Math.sol';
import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

contract MoonToken is ERC20Burnable, Ownable, IERC721Receiver {
    using EnumerableSet for EnumerableSet.UintSet;

    address nullAddress = 0x0000000000000000000000000000000000000000;

    address public dystomiceAddress;
    address public spacemiceAddress;
    uint256 private rate;
    uint256 private expiration; 

    mapping(address => EnumerableSet.UintSet) private _deposits;
    mapping(address => EnumerableSet.UintSet) private _depositsSpace;
    mapping(address => mapping(uint256 => uint256)) public depositBlocks;
    mapping(address => mapping(uint256 => uint256)) public depositBlocksSpace;

    constructor(address _dystomice, address _spacemice, uint256 _rate, uint256 _expiration) ERC20("MoonToken", "Moon") {
        dystomiceAddress = _dystomice; 
        spacemiceAddress = _spacemice;
        rate = _rate;
        expiration = block.number + _expiration;
    }

    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 setRate(uint256 _rate) public onlyOwner() {
        rate = _rate;
    }

    function setExpiration(uint256 _expiration) public onlyOwner() {
        expiration = _expiration;
    }

    function depositsOfSpace(address account)
        external
        view
        returns (uint256[] memory)
    {
        EnumerableSet.UintSet storage depositSet = _depositsSpace[account];
        uint256[] memory tokenIds = new uint256[](depositSet.length());

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

        return tokenIds;
    }

    function depositDystoMice(uint256[] calldata tokenIds) external {
        claimRewards(tokenIds);

        for (uint256 i; i < tokenIds.length; i++) {
            IERC721(dystomiceAddress).safeTransferFrom(
                msg.sender,
                address(this),
                tokenIds[i],
                ''
            );

            _deposits[msg.sender].add(tokenIds[i]);
        }
    }

    function depositSpaceMice(uint256[] calldata tokenIds) external {
        claimRewards(tokenIds);

        for (uint256 i; i < tokenIds.length; i++) {
            IERC721(spacemiceAddress).safeTransferFrom(
                msg.sender,
                address(this),
                tokenIds[i],
                ''
            );

            _depositsSpace[msg.sender].add(tokenIds[i]);
        }
    }

    function calculateRewards(address account, uint256[] memory tokenIds)
        public
        view
        returns (uint256[] memory rewards)
    {
        rewards = new uint256[](tokenIds.length);

        for (uint256 i; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];

            rewards[i] =
                rate *
                (_deposits[account].contains(tokenId) ? 1 : 0) *
                (Math.min(block.number, expiration) -
                    depositBlocks[account][tokenId]);
        }
    }

    function calculateRewardsSpace(address account, uint256[] memory tokenIds)
        public
        view
        returns (uint256[] memory rewards)
    {
        rewards = new uint256[](tokenIds.length);

        for (uint256 i; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];

            rewards[i] =
                2 * rate *
                (_depositsSpace[account].contains(tokenId) ? 1 : 0) *
                (Math.min(block.number, expiration) -
                    depositBlocksSpace[account][tokenId]);
        }
    }

    function claimRewards(uint256[] calldata tokenIds) public {
        uint256 reward;
        uint256 block = Math.min(block.number, expiration);

        uint256[] memory rewards = calculateRewards(msg.sender, tokenIds);

        for (uint256 i; i < tokenIds.length; i++) {
            reward += rewards[i];
            depositBlocks[msg.sender][tokenIds[i]] = block;
        }

        if (reward > 0) {
            _mint(msg.sender, reward); 
        }
    }

    function claimRewardsSpace(uint256[] calldata tokenIds) public {
        uint256 reward;
        uint256 block = Math.min(block.number, expiration);

        uint256[] memory rewards = calculateRewardsSpace(msg.sender, tokenIds);

        for (uint256 i; i < tokenIds.length; i++) {
            reward += rewards[i];
            depositBlocksSpace[msg.sender][tokenIds[i]] = block;
        }

        if (reward > 0) {
            _mint(msg.sender, reward); 
        }
    }

    function withdraw(uint256[] calldata tokenIds) external {
        claimRewards(tokenIds);

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

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

            IERC721(dystomiceAddress).safeTransferFrom(
                address(this),
                msg.sender,
                tokenIds[i],
                ''
            );
        }
    }

    function withdrawSpace(uint256[] calldata tokenIds) external {
        claimRewards(tokenIds);

        for (uint256 i; i < tokenIds.length; i++) {
            require(
                _depositsSpace[msg.sender].contains(tokenIds[i]),
                'token not deposited'
            );

            _depositsSpace[msg.sender].remove(tokenIds[i]);

            IERC721(spacemiceAddress).safeTransferFrom(
                address(this),
                msg.sender,
                tokenIds[i],
                ''
            );
        }
    }

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

File 2 of 13 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 3 of 13 : 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 4 of 13 : 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 5 of 13 : 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 6 of 13 : 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 13 : 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 13 : 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 9 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

        _beforeTokenTransfer(account, address(0), amount);

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

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 10 of 13 : 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 11 of 13 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

File 12 of 13 : 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 13 of 13 : 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_dystomice","type":"address"},{"internalType":"address","name":"_spacemice","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_expiration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"calculateRewards","outputs":[{"internalType":"uint256[]","name":"rewards","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"calculateRewardsSpace","outputs":[{"internalType":"uint256[]","name":"rewards","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRewardsSpace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositBlocksSpace","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"depositDystoMice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"depositSpaceMice","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":[{"internalType":"address","name":"account","type":"address"}],"name":"depositsOfSpace","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dystomiceAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_expiration","type":"uint256"}],"name":"setExpiration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spacemiceAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdrawSpace","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600680546001600160a01b03191690553480156200002157600080fd5b50604051620024da380380620024da83398101604081905262000044916200022c565b604080518082018252600981526826b7b7b72a37b5b2b760b91b60208083019182528351808501909452600484526326b7b7b760e11b908401528151919291620000919160039162000169565b508051620000a790600490602084019062000169565b505050620000c4620000be6200011360201b60201c565b62000117565b600780546001600160a01b038087166001600160a01b0319928316179092556008805492861692909116919091179055600982905562000105814362000273565b600a5550620002d592505050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001779062000298565b90600052602060002090601f0160209004810192826200019b5760008555620001e6565b82601f10620001b657805160ff1916838001178555620001e6565b82800160010185558215620001e6579182015b82811115620001e6578251825591602001919060010190620001c9565b50620001f4929150620001f8565b5090565b5b80821115620001f45760008155600101620001f9565b80516001600160a01b03811681146200022757600080fd5b919050565b6000806000806080858703121562000242578384fd5b6200024d856200020f565b93506200025d602086016200020f565b6040860151606090960151949790965092505050565b600082198211156200029357634e487b7160e01b81526011600452602481fd5b500190565b600281046001821680620002ad57607f821691505b60208210811415620002cf57634e487b7160e01b600052602260045260246000fd5b50919050565b6121f580620002e56000396000f3fe608060405234801561001057600080fd5b506004361061018b5760003560e01c8063068c526f1461019057806306dfe2d1146101b957806306fdde03146101d9578063095ea7b3146101ee578063150b7a021461020e578063166eae7c1461022e57806318160ddd1461024357806323b872dd1461024b578063313ce5671461025e57806334e8021a1461027357806334fcf43714610288578063395093511461029b57806342966c68146102ae57806348021ddd146102c157806350e513a5146102d4578063515a20ba146102e75780635eac6239146102fa57806370a082311461030d578063715018a61461032057806379cc67901461032857806379e1f9481461033b5780638da5cb5b1461034e57806395d89b4114610356578063980b60451461035e578063983d95ce14610371578063a457c2d714610384578063a9059cbb14610397578063b19b0618146103aa578063b251ac45146103bd578063dd62ed3e146103d0578063e3a9db1a146103e3578063f2fde38b146103f6578063f9d2bec014610409575b600080fd5b6101a361019e366004611ab8565b610411565b6040516101b09190611c7a565b60405180910390f35b6101cc6101c7366004611b84565b61057a565b6040516101b091906120b8565b6101e1610597565b6040516101b09190611cde565b6102016101fc366004611b84565b610629565b6040516101b09190611cbe565b61022161021c366004611a23565b610647565b6040516101b09190611cc9565b610236610658565b6040516101b09190611c33565b6101cc610667565b6102016102593660046119e8565b61066d565b610266610706565b6040516101b091906120c1565b610286610281366004611bad565b61070b565b005b610286610296366004611c1b565b610861565b6102016102a9366004611b84565b6108a5565b6102866102bc366004611c1b565b6108f9565b6101a36102cf36600461199c565b61090d565b6102866102e2366004611bad565b6109e6565b6102866102f5366004611c1b565b610ad9565b610286610308366004611bad565b610b1d565b6101cc61031b36600461199c565b610c26565b610286610c41565b610286610336366004611b84565b610c8c565b6101a3610349366004611ab8565b610cda565b610236610e48565b6101e1610e57565b61028661036c366004611bad565b610e66565b61028661037f366004611bad565b610f59565b610201610392366004611b84565b6110aa565b6102016103a5366004611b84565b611123565b6101cc6103b8366004611b84565b611137565b6102866103cb366004611bad565b611154565b6101cc6103de3660046119b6565b611245565b6101a36103f136600461199c565b611270565b61028661040436600461199c565b61133f565b6102366113ad565b606081516001600160401b0381111561043a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610463578160200160208202803683370190505b50905060005b825181101561057357600083828151811061049457634e487b7160e01b600052603260045260246000fd5b60200260200101519050600d6000866001600160a01b03166001600160a01b031681526020019081526020016000206000828152602001908152602001600020546104e143600a546113bc565b6104eb9190612106565b6001600160a01b0386166000908152600b6020526040902061050d90836113d4565b61051857600061051b565b60015b60ff1660095461052b91906120e7565b61053591906120e7565b83838151811061055557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152508061056b81612158565b915050610469565b5092915050565b600d60209081526000928352604080842090915290825290205481565b6060600380546105a69061211d565b80601f01602080910402602001604051908101604052809291908181526020018280546105d29061211d565b801561061f5780601f106105f45761010080835404028352916020019161061f565b820191906000526020600020905b81548152906001019060200180831161060257829003601f168201915b5050505050905090565b600061063d6106366113e0565b84846113e4565b5060015b92915050565b630a85bd0160e11b95945050505050565b6008546001600160a01b031681565b60025490565b600061067a848484611498565b6001600160a01b03841660009081526001602052604081208161069b6113e0565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156106e75760405162461bcd60e51b81526004016106de90611eb1565b60405180910390fd5b6106fb856106f36113e0565b8584036113e4565b506001949350505050565b601290565b6107158282610b1d565b60005b8181101561085c5761076183838381811061074357634e487b7160e01b600052603260045260246000fd5b336000908152600c60209081526040909120939102013590506113d4565b61077d5760405162461bcd60e51b81526004016106de90611db6565b6107be8383838181106107a057634e487b7160e01b600052603260045260246000fd5b336000908152600c60209081526040909120939102013590506115b0565b506008546001600160a01b031663b88d4fde30338686868181106107f257634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161081793929190611c47565b600060405180830381600087803b15801561083157600080fd5b505af1158015610845573d6000803e3d6000fd5b50505050808061085490612158565b915050610718565b505050565b6108696113e0565b6001600160a01b031661087a610e48565b6001600160a01b0316146108a05760405162461bcd60e51b81526004016106de90611ef9565b600955565b600061063d6108b26113e0565b8484600160006108c06113e0565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546108f491906120cf565b6113e4565b61090a6109046113e0565b826115bc565b50565b6001600160a01b0381166000908152600c602052604081206060916109318261169b565b6001600160401b0381111561095657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561097f578160200160208202803683370190505b50905060005b61098e8361169b565b8110156109dc5761099f83826116a6565b8282815181106109bf57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806109d481612158565b915050610985565b509150505b919050565b6109f08282610b1d565b60005b8181101561085c576008546001600160a01b031663b88d4fde3330868686818110610a2e57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610a5393929190611c47565b600060405180830381600087803b158015610a6d57600080fd5b505af1158015610a81573d6000803e3d6000fd5b50505050610ac6838383818110610aa857634e487b7160e01b600052603260045260246000fd5b336000908152600c60209081526040909120939102013590506116b2565b5080610ad181612158565b9150506109f3565b610ae16113e0565b6001600160a01b0316610af2610e48565b6001600160a01b031614610b185760405162461bcd60e51b81526004016106de90611ef9565b600a55565b600080610b2c43600a546113bc565b90506000610b6d3386868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061041192505050565b905060005b84811015610c0e57818181518110610b9a57634e487b7160e01b600052603260045260246000fd5b602002602001015184610bad91906120cf565b336000908152600d60205260408120919550849190888885818110610be257634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080610c0690612158565b915050610b72565b508215610c1f57610c1f33846116be565b5050505050565b6001600160a01b031660009081526020819052604090205490565b610c496113e0565b6001600160a01b0316610c5a610e48565b6001600160a01b031614610c805760405162461bcd60e51b81526004016106de90611ef9565b610c8a6000611778565b565b6000610c9a836103de6113e0565b905081811015610cbc5760405162461bcd60e51b81526004016106de90611f2e565b610cd083610cc86113e0565b8484036113e4565b61085c83836115bc565b606081516001600160401b03811115610d0357634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d2c578160200160208202803683370190505b50905060005b8251811015610573576000838281518110610d5d57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600e6000866001600160a01b03166001600160a01b03168152602001908152602001600020600082815260200190815260200160002054610daa43600a546113bc565b610db49190612106565b6001600160a01b0386166000908152600c60205260409020610dd690836113d4565b610de1576000610de4565b60015b60ff166009546002610df691906120e7565b610e0091906120e7565b610e0a91906120e7565b838381518110610e2a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101525080610e4081612158565b915050610d32565b6005546001600160a01b031690565b6060600480546105a69061211d565b610e708282610b1d565b60005b8181101561085c576007546001600160a01b031663b88d4fde3330868686818110610eae57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610ed393929190611c47565b600060405180830381600087803b158015610eed57600080fd5b505af1158015610f01573d6000803e3d6000fd5b50505050610f46838383818110610f2857634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506116b2565b5080610f5181612158565b915050610e73565b610f638282610b1d565b60005b8181101561085c57610faf838383818110610f9157634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506113d4565b610fcb5760405162461bcd60e51b81526004016106de90611db6565b61100c838383818110610fee57634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506115b0565b506007546001600160a01b031663b88d4fde303386868681811061104057634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161106593929190611c47565b600060405180830381600087803b15801561107f57600080fd5b505af1158015611093573d6000803e3d6000fd5b5050505080806110a290612158565b915050610f66565b600080600160006110b96113e0565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156111055760405162461bcd60e51b81526004016106de9061203c565b6111196111106113e0565b858584036113e4565b5060019392505050565b600061063d6111306113e0565b8484611498565b600e60209081526000928352604080842090915290825290205481565b60008061116343600a546113bc565b905060006111a433868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610cda92505050565b905060005b84811015610c0e578181815181106111d157634e487b7160e01b600052603260045260246000fd5b6020026020010151846111e491906120cf565b336000908152600e6020526040812091955084919088888581811061121957634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002081905550808061123d90612158565b9150506111a9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0381166000908152600b602052604081206060916112948261169b565b6001600160401b038111156112b957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112e2578160200160208202803683370190505b50905060005b6112f18361169b565b8110156109dc5761130283826116a6565b82828151811061132257634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061133781612158565b9150506112e8565b6113476113e0565b6001600160a01b0316611358610e48565b6001600160a01b03161461137e5760405162461bcd60e51b81526004016106de90611ef9565b6001600160a01b0381166113a45760405162461bcd60e51b81526004016106de90611de3565b61090a81611778565b6007546001600160a01b031681565b60008183106113cb57816113cd565b825b9392505050565b60006113cd83836117ca565b3390565b6001600160a01b03831661140a5760405162461bcd60e51b81526004016106de90611ff8565b6001600160a01b0382166114305760405162461bcd60e51b81526004016106de90611e29565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061148b9085906120b8565b60405180910390a3505050565b6001600160a01b0383166114be5760405162461bcd60e51b81526004016106de90611fb3565b6001600160a01b0382166114e45760405162461bcd60e51b81526004016106de90611d31565b6114ef83838361085c565b6001600160a01b038316600090815260208190526040902054818110156115285760405162461bcd60e51b81526004016106de90611e6b565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061155f9084906120cf565b92505081905550826001600160a01b0316846001600160a01b03166000805160206121a08339815191528460405161159791906120b8565b60405180910390a36115aa84848461085c565b50505050565b60006113cd83836117e2565b6001600160a01b0382166115e25760405162461bcd60e51b81526004016106de90611f72565b6115ee8260008361085c565b6001600160a01b038216600090815260208190526040902054818110156116275760405162461bcd60e51b81526004016106de90611d74565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611656908490612106565b90915550506040516000906001600160a01b038516906000805160206121a0833981519152906116879086906120b8565b60405180910390a361085c8360008461085c565b6000610641826118ff565b60006113cd8383611903565b60006113cd838361193b565b6001600160a01b0382166116e45760405162461bcd60e51b81526004016106de90612081565b6116f06000838361085c565b806002600082825461170291906120cf565b90915550506001600160a01b0382166000908152602081905260408120805483929061172f9084906120cf565b90915550506040516001600160a01b038316906000906000805160206121a0833981519152906117609085906120b8565b60405180910390a36117746000838361085c565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156118f5576000611806600183612106565b855490915060009061181a90600190612106565b905081811461189b57600086600001828154811061184857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061187957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806118ba57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610641565b6000915050610641565b5490565b600082600001828154811061192857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600061194783836117ca565b61197d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610641565b506000610641565b80356001600160a01b03811681146109e157600080fd5b6000602082840312156119ad578081fd5b6113cd82611985565b600080604083850312156119c8578081fd5b6119d183611985565b91506119df60208401611985565b90509250929050565b6000806000606084860312156119fc578081fd5b611a0584611985565b9250611a1360208501611985565b9150604084013590509250925092565b600080600080600060808688031215611a3a578081fd5b611a4386611985565b9450611a5160208701611985565b93506040860135925060608601356001600160401b0380821115611a73578283fd5b818801915088601f830112611a86578283fd5b813581811115611a94578384fd5b896020828501011115611aa5578384fd5b9699959850939650602001949392505050565b60008060408385031215611aca578182fd5b611ad383611985565b91506020838101356001600160401b0380821115611aef578384fd5b818601915086601f830112611b02578384fd5b813581811115611b1457611b14612189565b83810260405185828201018181108582111715611b3357611b33612189565b604052828152858101935084860182860187018b1015611b51578788fd5b8795505b83861015611b73578035855260019590950194938601938601611b55565b508096505050505050509250929050565b60008060408385031215611b96578182fd5b611b9f83611985565b946020939093013593505050565b60008060208385031215611bbf578182fd5b82356001600160401b0380821115611bd5578384fd5b818501915085601f830112611be8578384fd5b813581811115611bf6578485fd5b8660208083028501011115611c09578485fd5b60209290920196919550909350505050565b600060208284031215611c2c578081fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260806060820181905260009082015260a00190565b6020808252825182820181905260009190848201906040850190845b81811015611cb257835183529284019291840191600101611c96565b50909695505050505050565b901515815260200190565b6001600160e01b031991909116815260200190565b6000602080835283518082850152825b81811015611d0a57858101830151858201604001528201611cee565b81811115611d1b5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b6020808252601390820152721d1bdad95b881b9bdd0819195c1bdcda5d1959606a1b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604082015263616e636560e01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b600082198211156120e2576120e2612173565b500190565b600081600019048311821515161561210157612101612173565b500290565b60008282101561211857612118612173565b500390565b60028104600182168061213157607f821691505b6020821081141561215257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561216c5761216c612173565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200af45403b954d3ad2d895b5bc65fa0b142a773269dfbe2087cd8f410b171333664736f6c63430008000033000000000000000000000000e440654a00b757446b4914c56ad56a804a6bc6af000000000000000000000000638b496de69f117da030b5935c0c2a278bc36c3d0000000000000000000000000000000000000000000000000005ebd312a02aaa00000000000000000000000000000000000000000000000000000000014e2ae0

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018b5760003560e01c8063068c526f1461019057806306dfe2d1146101b957806306fdde03146101d9578063095ea7b3146101ee578063150b7a021461020e578063166eae7c1461022e57806318160ddd1461024357806323b872dd1461024b578063313ce5671461025e57806334e8021a1461027357806334fcf43714610288578063395093511461029b57806342966c68146102ae57806348021ddd146102c157806350e513a5146102d4578063515a20ba146102e75780635eac6239146102fa57806370a082311461030d578063715018a61461032057806379cc67901461032857806379e1f9481461033b5780638da5cb5b1461034e57806395d89b4114610356578063980b60451461035e578063983d95ce14610371578063a457c2d714610384578063a9059cbb14610397578063b19b0618146103aa578063b251ac45146103bd578063dd62ed3e146103d0578063e3a9db1a146103e3578063f2fde38b146103f6578063f9d2bec014610409575b600080fd5b6101a361019e366004611ab8565b610411565b6040516101b09190611c7a565b60405180910390f35b6101cc6101c7366004611b84565b61057a565b6040516101b091906120b8565b6101e1610597565b6040516101b09190611cde565b6102016101fc366004611b84565b610629565b6040516101b09190611cbe565b61022161021c366004611a23565b610647565b6040516101b09190611cc9565b610236610658565b6040516101b09190611c33565b6101cc610667565b6102016102593660046119e8565b61066d565b610266610706565b6040516101b091906120c1565b610286610281366004611bad565b61070b565b005b610286610296366004611c1b565b610861565b6102016102a9366004611b84565b6108a5565b6102866102bc366004611c1b565b6108f9565b6101a36102cf36600461199c565b61090d565b6102866102e2366004611bad565b6109e6565b6102866102f5366004611c1b565b610ad9565b610286610308366004611bad565b610b1d565b6101cc61031b36600461199c565b610c26565b610286610c41565b610286610336366004611b84565b610c8c565b6101a3610349366004611ab8565b610cda565b610236610e48565b6101e1610e57565b61028661036c366004611bad565b610e66565b61028661037f366004611bad565b610f59565b610201610392366004611b84565b6110aa565b6102016103a5366004611b84565b611123565b6101cc6103b8366004611b84565b611137565b6102866103cb366004611bad565b611154565b6101cc6103de3660046119b6565b611245565b6101a36103f136600461199c565b611270565b61028661040436600461199c565b61133f565b6102366113ad565b606081516001600160401b0381111561043a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610463578160200160208202803683370190505b50905060005b825181101561057357600083828151811061049457634e487b7160e01b600052603260045260246000fd5b60200260200101519050600d6000866001600160a01b03166001600160a01b031681526020019081526020016000206000828152602001908152602001600020546104e143600a546113bc565b6104eb9190612106565b6001600160a01b0386166000908152600b6020526040902061050d90836113d4565b61051857600061051b565b60015b60ff1660095461052b91906120e7565b61053591906120e7565b83838151811061055557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152508061056b81612158565b915050610469565b5092915050565b600d60209081526000928352604080842090915290825290205481565b6060600380546105a69061211d565b80601f01602080910402602001604051908101604052809291908181526020018280546105d29061211d565b801561061f5780601f106105f45761010080835404028352916020019161061f565b820191906000526020600020905b81548152906001019060200180831161060257829003601f168201915b5050505050905090565b600061063d6106366113e0565b84846113e4565b5060015b92915050565b630a85bd0160e11b95945050505050565b6008546001600160a01b031681565b60025490565b600061067a848484611498565b6001600160a01b03841660009081526001602052604081208161069b6113e0565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156106e75760405162461bcd60e51b81526004016106de90611eb1565b60405180910390fd5b6106fb856106f36113e0565b8584036113e4565b506001949350505050565b601290565b6107158282610b1d565b60005b8181101561085c5761076183838381811061074357634e487b7160e01b600052603260045260246000fd5b336000908152600c60209081526040909120939102013590506113d4565b61077d5760405162461bcd60e51b81526004016106de90611db6565b6107be8383838181106107a057634e487b7160e01b600052603260045260246000fd5b336000908152600c60209081526040909120939102013590506115b0565b506008546001600160a01b031663b88d4fde30338686868181106107f257634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161081793929190611c47565b600060405180830381600087803b15801561083157600080fd5b505af1158015610845573d6000803e3d6000fd5b50505050808061085490612158565b915050610718565b505050565b6108696113e0565b6001600160a01b031661087a610e48565b6001600160a01b0316146108a05760405162461bcd60e51b81526004016106de90611ef9565b600955565b600061063d6108b26113e0565b8484600160006108c06113e0565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546108f491906120cf565b6113e4565b61090a6109046113e0565b826115bc565b50565b6001600160a01b0381166000908152600c602052604081206060916109318261169b565b6001600160401b0381111561095657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561097f578160200160208202803683370190505b50905060005b61098e8361169b565b8110156109dc5761099f83826116a6565b8282815181106109bf57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806109d481612158565b915050610985565b509150505b919050565b6109f08282610b1d565b60005b8181101561085c576008546001600160a01b031663b88d4fde3330868686818110610a2e57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610a5393929190611c47565b600060405180830381600087803b158015610a6d57600080fd5b505af1158015610a81573d6000803e3d6000fd5b50505050610ac6838383818110610aa857634e487b7160e01b600052603260045260246000fd5b336000908152600c60209081526040909120939102013590506116b2565b5080610ad181612158565b9150506109f3565b610ae16113e0565b6001600160a01b0316610af2610e48565b6001600160a01b031614610b185760405162461bcd60e51b81526004016106de90611ef9565b600a55565b600080610b2c43600a546113bc565b90506000610b6d3386868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061041192505050565b905060005b84811015610c0e57818181518110610b9a57634e487b7160e01b600052603260045260246000fd5b602002602001015184610bad91906120cf565b336000908152600d60205260408120919550849190888885818110610be257634e487b7160e01b600052603260045260246000fd5b905060200201358152602001908152602001600020819055508080610c0690612158565b915050610b72565b508215610c1f57610c1f33846116be565b5050505050565b6001600160a01b031660009081526020819052604090205490565b610c496113e0565b6001600160a01b0316610c5a610e48565b6001600160a01b031614610c805760405162461bcd60e51b81526004016106de90611ef9565b610c8a6000611778565b565b6000610c9a836103de6113e0565b905081811015610cbc5760405162461bcd60e51b81526004016106de90611f2e565b610cd083610cc86113e0565b8484036113e4565b61085c83836115bc565b606081516001600160401b03811115610d0357634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d2c578160200160208202803683370190505b50905060005b8251811015610573576000838281518110610d5d57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600e6000866001600160a01b03166001600160a01b03168152602001908152602001600020600082815260200190815260200160002054610daa43600a546113bc565b610db49190612106565b6001600160a01b0386166000908152600c60205260409020610dd690836113d4565b610de1576000610de4565b60015b60ff166009546002610df691906120e7565b610e0091906120e7565b610e0a91906120e7565b838381518110610e2a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101525080610e4081612158565b915050610d32565b6005546001600160a01b031690565b6060600480546105a69061211d565b610e708282610b1d565b60005b8181101561085c576007546001600160a01b031663b88d4fde3330868686818110610eae57634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401610ed393929190611c47565b600060405180830381600087803b158015610eed57600080fd5b505af1158015610f01573d6000803e3d6000fd5b50505050610f46838383818110610f2857634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506116b2565b5080610f5181612158565b915050610e73565b610f638282610b1d565b60005b8181101561085c57610faf838383818110610f9157634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506113d4565b610fcb5760405162461bcd60e51b81526004016106de90611db6565b61100c838383818110610fee57634e487b7160e01b600052603260045260246000fd5b336000908152600b60209081526040909120939102013590506115b0565b506007546001600160a01b031663b88d4fde303386868681811061104057634e487b7160e01b600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161106593929190611c47565b600060405180830381600087803b15801561107f57600080fd5b505af1158015611093573d6000803e3d6000fd5b5050505080806110a290612158565b915050610f66565b600080600160006110b96113e0565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156111055760405162461bcd60e51b81526004016106de9061203c565b6111196111106113e0565b858584036113e4565b5060019392505050565b600061063d6111306113e0565b8484611498565b600e60209081526000928352604080842090915290825290205481565b60008061116343600a546113bc565b905060006111a433868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610cda92505050565b905060005b84811015610c0e578181815181106111d157634e487b7160e01b600052603260045260246000fd5b6020026020010151846111e491906120cf565b336000908152600e6020526040812091955084919088888581811061121957634e487b7160e01b600052603260045260246000fd5b90506020020135815260200190815260200160002081905550808061123d90612158565b9150506111a9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0381166000908152600b602052604081206060916112948261169b565b6001600160401b038111156112b957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112e2578160200160208202803683370190505b50905060005b6112f18361169b565b8110156109dc5761130283826116a6565b82828151811061132257634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061133781612158565b9150506112e8565b6113476113e0565b6001600160a01b0316611358610e48565b6001600160a01b03161461137e5760405162461bcd60e51b81526004016106de90611ef9565b6001600160a01b0381166113a45760405162461bcd60e51b81526004016106de90611de3565b61090a81611778565b6007546001600160a01b031681565b60008183106113cb57816113cd565b825b9392505050565b60006113cd83836117ca565b3390565b6001600160a01b03831661140a5760405162461bcd60e51b81526004016106de90611ff8565b6001600160a01b0382166114305760405162461bcd60e51b81526004016106de90611e29565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061148b9085906120b8565b60405180910390a3505050565b6001600160a01b0383166114be5760405162461bcd60e51b81526004016106de90611fb3565b6001600160a01b0382166114e45760405162461bcd60e51b81526004016106de90611d31565b6114ef83838361085c565b6001600160a01b038316600090815260208190526040902054818110156115285760405162461bcd60e51b81526004016106de90611e6b565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061155f9084906120cf565b92505081905550826001600160a01b0316846001600160a01b03166000805160206121a08339815191528460405161159791906120b8565b60405180910390a36115aa84848461085c565b50505050565b60006113cd83836117e2565b6001600160a01b0382166115e25760405162461bcd60e51b81526004016106de90611f72565b6115ee8260008361085c565b6001600160a01b038216600090815260208190526040902054818110156116275760405162461bcd60e51b81526004016106de90611d74565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611656908490612106565b90915550506040516000906001600160a01b038516906000805160206121a0833981519152906116879086906120b8565b60405180910390a361085c8360008461085c565b6000610641826118ff565b60006113cd8383611903565b60006113cd838361193b565b6001600160a01b0382166116e45760405162461bcd60e51b81526004016106de90612081565b6116f06000838361085c565b806002600082825461170291906120cf565b90915550506001600160a01b0382166000908152602081905260408120805483929061172f9084906120cf565b90915550506040516001600160a01b038316906000906000805160206121a0833981519152906117609085906120b8565b60405180910390a36117746000838361085c565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156118f5576000611806600183612106565b855490915060009061181a90600190612106565b905081811461189b57600086600001828154811061184857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061187957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806118ba57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610641565b6000915050610641565b5490565b600082600001828154811061192857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600061194783836117ca565b61197d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610641565b506000610641565b80356001600160a01b03811681146109e157600080fd5b6000602082840312156119ad578081fd5b6113cd82611985565b600080604083850312156119c8578081fd5b6119d183611985565b91506119df60208401611985565b90509250929050565b6000806000606084860312156119fc578081fd5b611a0584611985565b9250611a1360208501611985565b9150604084013590509250925092565b600080600080600060808688031215611a3a578081fd5b611a4386611985565b9450611a5160208701611985565b93506040860135925060608601356001600160401b0380821115611a73578283fd5b818801915088601f830112611a86578283fd5b813581811115611a94578384fd5b896020828501011115611aa5578384fd5b9699959850939650602001949392505050565b60008060408385031215611aca578182fd5b611ad383611985565b91506020838101356001600160401b0380821115611aef578384fd5b818601915086601f830112611b02578384fd5b813581811115611b1457611b14612189565b83810260405185828201018181108582111715611b3357611b33612189565b604052828152858101935084860182860187018b1015611b51578788fd5b8795505b83861015611b73578035855260019590950194938601938601611b55565b508096505050505050509250929050565b60008060408385031215611b96578182fd5b611b9f83611985565b946020939093013593505050565b60008060208385031215611bbf578182fd5b82356001600160401b0380821115611bd5578384fd5b818501915085601f830112611be8578384fd5b813581811115611bf6578485fd5b8660208083028501011115611c09578485fd5b60209290920196919550909350505050565b600060208284031215611c2c578081fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260806060820181905260009082015260a00190565b6020808252825182820181905260009190848201906040850190845b81811015611cb257835183529284019291840191600101611c96565b50909695505050505050565b901515815260200190565b6001600160e01b031991909116815260200190565b6000602080835283518082850152825b81811015611d0a57858101830151858201604001528201611cee565b81811115611d1b5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b6020808252601390820152721d1bdad95b881b9bdd0819195c1bdcda5d1959606a1b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526024908201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604082015263616e636560e01b606082015260800190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b600082198211156120e2576120e2612173565b500190565b600081600019048311821515161561210157612101612173565b500290565b60008282101561211857612118612173565b500390565b60028104600182168061213157607f821691505b6020821081141561215257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561216c5761216c612173565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200af45403b954d3ad2d895b5bc65fa0b142a773269dfbe2087cd8f410b171333664736f6c63430008000033

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

000000000000000000000000e440654a00b757446b4914c56ad56a804a6bc6af000000000000000000000000638b496de69f117da030b5935c0c2a278bc36c3d0000000000000000000000000000000000000000000000000005ebd312a02aaa00000000000000000000000000000000000000000000000000000000014e2ae0

-----Decoded View---------------
Arg [0] : _dystomice (address): 0xe440654A00B757446B4914C56aD56A804a6BC6af
Arg [1] : _spacemice (address): 0x638b496De69f117DA030b5935C0c2a278BC36c3d
Arg [2] : _rate (uint256): 1666666666666666
Arg [3] : _expiration (uint256): 21900000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000e440654a00b757446b4914c56ad56a804a6bc6af
Arg [1] : 000000000000000000000000638b496de69f117da030b5935c0c2a278bc36c3d
Arg [2] : 0000000000000000000000000000000000000000000000000005ebd312a02aaa
Arg [3] : 00000000000000000000000000000000000000000000000000000000014e2ae0


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.