Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
550
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
GoldenTicket
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /* * Telegram: https://t.me/GoldenTicket404 * Twitter: https://twitter.com/GoldenTicket404 * Website: https://goldenticket404.web.app */ import "./ERC404.sol"; contract GoldenTicket is ERC404("GoldenTicket", "GT", 10000, 18) {}
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "./Ownable.sol"; import "./ERC721Receiver.sol"; /// @notice ERC404 /// A gas-efficient, mixed ERC20 / ERC721 implementation /// with native liquidity and fractionalization. /// /// This is an experimental standard designed to integrate /// with pre-existing ERC20 / ERC721 support as smoothly as /// possible. /// /// @dev In order to support full functionality of ERC20 and ERC721 /// supply assumptions are made that slightly constraint usage. /// Ensure decimals are sufficiently large (standard 18 recommended) /// as ids are effectively encoded in the lowest range of amounts. /// /// NFTs are spent on ERC20 functions in a FILO queue, this is by /// design. /// abstract contract ERC404 is Ownable { // Events event ERC20Transfer( address indexed from, address indexed to, uint256 amount ); event Approval( address indexed owner, address indexed spender, uint256 amount ); event Transfer( address indexed from, address indexed to, uint256 indexed id ); event ERC721Approval( address indexed owner, address indexed spender, uint256 indexed id ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); // Errors error NotFound(); error AlreadyExists(); error InvalidRecipient(); error InvalidSender(); error UnsafeRecipient(); // Metadata /// @dev Token name string public name; /// @dev Token symbol string public symbol; /// @dev Decimals for fractional representation uint8 public immutable decimals; /// @dev Total supply in fractionalized representation uint256 public immutable totalSupply; /// @dev Current mint counter, monotonically increasing to ensure accurate ownership uint256 public minted; // Mappings /// @dev Balance of user in fractional representation mapping(address => uint256) public balanceOf; /// @dev Allowance of user in fractional representation mapping(address => mapping(address => uint256)) public allowance; /// @dev Approval in native representaion mapping(uint256 => address) public getApproved; /// @dev Approval for all in native representation mapping(address => mapping(address => bool)) public isApprovedForAll; /// @dev Owner of id in native representation mapping(uint256 => address) internal _ownerOf; /// @dev Array of owned ids in native representation mapping(address => uint256[]) internal _owned; /// @dev Tracks indices for the _owned mapping mapping(uint256 => uint256) internal _ownedIndex; /// @dev Addresses whitelisted from minting / burning for gas savings (pairs, routers, etc) mapping(address => bool) public whitelist; /// @dev Base for tokenURI string public baseTokenURI; // Constructor constructor( string memory _name, string memory _symbol, uint256 _totalNativeSupply, uint8 _decimals ) Ownable(msg.sender) { name = _name; symbol = _symbol; decimals = _decimals; totalSupply = _totalNativeSupply * (10 ** decimals); balanceOf[msg.sender] = _totalNativeSupply * (10 ** decimals); } /// @notice Initialization function to set pairs / etc /// saving gas by avoiding mint / burn on unnecessary targets function setWhitelist(address target, bool state) public onlyOwner { whitelist[target] = state; } /// @notice Function to find owner of a given native token function ownerOf(uint256 id) public view virtual returns (address owner) { owner = _ownerOf[id]; if (owner == address(0)) { revert NotFound(); } } /// @notice Function to initialize base tokenURI function setTokenURI(string memory _tokenURI) public onlyOwner { baseTokenURI = _tokenURI; } /// @notice Function to follow standards ERC721 metadata function tokenURI(uint256 id) public view virtual returns (string memory) { uint16 seed = uint16(bytes2(keccak256(abi.encodePacked(id)))); string memory image = seed == 0 ? "golden.png" : "poop.png"; return string.concat(baseTokenURI, image); } /// @notice Function for token approvals /// @dev This function assumes id / native if amount less than or equal to current max id function approve( address spender, uint256 amountOrId ) public virtual returns (bool) { if (amountOrId <= minted && amountOrId > 0) { address owner = _ownerOf[amountOrId]; if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) { revert Unauthorized(); } getApproved[amountOrId] = spender; emit Approval(owner, spender, amountOrId); } else { allowance[msg.sender][spender] = amountOrId; emit Approval(msg.sender, spender, amountOrId); } return true; } /// @notice Function native approvals function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } /// @notice Function for mixed transfers /// @dev This function assumes id / native if amount less than or equal to current max id function transferFrom( address from, address to, uint256 amountOrId ) public virtual { if (amountOrId <= minted) { if (from != _ownerOf[amountOrId]) { revert InvalidSender(); } if (to == address(0)) { revert InvalidRecipient(); } if ( msg.sender != from && !isApprovedForAll[from][msg.sender] && msg.sender != getApproved[amountOrId] ) { revert Unauthorized(); } balanceOf[from] -= _getUnit(); unchecked { balanceOf[to] += _getUnit(); } _ownerOf[amountOrId] = to; delete getApproved[amountOrId]; // update _owned for sender uint256 updatedId = _owned[from][_owned[from].length - 1]; _owned[from][_ownedIndex[amountOrId]] = updatedId; // pop _owned[from].pop(); // update index for the moved id _ownedIndex[updatedId] = _ownedIndex[amountOrId]; // push token to to owned _owned[to].push(amountOrId); // update index for to owned _ownedIndex[amountOrId] = _owned[to].length - 1; emit Transfer(from, to, amountOrId); emit ERC20Transfer(from, to, _getUnit()); } else { uint256 allowed = allowance[from][msg.sender]; if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amountOrId; _transfer(from, to, amountOrId); } } /// @notice Function for fractional transfers function transfer( address to, uint256 amount ) public virtual returns (bool) { return _transfer(msg.sender, to, amount); } /// @notice Function for native transfers with contract support function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, "") != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Function for native transfers with contract support and callback data function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); if ( to.code.length != 0 && ERC721Receiver(to).onERC721Received(msg.sender, from, id, data) != ERC721Receiver.onERC721Received.selector ) { revert UnsafeRecipient(); } } /// @notice Internal function for fractional transfers function _transfer( address from, address to, uint256 amount ) internal returns (bool) { uint256 unit = _getUnit(); uint256 balanceBeforeSender = balanceOf[from]; uint256 balanceBeforeReceiver = balanceOf[to]; balanceOf[from] -= amount; unchecked { balanceOf[to] += amount; } // Skip burn for certain addresses to save gas if (!whitelist[from]) { uint256 tokens_to_burn = (balanceBeforeSender / unit) - (balanceOf[from] / unit); for (uint256 i = 0; i < tokens_to_burn; i++) { _burn(from); } } // Skip minting for certain addresses to save gas if (!whitelist[to]) { uint256 tokens_to_mint = (balanceOf[to] / unit) - (balanceBeforeReceiver / unit); for (uint256 i = 0; i < tokens_to_mint; i++) { _mint(to); } } emit ERC20Transfer(from, to, amount); return true; } // Internal utility logic function _getUnit() internal view returns (uint256) { return 10 ** decimals; } function _mint(address to) internal virtual { if (to == address(0)) { revert InvalidRecipient(); } unchecked { minted++; } uint256 id = minted; if (_ownerOf[id] != address(0)) { revert AlreadyExists(); } _ownerOf[id] = to; _owned[to].push(id); _ownedIndex[id] = _owned[to].length - 1; emit Transfer(address(0), to, id); } function _burn(address from) internal virtual { if (from == address(0)) { revert InvalidSender(); } uint256 id = _owned[from][_owned[from].length - 1]; _owned[from].pop(); delete _ownedIndex[id]; delete _ownerOf[id]; delete getApproved[id]; emit Transfer(from, address(0), id); } function _setNameSymbol( string memory _name, string memory _symbol ) internal { name = _name; symbol = _symbol; } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; abstract contract ERC721Receiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721Receiver.onERC721Received.selector; } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; abstract contract Ownable { event OwnershipTransferred(address indexed user, address indexed newOwner); error Unauthorized(); error InvalidOwner(); address public owner; modifier onlyOwner() virtual { if (msg.sender != owner) revert Unauthorized(); _; } constructor(address _owner) { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(address(0), _owner); } function transferOwnership(address _owner) public virtual onlyOwner { if (_owner == address(0)) revert InvalidOwner(); owner = _owner; emit OwnershipTransferred(msg.sender, _owner); } function revokeOwnership() public virtual onlyOwner { owner = address(0); emit OwnershipTransferred(msg.sender, address(0)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20Transfer","type":"event"},{"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":"ERC721Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revokeOwnership","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"state","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountOrId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b50604080518082018252600c81526b11dbdb19195b951a58dad95d60a21b6020808301919091528251808401909352600283526111d560f21b90830152906127106012338062000074576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001620000cb8582620001de565b506002620000da8482620001de565b5060ff81166080819052620000f190600a620003bf565b620000fd9083620003d7565b60a0526080516200011090600a620003bf565b6200011c9083620003d7565b3360009081526004602052604090205550620003f192505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200016257607f821691505b6020821081036200018357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001d9576000816000526020600020601f850160051c81016020861015620001b45750805b601f850160051c820191505b81811015620001d557828155600101620001c0565b5050505b505050565b81516001600160401b03811115620001fa57620001fa62000137565b62000212816200020b84546200014d565b8462000189565b602080601f8311600181146200024a5760008415620002315750858301515b600019600386901b1c1916600185901b178555620001d5565b600085815260208120601f198616915b828110156200027b578886015182559484019460019091019084016200025a565b50858210156200029a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000301578160001904821115620002e557620002e5620002aa565b80851615620002f357918102915b93841c9390800290620002c5565b509250929050565b6000826200031a57506001620003b9565b816200032957506000620003b9565b81600181146200034257600281146200034d576200036d565b6001915050620003b9565b60ff841115620003615762000361620002aa565b50506001821b620003b9565b5060208310610133831016604e8410600b841016171562000392575081810a620003b9565b6200039e8383620002c0565b8060001904821115620003b557620003b5620002aa565b0290505b92915050565b6000620003d060ff84168362000309565b9392505050565b8082028115828204841417620003b957620003b9620002aa565b60805160a0516118d26200041e60003960006101e40152600081816102360152610dfe01526118d26000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063c87b56dd1161007c578063c87b56dd14610343578063d547cfb714610356578063dd62ed3e1461035e578063e0df5b6f14610389578063e985e9c51461039c578063f2fde38b146103ca57600080fd5b80638da5cb5b146102cc57806395d89b41146102df5780639b19251a146102e7578063a22cb4651461030a578063a9059cbb1461031d578063b88d4fde1461033057600080fd5b8063313ce56711610115578063313ce5671461023157806342842e0e1461026a5780634f02c4201461027d57806353d6fd59146102865780636352211e1461029957806370a08231146102ac57600080fd5b806306fdde031461015d578063081812fc1461017b578063095ea7b3146101bc57806318160ddd146101df57806323b872dd146102145780632b96895814610229575b600080fd5b6101656103dd565b604051610172919061122e565b60405180910390f35b6101a4610189366004611261565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610172565b6101cf6101ca366004611291565b61046b565b6040519015158152602001610172565b6102067f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610172565b6102276102223660046112bb565b6105bc565b005b610227610945565b6102587f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610172565b6102276102783660046112bb565b6109ab565b61020660035481565b6102276102943660046112f7565b610a80565b6101a46102a7366004611261565b610ad5565b6102066102ba366004611333565b60046020526000908152604090205481565b6000546101a4906001600160a01b031681565b610165610b10565b6101cf6102f5366004611333565b600b6020526000908152604090205460ff1681565b6102276103183660046112f7565b610b1d565b6101cf61032b366004611291565b610b89565b61022761033e36600461134e565b610b9d565b610165610351366004611261565b610c60565b610165610d14565b61020661036c3660046113e9565b600560209081526000928352604080842090915290825290205481565b610227610397366004611432565b610d21565b6101cf6103aa3660046113e9565b600760209081526000928352604080842090915290825290205460ff1681565b6102276103d8366004611333565b610d5b565b600180546103ea906114e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610416906114e3565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b505050505081565b6000600354821115801561047f5750600082115b15610556576000828152600860205260409020546001600160a01b03163381148015906104d057506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b156104ed576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3506105b2565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60035481116108d6576000818152600860205260409020546001600160a01b038481169116146105ff57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661062657604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061066357506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561068657506000818152600660205260409020546001600160a01b03163314155b156106a3576040516282b42960e81b815260040160405180910390fd5b6106ab610df7565b6001600160a01b038416600090815260046020526040812080549091906106d3908490611533565b909155506106e19050610df7565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b03199081169094179055600681528482208054909316909255918616825260099052908120805461074b90600190611533565b8154811061075b5761075b611546565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a9093529092205481549293508392811061079f5761079f611546565b60009182526020808320909101929092556001600160a01b03861681526009909152604090208054806107d4576107d461155c565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b0386168084526009835290832080546001818101835582865293852001869055925290546108389190611533565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314876108bf610df7565b60405190815260200160405180910390a350505050565b6001600160a01b038316600090815260056020908152604080832033845290915290205460001981146109325761090d8282611533565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b61093d848484610e29565b50505b505050565b6000546001600160a01b0316331461096f576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6109b68383836105bc565b6001600160a01b0382163b15801590610a625750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a559190611572565b6001600160e01b03191614155b1561094057604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610aaa576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610b0b5760405163c5723b5160e01b815260040160405180910390fd5b919050565b600280546103ea906114e3565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610b96338484610e29565b9392505050565b610ba88585856105bc565b6001600160a01b0384163b15801590610c425750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610bf29033908a9089908990899060040161159c565b6020604051808303816000875af1158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c359190611572565b6001600160e01b03191614155b1561093d57604051633da6393160e01b815260040160405180910390fd5b6060600082604051602001610c7791815260200190565b60408051601f19818403018152919052805160209091012060f01c905060008115610cc25760405180604001604052806008815260200167706f6f702e706e6760c01b815250610ce6565b6040518060400160405280600a815260200169676f6c64656e2e706e6760b01b8152505b9050600c81604051602001610cfc9291906115f0565b60405160208183030381529060405292505050919050565b600c80546103ea906114e3565b6000546001600160a01b03163314610d4b576040516282b42960e81b815260040160405180910390fd5b600c610d5782826116c7565b5050565b6000546001600160a01b03163314610d85576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610dac576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000610e247f0000000000000000000000000000000000000000000000000000000000000000600a61186b565b905090565b600080610e34610df7565b6001600160a01b038087166000818152600460205260408082208054948a1683529082205492825293945091929091869190610e708386611533565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16610f02576001600160a01b038716600090815260046020526040812054610ecd90859061187a565b610ed7858561187a565b610ee19190611533565b905060005b81811015610eff57610ef789610fd7565b600101610ee6565b50505b6001600160a01b0386166000908152600b602052604090205460ff16610f7d576000610f2e848361187a565b6001600160a01b038816600090815260046020526040902054610f5290869061187a565b610f5c9190611533565b905060005b81811015610f7a57610f72886110ff565b600101610f61565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148787604051610fc291815260200190565b60405180910390a35060019695505050505050565b6001600160a01b038116610ffe57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600960205260408120805461102490600190611533565b8154811061103457611034611546565b9060005260206000200154905060096000836001600160a01b03166001600160a01b031681526020019081526020016000208054806110755761107561155c565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661112657604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b0316156111675760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558084526009835290832080546001818101835582865293852001859055925290546111bf9190611533565b6000828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60005b8381101561122557818101518382015260200161120d565b50506000910152565b602081526000825180602084015261124d81604085016020870161120a565b601f01601f19169190910160400192915050565b60006020828403121561127357600080fd5b5035919050565b80356001600160a01b0381168114610b0b57600080fd5b600080604083850312156112a457600080fd5b6112ad8361127a565b946020939093013593505050565b6000806000606084860312156112d057600080fd5b6112d98461127a565b92506112e76020850161127a565b9150604084013590509250925092565b6000806040838503121561130a57600080fd5b6113138361127a565b91506020830135801515811461132857600080fd5b809150509250929050565b60006020828403121561134557600080fd5b610b968261127a565b60008060008060006080868803121561136657600080fd5b61136f8661127a565b945061137d6020870161127a565b935060408601359250606086013567ffffffffffffffff808211156113a157600080fd5b818801915088601f8301126113b557600080fd5b8135818111156113c457600080fd5b8960208285010111156113d657600080fd5b9699959850939650602001949392505050565b600080604083850312156113fc57600080fd5b6114058361127a565b91506114136020840161127a565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561144457600080fd5b813567ffffffffffffffff8082111561145c57600080fd5b818401915084601f83011261147057600080fd5b8135818111156114825761148261141c565b604051601f8201601f19908116603f011681019083821181831017156114aa576114aa61141c565b816040528281528760208487010111156114c357600080fd5b826020860160208301376000928101602001929092525095945050505050565b600181811c908216806114f757607f821691505b60208210810361151757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105b6576105b661151d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006020828403121561158457600080fd5b81516001600160e01b031981168114610b9657600080fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008084546115fe816114e3565b60018281168015611616576001811461162b5761165a565b60ff198416875282151583028701945061165a565b8860005260208060002060005b858110156116515781548a820152908401908201611638565b50505082870194505b50505050835161166e81836020880161120a565b01949350505050565b601f821115610940576000816000526020600020601f850160051c810160208610156116a05750805b601f850160051c820191505b818110156116bf578281556001016116ac565b505050505050565b815167ffffffffffffffff8111156116e1576116e161141c565b6116f5816116ef84546114e3565b84611677565b602080601f83116001811461172a57600084156117125750858301515b600019600386901b1c1916600185901b1785556116bf565b600085815260208120601f198616915b828110156117595788860151825594840194600190910190840161173a565b50858210156117775787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600181815b808511156117c25781600019048211156117a8576117a861151d565b808516156117b557918102915b93841c939080029061178c565b509250929050565b6000826117d9575060016105b6565b816117e6575060006105b6565b81600181146117fc576002811461180657611822565b60019150506105b6565b60ff8411156118175761181761151d565b50506001821b6105b6565b5060208310610133831016604e8410600b8410161715611845575081810a6105b6565b61184f8383611787565b80600019048211156118635761186361151d565b029392505050565b6000610b9660ff8416836117ca565b60008261189757634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212207d2fb11dbd4ac0e725993bde81dbc6909a0f9a6fa06ca9d6d81d00607769c88c64736f6c63430008170033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063c87b56dd1161007c578063c87b56dd14610343578063d547cfb714610356578063dd62ed3e1461035e578063e0df5b6f14610389578063e985e9c51461039c578063f2fde38b146103ca57600080fd5b80638da5cb5b146102cc57806395d89b41146102df5780639b19251a146102e7578063a22cb4651461030a578063a9059cbb1461031d578063b88d4fde1461033057600080fd5b8063313ce56711610115578063313ce5671461023157806342842e0e1461026a5780634f02c4201461027d57806353d6fd59146102865780636352211e1461029957806370a08231146102ac57600080fd5b806306fdde031461015d578063081812fc1461017b578063095ea7b3146101bc57806318160ddd146101df57806323b872dd146102145780632b96895814610229575b600080fd5b6101656103dd565b604051610172919061122e565b60405180910390f35b6101a4610189366004611261565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610172565b6101cf6101ca366004611291565b61046b565b6040519015158152602001610172565b6102067f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b604051908152602001610172565b6102276102223660046112bb565b6105bc565b005b610227610945565b6102587f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610172565b6102276102783660046112bb565b6109ab565b61020660035481565b6102276102943660046112f7565b610a80565b6101a46102a7366004611261565b610ad5565b6102066102ba366004611333565b60046020526000908152604090205481565b6000546101a4906001600160a01b031681565b610165610b10565b6101cf6102f5366004611333565b600b6020526000908152604090205460ff1681565b6102276103183660046112f7565b610b1d565b6101cf61032b366004611291565b610b89565b61022761033e36600461134e565b610b9d565b610165610351366004611261565b610c60565b610165610d14565b61020661036c3660046113e9565b600560209081526000928352604080842090915290825290205481565b610227610397366004611432565b610d21565b6101cf6103aa3660046113e9565b600760209081526000928352604080842090915290825290205460ff1681565b6102276103d8366004611333565b610d5b565b600180546103ea906114e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610416906114e3565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b505050505081565b6000600354821115801561047f5750600082115b15610556576000828152600860205260409020546001600160a01b03163381148015906104d057506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b156104ed576040516282b42960e81b815260040160405180910390fd5b60008381526006602090815260409182902080546001600160a01b0319166001600160a01b038881169182179092559251868152908416917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3506105b2565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b5060015b92915050565b60035481116108d6576000818152600860205260409020546001600160a01b038481169116146105ff57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b03821661062657604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061066357506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561068657506000818152600660205260409020546001600160a01b03163314155b156106a3576040516282b42960e81b815260040160405180910390fd5b6106ab610df7565b6001600160a01b038416600090815260046020526040812080549091906106d3908490611533565b909155506106e19050610df7565b6001600160a01b03808416600081815260046020908152604080832080549096019095558582526008815284822080546001600160a01b03199081169094179055600681528482208054909316909255918616825260099052908120805461074b90600190611533565b8154811061075b5761075b611546565b60009182526020808320909101546001600160a01b0387168352600982526040808420868552600a9093529092205481549293508392811061079f5761079f611546565b60009182526020808320909101929092556001600160a01b03861681526009909152604090208054806107d4576107d461155c565b600082815260208082208301600019908101839055909201909255838252600a8152604080832054848452818420556001600160a01b0386168084526009835290832080546001818101835582865293852001869055925290546108389190611533565b6000838152600a602052604080822092909255905183916001600160a01b0380871692908816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4826001600160a01b0316846001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e0314876108bf610df7565b60405190815260200160405180910390a350505050565b6001600160a01b038316600090815260056020908152604080832033845290915290205460001981146109325761090d8282611533565b6001600160a01b03851660009081526005602090815260408083203384529091529020555b61093d848484610e29565b50505b505050565b6000546001600160a01b0316331461096f576040516282b42960e81b815260040160405180910390fd5b600080546001600160a01b031916815560405133907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3565b6109b68383836105bc565b6001600160a01b0382163b15801590610a625750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a559190611572565b6001600160e01b03191614155b1561094057604051633da6393160e01b815260040160405180910390fd5b6000546001600160a01b03163314610aaa576040516282b42960e81b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000818152600860205260409020546001600160a01b031680610b0b5760405163c5723b5160e01b815260040160405180910390fd5b919050565b600280546103ea906114e3565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610b96338484610e29565b9392505050565b610ba88585856105bc565b6001600160a01b0384163b15801590610c425750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610bf29033908a9089908990899060040161159c565b6020604051808303816000875af1158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c359190611572565b6001600160e01b03191614155b1561093d57604051633da6393160e01b815260040160405180910390fd5b6060600082604051602001610c7791815260200190565b60408051601f19818403018152919052805160209091012060f01c905060008115610cc25760405180604001604052806008815260200167706f6f702e706e6760c01b815250610ce6565b6040518060400160405280600a815260200169676f6c64656e2e706e6760b01b8152505b9050600c81604051602001610cfc9291906115f0565b60405160208183030381529060405292505050919050565b600c80546103ea906114e3565b6000546001600160a01b03163314610d4b576040516282b42960e81b815260040160405180910390fd5b600c610d5782826116c7565b5050565b6000546001600160a01b03163314610d85576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610dac576040516349e27cff60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6000610e247f0000000000000000000000000000000000000000000000000000000000000012600a61186b565b905090565b600080610e34610df7565b6001600160a01b038087166000818152600460205260408082208054948a1683529082205492825293945091929091869190610e708386611533565b90915550506001600160a01b03808716600090815260046020908152604080832080548a019055928a168252600b9052205460ff16610f02576001600160a01b038716600090815260046020526040812054610ecd90859061187a565b610ed7858561187a565b610ee19190611533565b905060005b81811015610eff57610ef789610fd7565b600101610ee6565b50505b6001600160a01b0386166000908152600b602052604090205460ff16610f7d576000610f2e848361187a565b6001600160a01b038816600090815260046020526040902054610f5290869061187a565b610f5c9190611533565b905060005b81811015610f7a57610f72886110ff565b600101610f61565b50505b856001600160a01b0316876001600160a01b03167fe59fdd36d0d223c0c7d996db7ad796880f45e1936cb0bb7ac102e7082e03148787604051610fc291815260200190565b60405180910390a35060019695505050505050565b6001600160a01b038116610ffe57604051636edaef2f60e11b815260040160405180910390fd5b6001600160a01b0381166000908152600960205260408120805461102490600190611533565b8154811061103457611034611546565b9060005260206000200154905060096000836001600160a01b03166001600160a01b031681526020019081526020016000208054806110755761107561155c565b600082815260208082208301600019908101839055909201909255828252600a815260408083208390556008825280832080546001600160a01b031990811690915560069092528083208054909216909155518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03811661112657604051634e46966960e11b815260040160405180910390fd5b60038054600101908190556000818152600860205260409020546001600160a01b0316156111675760405163119b4fd360e11b815260040160405180910390fd5b600081815260086020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558084526009835290832080546001818101835582865293852001859055925290546111bf9190611533565b6000828152600a602052604080822092909255905182916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60005b8381101561122557818101518382015260200161120d565b50506000910152565b602081526000825180602084015261124d81604085016020870161120a565b601f01601f19169190910160400192915050565b60006020828403121561127357600080fd5b5035919050565b80356001600160a01b0381168114610b0b57600080fd5b600080604083850312156112a457600080fd5b6112ad8361127a565b946020939093013593505050565b6000806000606084860312156112d057600080fd5b6112d98461127a565b92506112e76020850161127a565b9150604084013590509250925092565b6000806040838503121561130a57600080fd5b6113138361127a565b91506020830135801515811461132857600080fd5b809150509250929050565b60006020828403121561134557600080fd5b610b968261127a565b60008060008060006080868803121561136657600080fd5b61136f8661127a565b945061137d6020870161127a565b935060408601359250606086013567ffffffffffffffff808211156113a157600080fd5b818801915088601f8301126113b557600080fd5b8135818111156113c457600080fd5b8960208285010111156113d657600080fd5b9699959850939650602001949392505050565b600080604083850312156113fc57600080fd5b6114058361127a565b91506114136020840161127a565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561144457600080fd5b813567ffffffffffffffff8082111561145c57600080fd5b818401915084601f83011261147057600080fd5b8135818111156114825761148261141c565b604051601f8201601f19908116603f011681019083821181831017156114aa576114aa61141c565b816040528281528760208487010111156114c357600080fd5b826020860160208301376000928101602001929092525095945050505050565b600181811c908216806114f757607f821691505b60208210810361151757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105b6576105b661151d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006020828403121561158457600080fd5b81516001600160e01b031981168114610b9657600080fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008084546115fe816114e3565b60018281168015611616576001811461162b5761165a565b60ff198416875282151583028701945061165a565b8860005260208060002060005b858110156116515781548a820152908401908201611638565b50505082870194505b50505050835161166e81836020880161120a565b01949350505050565b601f821115610940576000816000526020600020601f850160051c810160208610156116a05750805b601f850160051c820191505b818110156116bf578281556001016116ac565b505050505050565b815167ffffffffffffffff8111156116e1576116e161141c565b6116f5816116ef84546114e3565b84611677565b602080601f83116001811461172a57600084156117125750858301515b600019600386901b1c1916600185901b1785556116bf565b600085815260208120601f198616915b828110156117595788860151825594840194600190910190840161173a565b50858210156117775787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600181815b808511156117c25781600019048211156117a8576117a861151d565b808516156117b557918102915b93841c939080029061178c565b509250929050565b6000826117d9575060016105b6565b816117e6575060006105b6565b81600181146117fc576002811461180657611822565b60019150506105b6565b60ff8411156118175761181761151d565b50506001821b6105b6565b5060208310610133831016604e8410600b8410161715611845575081810a6105b6565b61184f8383611787565b80600019048211156118635761186361151d565b029392505050565b6000610b9660ff8416836117ca565b60008261189757634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212207d2fb11dbd4ac0e725993bde81dbc6909a0f9a6fa06ca9d6d81d00607769c88c64736f6c63430008170033
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.