ETH Price: $3,403.78 (+1.56%)
Gas: 7 Gwei

Token

Kage (KAGE)
 

Overview

Max Total Supply

265,026.995729166666666481 KAGE

Holders

92

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
97.821342592592592592 KAGE

Value
$0.00
0xae147912e7d4d3863d11c7e3b2a9d9d692fbedd5
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:
KAGE

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : Kage.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/utils/cryptography/ECDSA.sol";

interface iMetakages {
    function ownerOf(uint256 tokenId) external view returns (address);
        function transferFrom(address _from, address _to, uint256 _tokenId) external;
    }

contract KAGE is ERC20Burnable, Ownable {
    iMetakages public Metakages;

    uint256 public constant BASE_RATE = 1 ether;
    uint256 public START;
    bool rewardPaused = false;

    uint256 TIME_RATE = 86400;

    //Staking

    //addressStaked
    mapping(address => uint256[]) internal addressStaked;
    //tokenStakeTime
    mapping(uint256 => uint256) internal tokenStakeTime;
    //tokenStaker
    mapping(uint256 => address) internal tokenStaker;

    constructor(address MetakagesAddress) ERC20("Kage", "KAGE") {
        _mint(msg.sender, 250000 ether);
        Metakages = iMetakages(MetakagesAddress);
        START = block.timestamp;
    }

    //New Functionalities

    function getStakedTokens() public view returns (uint256[] memory) {
        return addressStaked[msg.sender];
    }

    function getStakedAmount(address _address) public view returns (uint256) {
        return addressStaked[_address].length;
    }

    function getStaker(uint256 tokenId) public view returns (address) {
        return tokenStaker[tokenId];
    }

    function getAllRewards(address staker) public view returns (uint256) {
        uint256 totalRewards = 0;

        uint256[] memory tokens = addressStaked[staker];
        for (uint256 i = 0; i < tokens.length; i++) {
            totalRewards += getPendingRewards(tokens[i]);
        }

        return totalRewards;
    }

    function stakeByIds(uint256[] calldata tokenIds)
        external
        stakingEnabled
    {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 id = tokenIds[i];
            Metakages.transferFrom(msg.sender, address(this), id);

            addressStaked[msg.sender].push(id);
            tokenStakeTime[id] = block.timestamp;
            tokenStaker[id] = msg.sender;
        }
    }

    function unstakeByIds(uint256[] calldata tokenIds) external {
        uint256 totalRewards = 0;

        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 id = tokenIds[i];
            require(tokenStaker[id] == msg.sender, "NEEDS_TO_BE_OWNER");

            Metakages.transferFrom(address(this), msg.sender, id);
            totalRewards += getPendingRewards(id);

            removeTokenIdFromArray(addressStaked[msg.sender], id);
            tokenStaker[id] = address(0);
        }


        _mint(msg.sender, totalRewards);
    }

    function unstakeAll() external {
        require(getStakedAmount(msg.sender) > 0, "NO_TOKENS_STAKED");
        uint256 totalRewards = 0;

        for (uint256 i = addressStaked[msg.sender].length; i > 0; i--) {
            uint256 id = addressStaked[msg.sender][i - 1];

            Metakages.transferFrom(address(this), msg.sender, id);
            totalRewards += getPendingRewards(id);

            addressStaked[msg.sender].pop();
            tokenStaker[id] = address(0);
        }

        _mint(msg.sender, totalRewards);
    }

    function claimAll() external {
        uint256 totalRewards = 0;

        uint256[] memory tokens = addressStaked[msg.sender];
        require(tokens.length > 0, "NO_TOKENS_STAKED");
        for (uint256 i = 0; i < tokens.length; i++) {
            uint256 id = tokens[i];

            totalRewards += getPendingRewards(id);
            tokenStakeTime[id] = block.timestamp;
        }

        _mint(msg.sender, totalRewards);
    }

    function removeTokenIdFromArray(uint256[] storage array, uint256 tokenId)
        internal
    {
        uint256 length = array.length;
        for (uint256 i = 0; i < length; i++) {
            if (array[i] == tokenId) {
                length--;
                if (i < length) {
                    array[i] = array[length];
                }
                array.pop();
                break;
            }
        }
    }

    function purchaseBurn(address user, uint256 amount) external {
        require(tx.origin == user, "Only the user can purchase and burn");
        _burn(user, amount);
    }

    function getPendingRewards(uint256 tokenId) public view returns (uint256) {
        return
            ((BASE_RATE) * (block.timestamp - tokenStakeTime[tokenId])) /
            TIME_RATE;
    }

    function toggleReward() public onlyOwner {
        rewardPaused = !rewardPaused;
    }

        modifier stakingEnabled {
        require(!rewardPaused, "NOT_LIVE");
        _;
    }
}

