ERC-721
Overview
Max Total Supply
0 F2O
Holders
87
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 F2OLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Free2Own
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15; import "solmate/src/tokens/ERC721.sol"; import "solmate/src/auth/Owned.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import {SBC} from "./SBC.sol"; import {STAKEABLE} from "./STAKEABLE.sol"; contract Free2Own is ERC721, Owned { using Strings for uint256; uint256 public constant COST_TO_COMBINEABLE = 1000 ether; uint256 public constant MAX_TOKENS = 100; uint256 public currentTokenId; address public sbc; address public stakeable; mapping(address => bool) public addressHasMinted; mapping(uint256 => uint256) public tokenLevel; constructor() ERC721("Free2Own", "F2O") Owned(msg.sender) {} function setContracts(address _sbc, address _stakeable) external onlyOwner { sbc = _sbc; stakeable = _stakeable; } function mint() external { require( !addressHasMinted[msg.sender], "only 1 free2own per address, sorry pal" ); require(currentTokenId < MAX_TOKENS, "no more available, sorry pal"); ++currentTokenId; addressHasMinted[msg.sender] = true; _mint(msg.sender, currentTokenId); STAKEABLE(stakeable).stakeF2O(currentTokenId); } // // 🔥 BURNABLE // function burn(uint256 id) external { require( ownerOf(id) == msg.sender, "you don't own this free to own nft, sorry pal" ); _burn(id); } // // 👨👩👧👦 COMBINEABLE // function combine(uint256 tokenIdToBurn, uint256 tokenIdToLevelUp) external { require( ownerOf(tokenIdToBurn) == msg.sender, "you don't own this free to own nft, sorry pal" ); require( ownerOf(tokenIdToLevelUp) == msg.sender, "you don't own this free to own nft, sorry pal" ); uint256 newLevel = tokenLevel[tokenIdToLevelUp] + tokenLevel[tokenIdToBurn] + 1; SBC(sbc).burn(msg.sender, COST_TO_COMBINEABLE * newLevel); _burn(tokenIdToBurn); tokenLevel[tokenIdToLevelUp] = newLevel; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { bytes memory dataURI = abi.encodePacked( "{", '"name": "Free2Own #', tokenId.toString(), '",', '"description": "Battles on chain",', '"image": "', imageURI(tokenId), '",', '"attributes": [', '{"trait_type": "Level", "value": ', tokenLevel[tokenId].toString(), "}", "]", "}" ); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode(dataURI) ) ); } string public imageBaseURI; string public imageURISuffix; bool public sameImage; function setImageBaseURI( string memory _imageBaseURI, string memory _imageURISuffix, bool _sameImage ) external onlyOwner { imageBaseURI = _imageBaseURI; imageURISuffix = _imageURISuffix; sameImage = _sameImage; } function imageURI(uint256 tokenId) public view returns (string memory) { if (sameImage) { return imageBaseURI; } return string.concat(imageBaseURI, tokenId.toString(), imageURISuffix); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15; import "solmate/src/tokens/ERC20.sol"; contract SBC is ERC20 { mapping(address => bool) public owners; modifier onlyOwner() { require(owners[msg.sender], "try OWNING it's FREE"); _; } constructor() ERC20("SBC", "SBC", 18) { owners[msg.sender] = true; } function setOwner(address _owner, bool _isOwner) external onlyOwner { owners[_owner] = _isOwner; } function mint(address to, uint256 amount) external onlyOwner { _mint(to, amount); } function burn(address from, uint256 amount) external onlyOwner { _burn(from, amount); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15; import "solmate/src/auth/Owned.sol"; import "solmate/src/tokens/ERC20.sol"; import "solmate/src/tokens/ERC721.sol"; import "solmate/src/utils/ReentrancyGuard.sol"; import {Free2Own} from "./Free2Own.sol"; import {SBC} from "./SBC.sol"; contract STAKEABLE is Owned, ReentrancyGuard { event COLLECTED( address indexed owner, uint256 indexed tokenId, uint256 amount ); struct Stake { uint256 tokenId; uint256 timestamp; } uint256 public constant DAILY_OWNER_REWARD = 1000 ether; address public f2o; address public sbc; mapping(uint256 => Stake) public stakes; constructor(address _f2o, address _sbc) Owned(msg.sender) { f2o = _f2o; sbc = _sbc; } /// WHEN YOU ARE OWNABLE AND STAKEABLE, GOOD THINGS HAPPEN /// function getCurrentSBC(uint256 tokenId) public view returns (uint256 earned) { Stake memory stake = stakes[tokenId]; require(stake.tokenId == tokenId, "not very STAKEABLE of you"); if (stake.timestamp == 0) { earned = 0; } else { earned = ((block.timestamp - stake.timestamp) * DAILY_OWNER_REWARD) / 1 days; } return earned; } function stakeF2O(uint256 tokenId) external { require(msg.sender == f2o, "only OWNERS can STAKEABLE"); stakes[tokenId] = Stake({tokenId: tokenId, timestamp: block.timestamp}); } function collectSBC(uint256[] calldata tokenIds) external nonReentrant { uint256 reward; for (uint256 idx; idx < tokenIds.length; ++idx) { reward += _collectSBC(msg.sender, tokenIds[idx]); } if (reward > 0) { SBC(sbc).mint(msg.sender, reward); } } /// ONLY OWNERS LOOK BEYOND THIS POINT /// function _collectSBC(address account, uint256 tokenId) internal returns (uint256 earned) { // Validate ownership. require( Free2Own(f2o).ownerOf(tokenId) == account, "have you not listened about OWNING" ); earned = getCurrentSBC(tokenId); Stake storage stake = stakes[tokenId]; stake.timestamp = block.timestamp; if (earned > 0) { emit COLLECTED(account, tokenId, earned); } return earned; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Gas optimized reentrancy protection for smart contracts. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol) /// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol) abstract contract ReentrancyGuard { uint256 private locked = 1; modifier nonReentrant() virtual { require(locked == 1, "REENTRANCY"); locked = 2; _; locked = 1; } }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COST_TO_COMBINEABLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressHasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdToBurn","type":"uint256"},{"internalType":"uint256","name":"tokenIdToLevelUp","type":"uint256"}],"name":"combine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"imageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sameImage","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sbc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sbc","type":"address"},{"internalType":"address","name":"_stakeable","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageBaseURI","type":"string"},{"internalType":"string","name":"_imageURISuffix","type":"string"},{"internalType":"bool","name":"_sameImage","type":"bool"}],"name":"setImageBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeable","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":"","type":"uint256"}],"name":"tokenLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b503360405180604001604052806008815260200167233932b29927bbb760c11b8152506040518060400160405280600381526020016246324f60e81b81525081600090816200006191906200016a565b5060016200007082826200016a565b5050600680546001600160a01b0319166001600160a01b0384169081179091556040519091506000907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a35062000236565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000f057607f821691505b6020821081036200011157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200016557600081815260208120601f850160051c81016020861015620001405750805b601f850160051c820191505b8181101562000161578281556001016200014c565b5050505b505050565b81516001600160401b03811115620001865762000186620000c5565b6200019e81620001978454620000db565b8462000117565b602080601f831160018114620001d65760008415620001bd5750858301515b600019600386901b1c1916600185901b17855562000161565b600085815260208120601f198616915b828110156200020757888601518255948401946001909101908401620001e6565b5085821015620002265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61218f80620002466000396000f3fe608060405234801561001057600080fd5b50600436106101e45760003560e01c80637ecee2961161010f578063ab8ece8b116100a2578063c87b56dd11610071578063c87b56dd1461041d578063d8952a4914610430578063e985e9c514610443578063f47c84c51461047157600080fd5b8063ab8ece8b146103ba578063b2a098d9146103da578063b88d4fde146103fd578063c34569121461041057600080fd5b80638f742d16116100de5780638f742d161461037957806395d89b411461038c578063a22cb46514610394578063a354422b146103a757600080fd5b80637ecee296146103305780638a50fecb146103405780638b4950c7146103535780638da5cb5b1461036657600080fd5b806313af4035116101875780636352211e116101565780636352211e146102ef57806370a082311461030257806375a776d614610315578063776458391461032857600080fd5b806313af4035146102a357806323b872dd146102b657806342842e0e146102c957806342966c68146102dc57600080fd5b806306fdde03116101c357806306fdde031461023d578063081812fc14610245578063095ea7b3146102865780631249c58b1461029b57600080fd5b80629a9b7b146101e957806301ffc9a71461020557806303de761a14610228575b600080fd5b6101f260075481565b6040519081526020015b60405180910390f35b610218610213366004611833565b610479565b60405190151581526020016101fc565b610230610516565b6040516101fc9190611883565b6102306105a4565b61026e6102533660046118b6565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fc565b6102996102943660046118e6565b6105b1565b005b6102996106b4565b6102996102b1366004611910565b610848565b6102996102c436600461192b565b6108fb565b6102996102d736600461192b565b610afd565b6102996102ea3660046118b6565b610c1b565b61026e6102fd3660046118b6565b610cad565b6101f2610310366004611910565b610d17565b60095461026e906001600160a01b031681565b610230610d8b565b6101f2683635c9adc5dea0000081565b61029961034e366004611967565b610d98565b60085461026e906001600160a01b031681565b60065461026e906001600160a01b031681565b6102306103873660046118b6565b610f72565b610230611047565b6102996103a2366004611999565b611054565b6102996103b5366004611a6f565b6110c0565b6101f26103c83660046118b6565b600b6020526000908152604090205481565b6102186103e8366004611910565b600a6020526000908152604090205460ff1681565b61029961040b366004611ae3565b611149565b600e546102189060ff1681565b61023061042b3660046118b6565b611257565b61029961043e366004611b7e565b6112d8565b610218610451366004611b7e565b600560209081526000928352604080842090915290825290205460ff1681565b6101f2606481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806104dc57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061051057507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600d805461052390611ba8565b80601f016020809104026020016040519081016040528092919081815260200182805461054f90611ba8565b801561059c5780601f106105715761010080835404028352916020019161059c565b820191906000526020600020905b81548152906001019060200180831161057f57829003601f168201915b505050505081565b6000805461052390611ba8565b6000818152600260205260409020546001600160a01b0316338114806105fa57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b61064b5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b600082815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b336000908152600a602052604090205460ff161561073a5760405162461bcd60e51b815260206004820152602660248201527f6f6e6c7920312066726565326f776e2070657220616464726573732c20736f7260448201527f72792070616c00000000000000000000000000000000000000000000000000006064820152608401610642565b60646007541061078c5760405162461bcd60e51b815260206004820152601c60248201527f6e6f206d6f726520617661696c61626c652c20736f7272792070616c000000006044820152606401610642565b60076000815461079b90611bf8565b90915550336000818152600a60205260409020805460ff191660011790556007546107c6919061136d565b6009546007546040517fe32684800000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163e3268480916108149160040190815260200190565b600060405180830381600087803b15801561082e57600080fd5b505af1158015610842573d6000803e3d6000fd5b50505050565b6006546001600160a01b031633146108a25760405162461bcd60e51b815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610642565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b6000818152600260205260409020546001600160a01b038481169116146109645760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d000000000000000000000000000000000000000000006044820152606401610642565b6001600160a01b0382166109ba5760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610642565b336001600160a01b03841614806109f457506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610a1557506000818152600460205260409020546001600160a01b031633145b610a615760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a45440000000000000000000000000000000000006044820152606401610642565b6001600160a01b03808416600081815260036020908152604080832080546000190190559386168083528483208054600101905585835260028252848320805473ffffffffffffffffffffffffffffffffffffffff199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b088383836108fb565b6001600160a01b0382163b1580610bca57506040517f150b7a02000000000000000000000000000000000000000000000000000000008082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbe9190611c12565b6001600160e01b031916145b610c165760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610642565b505050565b33610c2582610cad565b6001600160a01b031614610ca15760405162461bcd60e51b815260206004820152602d60248201527f796f7520646f6e2774206f776e2074686973206672656520746f206f776e206e60448201527f66742c20736f7272792070616c000000000000000000000000000000000000006064820152608401610642565b610caa816114a0565b50565b6000818152600260205260409020546001600160a01b031680610d125760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610642565b919050565b60006001600160a01b038216610d6f5760405162461bcd60e51b815260206004820152600c60248201527f5a45524f5f4144445245535300000000000000000000000000000000000000006044820152606401610642565b506001600160a01b031660009081526003602052604090205490565b600c805461052390611ba8565b33610da283610cad565b6001600160a01b031614610e1e5760405162461bcd60e51b815260206004820152602d60248201527f796f7520646f6e2774206f776e2074686973206672656520746f206f776e206e60448201527f66742c20736f7272792070616c000000000000000000000000000000000000006064820152608401610642565b33610e2882610cad565b6001600160a01b031614610ea45760405162461bcd60e51b815260206004820152602d60248201527f796f7520646f6e2774206f776e2074686973206672656520746f206f776e206e60448201527f66742c20736f7272792070616c000000000000000000000000000000000000006064820152608401610642565b6000828152600b60205260408082205483835290822054610ec59190611c2f565b610ed0906001611c2f565b6008549091506001600160a01b0316639dc29fac33610ef884683635c9adc5dea00000611c47565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610f3e57600080fd5b505af1158015610f52573d6000803e3d6000fd5b50505050610f5f836114a0565b6000918252600b60205260409091205550565b600e5460609060ff161561101257600c8054610f8d90611ba8565b80601f0160208091040260200160405190810160405280929190818152602001828054610fb990611ba8565b80156110065780601f10610fdb57610100808354040283529160200191611006565b820191906000526020600020905b815481529060010190602001808311610fe957829003601f168201915b50505050509050919050565b600c61101d8361158d565b600d60405160200161103193929190611cf5565b6040516020818303038152906040529050919050565b6001805461052390611ba8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b0316331461111a5760405162461bcd60e51b815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610642565b600c6111268482611d76565b50600d6111338382611d76565b50600e805460ff19169115159190911790555050565b6111548585856108fb565b6001600160a01b0384163b158061120457506040517f150b7a0200000000000000000000000000000000000000000000000000000000808252906001600160a01b0386169063150b7a02906111b59033908a90899089908990600401611e36565b6020604051808303816000875af11580156111d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f89190611c12565b6001600160e01b031916145b6112505760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610642565b5050505050565b606060006112648361158d565b61126d84610f72565b6000858152600b60205260409020546112859061158d565b60405160200161129793929190611e8a565b60405160208183030381529060405290506112b1816116ca565b6040516020016112c19190612069565b604051602081830303815290604052915050919050565b6006546001600160a01b031633146113325760405162461bcd60e51b815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610642565b600880546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560098054929093169116179055565b6001600160a01b0382166113c35760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610642565b6000818152600260205260409020546001600160a01b0316156114285760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f4d494e5445440000000000000000000000000000000000006044820152606401610642565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260409020546001600160a01b0316806115055760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610642565b6001600160a01b0381166000818152600360209081526040808320805460001901905585835260028252808320805473ffffffffffffffffffffffffffffffffffffffff1990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060816000036115d057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156115fa57806115e481611bf8565b91506115f39050600a836120c4565b91506115d4565b60008167ffffffffffffffff811115611615576116156119cc565b6040519080825280601f01601f19166020018201604052801561163f576020820181803683370190505b5090505b84156116c2576116546001836120d8565b9150611661600a866120ef565b61166c906030611c2f565b60f81b81838151811061168157611681612103565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506116bb600a866120c4565b9450611643565b949350505050565b606081516000036116e957505060408051602081019091526000815290565b600060405180606001604052806040815260200161211a60409139905060006003845160026117189190611c2f565b61172291906120c4565b61172d906004611c47565b67ffffffffffffffff811115611745576117456119cc565b6040519080825280601f01601f19166020018201604052801561176f576020820181803683370190505b509050600182016020820185865187015b808210156117db576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611780565b50506003865106600181146117f7576002811461180a57611812565b603d6001830353603d6002830353611812565b603d60018303535b509195945050505050565b6001600160e01b031981168114610caa57600080fd5b60006020828403121561184557600080fd5b81356118508161181d565b9392505050565b60005b8381101561187257818101518382015260200161185a565b838111156108425750506000910152565b60208152600082518060208401526118a2816040850160208701611857565b601f01601f19169190910160400192915050565b6000602082840312156118c857600080fd5b5035919050565b80356001600160a01b0381168114610d1257600080fd5b600080604083850312156118f957600080fd5b611902836118cf565b946020939093013593505050565b60006020828403121561192257600080fd5b611850826118cf565b60008060006060848603121561194057600080fd5b611949846118cf565b9250611957602085016118cf565b9150604084013590509250925092565b6000806040838503121561197a57600080fd5b50508035926020909101359150565b80358015158114610d1257600080fd5b600080604083850312156119ac57600080fd5b6119b5836118cf565b91506119c360208401611989565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126119f357600080fd5b813567ffffffffffffffff80821115611a0e57611a0e6119cc565b604051601f8301601f19908116603f01168101908282118183101715611a3657611a366119cc565b81604052838152866020858801011115611a4f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215611a8457600080fd5b833567ffffffffffffffff80821115611a9c57600080fd5b611aa8878388016119e2565b94506020860135915080821115611abe57600080fd5b50611acb868287016119e2565b925050611ada60408501611989565b90509250925092565b600080600080600060808688031215611afb57600080fd5b611b04866118cf565b9450611b12602087016118cf565b935060408601359250606086013567ffffffffffffffff80821115611b3657600080fd5b818801915088601f830112611b4a57600080fd5b813581811115611b5957600080fd5b896020828501011115611b6b57600080fd5b9699959850939650602001949392505050565b60008060408385031215611b9157600080fd5b611b9a836118cf565b91506119c3602084016118cf565b600181811c90821680611bbc57607f821691505b602082108103611bdc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198203611c0b57611c0b611be2565b5060010190565b600060208284031215611c2457600080fd5b81516118508161181d565b60008219821115611c4257611c42611be2565b500190565b6000816000190483118215151615611c6157611c61611be2565b500290565b60008154611c7381611ba8565b60018281168015611c8b5760018114611ca057611ccf565b60ff1984168752821515830287019450611ccf565b8560005260208060002060005b85811015611cc65781548a820152908401908201611cad565b50505082870194505b5050505092915050565b60008151611ceb818560208601611857565b9290920192915050565b6000611d018286611c66565b8451611d11818360208901611857565b611d1d81830186611c66565b979650505050505050565b601f821115610c1657600081815260208120601f850160051c81016020861015611d4f5750805b601f850160051c820191505b81811015611d6e57828155600101611d5b565b505050505050565b815167ffffffffffffffff811115611d9057611d906119cc565b611da481611d9e8454611ba8565b84611d28565b602080601f831160018114611dd95760008415611dc15750858301515b600019600386901b1c1916600185901b178555611d6e565b600085815260208120601f198616915b82811015611e0857888601518255948401946001909101908401611de9565b5085821015611e265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a202246726565324f776e202300000000000000000000000000600182015260008451611ee8816014850160208901611857565b80830190507f222c0000000000000000000000000000000000000000000000000000000000008060148301527f226465736372697074696f6e223a2022426174746c6573206f6e20636861696e60168301528060368301527f22696d616765223a20220000000000000000000000000000000000000000000060388301528551611f79816042850160208a01611857565b60429201918201527f2261747472696275746573223a205b0000000000000000000000000000000000604482015261205f61200d61203681612007605386017f7b2274726169745f74797065223a20224c6576656c222c202276616c7565223a81527f2000000000000000000000000000000000000000000000000000000000000000602082015260210190565b88611cd9565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010190565b7f5d00000000000000000000000000000000000000000000000000000000000000815260010190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516120a181601d850160208701611857565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b6000826120d3576120d36120ae565b500490565b6000828210156120ea576120ea611be2565b500390565b6000826120fe576120fe6120ae565b500690565b634e487b7160e01b600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220b1e9aa8b54a967793ae6bd382a03a60448481e755d4f7973c1a10ee1b8bc3e3c64736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e45760003560e01c80637ecee2961161010f578063ab8ece8b116100a2578063c87b56dd11610071578063c87b56dd1461041d578063d8952a4914610430578063e985e9c514610443578063f47c84c51461047157600080fd5b8063ab8ece8b146103ba578063b2a098d9146103da578063b88d4fde146103fd578063c34569121461041057600080fd5b80638f742d16116100de5780638f742d161461037957806395d89b411461038c578063a22cb46514610394578063a354422b146103a757600080fd5b80637ecee296146103305780638a50fecb146103405780638b4950c7146103535780638da5cb5b1461036657600080fd5b806313af4035116101875780636352211e116101565780636352211e146102ef57806370a082311461030257806375a776d614610315578063776458391461032857600080fd5b806313af4035146102a357806323b872dd146102b657806342842e0e146102c957806342966c68146102dc57600080fd5b806306fdde03116101c357806306fdde031461023d578063081812fc14610245578063095ea7b3146102865780631249c58b1461029b57600080fd5b80629a9b7b146101e957806301ffc9a71461020557806303de761a14610228575b600080fd5b6101f260075481565b6040519081526020015b60405180910390f35b610218610213366004611833565b610479565b60405190151581526020016101fc565b610230610516565b6040516101fc9190611883565b6102306105a4565b61026e6102533660046118b6565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fc565b6102996102943660046118e6565b6105b1565b005b6102996106b4565b6102996102b1366004611910565b610848565b6102996102c436600461192b565b6108fb565b6102996102d736600461192b565b610afd565b6102996102ea3660046118b6565b610c1b565b61026e6102fd3660046118b6565b610cad565b6101f2610310366004611910565b610d17565b60095461026e906001600160a01b031681565b610230610d8b565b6101f2683635c9adc5dea0000081565b61029961034e366004611967565b610d98565b60085461026e906001600160a01b031681565b60065461026e906001600160a01b031681565b6102306103873660046118b6565b610f72565b610230611047565b6102996103a2366004611999565b611054565b6102996103b5366004611a6f565b6110c0565b6101f26103c83660046118b6565b600b6020526000908152604090205481565b6102186103e8366004611910565b600a6020526000908152604090205460ff1681565b61029961040b366004611ae3565b611149565b600e546102189060ff1681565b61023061042b3660046118b6565b611257565b61029961043e366004611b7e565b6112d8565b610218610451366004611b7e565b600560209081526000928352604080842090915290825290205460ff1681565b6101f2606481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806104dc57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061051057507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600d805461052390611ba8565b80601f016020809104026020016040519081016040528092919081815260200182805461054f90611ba8565b801561059c5780601f106105715761010080835404028352916020019161059c565b820191906000526020600020905b81548152906001019060200180831161057f57829003601f168201915b505050505081565b6000805461052390611ba8565b6000818152600260205260409020546001600160a01b0316338114806105fa57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b61064b5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a454400000000000000000000000000000000000060448201526064015b60405180910390fd5b600082815260046020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b336000908152600a602052604090205460ff161561073a5760405162461bcd60e51b815260206004820152602660248201527f6f6e6c7920312066726565326f776e2070657220616464726573732c20736f7260448201527f72792070616c00000000000000000000000000000000000000000000000000006064820152608401610642565b60646007541061078c5760405162461bcd60e51b815260206004820152601c60248201527f6e6f206d6f726520617661696c61626c652c20736f7272792070616c000000006044820152606401610642565b60076000815461079b90611bf8565b90915550336000818152600a60205260409020805460ff191660011790556007546107c6919061136d565b6009546007546040517fe32684800000000000000000000000000000000000000000000000000000000081526001600160a01b039092169163e3268480916108149160040190815260200190565b600060405180830381600087803b15801561082e57600080fd5b505af1158015610842573d6000803e3d6000fd5b50505050565b6006546001600160a01b031633146108a25760405162461bcd60e51b815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610642565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b6000818152600260205260409020546001600160a01b038481169116146109645760405162461bcd60e51b815260206004820152600a60248201527f57524f4e475f46524f4d000000000000000000000000000000000000000000006044820152606401610642565b6001600160a01b0382166109ba5760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610642565b336001600160a01b03841614806109f457506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610a1557506000818152600460205260409020546001600160a01b031633145b610a615760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f415554484f52495a45440000000000000000000000000000000000006044820152606401610642565b6001600160a01b03808416600081815260036020908152604080832080546000190190559386168083528483208054600101905585835260028252848320805473ffffffffffffffffffffffffffffffffffffffff199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610b088383836108fb565b6001600160a01b0382163b1580610bca57506040517f150b7a02000000000000000000000000000000000000000000000000000000008082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610b9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbe9190611c12565b6001600160e01b031916145b610c165760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610642565b505050565b33610c2582610cad565b6001600160a01b031614610ca15760405162461bcd60e51b815260206004820152602d60248201527f796f7520646f6e2774206f776e2074686973206672656520746f206f776e206e60448201527f66742c20736f7272792070616c000000000000000000000000000000000000006064820152608401610642565b610caa816114a0565b50565b6000818152600260205260409020546001600160a01b031680610d125760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610642565b919050565b60006001600160a01b038216610d6f5760405162461bcd60e51b815260206004820152600c60248201527f5a45524f5f4144445245535300000000000000000000000000000000000000006044820152606401610642565b506001600160a01b031660009081526003602052604090205490565b600c805461052390611ba8565b33610da283610cad565b6001600160a01b031614610e1e5760405162461bcd60e51b815260206004820152602d60248201527f796f7520646f6e2774206f776e2074686973206672656520746f206f776e206e60448201527f66742c20736f7272792070616c000000000000000000000000000000000000006064820152608401610642565b33610e2882610cad565b6001600160a01b031614610ea45760405162461bcd60e51b815260206004820152602d60248201527f796f7520646f6e2774206f776e2074686973206672656520746f206f776e206e60448201527f66742c20736f7272792070616c000000000000000000000000000000000000006064820152608401610642565b6000828152600b60205260408082205483835290822054610ec59190611c2f565b610ed0906001611c2f565b6008549091506001600160a01b0316639dc29fac33610ef884683635c9adc5dea00000611c47565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610f3e57600080fd5b505af1158015610f52573d6000803e3d6000fd5b50505050610f5f836114a0565b6000918252600b60205260409091205550565b600e5460609060ff161561101257600c8054610f8d90611ba8565b80601f0160208091040260200160405190810160405280929190818152602001828054610fb990611ba8565b80156110065780601f10610fdb57610100808354040283529160200191611006565b820191906000526020600020905b815481529060010190602001808311610fe957829003601f168201915b50505050509050919050565b600c61101d8361158d565b600d60405160200161103193929190611cf5565b6040516020818303038152906040529050919050565b6001805461052390611ba8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b0316331461111a5760405162461bcd60e51b815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610642565b600c6111268482611d76565b50600d6111338382611d76565b50600e805460ff19169115159190911790555050565b6111548585856108fb565b6001600160a01b0384163b158061120457506040517f150b7a0200000000000000000000000000000000000000000000000000000000808252906001600160a01b0386169063150b7a02906111b59033908a90899089908990600401611e36565b6020604051808303816000875af11580156111d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f89190611c12565b6001600160e01b031916145b6112505760405162461bcd60e51b815260206004820152601060248201527f554e534146455f524543495049454e54000000000000000000000000000000006044820152606401610642565b5050505050565b606060006112648361158d565b61126d84610f72565b6000858152600b60205260409020546112859061158d565b60405160200161129793929190611e8a565b60405160208183030381529060405290506112b1816116ca565b6040516020016112c19190612069565b604051602081830303815290604052915050919050565b6006546001600160a01b031633146113325760405162461bcd60e51b815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610642565b600880546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff199182161790915560098054929093169116179055565b6001600160a01b0382166113c35760405162461bcd60e51b815260206004820152601160248201527f494e56414c49445f524543495049454e540000000000000000000000000000006044820152606401610642565b6000818152600260205260409020546001600160a01b0316156114285760405162461bcd60e51b815260206004820152600e60248201527f414c52454144595f4d494e5445440000000000000000000000000000000000006044820152606401610642565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260409020546001600160a01b0316806115055760405162461bcd60e51b815260206004820152600a60248201527f4e4f545f4d494e544544000000000000000000000000000000000000000000006044820152606401610642565b6001600160a01b0381166000818152600360209081526040808320805460001901905585835260028252808320805473ffffffffffffffffffffffffffffffffffffffff1990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6060816000036115d057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156115fa57806115e481611bf8565b91506115f39050600a836120c4565b91506115d4565b60008167ffffffffffffffff811115611615576116156119cc565b6040519080825280601f01601f19166020018201604052801561163f576020820181803683370190505b5090505b84156116c2576116546001836120d8565b9150611661600a866120ef565b61166c906030611c2f565b60f81b81838151811061168157611681612103565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506116bb600a866120c4565b9450611643565b949350505050565b606081516000036116e957505060408051602081019091526000815290565b600060405180606001604052806040815260200161211a60409139905060006003845160026117189190611c2f565b61172291906120c4565b61172d906004611c47565b67ffffffffffffffff811115611745576117456119cc565b6040519080825280601f01601f19166020018201604052801561176f576020820181803683370190505b509050600182016020820185865187015b808210156117db576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611780565b50506003865106600181146117f7576002811461180a57611812565b603d6001830353603d6002830353611812565b603d60018303535b509195945050505050565b6001600160e01b031981168114610caa57600080fd5b60006020828403121561184557600080fd5b81356118508161181d565b9392505050565b60005b8381101561187257818101518382015260200161185a565b838111156108425750506000910152565b60208152600082518060208401526118a2816040850160208701611857565b601f01601f19169190910160400192915050565b6000602082840312156118c857600080fd5b5035919050565b80356001600160a01b0381168114610d1257600080fd5b600080604083850312156118f957600080fd5b611902836118cf565b946020939093013593505050565b60006020828403121561192257600080fd5b611850826118cf565b60008060006060848603121561194057600080fd5b611949846118cf565b9250611957602085016118cf565b9150604084013590509250925092565b6000806040838503121561197a57600080fd5b50508035926020909101359150565b80358015158114610d1257600080fd5b600080604083850312156119ac57600080fd5b6119b5836118cf565b91506119c360208401611989565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126119f357600080fd5b813567ffffffffffffffff80821115611a0e57611a0e6119cc565b604051601f8301601f19908116603f01168101908282118183101715611a3657611a366119cc565b81604052838152866020858801011115611a4f57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215611a8457600080fd5b833567ffffffffffffffff80821115611a9c57600080fd5b611aa8878388016119e2565b94506020860135915080821115611abe57600080fd5b50611acb868287016119e2565b925050611ada60408501611989565b90509250925092565b600080600080600060808688031215611afb57600080fd5b611b04866118cf565b9450611b12602087016118cf565b935060408601359250606086013567ffffffffffffffff80821115611b3657600080fd5b818801915088601f830112611b4a57600080fd5b813581811115611b5957600080fd5b896020828501011115611b6b57600080fd5b9699959850939650602001949392505050565b60008060408385031215611b9157600080fd5b611b9a836118cf565b91506119c3602084016118cf565b600181811c90821680611bbc57607f821691505b602082108103611bdc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198203611c0b57611c0b611be2565b5060010190565b600060208284031215611c2457600080fd5b81516118508161181d565b60008219821115611c4257611c42611be2565b500190565b6000816000190483118215151615611c6157611c61611be2565b500290565b60008154611c7381611ba8565b60018281168015611c8b5760018114611ca057611ccf565b60ff1984168752821515830287019450611ccf565b8560005260208060002060005b85811015611cc65781548a820152908401908201611cad565b50505082870194505b5050505092915050565b60008151611ceb818560208601611857565b9290920192915050565b6000611d018286611c66565b8451611d11818360208901611857565b611d1d81830186611c66565b979650505050505050565b601f821115610c1657600081815260208120601f850160051c81016020861015611d4f5750805b601f850160051c820191505b81811015611d6e57828155600101611d5b565b505050505050565b815167ffffffffffffffff811115611d9057611d906119cc565b611da481611d9e8454611ba8565b84611d28565b602080601f831160018114611dd95760008415611dc15750858301515b600019600386901b1c1916600185901b178555611d6e565b600085815260208120601f198616915b82811015611e0857888601518255948401946001909101908401611de9565b5085821015611e265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006001600160a01b03808816835280871660208401525084604083015260806060830152826080830152828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b7f7b0000000000000000000000000000000000000000000000000000000000000081527f226e616d65223a202246726565324f776e202300000000000000000000000000600182015260008451611ee8816014850160208901611857565b80830190507f222c0000000000000000000000000000000000000000000000000000000000008060148301527f226465736372697074696f6e223a2022426174746c6573206f6e20636861696e60168301528060368301527f22696d616765223a20220000000000000000000000000000000000000000000060388301528551611f79816042850160208a01611857565b60429201918201527f2261747472696275746573223a205b0000000000000000000000000000000000604482015261205f61200d61203681612007605386017f7b2274726169745f74797065223a20224c6576656c222c202276616c7565223a81527f2000000000000000000000000000000000000000000000000000000000000000602082015260210190565b88611cd9565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010190565b7f5d00000000000000000000000000000000000000000000000000000000000000815260010190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516120a181601d850160208701611857565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b6000826120d3576120d36120ae565b500490565b6000828210156120ea576120ea611be2565b500390565b6000826120fe576120fe6120ae565b500690565b634e487b7160e01b600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220b1e9aa8b54a967793ae6bd382a03a60448481e755d4f7973c1a10ee1b8bc3e3c64736f6c634300080f0033
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.