ETH Price: $3,265.78 (+4.87%)
 

Overview

TokenID

609

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
KiltonHotel

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "./StaticNFT.sol";

/* ------------
    Interfaces
   ------------ */

interface IRewarder {
    function reward(
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external;
}

/* ---------
    Structs
   --------- */

struct Stake {
    uint32 ts;
    address owner;
    uint16 bit;
}

/* ------
    Main
   ------ */

contract KiltonHotel is Ownable, IERC721Receiver, StaticNFT {
    using Strings for uint16;
    using Strings for uint256;

    /* --------
        Errors
       -------- */
    error NotYourToken();
    error NotCompleted();
    error ArrayLengthMismatch();
    error StakingNotEnabled();
    error BearAlreadyClaimedReward();
    error BitAlreadyClaimedReward();

    /* --------
        Events
       -------- */
    event Entered(uint256[] bears, uint256[] bits);
    event Exited(uint256[] bears);
    event Escaped(uint256[] bears);

    /* --------
        Config
       -------- */
    uint256 public immutable stakeTime;
    IERC721 public immutable killaBearsContract;
    IERC721 public immutable killaBitsContract;
    IRewarder public rewardsContract;
    bool public stakingEnabled;
    mapping(address => bool) public stakingEnabledFor;

    /* --------
        Stakes
       -------- */
    mapping(uint256 => Stake) public stakes;
    mapping(address => uint256) public balances;
    mapping(uint256 => bool) public bearsClaimed;
    mapping(uint256 => bool) public bitsClaimed;

    constructor(
        address killaBearsAddress,
        address killaBitsAddress,
        uint256 _stakeTime
    ) StaticNFT("KiltonHotel", "Kilton") {
        stakeTime = _stakeTime;
        killaBearsContract = IERC721(killaBearsAddress);
        killaBitsContract = IERC721(killaBitsAddress);
    }

    /* ---------
        Staking
       --------- */

    /// @notice Stake pairs of KILLABEARS and KILLABITS
    function enter(uint256[] calldata bears, uint256[] calldata bits) external {
        if (!stakingEnabled && !stakingEnabledFor[msg.sender])
            revert StakingNotEnabled();

        uint256 index = bears.length;
        if (index != bits.length) revert ArrayLengthMismatch();

        uint256 ts = block.timestamp;

        balances[msg.sender] += index;

        while (index > 0) {
            index--;

            uint256 bear = bears[index];
            uint256 bit = bits[index];
            
            if (bearsClaimed[bear]) revert BearAlreadyClaimedReward();
            if (bitsClaimed[bit]) revert BitAlreadyClaimedReward();

            killaBearsContract.transferFrom(msg.sender, address(this), bear);
            killaBitsContract.transferFrom(msg.sender, address(this), bit);

            stakes[bear] = Stake(uint32(ts), msg.sender, uint16(bit));

            emit Transfer(address(0), msg.sender, bear);
        }

        emit Entered(bears, bits);
    }

    /// @notice Unstake and claim rewards
    function exit(
        uint256[] calldata bears,
        uint256[] calldata rewards,
        bytes calldata signature
    ) external {
        uint256 index = bears.length;
        while (index > 0) {
            index--;

            uint256 bear = bears[index];
            Stake storage stake = stakes[bear];
            address owner = stake.owner;
            uint256 bit = stake.bit;

            if (owner != msg.sender) revert NotYourToken();
            if (block.timestamp - stake.ts < stakeTime) revert NotCompleted();

            bearsClaimed[bear] = true;
            bitsClaimed[bit] = true;
            killaBearsContract.transferFrom(address(this), owner, bear);
            killaBitsContract.transferFrom(address(this), owner, bit);

            delete stakes[bear];
            emit Transfer(msg.sender, address(0), bear);
        }

        rewardsContract.reward(msg.sender, bears, rewards, signature);

        balances[msg.sender]--;

        emit Exited(bears);
    }

    /// @notice Unstake prematurely
    function escape(uint256[] calldata bears) external {
        uint256 index = bears.length;
        while (index > 0) {
            index--;

            uint256 bear = bears[index];
            Stake storage stake = stakes[bear];
            address owner = stake.owner;
            uint256 bit = stake.bit;

            if (owner != msg.sender) revert NotYourToken();

            killaBearsContract.transferFrom(address(this), owner, bear);
            killaBitsContract.transferFrom(address(this), owner, bit);

            delete stakes[bear];

            balances[msg.sender]--;

            emit Transfer(msg.sender, address(0), bear);
            emit Escaped(bears);
        }
    }

    /* -------
        Token
       ------- */

    /// @dev used by StaticNFT base contract
    function getBalance(address _addr)
        internal
        view
        override
        returns (uint256)
    {
        return balances[_addr];
    }

    /// @dev used by StaticNFT base contract
    function getOwner(uint256 tokenId)
        internal
        view
        override
        returns (address)
    {
        return stakes[tokenId].owner;
    }

    /* -------
        Admin
       ------- */

    /// @notice Set the rewarder contract
    function setRewarder(address addr) external onlyOwner {
        rewardsContract = IRewarder(addr);
    }

    /// @notice Enable/disable staking
    function toggleStaking(bool enabled) external onlyOwner {
        stakingEnabled = enabled;
    }

    /// @notice Enable/disable staking for a given wallet
    function toggleStakingFor(address who, bool enabled) external onlyOwner {
        stakingEnabledFor[who] = enabled;
    }

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

    /* -------
        Other
       ------- */

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

    /// @dev URI is different based on which bear and bit are staked, and how long they've been staked
    function tokenURI(uint256 tokenId)
        external
        view
        override
        returns (string memory)
    {
        if (getOwner(tokenId) == address(0)) revert NonExistentToken();

        Stake storage stake = stakes[tokenId];

        uint256 day = (block.timestamp - stake.ts) / 86400 + 1;

        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        tokenId.toString(),
                        "/",
                        stake.bit.toString(),
                        "/",
                        day.toString()
                    )
                )
                : "";
    }
}

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

