ETH Price: $3,415.81 (-0.16%)

Token

KiltonReward (KiltonReward)
 

Overview

Max Total Supply

0 KiltonReward

Holders

912

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 KiltonReward
0x7c7f1f98dd80892d243a1b5b590c2c4dc012019c
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:
KiltonRewards

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : KiltonRewards.sol
// SPDX-License-Identifier: MIT

/*

██╗  ██╗██╗██╗  ████████╗ ██████╗ ███╗   ██╗              
██║ ██╔╝██║██║  ╚══██╔══╝██╔═══██╗████╗  ██║              
█████╔╝ ██║██║     ██║   ██║   ██║██╔██╗ ██║              
██╔═██╗ ██║██║     ██║   ██║   ██║██║╚██╗██║              
██║  ██╗██║███████╗██║   ╚██████╔╝██║ ╚████║              
╚═╝  ╚═╝╚═╝╚══════╝╚═╝    ╚═════╝ ╚═╝  ╚═══╝              
                                                          
██████╗ ███████╗██╗    ██╗ █████╗ ██████╗ ██████╗ ███████╗
██╔══██╗██╔════╝██║    ██║██╔══██╗██╔══██╗██╔══██╗██╔════╝
██████╔╝█████╗  ██║ █╗ ██║███████║██████╔╝██║  ██║███████╗
██╔══██╗██╔══╝  ██║███╗██║██╔══██║██╔══██╗██║  ██║╚════██║
██║  ██║███████╗╚███╔███╔╝██║  ██║██║  ██║██████╔╝███████║
╚═╝  ╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝ ╚══════╝

*/

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./StaticNFT.sol";

enum RewardType {
    ERC721,
    ERC1155,
    WETH
}

struct Reward {
    address contractAddress;
    RewardType rewardType;
    uint256 token;
    uint256 amount;
}

contract KiltonRewards is Ownable, ReentrancyGuard, StaticNFT {
    using ECDSA for bytes32;
    using Strings for uint256;

    address public signer;
    address public vault;
    address public immutable kiltonAddress;

    mapping(uint256 => Reward) public rewards;

    mapping(address => uint256) public claimCounter;

    error NotAllowed();
    error InvalidSignature();

    constructor(address kilton) StaticNFT("KiltonReward", "KiltonReward") {
        kiltonAddress = kilton;
    }

    /// @dev Called by the Kilton contract to distribute rewards
    function reward(
        address recipient,
        uint256[] calldata bears,
        uint256[] calldata rewardIds,
        bytes calldata signature
    ) external nonReentrant {
        if (msg.sender != kiltonAddress) revert NotAllowed();
        checkSignature(bears, rewardIds, signature);

        if (claimCounter[recipient] == 0) {
            emit Transfer(address(0), recipient, uint160(recipient));
        }
        claimCounter[recipient] += bears.length;

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

            Reward memory r = rewards[id];

            if (r.rewardType == RewardType.ERC1155) {
                IERC1155 c = IERC1155(r.contractAddress);
                c.safeTransferFrom(vault, recipient, r.token, r.amount, "");
            } else if (r.rewardType == RewardType.ERC721) {
                IERC721 c = IERC721(r.contractAddress);
                c.transferFrom(vault, recipient, r.token);
            } else if (r.rewardType == RewardType.WETH) {
                IERC20 c = IERC20(r.contractAddress);
                c.transferFrom(vault, recipient, r.amount);
            }
        }
    }

    /// @notice Burn a soulbound token
    function burn() external {
        if (claimCounter[msg.sender] == 0) revert NotAllowed();
        delete claimCounter[msg.sender];
        emit Transfer(msg.sender, address(0), uint160(msg.sender));
    }

    /// @notice Sets the signer wallet address
    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    /// @notice Sets the vault wallet address
    function setVault(address _vault) external onlyOwner {
        vault = _vault;
    }

    /// @notice Sets the base URI
    function setBaseURI(string calldata uri) external onlyOwner {
        baseURI = uri;
    }

    /// @notice Configure a reward
    function setupReward(
        uint256 id,
        address contractAddress,
        RewardType rewardType,
        uint256 token,
        uint256 amount
    ) external onlyOwner {
        rewards[id] = Reward(contractAddress, rewardType, token, amount);
    }

    /// @notice Configure multiple rewards
    function setupRewards(uint256[] calldata ids, Reward[] calldata _rewards)
        external
        onlyOwner
    {
        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            rewards[id] = _rewards[i];
        }
    }

    /// @dev Deletes a reward
    function deleteReward(uint256 id) external onlyOwner {
        delete rewards[id];
    }

    /// @dev Check if a signature is valid
    function checkSignature(
        uint256[] calldata bears,
        uint256[] calldata rewardIds,
        bytes calldata signature
    ) private view {
        if (
            signer !=
            ECDSA
                .toEthSignedMessageHash(
                    abi.encodePacked(bears.length, bears, rewardIds)
                )
                .recover(signature)
        ) revert InvalidSignature();
    }

    /// @dev used by StaticNFT base contract
    function getBalance(address _addr)
        internal
        view
        override
        returns (uint256)
    {
        return claimCounter[_addr] == 0 ? 0 : 1;
    }

    /// @dev used by StaticNFT base contract
    function getOwner(uint256 tokenId)
        internal
        view
        override
        returns (address)
    {
        address addr = address(uint160(tokenId));
        if (claimCounter[addr] == 0) return address(0);
        return addr;
    }

    /// @dev URI is different based on the claim counter
    function tokenURI(uint256 tokenId)
        external
        view
        override
        returns (string memory)
    {
        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        claimCounter[address(uint160(tokenId))].toString()
                    )
                )
                : "";
    }
}

