More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 159 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy | 5869815 | 2371 days ago | IN | 0.0824 ETH | 0.00013059 | ||||
Buy | 5869810 | 2371 days ago | IN | 0.0211 ETH | 0.00013059 | ||||
Buy | 5869801 | 2371 days ago | IN | 0.0417 ETH | 0.00013059 | ||||
Buy | 5840570 | 2376 days ago | IN | 0.1629 ETH | 0.00013059 | ||||
Buy | 5840529 | 2376 days ago | IN | 0.1629 ETH | 0.00004684 | ||||
Buy | 5840527 | 2376 days ago | IN | 0.1629 ETH | 0.00065297 | ||||
Buy | 5799178 | 2383 days ago | IN | 0.1158 ETH | 0.00013059 | ||||
Buy | 5799155 | 2383 days ago | IN | 0.1158 ETH | 0.00013059 | ||||
Buy | 5790877 | 2384 days ago | IN | 0.0586 ETH | 0.00026118 | ||||
Buy | 5790872 | 2384 days ago | IN | 0.0297 ETH | 0.00039178 | ||||
Buy | 5781996 | 2386 days ago | IN | 0.0297 ETH | 0.00065297 | ||||
Buy | 5778957 | 2386 days ago | IN | 0.0297 ETH | 0.00097945 | ||||
Buy | 5778957 | 2386 days ago | IN | 0.1158 ETH | 0.00035037 | ||||
Buy | 5778957 | 2386 days ago | IN | 0.0586 ETH | 0.00065297 | ||||
Buy | 5778957 | 2386 days ago | IN | 0.0297 ETH | 0.00065297 | ||||
Buy | 5778957 | 2386 days ago | IN | 0.1158 ETH | 0.00023358 | ||||
Buy | 5778956 | 2386 days ago | IN | 0.1158 ETH | 0.00006523 | ||||
Buy | 5756634 | 2390 days ago | IN | 0.0211 ETH | 0.00023422 | ||||
Buy | 5756632 | 2390 days ago | IN | 0.0211 ETH | 0.00046844 | ||||
Buy | 5756632 | 2390 days ago | IN | 0.0211 ETH | 0.00046844 | ||||
Buy | 5756631 | 2390 days ago | IN | 0.0211 ETH | 0.00065297 | ||||
Buy | 5756629 | 2390 days ago | IN | 0.0417 ETH | 0.00093688 | ||||
Buy | 5756629 | 2390 days ago | IN | 0.0417 ETH | 0.00051528 | ||||
Buy | 5756629 | 2390 days ago | IN | 0.0211 ETH | 0.00065297 | ||||
Buy | 5756629 | 2390 days ago | IN | 0.0417 ETH | 0.00065297 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
5869815 | 2371 days ago | 0.0000703 ETH | ||||
5869815 | 2371 days ago | 0.07903651 ETH | ||||
5869810 | 2371 days ago | 0.00004736 ETH | ||||
5869810 | 2371 days ago | 0.02021052 ETH | ||||
5869801 | 2371 days ago | 0.00006759 ETH | ||||
5869801 | 2371 days ago | 0.0399671 ETH | ||||
5840570 | 2376 days ago | 0.0000898 ETH | ||||
5840570 | 2376 days ago | 0.15629778 ETH | ||||
5840527 | 2376 days ago | 0.0000898 ETH | ||||
5840527 | 2376 days ago | 0.15629778 ETH | ||||
5799178 | 2383 days ago | 0.00002385 ETH | ||||
5799178 | 2383 days ago | 0.11114509 ETH | ||||
5799155 | 2383 days ago | 0.00002385 ETH | ||||
5799155 | 2383 days ago | 0.11114509 ETH | ||||
5790877 | 2384 days ago | 0.00005443 ETH | ||||
5790877 | 2384 days ago | 0.05620374 ETH | ||||
5790872 | 2384 days ago | 0.00009473 ETH | ||||
5790872 | 2384 days ago | 0.02842105 ETH | ||||
5781996 | 2386 days ago | 0.00009473 ETH | ||||
5781996 | 2386 days ago | 0.02842105 ETH | ||||
5778957 | 2386 days ago | 0.00009473 ETH | ||||
5778957 | 2386 days ago | 0.02842105 ETH | ||||
5778957 | 2386 days ago | 0.00005443 ETH | ||||
5778957 | 2386 days ago | 0.05620374 ETH | ||||
5778957 | 2386 days ago | 0.00009473 ETH |
Loading...
Loading
Contract Name:
ItemToken
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-06-08 */ pragma solidity ^0.4.13; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract ItemToken { using SafeMath for uint256; event Bought (uint256 indexed _itemId, address indexed _owner, uint256 _price); event Sold (uint256 indexed _itemId, address indexed _owner, uint256 _price); event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); address private owner; mapping (address => bool) private admins; IItemRegistry private itemRegistry; bool private erc721Enabled = false; uint256 private increaseLimit1 = 0.02 ether; uint256 private increaseLimit2 = 0.5 ether; uint256 private increaseLimit3 = 2.0 ether; uint256 private increaseLimit4 = 5.0 ether; uint256[] private listedItems; mapping (uint256 => address) private ownerOfItem; mapping (uint256 => uint256) private startingPriceOfItem; mapping (uint256 => uint256) private priceOfItem; mapping (uint256 => address) private approvedOfItem; function ItemToken () public { owner = msg.sender; admins[owner] = true; } /* Modifiers */ modifier onlyOwner() { require(owner == msg.sender); _; } modifier onlyAdmins() { require(admins[msg.sender]); _; } modifier onlyERC721() { require(erc721Enabled); _; } /* Owner */ function setOwner (address _owner) onlyOwner() public { owner = _owner; } function setItemRegistry (address _itemRegistry) onlyOwner() public { itemRegistry = IItemRegistry(_itemRegistry); } function addAdmin (address _admin) onlyOwner() public { admins[_admin] = true; } function removeAdmin (address _admin) onlyOwner() public { delete admins[_admin]; } // Unlocks ERC721 behaviour, allowing for trading on third party platforms. function enableERC721 () onlyOwner() public { erc721Enabled = true; } /* Withdraw */ /* NOTICE: These functions withdraw the developer's cut which is left in the contract by `buy`. User funds are immediately sent to the old owner in `buy`, no user funds are left in the contract. */ function withdrawAll () onlyOwner() public { owner.transfer(this.balance); } function withdrawAmount (uint256 _amount) onlyOwner() public { owner.transfer(_amount); } /* Listing */ function populateFromItemRegistry (uint256[] _itemIds) onlyOwner() public { for (uint256 i = 0; i < _itemIds.length; i++) { if (priceOfItem[_itemIds[i]] > 0 || itemRegistry.priceOf(_itemIds[i]) == 0) { continue; } listItemFromRegistry(_itemIds[i]); } } function listItemFromRegistry (uint256 _itemId) onlyOwner() public { require(itemRegistry != address(0)); require(itemRegistry.ownerOf(_itemId) != address(0)); require(itemRegistry.priceOf(_itemId) > 0); uint256 price = itemRegistry.priceOf(_itemId); address itemOwner = itemRegistry.ownerOf(_itemId); listItem(_itemId, price, itemOwner); } function listMultipleItems (uint256[] _itemIds, uint256 _price, address _owner) onlyAdmins() external { for (uint256 i = 0; i < _itemIds.length; i++) { listItem(_itemIds[i], _price, _owner); } } function listItem (uint256 _itemId, uint256 _price, address _owner) onlyAdmins() public { require(_price > 0); require(priceOfItem[_itemId] == 0); require(ownerOfItem[_itemId] == address(0)); ownerOfItem[_itemId] = _owner; priceOfItem[_itemId] = _price; startingPriceOfItem[_itemId] = _price; listedItems.push(_itemId); } /* Buying */ function calculateNextPrice (uint256 _price) public view returns (uint256 _nextPrice) { if (_price < increaseLimit1) { return _price.mul(200).div(95); } else if (_price < increaseLimit2) { return _price.mul(135).div(96); } else if (_price < increaseLimit3) { return _price.mul(125).div(97); } else if (_price < increaseLimit4) { return _price.mul(117).div(97); } else { return _price.mul(115).div(98); } } function calculateDevCut (uint256 _price) public view returns (uint256 _devCut) { if (_price < increaseLimit1) { return _price.mul(5).div(100); // 5% } else if (_price < increaseLimit2) { return _price.mul(4).div(100); // 4% } else if (_price < increaseLimit3) { return _price.mul(3).div(100); // 3% } else if (_price < increaseLimit4) { return _price.mul(3).div(100); // 3% } else { return _price.mul(2).div(100); // 2% } } /* Buy a team directly from the contract for the calculated price which ensures that the owner gets a profit. All teams that have been listed can be bought by this method. User funds are sent directly to the previous owner and are never stored in the contract. */ function buy (uint256 _itemId) payable public { require(priceOf(_itemId) > 0); require(ownerOf(_itemId) != address(0)); require(msg.value >= priceOf(_itemId)); require(ownerOf(_itemId) != msg.sender); require(!isContract(msg.sender)); require(msg.sender != address(0)); address oldOwner = ownerOf(_itemId); address newOwner = msg.sender; uint256 price = priceOf(_itemId); uint256 excess = msg.value.sub(price); _transfer(oldOwner, newOwner, _itemId); priceOfItem[_itemId] = nextPriceOf(_itemId); Bought(_itemId, newOwner, price); Sold(_itemId, oldOwner, price); // Devevloper's cut which is left in contract and accesed by // `withdrawAll` and `withdrawAmountTo` methods. uint256 devCut = calculateDevCut(price); // Transfer payment to old owner minus the developer's cut. oldOwner.transfer(price.sub(devCut)); if (excess > 0) { newOwner.transfer(excess); } } /* ERC721 */ function implementsERC721() public view returns (bool _implements) { return erc721Enabled; } function name() public pure returns (string _name) { return "Totalgame.io Teams"; } function symbol() public pure returns (string _symbol) { return "TGT"; } function totalSupply() public view returns (uint256 _totalSupply) { return listedItems.length; } function balanceOf (address _owner) public view returns (uint256 _balance) { uint256 counter = 0; for (uint256 i = 0; i < listedItems.length; i++) { if (ownerOf(listedItems[i]) == _owner) { counter++; } } return counter; } function ownerOf (uint256 _itemId) public view returns (address _owner) { return ownerOfItem[_itemId]; } function tokensOf (address _owner) public view returns (uint256[] _tokenIds) { uint256[] memory items = new uint256[](balanceOf(_owner)); uint256 itemCounter = 0; for (uint256 i = 0; i < listedItems.length; i++) { if (ownerOf(listedItems[i]) == _owner) { items[itemCounter] = listedItems[i]; itemCounter += 1; } } return items; } function tokenExists (uint256 _itemId) public view returns (bool _exists) { return priceOf(_itemId) > 0; } function approvedFor(uint256 _itemId) public view returns (address _approved) { return approvedOfItem[_itemId]; } function approve(address _to, uint256 _itemId) onlyERC721() public { require(msg.sender != _to); require(tokenExists(_itemId)); require(ownerOf(_itemId) == msg.sender); if (_to == 0) { if (approvedOfItem[_itemId] != 0) { delete approvedOfItem[_itemId]; Approval(msg.sender, 0, _itemId); } } else { approvedOfItem[_itemId] = _to; Approval(msg.sender, _to, _itemId); } } /* Transferring a team to another owner will entitle the new owner the profits from `buy` */ function transfer(address _to, uint256 _itemId) onlyERC721() public { require(msg.sender == ownerOf(_itemId)); _transfer(msg.sender, _to, _itemId); } function transferFrom(address _from, address _to, uint256 _itemId) onlyERC721() public { require(approvedFor(_itemId) == msg.sender); _transfer(_from, _to, _itemId); } function _transfer(address _from, address _to, uint256 _itemId) internal { require(tokenExists(_itemId)); require(ownerOf(_itemId) == _from); require(_to != address(0)); require(_to != address(this)); ownerOfItem[_itemId] = _to; approvedOfItem[_itemId] = 0; Transfer(_from, _to, _itemId); } /* Read */ function isAdmin (address _admin) public view returns (bool _isAdmin) { return admins[_admin]; } function startingPriceOf (uint256 _itemId) public view returns (uint256 _startingPrice) { return startingPriceOfItem[_itemId]; } function priceOf (uint256 _itemId) public view returns (uint256 _price) { return priceOfItem[_itemId]; } function nextPriceOf (uint256 _itemId) public view returns (uint256 _nextPrice) { return calculateNextPrice(priceOf(_itemId)); } function allOf (uint256 _itemId) external view returns (uint256 id, address _owner, uint256 _startingPrice, uint256 _price, uint256 _nextPrice) { return (_itemId, ownerOf(_itemId), startingPriceOf(_itemId), priceOf(_itemId), nextPriceOf(_itemId)); } function itemsForSaleLimit (uint256 _from, uint256 _take) public view returns (uint256[] _items) { uint256[] memory items = new uint256[](_take); for (uint256 i = 0; i < _take; i++) { items[i] = listedItems[_from + i]; } return items; } /* Util */ function isContract(address addr) internal view returns (bool) { uint size; assembly { size := extcodesize(addr) } // solium-disable-line return size > 0; } } interface IItemRegistry { function itemsForSaleLimit (uint256 _from, uint256 _take) public view returns (uint256[] _items); function ownerOf (uint256 _itemId) public view returns (address _owner); function priceOf (uint256 _itemId) public view returns (uint256 _price); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"tokenExists","outputs":[{"name":"_exists","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"withdrawAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"_name","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_itemId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"implementsERC721","outputs":[{"name":"_implements","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_admin","type":"address"}],"name":"removeAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"_totalSupply","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_itemRegistry","type":"address"}],"name":"setItemRegistry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_itemId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_admin","type":"address"}],"name":"isAdmin","outputs":[{"name":"_isAdmin","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"approvedFor","outputs":[{"name":"_approved","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"allOf","outputs":[{"name":"id","type":"uint256"},{"name":"_owner","type":"address"},{"name":"_startingPrice","type":"uint256"},{"name":"_price","type":"uint256"},{"name":"_nextPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"listItemFromRegistry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_itemId","type":"uint256"},{"name":"_price","type":"uint256"},{"name":"_owner","type":"address"}],"name":"listItem","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_from","type":"uint256"},{"name":"_take","type":"uint256"}],"name":"itemsForSaleLimit","outputs":[{"name":"_items","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"tokensOf","outputs":[{"name":"_tokenIds","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"nextPriceOf","outputs":[{"name":"_nextPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"_owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_price","type":"uint256"}],"name":"calculateDevCut","outputs":[{"name":"_devCut","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_admin","type":"address"}],"name":"addAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"_balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"enableERC721","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_itemIds","type":"uint256[]"}],"name":"populateFromItemRegistry","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"_symbol","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_itemId","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"startingPriceOf","outputs":[{"name":"_startingPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"priceOf","outputs":[{"name":"_price","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_itemIds","type":"uint256[]"},{"name":"_price","type":"uint256"},{"name":"_owner","type":"address"}],"name":"listMultipleItems","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_itemId","type":"uint256"}],"name":"buy","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_price","type":"uint256"}],"name":"calculateNextPrice","outputs":[{"name":"_nextPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_itemId","type":"uint256"},{"indexed":true,"name":"_owner","type":"address"},{"indexed":false,"name":"_price","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_itemId","type":"uint256"},{"indexed":true,"name":"_owner","type":"address"},{"indexed":false,"name":"_price","type":"uint256"}],"name":"Sold","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
60606040526002805460a060020a60ff021916905566470de4df8200006003556706f05b59d3b20000600455671bc16d674ec80000600555674563918244f40000600655341561004e57600080fd5b60008054600160a060020a03338116600160a060020a031990921691909117808355168152600160208190526040909120805460ff191690911790556116a3806100996000396000f30060606040526004361061017b5763ffffffff60e060020a600035041662923f9e81146101805780630562b9f7146101aa57806306fdde03146101c2578063095ea7b31461024c5780631051db341461026e57806313af4035146102815780631785f53c146102a057806318160ddd146102bf5780631fe8500e146102e457806323b872dd1461030357806324d7806c1461032b5780632a6dd48f1461034a5780632e4f43bf1461037c57806337525ff0146103cb578063442edd03146103e15780635435bac8146104065780635a3f2672146104725780635ba9e48e146104915780636352211e146104a757806365121205146104bd57806370480275146104d357806370a08231146104f257806371dc761e14610511578063853828b6146105245780638f88aed01461053757806395d89b4114610586578063a9059cbb14610599578063af7520b9146105bb578063b9186d7d146105d1578063baddee6f146105e7578063d96a094a14610615578063e08503ec14610620575b600080fd5b341561018b57600080fd5b610196600435610636565b604051901515815260200160405180910390f35b34156101b557600080fd5b6101c060043561064b565b005b34156101cd57600080fd5b6101d561069c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102115780820151838201526020016101f9565b50505050905090810190601f16801561023e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561025757600080fd5b6101c0600160a060020a03600435166024356106de565b341561027957600080fd5b61019661084a565b341561028c57600080fd5b6101c0600160a060020a036004351661085a565b34156102ab57600080fd5b6101c0600160a060020a0360043516610897565b34156102ca57600080fd5b6102d26108d3565b60405190815260200160405180910390f35b34156102ef57600080fd5b6101c0600160a060020a03600435166108d9565b341561030e57600080fd5b6101c0600160a060020a0360043581169060243516604435610916565b341561033657600080fd5b610196600160a060020a0360043516610964565b341561035557600080fd5b610360600435610982565b604051600160a060020a03909116815260200160405180910390f35b341561038757600080fd5b61039260043561099d565b604051948552600160a060020a0390931660208501526040808501929092526060840152608083019190915260a0909101905180910390f35b34156103d657600080fd5b6101c06004356109dc565b34156103ec57600080fd5b6101c0600435602435600160a060020a0360443516610bf3565b341561041157600080fd5b61041f600435602435610cc6565b60405160208082528190810183818151815260200191508051906020019060200280838360005b8381101561045e578082015183820152602001610446565b505050509050019250505060405180910390f35b341561047d57600080fd5b61041f600160a060020a0360043516610d48565b341561049c57600080fd5b6102d2600435610e1c565b34156104b257600080fd5b610360600435610e35565b34156104c857600080fd5b6102d2600435610e50565b34156104de57600080fd5b6101c0600160a060020a0360043516610efb565b34156104fd57600080fd5b6102d2600160a060020a0360043516610f3d565b341561051c57600080fd5b6101c0610f8d565b341561052f57600080fd5b6101c0610fce565b341561054257600080fd5b6101c0600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061102495505050505050565b341561059157600080fd5b6101d5611132565b34156105a457600080fd5b6101c0600160a060020a0360043516602435611173565b34156105c657600080fd5b6102d26004356111be565b34156105dc57600080fd5b6102d26004356111d0565b34156105f257600080fd5b6101c0602460048035828101929101359035600160a060020a03604435166111e2565b6101c0600435611241565b341561062b57600080fd5b6102d2600435611441565b600080610642836111d0565b1190505b919050565b60005433600160a060020a0390811691161461066657600080fd5b600054600160a060020a031681156108fc0282604051600060405180830381858888f19350505050151561069957600080fd5b50565b6106a4611628565b60408051908101604052601281527f546f74616c67616d652e696f205465616d730000000000000000000000000000602082015290505b90565b60025460a060020a900460ff1615156106f657600080fd5b81600160a060020a031633600160a060020a03161415151561071757600080fd5b61072081610636565b151561072b57600080fd5b33600160a060020a031661073e82610e35565b600160a060020a03161461075157600080fd5b600160a060020a03821615156107df576000818152600b6020526040902054600160a060020a0316156107da576000818152600b60205260408082208054600160a060020a031916905533600160a060020a0316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35b610846565b6000818152600b6020526040908190208054600160a060020a031916600160a060020a038581169182179092559133909116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35b5050565b60025460a060020a900460ff1690565b60005433600160a060020a0390811691161461087557600080fd5b60008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146108b257600080fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b60075490565b60005433600160a060020a039081169116146108f457600080fd5b60028054600160a060020a031916600160a060020a0392909216919091179055565b60025460a060020a900460ff16151561092e57600080fd5b33600160a060020a031661094182610982565b600160a060020a03161461095457600080fd5b61095f8383836114d9565b505050565b600160a060020a031660009081526001602052604090205460ff1690565b6000908152600b6020526040902054600160a060020a031690565b6000806000806000856109af87610e35565b6109b8886111be565b6109c1896111d0565b6109ca8a610e1c565b939a9299509097509550909350915050565b60008054819033600160a060020a039081169116146109fa57600080fd5b600254600160a060020a03161515610a1157600080fd5b600254600090600160a060020a0316636352211e85836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610a6457600080fd5b6102c65a03f11515610a7557600080fd5b50505060405180519050600160a060020a031614151515610a9557600080fd5b600254600090600160a060020a031663b9186d7d85836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610ae857600080fd5b6102c65a03f11515610af957600080fd5b50505060405180519050111515610b0f57600080fd5b600254600160a060020a031663b9186d7d8460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610b6057600080fd5b6102c65a03f11515610b7157600080fd5b5050506040518051600254909350600160a060020a03169050636352211e8460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610bcf57600080fd5b6102c65a03f11515610be057600080fd5b50505060405180519050905061095f8383835b600160a060020a03331660009081526001602052604090205460ff161515610c1a57600080fd5b60008211610c2757600080fd5b6000838152600a602052604090205415610c4057600080fd5b600083815260086020526040902054600160a060020a031615610c6257600080fd5b60008381526008602090815260408083208054600160a060020a031916600160a060020a038616179055600a8252808320859055600990915290208290556007805460018101610cb2838261163a565b506000918252602090912001929092555050565b610cce611628565b610cd6611628565b600083604051805910610ce65750595b90808252806020026020018201604052509150600090505b83811015610d405760078054868301908110610d1657fe5b906000526020600020900154828281518110610d2e57fe5b60209081029091010152600101610cfe565b509392505050565b610d50611628565b610d58611628565b600080610d6485610f3d565b604051805910610d715750595b9080825280602002602001820160405250925060009150600090505b600754811015610e135784600160a060020a0316610dc4600783815481101515610db357fe5b906000526020600020900154610e35565b600160a060020a03161415610e0b576007805482908110610de157fe5b906000526020600020900154838381518110610df957fe5b60209081029091010152600191909101905b600101610d8d565b50909392505050565b6000610e2f610e2a836111d0565b611441565b92915050565b600090815260086020526040902054600160a060020a031690565b6000600354821015610e8557610e7e6064610e7284600563ffffffff6115c516565b9063ffffffff6115f716565b9050610646565b600454821015610ea557610e7e6064610e7284600463ffffffff6115c516565b600554821015610ec557610e7e6064610e7284600363ffffffff6115c516565b600654821015610ee557610e7e6064610e7284600363ffffffff6115c516565b610e7e6064610e7284600263ffffffff6115c516565b60005433600160a060020a03908116911614610f1657600080fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b600080805b600754811015610f865783600160a060020a0316610f68600783815481101515610db357fe5b600160a060020a03161415610f7e576001909101905b600101610f42565b5092915050565b60005433600160a060020a03908116911614610fa857600080fd5b6002805474ff0000000000000000000000000000000000000000191660a060020a179055565b60005433600160a060020a03908116911614610fe957600080fd5b600054600160a060020a039081169030163180156108fc0290604051600060405180830381858888f19350505050151561102257600080fd5b565b6000805433600160a060020a0390811691161461104057600080fd5b5060005b8151811015610846576000600a600084848151811061105f57fe5b9060200190602002015181526020019081526020016000205411806111025750600254600160a060020a031663b9186d7d83838151811061109c57fe5b9060200190602002015160006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156110e557600080fd5b6102c65a03f115156110f657600080fd5b50505060405180511590505b1561110c5761112a565b61112a82828151811061111b57fe5b906020019060200201516109dc565b600101611044565b61113a611628565b60408051908101604052600381527f54475400000000000000000000000000000000000000000000000000000000006020820152905090565b60025460a060020a900460ff16151561118b57600080fd5b61119481610e35565b600160a060020a031633600160a060020a03161415156111b357600080fd5b6108463383836114d9565b60009081526009602052604090205490565b6000908152600a602052604090205490565b600160a060020a03331660009081526001602052604081205460ff16151561120957600080fd5b5060005b8381101561123a5761123285858381811061122457fe5b905060200201358484610bf3565b60010161120d565b5050505050565b600080600080600080611253876111d0565b1161125d57600080fd5b600061126887610e35565b600160a060020a0316141561127c57600080fd5b611285866111d0565b34101561129157600080fd5b33600160a060020a03166112a487610e35565b600160a060020a031614156112b857600080fd5b6112c13361160e565b156112cb57600080fd5b33600160a060020a031615156112e057600080fd5b6112e986610e35565b94503393506112f7866111d0565b9250611309348463ffffffff61161616565b91506113168585886114d9565b61131f86610e1c565b600a60008881526020019081526020016000208190555083600160a060020a0316867fd2728f908c7e0feb83c6278798370fcb86b62f236c9dbf1a3f541096c21590408560405190815260200160405180910390a384600160a060020a0316867f66f5cd880edf48cdde6c966e5da0784fcc4c5e85572b8b3b62c4357798d447d78560405190815260200160405180910390a36113bb83610e50565b9050600160a060020a0385166108fc6113da858463ffffffff61161616565b9081150290604051600060405180830381858888f1935050505015156113ff57600080fd5b600082111561143957600160a060020a03841682156108fc0283604051600060405180830381858888f19350505050151561143957600080fd5b505050505050565b600060035482101561146357610e7e605f610e728460c863ffffffff6115c516565b60045482101561148357610e7e6060610e7284608763ffffffff6115c516565b6005548210156114a357610e7e6061610e7284607d63ffffffff6115c516565b6006548210156114c357610e7e6061610e7284607563ffffffff6115c516565b610e7e6062610e7284607363ffffffff6115c516565b6114e281610636565b15156114ed57600080fd5b82600160a060020a031661150082610e35565b600160a060020a03161461151357600080fd5b600160a060020a038216151561152857600080fd5b30600160a060020a031682600160a060020a03161415151561154957600080fd5b60008181526008602090815260408083208054600160a060020a03808816600160a060020a03199283168117909355600b909452938290208054909416909355908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3505050565b6000808315156115d85760009150610f86565b508282028284828115156115e857fe5b04146115f057fe5b9392505050565b600080828481151561160557fe5b04949350505050565b6000903b1190565b60008282111561162257fe5b50900390565b60206040519081016040526000815290565b81548183558181151161095f5760008381526020902061095f9181019083016106db91905b80821115611673576000815560010161165f565b50905600a165627a7a72305820eb725aed1be70b200e722e4836b19b40b4251e23a19196b00d5c2f36f7dd46db0029
Deployed Bytecode
0x60606040526004361061017b5763ffffffff60e060020a600035041662923f9e81146101805780630562b9f7146101aa57806306fdde03146101c2578063095ea7b31461024c5780631051db341461026e57806313af4035146102815780631785f53c146102a057806318160ddd146102bf5780631fe8500e146102e457806323b872dd1461030357806324d7806c1461032b5780632a6dd48f1461034a5780632e4f43bf1461037c57806337525ff0146103cb578063442edd03146103e15780635435bac8146104065780635a3f2672146104725780635ba9e48e146104915780636352211e146104a757806365121205146104bd57806370480275146104d357806370a08231146104f257806371dc761e14610511578063853828b6146105245780638f88aed01461053757806395d89b4114610586578063a9059cbb14610599578063af7520b9146105bb578063b9186d7d146105d1578063baddee6f146105e7578063d96a094a14610615578063e08503ec14610620575b600080fd5b341561018b57600080fd5b610196600435610636565b604051901515815260200160405180910390f35b34156101b557600080fd5b6101c060043561064b565b005b34156101cd57600080fd5b6101d561069c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156102115780820151838201526020016101f9565b50505050905090810190601f16801561023e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561025757600080fd5b6101c0600160a060020a03600435166024356106de565b341561027957600080fd5b61019661084a565b341561028c57600080fd5b6101c0600160a060020a036004351661085a565b34156102ab57600080fd5b6101c0600160a060020a0360043516610897565b34156102ca57600080fd5b6102d26108d3565b60405190815260200160405180910390f35b34156102ef57600080fd5b6101c0600160a060020a03600435166108d9565b341561030e57600080fd5b6101c0600160a060020a0360043581169060243516604435610916565b341561033657600080fd5b610196600160a060020a0360043516610964565b341561035557600080fd5b610360600435610982565b604051600160a060020a03909116815260200160405180910390f35b341561038757600080fd5b61039260043561099d565b604051948552600160a060020a0390931660208501526040808501929092526060840152608083019190915260a0909101905180910390f35b34156103d657600080fd5b6101c06004356109dc565b34156103ec57600080fd5b6101c0600435602435600160a060020a0360443516610bf3565b341561041157600080fd5b61041f600435602435610cc6565b60405160208082528190810183818151815260200191508051906020019060200280838360005b8381101561045e578082015183820152602001610446565b505050509050019250505060405180910390f35b341561047d57600080fd5b61041f600160a060020a0360043516610d48565b341561049c57600080fd5b6102d2600435610e1c565b34156104b257600080fd5b610360600435610e35565b34156104c857600080fd5b6102d2600435610e50565b34156104de57600080fd5b6101c0600160a060020a0360043516610efb565b34156104fd57600080fd5b6102d2600160a060020a0360043516610f3d565b341561051c57600080fd5b6101c0610f8d565b341561052f57600080fd5b6101c0610fce565b341561054257600080fd5b6101c0600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061102495505050505050565b341561059157600080fd5b6101d5611132565b34156105a457600080fd5b6101c0600160a060020a0360043516602435611173565b34156105c657600080fd5b6102d26004356111be565b34156105dc57600080fd5b6102d26004356111d0565b34156105f257600080fd5b6101c0602460048035828101929101359035600160a060020a03604435166111e2565b6101c0600435611241565b341561062b57600080fd5b6102d2600435611441565b600080610642836111d0565b1190505b919050565b60005433600160a060020a0390811691161461066657600080fd5b600054600160a060020a031681156108fc0282604051600060405180830381858888f19350505050151561069957600080fd5b50565b6106a4611628565b60408051908101604052601281527f546f74616c67616d652e696f205465616d730000000000000000000000000000602082015290505b90565b60025460a060020a900460ff1615156106f657600080fd5b81600160a060020a031633600160a060020a03161415151561071757600080fd5b61072081610636565b151561072b57600080fd5b33600160a060020a031661073e82610e35565b600160a060020a03161461075157600080fd5b600160a060020a03821615156107df576000818152600b6020526040902054600160a060020a0316156107da576000818152600b60205260408082208054600160a060020a031916905533600160a060020a0316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35b610846565b6000818152600b6020526040908190208054600160a060020a031916600160a060020a038581169182179092559133909116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35b5050565b60025460a060020a900460ff1690565b60005433600160a060020a0390811691161461087557600080fd5b60008054600160a060020a031916600160a060020a0392909216919091179055565b60005433600160a060020a039081169116146108b257600080fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b60075490565b60005433600160a060020a039081169116146108f457600080fd5b60028054600160a060020a031916600160a060020a0392909216919091179055565b60025460a060020a900460ff16151561092e57600080fd5b33600160a060020a031661094182610982565b600160a060020a03161461095457600080fd5b61095f8383836114d9565b505050565b600160a060020a031660009081526001602052604090205460ff1690565b6000908152600b6020526040902054600160a060020a031690565b6000806000806000856109af87610e35565b6109b8886111be565b6109c1896111d0565b6109ca8a610e1c565b939a9299509097509550909350915050565b60008054819033600160a060020a039081169116146109fa57600080fd5b600254600160a060020a03161515610a1157600080fd5b600254600090600160a060020a0316636352211e85836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610a6457600080fd5b6102c65a03f11515610a7557600080fd5b50505060405180519050600160a060020a031614151515610a9557600080fd5b600254600090600160a060020a031663b9186d7d85836040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610ae857600080fd5b6102c65a03f11515610af957600080fd5b50505060405180519050111515610b0f57600080fd5b600254600160a060020a031663b9186d7d8460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610b6057600080fd5b6102c65a03f11515610b7157600080fd5b5050506040518051600254909350600160a060020a03169050636352211e8460006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610bcf57600080fd5b6102c65a03f11515610be057600080fd5b50505060405180519050905061095f8383835b600160a060020a03331660009081526001602052604090205460ff161515610c1a57600080fd5b60008211610c2757600080fd5b6000838152600a602052604090205415610c4057600080fd5b600083815260086020526040902054600160a060020a031615610c6257600080fd5b60008381526008602090815260408083208054600160a060020a031916600160a060020a038616179055600a8252808320859055600990915290208290556007805460018101610cb2838261163a565b506000918252602090912001929092555050565b610cce611628565b610cd6611628565b600083604051805910610ce65750595b90808252806020026020018201604052509150600090505b83811015610d405760078054868301908110610d1657fe5b906000526020600020900154828281518110610d2e57fe5b60209081029091010152600101610cfe565b509392505050565b610d50611628565b610d58611628565b600080610d6485610f3d565b604051805910610d715750595b9080825280602002602001820160405250925060009150600090505b600754811015610e135784600160a060020a0316610dc4600783815481101515610db357fe5b906000526020600020900154610e35565b600160a060020a03161415610e0b576007805482908110610de157fe5b906000526020600020900154838381518110610df957fe5b60209081029091010152600191909101905b600101610d8d565b50909392505050565b6000610e2f610e2a836111d0565b611441565b92915050565b600090815260086020526040902054600160a060020a031690565b6000600354821015610e8557610e7e6064610e7284600563ffffffff6115c516565b9063ffffffff6115f716565b9050610646565b600454821015610ea557610e7e6064610e7284600463ffffffff6115c516565b600554821015610ec557610e7e6064610e7284600363ffffffff6115c516565b600654821015610ee557610e7e6064610e7284600363ffffffff6115c516565b610e7e6064610e7284600263ffffffff6115c516565b60005433600160a060020a03908116911614610f1657600080fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b600080805b600754811015610f865783600160a060020a0316610f68600783815481101515610db357fe5b600160a060020a03161415610f7e576001909101905b600101610f42565b5092915050565b60005433600160a060020a03908116911614610fa857600080fd5b6002805474ff0000000000000000000000000000000000000000191660a060020a179055565b60005433600160a060020a03908116911614610fe957600080fd5b600054600160a060020a039081169030163180156108fc0290604051600060405180830381858888f19350505050151561102257600080fd5b565b6000805433600160a060020a0390811691161461104057600080fd5b5060005b8151811015610846576000600a600084848151811061105f57fe5b9060200190602002015181526020019081526020016000205411806111025750600254600160a060020a031663b9186d7d83838151811061109c57fe5b9060200190602002015160006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156110e557600080fd5b6102c65a03f115156110f657600080fd5b50505060405180511590505b1561110c5761112a565b61112a82828151811061111b57fe5b906020019060200201516109dc565b600101611044565b61113a611628565b60408051908101604052600381527f54475400000000000000000000000000000000000000000000000000000000006020820152905090565b60025460a060020a900460ff16151561118b57600080fd5b61119481610e35565b600160a060020a031633600160a060020a03161415156111b357600080fd5b6108463383836114d9565b60009081526009602052604090205490565b6000908152600a602052604090205490565b600160a060020a03331660009081526001602052604081205460ff16151561120957600080fd5b5060005b8381101561123a5761123285858381811061122457fe5b905060200201358484610bf3565b60010161120d565b5050505050565b600080600080600080611253876111d0565b1161125d57600080fd5b600061126887610e35565b600160a060020a0316141561127c57600080fd5b611285866111d0565b34101561129157600080fd5b33600160a060020a03166112a487610e35565b600160a060020a031614156112b857600080fd5b6112c13361160e565b156112cb57600080fd5b33600160a060020a031615156112e057600080fd5b6112e986610e35565b94503393506112f7866111d0565b9250611309348463ffffffff61161616565b91506113168585886114d9565b61131f86610e1c565b600a60008881526020019081526020016000208190555083600160a060020a0316867fd2728f908c7e0feb83c6278798370fcb86b62f236c9dbf1a3f541096c21590408560405190815260200160405180910390a384600160a060020a0316867f66f5cd880edf48cdde6c966e5da0784fcc4c5e85572b8b3b62c4357798d447d78560405190815260200160405180910390a36113bb83610e50565b9050600160a060020a0385166108fc6113da858463ffffffff61161616565b9081150290604051600060405180830381858888f1935050505015156113ff57600080fd5b600082111561143957600160a060020a03841682156108fc0283604051600060405180830381858888f19350505050151561143957600080fd5b505050505050565b600060035482101561146357610e7e605f610e728460c863ffffffff6115c516565b60045482101561148357610e7e6060610e7284608763ffffffff6115c516565b6005548210156114a357610e7e6061610e7284607d63ffffffff6115c516565b6006548210156114c357610e7e6061610e7284607563ffffffff6115c516565b610e7e6062610e7284607363ffffffff6115c516565b6114e281610636565b15156114ed57600080fd5b82600160a060020a031661150082610e35565b600160a060020a03161461151357600080fd5b600160a060020a038216151561152857600080fd5b30600160a060020a031682600160a060020a03161415151561154957600080fd5b60008181526008602090815260408083208054600160a060020a03808816600160a060020a03199283168117909355600b909452938290208054909416909355908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3505050565b6000808315156115d85760009150610f86565b508282028284828115156115e857fe5b04146115f057fe5b9392505050565b600080828481151561160557fe5b04949350505050565b6000903b1190565b60008282111561162257fe5b50900390565b60206040519081016040526000815290565b81548183558181151161095f5760008381526020902061095f9181019083016106db91905b80821115611673576000815560010161165f565b50905600a165627a7a72305820eb725aed1be70b200e722e4836b19b40b4251e23a19196b00d5c2f36f7dd46db0029
Swarm Source
bzzr://eb725aed1be70b200e722e4836b19b40b4251e23a19196b00d5c2f36f7dd46db
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,488.92 | 0.1571 | $548.05 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.