pragma solidity ^0.8.0;

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

File 4 of 8 : 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 5 of 8 : 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 6 of 8 : 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 7 of 8 : 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 8 of 8 : 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":"killaBearsAddress","type":"address"},{"internalType":"address","name":"killaBitsAddress","type":"address"},{"internalType":"uint256","name":"_stakeTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"BearAlreadyClaimedReward","type":"error"},{"inputs":[],"name":"BitAlreadyClaimedReward","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NotCompleted","type":"error"},{"inputs":[],"name":"NotYourToken","type":"error"},{"inputs":[],"name":"StakingNotEnabled","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":false,"internalType":"uint256[]","name":"bears","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"bits","type":"uint256[]"}],"name":"Entered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"bears","type":"uint256[]"}],"name":"Escaped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"bears","type":"uint256[]"}],"name":"Exited","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":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bearsClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bitsClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"bears","type":"uint256[]"},{"internalType":"uint256[]","name":"bits","type":"uint256[]"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"bears","type":"uint256[]"}],"name":"escape","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"bears","type":"uint256[]"},{"internalType":"uint256[]","name":"rewards","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"exit","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":"killaBearsContract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"killaBitsContract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"rewardsContract","outputs":[{"internalType":"contract IRewarder","name":"","type":"address"}],"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":"addr","type":"address"}],"name":"setRewarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakes","outputs":[{"internalType":"uint32","name":"ts","type":"uint32"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint16","name":"bit","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakingEnabledFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bool","name":"enabled","type":"bool"}],"name":"toggleStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"toggleStakingFor","outputs":[],"stateMutability":"nonpayable","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"}]