File 2 of 11 : 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);
    }
}

File 3 of 11 : 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 4 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 5 of 11 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 6 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

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

File 7 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 11 : StaticNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract StaticNFT is IERC721 {
    using Strings for uint256;

    string public name;
    string public symbol;
    string public baseURI;

    error TransferNotAllowed();
    error InvalidOwner();
    error NonExistentToken();

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    function getBalance(address) internal view virtual returns (uint256);

    function getOwner(uint256) internal view virtual returns (address);

    function balanceOf(address owner) external view override returns (uint256) {
        if (owner == address(0)) revert InvalidOwner();
        return getBalance(owner);
    }

    function ownerOf(uint256 tokenId) external view override returns (address) {
        address owner = getOwner(tokenId);
        if (owner == address(0)) revert NonExistentToken();
        return owner;
    }

    function safeTransferFrom(
        address,
        address,
        uint256,
        bytes memory
    ) external pure override {
        revert TransferNotAllowed();
    }

    function safeTransferFrom(
        address,
        address,
        uint256
    ) external pure override {
        revert TransferNotAllowed();
    }

    function transferFrom(
        address,
        address,
        uint256
    ) external pure override {
        revert TransferNotAllowed();
    }

    function approve(address, uint256) external pure override {
        revert TransferNotAllowed();
    }

    function setApprovalForAll(address, bool) external pure override {
        revert TransferNotAllowed();
    }

    function getApproved(uint256) external pure override returns (address) {
        return address(0);
    }

    function isApprovedForAll(address, address)
        external
        pure
        override
        returns (bool)
    {
        return false;
    }

    function tokenURI(uint256 tokenId)
        external
        view
        virtual
        returns (string memory)
    {
        if (getOwner(tokenId) == address(0)) revert NonExistentToken();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata;
    }
}