File 2 of 9 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 3 of 9 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 5 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

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 6 of 9 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

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 {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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 8 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 9 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"MetakagesAddress","type":"address"}],"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":[],"name":"BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Metakages","outputs":[{"internalType":"contract iMetakages","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[],"name":"claimAll","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":"staker","type":"address"}],"name":"getAllRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStaker","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":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"purchaseBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805460ff19169055620151806009553480156200002257600080fd5b5060405162001c2638038062001c268339810160408190526200004591620002ee565b604051806040016040528060048152602001634b61676560e01b815250604051806040016040528060048152602001634b41474560e01b81525081600390805190602001906200009792919062000248565b508051620000ad90600490602084019062000248565b505050620000ca620000c46200010a60201b60201c565b6200010e565b620000e0336934f086f3b33b6840000062000160565b600680546001600160a01b0319166001600160a01b03929092169190911790554260075562000383565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001bb5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001cf919062000320565b90915550506001600160a01b03821660009081526020819052604081208054839290620001fe90849062000320565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620002569062000347565b90600052602060002090601f0160209004810192826200027a5760008555620002c5565b82601f106200029557805160ff1916838001178555620002c5565b82800160010185558215620002c5579182015b82811115620002c5578251825591602001919060010190620002a8565b50620002d3929150620002d7565b5090565b5b80821115620002d35760008155600101620002d8565b6000602082840312156200030157600080fd5b81516001600160a01b03811681146200031957600080fd5b9392505050565b600082198211156200034257634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200035c57607f821691505b6020821081036200037d57634e487b7160e01b600052602260045260246000fd5b50919050565b61189380620003936000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806379cc679011610104578063d1058e59116100a2578063e3c998fe11610071578063e3c998fe14610406578063f2fde38b1461042f578063f55d890f14610442578063f9f87c181461045557600080fd5b8063d1058e591461039f578063d2fe4a9c146103a7578063d9ffad47146103ba578063dd62ed3e146103cd57600080fd5b8063a457c2d7116100de578063a457c2d714610368578063a9059cbb1461037b578063ac8724cf1461038e578063ba9a061a1461039657600080fd5b806379cc6790146103285780638da5cb5b1461033b57806395d89b411461036057600080fd5b8063362a3fad1161017c57806348aa19361161014b57806348aa1936146102bb5780634da6a556146102ce57806370a08231146102f7578063715018a61461032057600080fd5b8063362a3fad14610273578063395093511461028657806341910f901461029957806342966c68146102a857600080fd5b806318160ddd116101b857806318160ddd1461023557806323b872dd14610247578063313ce5671461025a57806335322f371461026957600080fd5b806306fdde03146101df578063095ea7b3146101fd5780630e469a7c14610220575b600080fd5b6101e7610468565b6040516101f4919061150e565b60405180910390f35b61021061020b36600461157f565b6104fa565b60405190151581526020016101f4565b610228610512565b6040516101f491906115a9565b6002545b6040519081526020016101f4565b6102106102553660046115ed565b610572565b604051601281526020016101f4565b610271610596565b005b610239610281366004611629565b61072d565b61021061029436600461157f565b6107eb565b610239670de0b6b3a764000081565b6102716102b636600461164b565b61082a565b6102716102c9366004611664565b610834565b6102396102dc366004611629565b6001600160a01b03166000908152600a602052604090205490565b610239610305366004611629565b6001600160a01b031660009081526020819052604090205490565b610271610994565b61027161033636600461157f565b6109ca565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101f4565b6101e76109e3565b61021061037636600461157f565b6109f2565b61021061038936600461157f565b610a84565b610271610a92565b61023960075481565b610271610ad0565b600654610348906001600160a01b031681565b6102716103c8366004611664565b610bdd565b6102396103db3660046116d9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61034861041436600461164b565b6000908152600c60205260409020546001600160a01b031690565b61027161043d366004611629565b610d10565b61027161045036600461157f565b610da8565b61023961046336600461164b565b610e0c565b6060600380546104779061170c565b80601f01602080910402602001604051908101604052809291908181526020018280546104a39061170c565b80156104f05780601f106104c5576101008083540402835291602001916104f0565b820191906000526020600020905b8154815290600101906020018083116104d357829003601f168201915b5050505050905090565b600033610508818585610e4d565b5060019392505050565b336000908152600a60209081526040918290208054835181840281018401909452808452606093928301828280156104f057602002820191906000526020600020905b815481526020019060010190808311610555575050505050905090565b600033610580858285610f71565b61058b858585611003565b506001949350505050565b336000908152600a6020526040812054116105eb5760405162461bcd60e51b815260206004820152601060248201526f1393d7d513d2d15394d7d4d51052d15160821b60448201526064015b60405180910390fd5b336000908152600a60205260408120545b801561071f57336000908152600a6020526040812061061c60018461175c565b8154811061062c5761062c611773565b6000918252602090912001546006546040516323b872dd60e01b8152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561068b57600080fd5b505af115801561069f573d6000803e3d6000fd5b505050506106ac81610e0c565b6106b69084611789565b336000908152600a60205260409020805491945090806106d8576106d86117a1565b600082815260208082208301600019908101839055909201909255918152600c9091526040902080546001600160a01b031916905580610717816117b7565b9150506105fc565b5061072a33826111d1565b50565b6001600160a01b0381166000908152600a6020908152604080832080548251818502810185019093528083528493849392919083018282801561078f57602002820191906000526020600020905b81548152602001906001019080831161077b575b5050505050905060005b81518110156107e2576107c48282815181106107b7576107b7611773565b6020026020010151610e0c565b6107ce9084611789565b9250806107da816117ce565b915050610799565b50909392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906105089082908690610825908790611789565b610e4d565b61072a33826112b0565b6000805b8281101561098457600084848381811061085457610854611773565b602090810292909201356000818152600c909352604090922054919250506001600160a01b031633146108bd5760405162461bcd60e51b81526020600482015260116024820152702722a2a229afaa27afa122afa7aba722a960791b60448201526064016105e2565b6006546040516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561090f57600080fd5b505af1158015610923573d6000803e3d6000fd5b5050505061093081610e0c565b61093a9084611789565b336000908152600a6020526040902090935061095690826113fe565b6000908152600c6020526040902080546001600160a01b03191690558061097c816117ce565b915050610838565b5061098f33826111d1565b505050565b6005546001600160a01b031633146109be5760405162461bcd60e51b81526004016105e2906117e7565b6109c860006114bc565b565b6109d5823383610f71565b6109df82826112b0565b5050565b6060600480546104779061170c565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610a775760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105e2565b61058b8286868403610e4d565b600033610508818585611003565b6005546001600160a01b03163314610abc5760405162461bcd60e51b81526004016105e2906117e7565b6008805460ff19811660ff90911615179055565b336000908152600a6020908152604080832080548251818502810185019093528083528493830182828015610b2457602002820191906000526020600020905b815481526020019060010190808311610b10575b505050505090506000815111610b6f5760405162461bcd60e51b815260206004820152601060248201526f1393d7d513d2d15394d7d4d51052d15160821b60448201526064016105e2565b60005b8151811015610bd2576000828281518110610b8f57610b8f611773565b60200260200101519050610ba281610e0c565b610bac9085611789565b6000918252600b6020526040909120429055925080610bca816117ce565b915050610b72565b506109df33836111d1565b60085460ff1615610c1b5760405162461bcd60e51b81526020600482015260086024820152674e4f545f4c49564560c01b60448201526064016105e2565b60005b8181101561098f576000838383818110610c3a57610c3a611773565b6006546040516323b872dd60e01b815233600482015230602482015260209290920293909301356044820181905293506001600160a01b03909216916323b872dd9150606401600060405180830381600087803b158015610c9a57600080fd5b505af1158015610cae573d6000803e3d6000fd5b5050336000818152600a60209081526040808320805460018101825590845282842001879055958252600b8152858220429055600c90529390932080546001600160a01b03191690931790925550819050610d08816117ce565b915050610c1e565b6005546001600160a01b03163314610d3a5760405162461bcd60e51b81526004016105e2906117e7565b6001600160a01b038116610d9f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e2565b61072a816114bc565b326001600160a01b038316146109d55760405162461bcd60e51b815260206004820152602360248201527f4f6e6c792074686520757365722063616e20707572636861736520616e6420626044820152623ab93760e91b60648201526084016105e2565b6009546000828152600b6020526040812054909190610e2b904261175c565b610e3d90670de0b6b3a764000061181c565b610e47919061183b565b92915050565b6001600160a01b038316610eaf5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105e2565b6001600160a01b038216610f105760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105e2565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610ffd5781811015610ff05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105e2565b610ffd8484848403610e4d565b50505050565b6001600160a01b0383166110675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105e2565b6001600160a01b0382166110c95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105e2565b6001600160a01b038316600090815260208190526040902054818110156111415760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105e2565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611178908490611789565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111c491815260200190565b60405180910390a3610ffd565b6001600160a01b0382166112275760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105e2565b80600260008282546112399190611789565b90915550506001600160a01b03821660009081526020819052604081208054839290611266908490611789565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166113105760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105e2565b6001600160a01b038216600090815260208190526040902054818110156113845760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105e2565b6001600160a01b03831660009081526020819052604081208383039055600280548492906113b390849061175c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b815460005b81811015610ffd578284828154811061141e5761141e611773565b9060005260206000200154036114aa5781611438816117b7565b9250508181101561147f5783828154811061145557611455611773565b906000526020600020015484828154811061147257611472611773565b6000918252602090912001555b8380548061148f5761148f6117a1565b60019003818190600052602060002001600090559055610ffd565b806114b4816117ce565b915050611403565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b8181101561153b5785810183015185820160400152820161151f565b8181111561154d576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461157a57600080fd5b919050565b6000806040838503121561159257600080fd5b61159b83611563565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b818110156115e1578351835292840192918401916001016115c5565b50909695505050505050565b60008060006060848603121561160257600080fd5b61160b84611563565b925061161960208501611563565b9150604084013590509250925092565b60006020828403121561163b57600080fd5b61164482611563565b9392505050565b60006020828403121561165d57600080fd5b5035919050565b6000806020838503121561167757600080fd5b823567ffffffffffffffff8082111561168f57600080fd5b818501915085601f8301126116a357600080fd5b8135818111156116b257600080fd5b8660208260051b85010111156116c757600080fd5b60209290920196919550909350505050565b600080604083850312156116ec57600080fd5b6116f583611563565b915061170360208401611563565b90509250929050565b600181811c9082168061172057607f821691505b60208210810361174057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561176e5761176e611746565b500390565b634e487b7160e01b600052603260045260246000fd5b6000821982111561179c5761179c611746565b500190565b634e487b7160e01b600052603160045260246000fd5b6000816117c6576117c6611746565b506000190190565b6000600182016117e0576117e0611746565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081600019048311821515161561183657611836611746565b500290565b60008261185857634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220194e9bfe6b88b2a6c6a4cf16962d8a5468ccc13726825e007fc7fef9740bcdbc64736f6c634300080d0033000000000000000000000000b5f8ca23320ad5bd6d5263bfa008b4dbeab4f0d2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806379cc679011610104578063d1058e59116100a2578063e3c998fe11610071578063e3c998fe14610406578063f2fde38b1461042f578063f55d890f14610442578063f9f87c181461045557600080fd5b8063d1058e591461039f578063d2fe4a9c146103a7578063d9ffad47146103ba578063dd62ed3e146103cd57600080fd5b8063a457c2d7116100de578063a457c2d714610368578063a9059cbb1461037b578063ac8724cf1461038e578063ba9a061a1461039657600080fd5b806379cc6790146103285780638da5cb5b1461033b57806395d89b411461036057600080fd5b8063362a3fad1161017c57806348aa19361161014b57806348aa1936146102bb5780634da6a556146102ce57806370a08231146102f7578063715018a61461032057600080fd5b8063362a3fad14610273578063395093511461028657806341910f901461029957806342966c68146102a857600080fd5b806318160ddd116101b857806318160ddd1461023557806323b872dd14610247578063313ce5671461025a57806335322f371461026957600080fd5b806306fdde03146101df578063095ea7b3146101fd5780630e469a7c14610220575b600080fd5b6101e7610468565b6040516101f4919061150e565b60405180910390f35b61021061020b36600461157f565b6104fa565b60405190151581526020016101f4565b610228610512565b6040516101f491906115a9565b6002545b6040519081526020016101f4565b6102106102553660046115ed565b610572565b604051601281526020016101f4565b610271610596565b005b610239610281366004611629565b61072d565b61021061029436600461157f565b6107eb565b610239670de0b6b3a764000081565b6102716102b636600461164b565b61082a565b6102716102c9366004611664565b610834565b6102396102dc366004611629565b6001600160a01b03166000908152600a602052604090205490565b610239610305366004611629565b6001600160a01b031660009081526020819052604090205490565b610271610994565b61027161033636600461157f565b6109ca565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101f4565b6101e76109e3565b61021061037636600461157f565b6109f2565b61021061038936600461157f565b610a84565b610271610a92565b61023960075481565b610271610ad0565b600654610348906001600160a01b031681565b6102716103c8366004611664565b610bdd565b6102396103db3660046116d9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61034861041436600461164b565b6000908152600c60205260409020546001600160a01b031690565b61027161043d366004611629565b610d10565b61027161045036600461157f565b610da8565b61023961046336600461164b565b610e0c565b6060600380546104779061170c565b80601f01602080910402602001604051908101604052809291908181526020018280546104a39061170c565b80156104f05780601f106104c5576101008083540402835291602001916104f0565b820191906000526020600020905b8154815290600101906020018083116104d357829003601f168201915b5050505050905090565b600033610508818585610e4d565b5060019392505050565b336000908152600a60209081526040918290208054835181840281018401909452808452606093928301828280156104f057602002820191906000526020600020905b815481526020019060010190808311610555575050505050905090565b600033610580858285610f71565b61058b858585611003565b506001949350505050565b336000908152600a6020526040812054116105eb5760405162461bcd60e51b815260206004820152601060248201526f1393d7d513d2d15394d7d4d51052d15160821b60448201526064015b60405180910390fd5b336000908152600a60205260408120545b801561071f57336000908152600a6020526040812061061c60018461175c565b8154811061062c5761062c611773565b6000918252602090912001546006546040516323b872dd60e01b8152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561068b57600080fd5b505af115801561069f573d6000803e3d6000fd5b505050506106ac81610e0c565b6106b69084611789565b336000908152600a60205260409020805491945090806106d8576106d86117a1565b600082815260208082208301600019908101839055909201909255918152600c9091526040902080546001600160a01b031916905580610717816117b7565b9150506105fc565b5061072a33826111d1565b50565b6001600160a01b0381166000908152600a6020908152604080832080548251818502810185019093528083528493849392919083018282801561078f57602002820191906000526020600020905b81548152602001906001019080831161077b575b5050505050905060005b81518110156107e2576107c48282815181106107b7576107b7611773565b6020026020010151610e0c565b6107ce9084611789565b9250806107da816117ce565b915050610799565b50909392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906105089082908690610825908790611789565b610e4d565b61072a33826112b0565b6000805b8281101561098457600084848381811061085457610854611773565b602090810292909201356000818152600c909352604090922054919250506001600160a01b031633146108bd5760405162461bcd60e51b81526020600482015260116024820152702722a2a229afaa27afa122afa7aba722a960791b60448201526064016105e2565b6006546040516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561090f57600080fd5b505af1158015610923573d6000803e3d6000fd5b5050505061093081610e0c565b61093a9084611789565b336000908152600a6020526040902090935061095690826113fe565b6000908152600c6020526040902080546001600160a01b03191690558061097c816117ce565b915050610838565b5061098f33826111d1565b505050565b6005546001600160a01b031633146109be5760405162461bcd60e51b81526004016105e2906117e7565b6109c860006114bc565b565b6109d5823383610f71565b6109df82826112b0565b5050565b6060600480546104779061170c565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610a775760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105e2565b61058b8286868403610e4d565b600033610508818585611003565b6005546001600160a01b03163314610abc5760405162461bcd60e51b81526004016105e2906117e7565b6008805460ff19811660ff90911615179055565b336000908152600a6020908152604080832080548251818502810185019093528083528493830182828015610b2457602002820191906000526020600020905b815481526020019060010190808311610b10575b505050505090506000815111610b6f5760405162461bcd60e51b815260206004820152601060248201526f1393d7d513d2d15394d7d4d51052d15160821b60448201526064016105e2565b60005b8151811015610bd2576000828281518110610b8f57610b8f611773565b60200260200101519050610ba281610e0c565b610bac9085611789565b6000918252600b6020526040909120429055925080610bca816117ce565b915050610b72565b506109df33836111d1565b60085460ff1615610c1b5760405162461bcd60e51b81526020600482015260086024820152674e4f545f4c49564560c01b60448201526064016105e2565b60005b8181101561098f576000838383818110610c3a57610c3a611773565b6006546040516323b872dd60e01b815233600482015230602482015260209290920293909301356044820181905293506001600160a01b03909216916323b872dd9150606401600060405180830381600087803b158015610c9a57600080fd5b505af1158015610cae573d6000803e3d6000fd5b5050336000818152600a60209081526040808320805460018101825590845282842001879055958252600b8152858220429055600c90529390932080546001600160a01b03191690931790925550819050610d08816117ce565b915050610c1e565b6005546001600160a01b03163314610d3a5760405162461bcd60e51b81526004016105e2906117e7565b6001600160a01b038116610d9f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e2565b61072a816114bc565b326001600160a01b038316146109d55760405162461bcd60e51b815260206004820152602360248201527f4f6e6c792074686520757365722063616e20707572636861736520616e6420626044820152623ab93760e91b60648201526084016105e2565b6009546000828152600b6020526040812054909190610e2b904261175c565b610e3d90670de0b6b3a764000061181c565b610e47919061183b565b92915050565b6001600160a01b038316610eaf5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105e2565b6001600160a01b038216610f105760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105e2565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610ffd5781811015610ff05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105e2565b610ffd8484848403610e4d565b50505050565b6001600160a01b0383166110675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105e2565b6001600160a01b0382166110c95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105e2565b6001600160a01b038316600090815260208190526040902054818110156111415760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105e2565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611178908490611789565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111c491815260200190565b60405180910390a3610ffd565b6001600160a01b0382166112275760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105e2565b80600260008282546112399190611789565b90915550506001600160a01b03821660009081526020819052604081208054839290611266908490611789565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166113105760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105e2565b6001600160a01b038216600090815260208190526040902054818110156113845760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105e2565b6001600160a01b03831660009081526020819052604081208383039055600280548492906113b390849061175c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b815460005b81811015610ffd578284828154811061141e5761141e611773565b9060005260206000200154036114aa5781611438816117b7565b9250508181101561147f5783828154811061145557611455611773565b906000526020600020015484828154811061147257611472611773565b6000918252602090912001555b8380548061148f5761148f6117a1565b60019003818190600052602060002001600090559055610ffd565b806114b4816117ce565b915050611403565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b8181101561153b5785810183015185820160400152820161151f565b8181111561154d576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461157a57600080fd5b919050565b6000806040838503121561159257600080fd5b61159b83611563565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b818110156115e1578351835292840192918401916001016115c5565b50909695505050505050565b60008060006060848603121561160257600080fd5b61160b84611563565b925061161960208501611563565b9150604084013590509250925092565b60006020828403121561163b57600080fd5b61164482611563565b9392505050565b60006020828403121561165d57600080fd5b5035919050565b6000806020838503121561167757600080fd5b823567ffffffffffffffff8082111561168f57600080fd5b818501915085601f8301126116a357600080fd5b8135818111156116b257600080fd5b8660208260051b85010111156116c757600080fd5b60209290920196919550909350505050565b600080604083850312156116ec57600080fd5b6116f583611563565b915061170360208401611563565b90509250929050565b600181811c9082168061172057607f821691505b60208210810361174057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561176e5761176e611746565b500390565b634e487b7160e01b600052603260045260246000fd5b6000821982111561179c5761179c611746565b500190565b634e487b7160e01b600052603160045260246000fd5b6000816117c6576117c6611746565b506000190190565b6000600182016117e0576117e0611746565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081600019048311821515161561183657611836611746565b500290565b60008261185857634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220194e9bfe6b88b2a6c6a4cf16962d8a5468ccc13726825e007fc7fef9740bcdbc64736f6c634300080d0033

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

000000000000000000000000b5f8ca23320ad5bd6d5263bfa008b4dbeab4f0d2

-----Decoded View---------------
Arg [0] : MetakagesAddress (address): 0xb5F8Ca23320AD5bd6d5263bfA008B4dbEAb4f0d2

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b5f8ca23320ad5bd6d5263bfa008b4dbeab4f0d2


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.