60e06040523480156200001157600080fd5b50604051620021123803806200211283398101604081905262000034916200013d565b6040518060400160405280600b81526020016a12da5b1d1bdb921bdd195b60aa1b8152506040518060400160405280600681526020016525b4b63a37b760d11b815250620000916200008b620000cc60201b60201c565b620000d0565b60016200009f838262000223565b506002620000ae828262000223565b5050506080526001600160a01b0391821660a0521660c052620002ef565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200013857600080fd5b919050565b6000806000606084860312156200015357600080fd5b6200015e8462000120565b92506200016e6020850162000120565b9150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001a957607f821691505b602082108103620001ca57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021e57600081815260208120601f850160051c81016020861015620001f95750805b601f850160051c820191505b818110156200021a5782815560010162000205565b5050505b505050565b81516001600160401b038111156200023f576200023f6200017e565b620002578162000250845462000194565b84620001d0565b602080601f8311600181146200028f5760008415620002765750858301515b600019600386901b1c1916600185901b1785556200021a565b600085815260208120601f198616915b82811015620002c0578886015182559484019460019091019084016200029f565b5085821015620002df5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c051611dc262000350600039600081816103fc015281816109c501528181610c820152610fe701526000818161058a0152818161094501528181610bfa0152610f670152600081816104830152610b680152611dc26000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80636c0360eb11610125578063b1a8adfd116100ad578063d5a44f861161007c578063d5a44f86146104c6578063dc39f58314610539578063e985e9c51461055c578063f2fde38b14610572578063f93742841461058557600080fd5b8063b1a8adfd1461046b578063b77a2c1c1461047e578063b88d4fde146104a5578063c87b56dd146104b357600080fd5b80638da5cb5b116100f45780638da5cb5b1461041e57806395d89b411461042f5780639c87e0a814610437578063a22cb4651461044a578063b0297e681461045857600080fd5b80636c0360eb146103d457806370a08231146103dc578063715018a6146103ef5780637670f7dd146103f757600080fd5b8063233a095d116101a857806342842e0e1161017757806342842e0e146103295780634c7cecdd1461037857806355f804b31461039b5780636352211e146103ae57806369805981146103c157600080fd5b8063233a095d1461030657806323b872dd1461032957806327e235e3146103375780633a6462e41461036557600080fd5b8063150b7a02116101e4578063150b7a02146102945780631a91ca5f146102cc5780631cfff51b146102df578063220cce97146102f357600080fd5b806301ffc9a71461021657806306fdde031461023e578063081812fc14610253578063095ea7b31461027f575b600080fd5b610229610224366004611437565b6105ac565b60405190151581526020015b60405180910390f35b6102466105fe565b604051610235919061148c565b6102676102613660046114bf565b50600090565b6040516001600160a01b039091168152602001610235565b61029261028d3660046114f4565b61068c565b005b6102b36102a2366004611567565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610235565b6102926102da3660046115e6565b6106a5565b60045461022990600160a01b900460ff1681565b600454610267906001600160a01b031681565b610229610314366004611619565b60056020526000908152604090205460ff1681565b61029261028d366004611634565b610357610345366004611619565b60076020526000908152604090205481565b604051908152602001610235565b610292610373366004611619565b610703565b6102296103863660046114bf565b60096020526000908152604090205460ff1681565b6102926103a9366004611670565b61074f565b6102676103bc3660046114bf565b61078b565b6102926103cf3660046116b2565b6107c9565b610246610811565b6103576103ea366004611619565b61081e565b610292610865565b6102677f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b0316610267565b61024661089b565b610292610445366004611712565b6108a8565b61029261028d3660046115e6565b610292610466366004611748565b610ade565b6102926104793660046117e2565b610e0f565b6103577f000000000000000000000000000000000000000000000000000000000000000081565b61029261028d366004611864565b6102466104c13660046114bf565b61114c565b61050b6104d43660046114bf565b60066020526000908152604090205463ffffffff81169064010000000081046001600160a01b031690600160c01b900461ffff1683565b6040805163ffffffff90941684526001600160a01b03909216602084015261ffff1690820152606001610235565b6102296105473660046114bf565b60086020526000908152604090205460ff1681565b61022961056a366004611940565b600092915050565b610292610580366004611619565b61124b565b6102677f000000000000000000000000000000000000000000000000000000000000000081565b60006301ffc9a760e01b6001600160e01b0319831614806105dd57506380ac58cd60e01b6001600160e01b03198316145b806105f85750635b5e139f60e01b6001600160e01b03198316145b92915050565b6001805461060b9061196a565b80601f01602080910402602001604051908101604052809291908181526020018280546106379061196a565b80156106845780601f1061065957610100808354040283529160200191610684565b820191906000526020600020905b81548152906001019060200180831161066757829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b6000546001600160a01b031633146106d85760405162461bcd60e51b81526004016106cf906119a4565b60405180910390fd5b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331461072d5760405162461bcd60e51b81526004016106cf906119a4565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146107795760405162461bcd60e51b81526004016106cf906119a4565b6003610786828483611a27565b505050565b60008181526006602052604081205464010000000090046001600160a01b0316806105f857604051634a1850bf60e11b815260040160405180910390fd5b6000546001600160a01b031633146107f35760405162461bcd60e51b81526004016106cf906119a4565b60048054911515600160a01b0260ff60a01b19909216919091179055565b6003805461060b9061196a565b60006001600160a01b038216610847576040516349e27cff60e01b815260040160405180910390fd5b6001600160a01b0382166000908152600760205260409020546105f8565b6000546001600160a01b0316331461088f5760405162461bcd60e51b81526004016106cf906119a4565b61089960006112e6565b565b6002805461060b9061196a565b805b801561078657806108ba81611afe565b91505060008383838181106108d1576108d1611b15565b6020908102929092013560008181526006909352604090922080549293509164010000000081046001600160a01b03169150600160c01b900461ffff1633821461092e57604051630247f98760e21b815260040160405180910390fd5b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd9061097e90309086908990600401611b2b565b600060405180830381600087803b15801561099857600080fd5b505af11580156109ac573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506323b872dd9150610a0090309086908690600401611b2b565b600060405180830381600087803b158015610a1a57600080fd5b505af1158015610a2e573d6000803e3d6000fd5b505050600085815260066020908152604080832080546001600160d01b0319169055338352600790915281208054925090610a6883611afe565b9091555050604051849060009033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a47fd90b6871e10d10527628d7db274a247aceb435c06bb8fa0aa68653ce53291a868787604051610acd929190611b81565b60405180910390a1505050506108aa565b845b8015610d3f5780610af081611afe565b9150506000878783818110610b0757610b07611b15565b6020908102929092013560008181526006909352604090922080549293509164010000000081046001600160a01b03169150600160c01b900461ffff16338214610b6457604051630247f98760e21b815260040160405180910390fd5b82547f000000000000000000000000000000000000000000000000000000000000000090610b989063ffffffff1642611b95565b1015610bb7576040516317f5db8160e21b815260040160405180910390fd5b60008481526008602090815260408083208054600160ff19918216811790925585855260099093529281902080549092169092179055516323b872dd60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90610c3b90309086908990600401611b2b565b600060405180830381600087803b158015610c5557600080fd5b505af1158015610c69573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506323b872dd9150610cbd90309086908690600401611b2b565b600060405180830381600087803b158015610cd757600080fd5b505af1158015610ceb573d6000803e3d6000fd5b50505060008581526006602052604080822080546001600160d01b03191690555186925033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450505050610ae0565b6004805460405163948be0b760e01b81526001600160a01b039091169163948be0b791610d7a9133918c918c918c918c918c918c9101611ba8565b600060405180830381600087803b158015610d9457600080fd5b505af1158015610da8573d6000803e3d6000fd5b5050336000908152600760205260408120805493509150610dc883611afe565b91905055507f093b2fdae59d3cc88c80e5138c5a19bd5b124cbe1e029e8accc0f22cebf663598787604051610dfe929190611b81565b60405180910390a150505050505050565b600454600160a01b900460ff16158015610e3957503360009081526005602052604090205460ff16155b15610e575760405163a3df9bcf60e01b815260040160405180910390fd5b82818114610e785760405163512509d360e11b815260040160405180910390fd5b33600090815260076020526040812080544292849291610e99908490611c19565b90915550505b81156111075781610eaf81611afe565b9250506000868684818110610ec657610ec6611b15565b9050602002013590506000858585818110610ee357610ee3611b15565b6000858152600860209081526040909120549102929092013592505060ff1615610f205760405163b29526b960e01b815260040160405180910390fd5b60008181526009602052604090205460ff1615610f5057604051630f05b4b760e21b815260040160405180910390fd5b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90610fa090339030908790600401611b2b565b600060405180830381600087803b158015610fba57600080fd5b505af1158015610fce573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692506323b872dd915061102290339030908690600401611b2b565b600060405180830381600087803b15801561103c57600080fd5b505af1158015611050573d6000803e3d6000fd5b50506040805160608101825263ffffffff808816825233602080840182815261ffff808a1686880190815260008c815260069094528784209651875493519151909216600160c01b0261ffff60c01b196001600160a01b0392909216640100000000026001600160c01b0319909416929096169190911791909117169290921790925591518694509092507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050610e9f565b7fd2436ac77f70eae6168f03096ccefa5f53e642ab7305e538cf082cdf6a34ddd78686868660405161113c9493929190611c2c565b60405180910390a1505050505050565b60008181526006602052604090205460609064010000000090046001600160a01b031661118c57604051634a1850bf60e11b815260040160405180910390fd5b6000828152600660205260408120805490919062015180906111b49063ffffffff1642611b95565b6111be9190611c74565b6111c9906001611c19565b90506000600380546111da9061196a565b9050116111f65760405180602001604052806000815250611243565b600361120185611336565b835461121790600160c01b900461ffff16611336565b61122084611336565b6040516020016112339493929190611ca4565b6040516020818303038152906040525b949350505050565b6000546001600160a01b031633146112755760405162461bcd60e51b81526004016106cf906119a4565b6001600160a01b0381166112da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cf565b6112e3816112e6565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608160000361135d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611387578061137181611d5f565b91506113809050600a83611c74565b9150611361565b60008167ffffffffffffffff8111156113a2576113a261184e565b6040519080825280601f01601f1916602001820160405280156113cc576020820181803683370190505b5090505b8415611243576113e1600183611b95565b91506113ee600a86611d78565b6113f9906030611c19565b60f81b81838151811061140e5761140e611b15565b60200101906001600160f81b031916908160001a905350611430600a86611c74565b94506113d0565b60006020828403121561144957600080fd5b81356001600160e01b03198116811461146157600080fd5b9392505050565b60005b8381101561148357818101518382015260200161146b565b50506000910152565b60208152600082518060208401526114ab816040850160208701611468565b601f01601f19169190910160400192915050565b6000602082840312156114d157600080fd5b5035919050565b80356001600160a01b03811681146114ef57600080fd5b919050565b6000806040838503121561150757600080fd5b611510836114d8565b946020939093013593505050565b60008083601f84011261153057600080fd5b50813567ffffffffffffffff81111561154857600080fd5b60208301915083602082850101111561156057600080fd5b9250929050565b60008060008060006080868803121561157f57600080fd5b611588866114d8565b9450611596602087016114d8565b935060408601359250606086013567ffffffffffffffff8111156115b957600080fd5b6115c58882890161151e565b969995985093965092949392505050565b803580151581146114ef57600080fd5b600080604083850312156115f957600080fd5b611602836114d8565b9150611610602084016115d6565b90509250929050565b60006020828403121561162b57600080fd5b611461826114d8565b60008060006060848603121561164957600080fd5b611652846114d8565b9250611660602085016114d8565b9150604084013590509250925092565b6000806020838503121561168357600080fd5b823567ffffffffffffffff81111561169a57600080fd5b6116a68582860161151e565b90969095509350505050565b6000602082840312156116c457600080fd5b611461826115d6565b60008083601f8401126116df57600080fd5b50813567ffffffffffffffff8111156116f757600080fd5b6020830191508360208260051b850101111561156057600080fd5b6000806020838503121561172557600080fd5b823567ffffffffffffffff81111561173c57600080fd5b6116a6858286016116cd565b6000806000806000806060878903121561176157600080fd5b863567ffffffffffffffff8082111561177957600080fd5b6117858a838b016116cd565b9098509650602089013591508082111561179e57600080fd5b6117aa8a838b016116cd565b909650945060408901359150808211156117c357600080fd5b506117d089828a0161151e565b979a9699509497509295939492505050565b600080600080604085870312156117f857600080fd5b843567ffffffffffffffff8082111561181057600080fd5b61181c888389016116cd565b9096509450602087013591508082111561183557600080fd5b50611842878288016116cd565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561187a57600080fd5b611883856114d8565b9350611891602086016114d8565b925060408501359150606085013567ffffffffffffffff808211156118b557600080fd5b818701915087601f8301126118c957600080fd5b8135818111156118db576118db61184e565b604051601f8201601f19908116603f011681019083821181831017156119035761190361184e565b816040528281528a602084870101111561191c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561195357600080fd5b61195c836114d8565b9150611610602084016114d8565b600181811c9082168061197e57607f821691505b60208210810361199e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561078657600081815260208120601f850160051c81016020861015611a005750805b601f850160051c820191505b81811015611a1f57828155600101611a0c565b505050505050565b67ffffffffffffffff831115611a3f57611a3f61184e565b611a5383611a4d835461196a565b836119d9565b6000601f841160018114611a875760008515611a6f5750838201355b600019600387901b1c1916600186901b178355611ae1565b600083815260209020601f19861690835b82811015611ab85786850135825560209485019460019092019101611a98565b5086821015611ad55760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b600081611b0d57611b0d611ae8565b506000190190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b81835260006001600160fb1b03831115611b6857600080fd5b8260051b80836020870137939093016020019392505050565b602081526000611243602083018486611b4f565b818103818111156105f8576105f8611ae8565b6001600160a01b0388168152608060208201819052600090611bcd908301888a611b4f565b8281036040840152611be0818789611b4f565b90508281036060840152838152838560208301376000602085830101526020601f19601f86011682010191505098975050505050505050565b808201808211156105f8576105f8611ae8565b604081526000611c40604083018688611b4f565b8281036020840152611c53818587611b4f565b979650505050505050565b634e487b7160e01b600052601260045260246000fd5b600082611c8357611c83611c5e565b500490565b60008151611c9a818560208601611468565b9290920192915050565b6000808654611cb28161196a565b60018281168015611cca5760018114611cdf57611d0e565b60ff1984168752821515830287019450611d0e565b8a60005260208060002060005b85811015611d055781548a820152908401908201611cec565b50505082870194505b5088519250611d21838560208c01611468565b602f60f81b938301938452611d51611d4b611d3e8387018b611c88565b602f60f81b815260010190565b88611c88565b9a9950505050505050505050565b600060018201611d7157611d71611ae8565b5060010190565b600082611d8757611d87611c5e565b50069056fea264697066735822122084a975c4786c01b70888a5432ba2a5260dfe0172afc5b8f51741c9e4cdb71d6564736f6c63430008100033000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c500000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db0000000000000000000000000000000000000000000000000000000000278d00

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102115760003560e01c80636c0360eb11610125578063b1a8adfd116100ad578063d5a44f861161007c578063d5a44f86146104c6578063dc39f58314610539578063e985e9c51461055c578063f2fde38b14610572578063f93742841461058557600080fd5b8063b1a8adfd1461046b578063b77a2c1c1461047e578063b88d4fde146104a5578063c87b56dd146104b357600080fd5b80638da5cb5b116100f45780638da5cb5b1461041e57806395d89b411461042f5780639c87e0a814610437578063a22cb4651461044a578063b0297e681461045857600080fd5b80636c0360eb146103d457806370a08231146103dc578063715018a6146103ef5780637670f7dd146103f757600080fd5b8063233a095d116101a857806342842e0e1161017757806342842e0e146103295780634c7cecdd1461037857806355f804b31461039b5780636352211e146103ae57806369805981146103c157600080fd5b8063233a095d1461030657806323b872dd1461032957806327e235e3146103375780633a6462e41461036557600080fd5b8063150b7a02116101e4578063150b7a02146102945780631a91ca5f146102cc5780631cfff51b146102df578063220cce97146102f357600080fd5b806301ffc9a71461021657806306fdde031461023e578063081812fc14610253578063095ea7b31461027f575b600080fd5b610229610224366004611437565b6105ac565b60405190151581526020015b60405180910390f35b6102466105fe565b604051610235919061148c565b6102676102613660046114bf565b50600090565b6040516001600160a01b039091168152602001610235565b61029261028d3660046114f4565b61068c565b005b6102b36102a2366004611567565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610235565b6102926102da3660046115e6565b6106a5565b60045461022990600160a01b900460ff1681565b600454610267906001600160a01b031681565b610229610314366004611619565b60056020526000908152604090205460ff1681565b61029261028d366004611634565b610357610345366004611619565b60076020526000908152604090205481565b604051908152602001610235565b610292610373366004611619565b610703565b6102296103863660046114bf565b60096020526000908152604090205460ff1681565b6102926103a9366004611670565b61074f565b6102676103bc3660046114bf565b61078b565b6102926103cf3660046116b2565b6107c9565b610246610811565b6103576103ea366004611619565b61081e565b610292610865565b6102677f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db81565b6000546001600160a01b0316610267565b61024661089b565b610292610445366004611712565b6108a8565b61029261028d3660046115e6565b610292610466366004611748565b610ade565b6102926104793660046117e2565b610e0f565b6103577f0000000000000000000000000000000000000000000000000000000000278d0081565b61029261028d366004611864565b6102466104c13660046114bf565b61114c565b61050b6104d43660046114bf565b60066020526000908152604090205463ffffffff81169064010000000081046001600160a01b031690600160c01b900461ffff1683565b6040805163ffffffff90941684526001600160a01b03909216602084015261ffff1690820152606001610235565b6102296105473660046114bf565b60086020526000908152604090205460ff1681565b61022961056a366004611940565b600092915050565b610292610580366004611619565b61124b565b6102677f000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c581565b60006301ffc9a760e01b6001600160e01b0319831614806105dd57506380ac58cd60e01b6001600160e01b03198316145b806105f85750635b5e139f60e01b6001600160e01b03198316145b92915050565b6001805461060b9061196a565b80601f01602080910402602001604051908101604052809291908181526020018280546106379061196a565b80156106845780601f1061065957610100808354040283529160200191610684565b820191906000526020600020905b81548152906001019060200180831161066757829003601f168201915b505050505081565b604051638cd22d1960e01b815260040160405180910390fd5b6000546001600160a01b031633146106d85760405162461bcd60e51b81526004016106cf906119a4565b60405180910390fd5b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331461072d5760405162461bcd60e51b81526004016106cf906119a4565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146107795760405162461bcd60e51b81526004016106cf906119a4565b6003610786828483611a27565b505050565b60008181526006602052604081205464010000000090046001600160a01b0316806105f857604051634a1850bf60e11b815260040160405180910390fd5b6000546001600160a01b031633146107f35760405162461bcd60e51b81526004016106cf906119a4565b60048054911515600160a01b0260ff60a01b19909216919091179055565b6003805461060b9061196a565b60006001600160a01b038216610847576040516349e27cff60e01b815260040160405180910390fd5b6001600160a01b0382166000908152600760205260409020546105f8565b6000546001600160a01b0316331461088f5760405162461bcd60e51b81526004016106cf906119a4565b61089960006112e6565b565b6002805461060b9061196a565b805b801561078657806108ba81611afe565b91505060008383838181106108d1576108d1611b15565b6020908102929092013560008181526006909352604090922080549293509164010000000081046001600160a01b03169150600160c01b900461ffff1633821461092e57604051630247f98760e21b815260040160405180910390fd5b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c516906323b872dd9061097e90309086908990600401611b2b565b600060405180830381600087803b15801561099857600080fd5b505af11580156109ac573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db1692506323b872dd9150610a0090309086908690600401611b2b565b600060405180830381600087803b158015610a1a57600080fd5b505af1158015610a2e573d6000803e3d6000fd5b505050600085815260066020908152604080832080546001600160d01b0319169055338352600790915281208054925090610a6883611afe565b9091555050604051849060009033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a47fd90b6871e10d10527628d7db274a247aceb435c06bb8fa0aa68653ce53291a868787604051610acd929190611b81565b60405180910390a1505050506108aa565b845b8015610d3f5780610af081611afe565b9150506000878783818110610b0757610b07611b15565b6020908102929092013560008181526006909352604090922080549293509164010000000081046001600160a01b03169150600160c01b900461ffff16338214610b6457604051630247f98760e21b815260040160405180910390fd5b82547f0000000000000000000000000000000000000000000000000000000000278d0090610b989063ffffffff1642611b95565b1015610bb7576040516317f5db8160e21b815260040160405180910390fd5b60008481526008602090815260408083208054600160ff19918216811790925585855260099093529281902080549092169092179055516323b872dd60e01b81527f000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c56001600160a01b0316906323b872dd90610c3b90309086908990600401611b2b565b600060405180830381600087803b158015610c5557600080fd5b505af1158015610c69573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db1692506323b872dd9150610cbd90309086908690600401611b2b565b600060405180830381600087803b158015610cd757600080fd5b505af1158015610ceb573d6000803e3d6000fd5b50505060008581526006602052604080822080546001600160d01b03191690555186925033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450505050610ae0565b6004805460405163948be0b760e01b81526001600160a01b039091169163948be0b791610d7a9133918c918c918c918c918c918c9101611ba8565b600060405180830381600087803b158015610d9457600080fd5b505af1158015610da8573d6000803e3d6000fd5b5050336000908152600760205260408120805493509150610dc883611afe565b91905055507f093b2fdae59d3cc88c80e5138c5a19bd5b124cbe1e029e8accc0f22cebf663598787604051610dfe929190611b81565b60405180910390a150505050505050565b600454600160a01b900460ff16158015610e3957503360009081526005602052604090205460ff16155b15610e575760405163a3df9bcf60e01b815260040160405180910390fd5b82818114610e785760405163512509d360e11b815260040160405180910390fd5b33600090815260076020526040812080544292849291610e99908490611c19565b90915550505b81156111075781610eaf81611afe565b9250506000868684818110610ec657610ec6611b15565b9050602002013590506000858585818110610ee357610ee3611b15565b6000858152600860209081526040909120549102929092013592505060ff1615610f205760405163b29526b960e01b815260040160405180910390fd5b60008181526009602052604090205460ff1615610f5057604051630f05b4b760e21b815260040160405180910390fd5b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c516906323b872dd90610fa090339030908790600401611b2b565b600060405180830381600087803b158015610fba57600080fd5b505af1158015610fce573d6000803e3d6000fd5b50506040516323b872dd60e01b81526001600160a01b037f00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db1692506323b872dd915061102290339030908690600401611b2b565b600060405180830381600087803b15801561103c57600080fd5b505af1158015611050573d6000803e3d6000fd5b50506040805160608101825263ffffffff808816825233602080840182815261ffff808a1686880190815260008c815260069094528784209651875493519151909216600160c01b0261ffff60c01b196001600160a01b0392909216640100000000026001600160c01b0319909416929096169190911791909117169290921790925591518694509092507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050610e9f565b7fd2436ac77f70eae6168f03096ccefa5f53e642ab7305e538cf082cdf6a34ddd78686868660405161113c9493929190611c2c565b60405180910390a1505050505050565b60008181526006602052604090205460609064010000000090046001600160a01b031661118c57604051634a1850bf60e11b815260040160405180910390fd5b6000828152600660205260408120805490919062015180906111b49063ffffffff1642611b95565b6111be9190611c74565b6111c9906001611c19565b90506000600380546111da9061196a565b9050116111f65760405180602001604052806000815250611243565b600361120185611336565b835461121790600160c01b900461ffff16611336565b61122084611336565b6040516020016112339493929190611ca4565b6040516020818303038152906040525b949350505050565b6000546001600160a01b031633146112755760405162461bcd60e51b81526004016106cf906119a4565b6001600160a01b0381166112da5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cf565b6112e3816112e6565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608160000361135d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611387578061137181611d5f565b91506113809050600a83611c74565b9150611361565b60008167ffffffffffffffff8111156113a2576113a261184e565b6040519080825280601f01601f1916602001820160405280156113cc576020820181803683370190505b5090505b8415611243576113e1600183611b95565b91506113ee600a86611d78565b6113f9906030611c19565b60f81b81838151811061140e5761140e611b15565b60200101906001600160f81b031916908160001a905350611430600a86611c74565b94506113d0565b60006020828403121561144957600080fd5b81356001600160e01b03198116811461146157600080fd5b9392505050565b60005b8381101561148357818101518382015260200161146b565b50506000910152565b60208152600082518060208401526114ab816040850160208701611468565b601f01601f19169190910160400192915050565b6000602082840312156114d157600080fd5b5035919050565b80356001600160a01b03811681146114ef57600080fd5b919050565b6000806040838503121561150757600080fd5b611510836114d8565b946020939093013593505050565b60008083601f84011261153057600080fd5b50813567ffffffffffffffff81111561154857600080fd5b60208301915083602082850101111561156057600080fd5b9250929050565b60008060008060006080868803121561157f57600080fd5b611588866114d8565b9450611596602087016114d8565b935060408601359250606086013567ffffffffffffffff8111156115b957600080fd5b6115c58882890161151e565b969995985093965092949392505050565b803580151581146114ef57600080fd5b600080604083850312156115f957600080fd5b611602836114d8565b9150611610602084016115d6565b90509250929050565b60006020828403121561162b57600080fd5b611461826114d8565b60008060006060848603121561164957600080fd5b611652846114d8565b9250611660602085016114d8565b9150604084013590509250925092565b6000806020838503121561168357600080fd5b823567ffffffffffffffff81111561169a57600080fd5b6116a68582860161151e565b90969095509350505050565b6000602082840312156116c457600080fd5b611461826115d6565b60008083601f8401126116df57600080fd5b50813567ffffffffffffffff8111156116f757600080fd5b6020830191508360208260051b850101111561156057600080fd5b6000806020838503121561172557600080fd5b823567ffffffffffffffff81111561173c57600080fd5b6116a6858286016116cd565b6000806000806000806060878903121561176157600080fd5b863567ffffffffffffffff8082111561177957600080fd5b6117858a838b016116cd565b9098509650602089013591508082111561179e57600080fd5b6117aa8a838b016116cd565b909650945060408901359150808211156117c357600080fd5b506117d089828a0161151e565b979a9699509497509295939492505050565b600080600080604085870312156117f857600080fd5b843567ffffffffffffffff8082111561181057600080fd5b61181c888389016116cd565b9096509450602087013591508082111561183557600080fd5b50611842878288016116cd565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561187a57600080fd5b611883856114d8565b9350611891602086016114d8565b925060408501359150606085013567ffffffffffffffff808211156118b557600080fd5b818701915087601f8301126118c957600080fd5b8135818111156118db576118db61184e565b604051601f8201601f19908116603f011681019083821181831017156119035761190361184e565b816040528281528a602084870101111561191c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561195357600080fd5b61195c836114d8565b9150611610602084016114d8565b600181811c9082168061197e57607f821691505b60208210810361199e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561078657600081815260208120601f850160051c81016020861015611a005750805b601f850160051c820191505b81811015611a1f57828155600101611a0c565b505050505050565b67ffffffffffffffff831115611a3f57611a3f61184e565b611a5383611a4d835461196a565b836119d9565b6000601f841160018114611a875760008515611a6f5750838201355b600019600387901b1c1916600186901b178355611ae1565b600083815260209020601f19861690835b82811015611ab85786850135825560209485019460019092019101611a98565b5086821015611ad55760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b600081611b0d57611b0d611ae8565b506000190190565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b81835260006001600160fb1b03831115611b6857600080fd5b8260051b80836020870137939093016020019392505050565b602081526000611243602083018486611b4f565b818103818111156105f8576105f8611ae8565b6001600160a01b0388168152608060208201819052600090611bcd908301888a611b4f565b8281036040840152611be0818789611b4f565b90508281036060840152838152838560208301376000602085830101526020601f19601f86011682010191505098975050505050505050565b808201808211156105f8576105f8611ae8565b604081526000611c40604083018688611b4f565b8281036020840152611c53818587611b4f565b979650505050505050565b634e487b7160e01b600052601260045260246000fd5b600082611c8357611c83611c5e565b500490565b60008151611c9a818560208601611468565b9290920192915050565b6000808654611cb28161196a565b60018281168015611cca5760018114611cdf57611d0e565b60ff1984168752821515830287019450611d0e565b8a60005260208060002060005b85811015611d055781548a820152908401908201611cec565b50505082870194505b5088519250611d21838560208c01611468565b602f60f81b938301938452611d51611d4b611d3e8387018b611c88565b602f60f81b815260010190565b88611c88565b9a9950505050505050505050565b600060018201611d7157611d71611ae8565b5060010190565b600082611d8757611d87611c5e565b50069056fea264697066735822122084a975c4786c01b70888a5432ba2a5260dfe0172afc5b8f51741c9e4cdb71d6564736f6c63430008100033

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

000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c500000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db0000000000000000000000000000000000000000000000000000000000278d00

-----Decoded View---------------
Arg [0] : killaBearsAddress (address): 0xc99c679C50033Bbc5321EB88752E89a93e9e83C5
Arg [1] : killaBitsAddress (address): 0x64a1C0937728d8d2fA8Cd81Ef61a9c860B7362Db
Arg [2] : _stakeTime (uint256): 2592000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c99c679c50033bbc5321eb88752e89a93e9e83c5
Arg [1] : 00000000000000000000000064a1c0937728d8d2fa8cd81ef61a9c860b7362db
Arg [2] : 0000000000000000000000000000000000000000000000000000000000278d00


Loading...
Loading
Loading...
Loading
[ 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.