File 9 of 11 : 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 10 of 11 : 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 11 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"kilton","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"TransferNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"deleteReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"kiltonAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256[]","name":"bears","type":"uint256[]"},{"internalType":"uint256[]","name":"rewardIds","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"reward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"enum RewardType","name":"rewardType","type":"uint8"},{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"enum RewardType","name":"rewardType","type":"uint8"},{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setupReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"components":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"enum RewardType","name":"rewardType","type":"uint8"},{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Reward[]","name":"_rewards","type":"tuple[]"}],"name":"setupRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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"}],"name":"transferFrom","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b50604051620020a2380380620020a2833981016040819052620000349162000122565b6040518060400160405280600c81526020016b12da5b1d1bdb94995dd85c9960a21b8152506040518060400160405280600c81526020016b12da5b1d1bdb94995dd85c9960a21b8152506200009862000092620000ce60201b60201c565b620000d2565b600180556002620000aa8382620001f9565b506003620000b98282620001f9565b5050506001600160a01b0316608052620002c5565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200013557600080fd5b81516001600160a01b03811681146200014d57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200017f57607f821691505b602082108103620001a057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f457600081815260208120601f850160051c81016020861015620001cf5750805b601f850160051c820191505b81811015620001f057828155600101620001db565b5050505b505050565b81516001600160401b0381111562000215576200021562000154565b6200022d816200022684546200016a565b84620001a6565b602080601f8311600181146200026557600084156200024c5750858301515b600019600386901b1c1916600185901b178555620001f0565b600085815260208120601f198616915b82811015620002965788860151825594840194600190910190840162000275565b5085821015620002b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611dba620002e8600039600081816102a901526109420152611dba6000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80636c0360eb11610104578063a22cb465116100a2578063e985e9c511610071578063e985e9c5146103de578063f2fde38b146103f4578063f301af4214610407578063fbfa77cf1461045b57600080fd5b8063a22cb4651461039c578063b88d4fde146103aa578063c87b56dd146103b8578063e7cf1ab7146103cb57600080fd5b8063715018a6116100de578063715018a6146103685780638da5cb5b14610370578063948be0b71461038157806395d89b411461039457600080fd5b80636c0360eb1461033a5780636c19e7831461034257806370a082311461035557600080fd5b806323b872dd1161017c57806355f804b31161014b57806355f804b3146102d35780636352211e146102e657806363ebcbf6146102f95780636817031b1461032757600080fd5b806323b872dd14610296578063315801a5146102a457806342842e0e1461029657806344df8e70146102cb57600080fd5b8063095ea7b3116101b8578063095ea7b3146102485780630c26d8df1461025d5780631f295e8314610270578063238ac9331461028357600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611411565b61046e565b60405190151581526020015b60405180910390f35b61020f6104c0565b6040516101fe9190611466565b61023061022a366004611499565b50600090565b6040516001600160a01b0390911681526020016101fe565b61025b6102563660046114c7565b61054e565b005b61025b61026b366004611500565b610567565b61025b61027e366004611597565b61064f565b600554610230906001600160a01b031681565b61025b610256366004611631565b6102307f000000000000000000000000000000000000000000000000000000000000000081565b61025b6106f6565b61025b6102e13660046116b4565b610762565b6102306102f4366004611499565b61079e565b6103196103073660046116f6565b60086020526000908152604090205481565b6040519081526020016101fe565b61025b6103353660046116f6565b6107d3565b61020f61081f565b61025b6103503660046116f6565b61082c565b6103196103633660046116f6565b610878565b61025b6108aa565b6000546001600160a01b0316610230565b61025b61038f366004611713565b6108e0565b61020f610c9b565b61025b6102563660046117ce565b61025b61025636600461181d565b61020f6103c6366004611499565b610ca8565b61025b6103d9366004611499565b610d20565b6101f26103ec3660046118fd565b600092915050565b61025b6104023660046116f6565b610d73565b61044b610415366004611499565b6007602052600090815260409020805460018201546002909201546001600160a01b03821692600160a01b90920460ff16919084565b6040516101fe9493929190611941565b600654610230906001600160a01b031681565b60006301ffc9a760e01b6001600160e01b03198316148061049f57506380ac58cd60e01b6001600160e01b03198316145b806104ba5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600280546104cd9061198a565b80601f01602080910402602001604051908101604052809291908181526020018280546104f99061198a565b80156105465780601f1061051b57610100808354040283529160200191610546565b820191906000526020600020905b81548152906001019060200180831161052957829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b6000546001600160a01b0316331461059a5760405162461bcd60e51b8152600401610591906119c4565b60405180910390fd5b6040518060800160405280856001600160a01b031681526020018460028111156105c6576105c661192b565b81526020808201859052604091820184905260008881526007825291909120825181546001600160a01b039091166001600160a01b031982168117835592840151919283916001600160a81b03191617600160a01b83600281111561062d5761062d61192b565b0217905550604082015160018201556060909101516002909101555050505050565b6000546001600160a01b031633146106795760405162461bcd60e51b8152600401610591906119c4565b60005b838110156106ef576000858583818110610698576106986119f9565b9050602002013590508383838181106106b3576106b36119f9565b9050608002016007600083815260200190815260200160002081816106d89190611a0f565b9050505080806106e790611ab1565b91505061067c565b5050505050565b33600090815260086020526040812054900361072557604051631eb49d6d60e11b815260040160405180910390fd5b336000818152600860205260408082208290555182907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4565b6000546001600160a01b0316331461078c5760405162461bcd60e51b8152600401610591906119c4565b6004610799828483611b10565b505050565b6000806107aa83610e0e565b90506001600160a01b0381166104ba57604051634a1850bf60e11b815260040160405180910390fd5b6000546001600160a01b031633146107fd5760405162461bcd60e51b8152600401610591906119c4565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600480546104cd9061198a565b6000546001600160a01b031633146108565760405162461bcd60e51b8152600401610591906119c4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166108a1576040516349e27cff60e01b815260040160405180910390fd5b6104ba82610e38565b6000546001600160a01b031633146108d45760405162461bcd60e51b8152600401610591906119c4565b6108de6000610e69565b565b6002600154036109325760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610591565b6002600155336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461098057604051631eb49d6d60e11b815260040160405180910390fd5b61098e868686868686610eb9565b6001600160a01b03871660009081526008602052604081205490036109e6576040516001600160a01b0388169081906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45b6001600160a01b03871660009081526008602052604081208054879290610a0e908490611bd0565b90915550600090505b83811015610c8d576000858583818110610a3357610a336119f9565b60209081029290920135600081815260078452604080822081516080810190925280546001600160a01b03811683529396509194909350909190830190600160a01b900460ff166002811115610a8b57610a8b61192b565b6002811115610a9c57610a9c61192b565b8152600182810154602083015260029092015460409091015290915081602001516002811115610ace57610ace61192b565b03610b6b57805160065460408084015160608501519151637921219560e11b81526001600160a01b0393841660048201528e841660248201526044810191909152606481019190915260a06084820152600060a48201529082169063f242432a9060c4015b600060405180830381600087803b158015610b4d57600080fd5b505af1158015610b61573d6000803e3d6000fd5b5050505050610c78565b600081602001516002811115610b8357610b8361192b565b03610bd157805160065460408084015190516323b872dd60e01b81526001600160a01b0392831660048201528d831660248201526044810191909152908216906323b872dd90606401610b33565b600281602001516002811115610be957610be961192b565b03610c7857805160065460608301516040516323b872dd60e01b81526001600160a01b0392831660048201528d831660248201526044810191909152908216906323b872dd906064016020604051808303816000875af1158015610c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c759190611be3565b50505b50508080610c8590611ab1565b915050610a17565b505060018055505050505050565b600380546104cd9061198a565b6060600060048054610cb99061198a565b905011610cd557604051806020016040528060008152506104ba565b6001600160a01b038216600090815260086020526040902054600490610cfa90610f5f565b604051602001610d0b929190611c00565b60405160208183030381529060405292915050565b6000546001600160a01b03163314610d4a5760405162461bcd60e51b8152600401610591906119c4565b600090815260076020526040812080546001600160a81b03191681556001810182905560020155565b6000546001600160a01b03163314610d9d5760405162461bcd60e51b8152600401610591906119c4565b6001600160a01b038116610e025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610591565b610e0b81610e69565b50565b6001600160a01b038116600090815260086020526040812054829082036104ba5750600092915050565b6001600160a01b03811660009081526008602052604081205415610e5d576001610e60565b60005b60ff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f2982828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610f239250610f0f915089908b9082908b908b90602001611cb0565b604051602081830303815290604052611068565b906110a3565b6005546001600160a01b03908116911614610f5757604051638baa579f60e01b815260040160405180910390fd5b505050505050565b606081600003610f865750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610fb05780610f9a81611ab1565b9150610fa99050600a83611cee565b9150610f8a565b60008167ffffffffffffffff811115610fcb57610fcb611807565b6040519080825280601f01601f191660200182016040528015610ff5576020820181803683370190505b5090505b84156110605761100a600183611d02565b9150611017600a86611d15565b611022906030611bd0565b60f81b818381518110611037576110376119f9565b60200101906001600160f81b031916908160001a905350611059600a86611cee565b9450610ff9565b949350505050565b60006110748251610f5f565b82604051602001611086929190611d29565b604051602081830303815290604052805190602001209050919050565b60008060006110b285856110c7565b915091506110bf81611135565b509392505050565b60008082516041036110fd5760208301516040840151606085015160001a6110f1878285856112eb565b9450945050505061112e565b8251604003611126576020830151604084015161111b8683836113d8565b93509350505061112e565b506000905060025b9250929050565b60008160048111156111495761114961192b565b036111515750565b60018160048111156111655761116561192b565b036111b25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610591565b60028160048111156111c6576111c661192b565b036112135760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610591565b60038160048111156112275761122761192b565b0361127f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610591565b60048160048111156112935761129361192b565b03610e0b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610591565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561132257506000905060036113cf565b8460ff16601b1415801561133a57508460ff16601c14155b1561134b57506000905060046113cf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561139f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113c8576000600192509250506113cf565b9150600090505b94509492505050565b6000806001600160ff1b038316816113f560ff86901c601b611bd0565b9050611403878288856112eb565b935093505050935093915050565b60006020828403121561142357600080fd5b81356001600160e01b03198116811461143b57600080fd5b9392505050565b60005b8381101561145d578181015183820152602001611445565b50506000910152565b6020815260008251806020840152611485816040850160208701611442565b601f01601f19169190910160400192915050565b6000602082840312156114ab57600080fd5b5035919050565b6001600160a01b0381168114610e0b57600080fd5b600080604083850312156114da57600080fd5b82356114e5816114b2565b946020939093013593505050565b60038110610e0b57600080fd5b600080600080600060a0868803121561151857600080fd5b85359450602086013561152a816114b2565b9350604086013561153a816114f3565b94979396509394606081013594506080013592915050565b60008083601f84011261156457600080fd5b50813567ffffffffffffffff81111561157c57600080fd5b6020830191508360208260051b850101111561112e57600080fd5b600080600080604085870312156115ad57600080fd5b843567ffffffffffffffff808211156115c557600080fd5b6115d188838901611552565b909650945060208701359150808211156115ea57600080fd5b818701915087601f8301126115fe57600080fd5b81358181111561160d57600080fd5b8860208260071b850101111561162257600080fd5b95989497505060200194505050565b60008060006060848603121561164657600080fd5b8335611651816114b2565b92506020840135611661816114b2565b929592945050506040919091013590565b60008083601f84011261168457600080fd5b50813567ffffffffffffffff81111561169c57600080fd5b60208301915083602082850101111561112e57600080fd5b600080602083850312156116c757600080fd5b823567ffffffffffffffff8111156116de57600080fd5b6116ea85828601611672565b90969095509350505050565b60006020828403121561170857600080fd5b813561143b816114b2565b60008060008060008060006080888a03121561172e57600080fd5b8735611739816114b2565b9650602088013567ffffffffffffffff8082111561175657600080fd5b6117628b838c01611552565b909850965060408a013591508082111561177b57600080fd5b6117878b838c01611552565b909650945060608a01359150808211156117a057600080fd5b506117ad8a828b01611672565b989b979a50959850939692959293505050565b8015158114610e0b57600080fd5b600080604083850312156117e157600080fd5b82356117ec816114b2565b915060208301356117fc816117c0565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561183357600080fd5b843561183e816114b2565b9350602085013561184e816114b2565b925060408501359150606085013567ffffffffffffffff8082111561187257600080fd5b818701915087601f83011261188657600080fd5b81358181111561189857611898611807565b604051601f8201601f19908116603f011681019083821181831017156118c0576118c0611807565b816040528281528a60208487010111156118d957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561191057600080fd5b823561191b816114b2565b915060208301356117fc816114b2565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0385168152608081016003851061196f57634e487b7160e01b600052602160045260246000fd5b84602083015283604083015282606083015295945050505050565b600181811c9082168061199e57607f821691505b6020821081036119be57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b8135611a1a816114b2565b81546001600160a01b031981166001600160a01b039290921691821783556020840135611a46816114f3565b60038110611a6457634e487b7160e01b600052602160045260246000fd5b6001600160a81b03199190911690911760a09190911b60ff60a01b1617815560408201356001820155606090910135600290910155565b634e487b7160e01b600052601160045260246000fd5b600060018201611ac357611ac3611a9b565b5060010190565b601f82111561079957600081815260208120601f850160051c81016020861015611af15750805b601f850160051c820191505b81811015610f5757828155600101611afd565b67ffffffffffffffff831115611b2857611b28611807565b611b3c83611b36835461198a565b83611aca565b6000601f841160018114611b705760008515611b585750838201355b600019600387901b1c1916600186901b1783556106ef565b600083815260209020601f19861690835b82811015611ba15786850135825560209485019460019092019101611b81565b5086821015611bbe5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b808201808211156104ba576104ba611a9b565b600060208284031215611bf557600080fd5b815161143b816117c0565b6000808454611c0e8161198a565b60018281168015611c265760018114611c3b57611c6a565b60ff1984168752821515830287019450611c6a565b8860005260208060002060005b85811015611c615781548a820152908401908201611c48565b50505082870194505b505050508351611c7e818360208801611442565b01949350505050565b60006001600160fb1b03831115611c9d57600080fd5b8260051b80838637939093019392505050565b8581526000611ccd611cc6602084018789611c87565b8486611c87565b979650505050505050565b634e487b7160e01b600052601260045260246000fd5b600082611cfd57611cfd611cd8565b500490565b818103818111156104ba576104ba611a9b565b600082611d2457611d24611cd8565b500690565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008351611d6181601a850160208801611442565b835190830190611d7881601a840160208801611442565b01601a0194935050505056fea2646970667358221220f7fbad5ec87cc1e0852cf7b13ea89c9b326d02ba30055dff2251395de6ec887e64736f6c6343000810003300000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80636c0360eb11610104578063a22cb465116100a2578063e985e9c511610071578063e985e9c5146103de578063f2fde38b146103f4578063f301af4214610407578063fbfa77cf1461045b57600080fd5b8063a22cb4651461039c578063b88d4fde146103aa578063c87b56dd146103b8578063e7cf1ab7146103cb57600080fd5b8063715018a6116100de578063715018a6146103685780638da5cb5b14610370578063948be0b71461038157806395d89b411461039457600080fd5b80636c0360eb1461033a5780636c19e7831461034257806370a082311461035557600080fd5b806323b872dd1161017c57806355f804b31161014b57806355f804b3146102d35780636352211e146102e657806363ebcbf6146102f95780636817031b1461032757600080fd5b806323b872dd14610296578063315801a5146102a457806342842e0e1461029657806344df8e70146102cb57600080fd5b8063095ea7b3116101b8578063095ea7b3146102485780630c26d8df1461025d5780631f295e8314610270578063238ac9331461028357600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611411565b61046e565b60405190151581526020015b60405180910390f35b61020f6104c0565b6040516101fe9190611466565b61023061022a366004611499565b50600090565b6040516001600160a01b0390911681526020016101fe565b61025b6102563660046114c7565b61054e565b005b61025b61026b366004611500565b610567565b61025b61027e366004611597565b61064f565b600554610230906001600160a01b031681565b61025b610256366004611631565b6102307f00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f81565b61025b6106f6565b61025b6102e13660046116b4565b610762565b6102306102f4366004611499565b61079e565b6103196103073660046116f6565b60086020526000908152604090205481565b6040519081526020016101fe565b61025b6103353660046116f6565b6107d3565b61020f61081f565b61025b6103503660046116f6565b61082c565b6103196103633660046116f6565b610878565b61025b6108aa565b6000546001600160a01b0316610230565b61025b61038f366004611713565b6108e0565b61020f610c9b565b61025b6102563660046117ce565b61025b61025636600461181d565b61020f6103c6366004611499565b610ca8565b61025b6103d9366004611499565b610d20565b6101f26103ec3660046118fd565b600092915050565b61025b6104023660046116f6565b610d73565b61044b610415366004611499565b6007602052600090815260409020805460018201546002909201546001600160a01b03821692600160a01b90920460ff16919084565b6040516101fe9493929190611941565b600654610230906001600160a01b031681565b60006301ffc9a760e01b6001600160e01b03198316148061049f57506380ac58cd60e01b6001600160e01b03198316145b806104ba5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600280546104cd9061198a565b80601f01602080910402602001604051908101604052809291908181526020018280546104f99061198a565b80156105465780601f1061051b57610100808354040283529160200191610546565b820191906000526020600020905b81548152906001019060200180831161052957829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b6000546001600160a01b0316331461059a5760405162461bcd60e51b8152600401610591906119c4565b60405180910390fd5b6040518060800160405280856001600160a01b031681526020018460028111156105c6576105c661192b565b81526020808201859052604091820184905260008881526007825291909120825181546001600160a01b039091166001600160a01b031982168117835592840151919283916001600160a81b03191617600160a01b83600281111561062d5761062d61192b565b0217905550604082015160018201556060909101516002909101555050505050565b6000546001600160a01b031633146106795760405162461bcd60e51b8152600401610591906119c4565b60005b838110156106ef576000858583818110610698576106986119f9565b9050602002013590508383838181106106b3576106b36119f9565b9050608002016007600083815260200190815260200160002081816106d89190611a0f565b9050505080806106e790611ab1565b91505061067c565b5050505050565b33600090815260086020526040812054900361072557604051631eb49d6d60e11b815260040160405180910390fd5b336000818152600860205260408082208290555182907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4565b6000546001600160a01b0316331461078c5760405162461bcd60e51b8152600401610591906119c4565b6004610799828483611b10565b505050565b6000806107aa83610e0e565b90506001600160a01b0381166104ba57604051634a1850bf60e11b815260040160405180910390fd5b6000546001600160a01b031633146107fd5760405162461bcd60e51b8152600401610591906119c4565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b600480546104cd9061198a565b6000546001600160a01b031633146108565760405162461bcd60e51b8152600401610591906119c4565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166108a1576040516349e27cff60e01b815260040160405180910390fd5b6104ba82610e38565b6000546001600160a01b031633146108d45760405162461bcd60e51b8152600401610591906119c4565b6108de6000610e69565b565b6002600154036109325760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610591565b6002600155336001600160a01b037f00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f161461098057604051631eb49d6d60e11b815260040160405180910390fd5b61098e868686868686610eb9565b6001600160a01b03871660009081526008602052604081205490036109e6576040516001600160a01b0388169081906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45b6001600160a01b03871660009081526008602052604081208054879290610a0e908490611bd0565b90915550600090505b83811015610c8d576000858583818110610a3357610a336119f9565b60209081029290920135600081815260078452604080822081516080810190925280546001600160a01b03811683529396509194909350909190830190600160a01b900460ff166002811115610a8b57610a8b61192b565b6002811115610a9c57610a9c61192b565b8152600182810154602083015260029092015460409091015290915081602001516002811115610ace57610ace61192b565b03610b6b57805160065460408084015160608501519151637921219560e11b81526001600160a01b0393841660048201528e841660248201526044810191909152606481019190915260a06084820152600060a48201529082169063f242432a9060c4015b600060405180830381600087803b158015610b4d57600080fd5b505af1158015610b61573d6000803e3d6000fd5b5050505050610c78565b600081602001516002811115610b8357610b8361192b565b03610bd157805160065460408084015190516323b872dd60e01b81526001600160a01b0392831660048201528d831660248201526044810191909152908216906323b872dd90606401610b33565b600281602001516002811115610be957610be961192b565b03610c7857805160065460608301516040516323b872dd60e01b81526001600160a01b0392831660048201528d831660248201526044810191909152908216906323b872dd906064016020604051808303816000875af1158015610c51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c759190611be3565b50505b50508080610c8590611ab1565b915050610a17565b505060018055505050505050565b600380546104cd9061198a565b6060600060048054610cb99061198a565b905011610cd557604051806020016040528060008152506104ba565b6001600160a01b038216600090815260086020526040902054600490610cfa90610f5f565b604051602001610d0b929190611c00565b60405160208183030381529060405292915050565b6000546001600160a01b03163314610d4a5760405162461bcd60e51b8152600401610591906119c4565b600090815260076020526040812080546001600160a81b03191681556001810182905560020155565b6000546001600160a01b03163314610d9d5760405162461bcd60e51b8152600401610591906119c4565b6001600160a01b038116610e025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610591565b610e0b81610e69565b50565b6001600160a01b038116600090815260086020526040812054829082036104ba5750600092915050565b6001600160a01b03811660009081526008602052604081205415610e5d576001610e60565b60005b60ff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f2982828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604051610f239250610f0f915089908b9082908b908b90602001611cb0565b604051602081830303815290604052611068565b906110a3565b6005546001600160a01b03908116911614610f5757604051638baa579f60e01b815260040160405180910390fd5b505050505050565b606081600003610f865750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610fb05780610f9a81611ab1565b9150610fa99050600a83611cee565b9150610f8a565b60008167ffffffffffffffff811115610fcb57610fcb611807565b6040519080825280601f01601f191660200182016040528015610ff5576020820181803683370190505b5090505b84156110605761100a600183611d02565b9150611017600a86611d15565b611022906030611bd0565b60f81b818381518110611037576110376119f9565b60200101906001600160f81b031916908160001a905350611059600a86611cee565b9450610ff9565b949350505050565b60006110748251610f5f565b82604051602001611086929190611d29565b604051602081830303815290604052805190602001209050919050565b60008060006110b285856110c7565b915091506110bf81611135565b509392505050565b60008082516041036110fd5760208301516040840151606085015160001a6110f1878285856112eb565b9450945050505061112e565b8251604003611126576020830151604084015161111b8683836113d8565b93509350505061112e565b506000905060025b9250929050565b60008160048111156111495761114961192b565b036111515750565b60018160048111156111655761116561192b565b036111b25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610591565b60028160048111156111c6576111c661192b565b036112135760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610591565b60038160048111156112275761122761192b565b0361127f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610591565b60048160048111156112935761129361192b565b03610e0b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610591565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561132257506000905060036113cf565b8460ff16601b1415801561133a57508460ff16601c14155b1561134b57506000905060046113cf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561139f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113c8576000600192509250506113cf565b9150600090505b94509492505050565b6000806001600160ff1b038316816113f560ff86901c601b611bd0565b9050611403878288856112eb565b935093505050935093915050565b60006020828403121561142357600080fd5b81356001600160e01b03198116811461143b57600080fd5b9392505050565b60005b8381101561145d578181015183820152602001611445565b50506000910152565b6020815260008251806020840152611485816040850160208701611442565b601f01601f19169190910160400192915050565b6000602082840312156114ab57600080fd5b5035919050565b6001600160a01b0381168114610e0b57600080fd5b600080604083850312156114da57600080fd5b82356114e5816114b2565b946020939093013593505050565b60038110610e0b57600080fd5b600080600080600060a0868803121561151857600080fd5b85359450602086013561152a816114b2565b9350604086013561153a816114f3565b94979396509394606081013594506080013592915050565b60008083601f84011261156457600080fd5b50813567ffffffffffffffff81111561157c57600080fd5b6020830191508360208260051b850101111561112e57600080fd5b600080600080604085870312156115ad57600080fd5b843567ffffffffffffffff808211156115c557600080fd5b6115d188838901611552565b909650945060208701359150808211156115ea57600080fd5b818701915087601f8301126115fe57600080fd5b81358181111561160d57600080fd5b8860208260071b850101111561162257600080fd5b95989497505060200194505050565b60008060006060848603121561164657600080fd5b8335611651816114b2565b92506020840135611661816114b2565b929592945050506040919091013590565b60008083601f84011261168457600080fd5b50813567ffffffffffffffff81111561169c57600080fd5b60208301915083602082850101111561112e57600080fd5b600080602083850312156116c757600080fd5b823567ffffffffffffffff8111156116de57600080fd5b6116ea85828601611672565b90969095509350505050565b60006020828403121561170857600080fd5b813561143b816114b2565b60008060008060008060006080888a03121561172e57600080fd5b8735611739816114b2565b9650602088013567ffffffffffffffff8082111561175657600080fd5b6117628b838c01611552565b909850965060408a013591508082111561177b57600080fd5b6117878b838c01611552565b909650945060608a01359150808211156117a057600080fd5b506117ad8a828b01611672565b989b979a50959850939692959293505050565b8015158114610e0b57600080fd5b600080604083850312156117e157600080fd5b82356117ec816114b2565b915060208301356117fc816117c0565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561183357600080fd5b843561183e816114b2565b9350602085013561184e816114b2565b925060408501359150606085013567ffffffffffffffff8082111561187257600080fd5b818701915087601f83011261188657600080fd5b81358181111561189857611898611807565b604051601f8201601f19908116603f011681019083821181831017156118c0576118c0611807565b816040528281528a60208487010111156118d957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561191057600080fd5b823561191b816114b2565b915060208301356117fc816114b2565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b0385168152608081016003851061196f57634e487b7160e01b600052602160045260246000fd5b84602083015283604083015282606083015295945050505050565b600181811c9082168061199e57607f821691505b6020821081036119be57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b8135611a1a816114b2565b81546001600160a01b031981166001600160a01b039290921691821783556020840135611a46816114f3565b60038110611a6457634e487b7160e01b600052602160045260246000fd5b6001600160a81b03199190911690911760a09190911b60ff60a01b1617815560408201356001820155606090910135600290910155565b634e487b7160e01b600052601160045260246000fd5b600060018201611ac357611ac3611a9b565b5060010190565b601f82111561079957600081815260208120601f850160051c81016020861015611af15750805b601f850160051c820191505b81811015610f5757828155600101611afd565b67ffffffffffffffff831115611b2857611b28611807565b611b3c83611b36835461198a565b83611aca565b6000601f841160018114611b705760008515611b585750838201355b600019600387901b1c1916600186901b1783556106ef565b600083815260209020601f19861690835b82811015611ba15786850135825560209485019460019092019101611b81565b5086821015611bbe5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b808201808211156104ba576104ba611a9b565b600060208284031215611bf557600080fd5b815161143b816117c0565b6000808454611c0e8161198a565b60018281168015611c265760018114611c3b57611c6a565b60ff1984168752821515830287019450611c6a565b8860005260208060002060005b85811015611c615781548a820152908401908201611c48565b50505082870194505b505050508351611c7e818360208801611442565b01949350505050565b60006001600160fb1b03831115611c9d57600080fd5b8260051b80838637939093019392505050565b8581526000611ccd611cc6602084018789611c87565b8486611c87565b979650505050505050565b634e487b7160e01b600052601260045260246000fd5b600082611cfd57611cfd611cd8565b500490565b818103818111156104ba576104ba611a9b565b600082611d2457611d24611cd8565b500690565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008351611d6181601a850160208801611442565b835190830190611d7881601a840160208801611442565b01601a0194935050505056fea2646970667358221220f7fbad5ec87cc1e0852cf7b13ea89c9b326d02ba30055dff2251395de6ec887e64736f6c63430008100033

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

00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f

-----Decoded View---------------
Arg [0] : kilton (address): 0x01621C6180d8AdFad5B0c8f69d7D4ABf49c7868F

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000001621c6180d8adfad5b0c8f69d7d4abf49c7868f


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.