ERC-20
Overview
Max Total Supply
2,000,000,000 IPX
Holders
344
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
35 IPXValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
IPXToken
Compiler Version
v0.4.20+commit.3155dd80
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-03-13 */ pragma solidity 0.4.20; contract IPXTokenBase { uint256 _supply; mapping (address => uint256) _balances; event Transfer( address indexed from, address indexed to, uint256 value); function IPXTokenBase() public { } function totalSupply() public view returns (uint256) { return _supply; } function balanceOf(address src) public view returns (uint256) { return _balances[src]; } function transfer(address dst, uint256 wad) public returns (bool) { require(_balances[msg.sender] >= wad); _balances[msg.sender] = sub(_balances[msg.sender], wad); _balances[dst] = add(_balances[dst], wad); Transfer(msg.sender, dst, wad); return true; } function add(uint256 x, uint256 y) internal pure returns (uint256) { uint256 z = x + y; require(z >= x && z>=y); return z; } function sub(uint256 x, uint256 y) internal pure returns (uint256) { uint256 z = x - y; require(x >= y && z <= x); return z; } } contract IPXToken is IPXTokenBase { string public symbol = "IPX"; string public name = "InterPlanetary X"; uint256 public decimals = 18; uint256 public freezedValue = 4*(10**8)*(10**18); uint256 public eachUnfreezeValue = 4*(10**7)*(10**18); address public owner; address public freezeAddress; bool public freezed; struct FreezeStruct { uint256 unfreezeTime; uint idx; } FreezeStruct[] public unfreezeTimeMap; function IPXToken() public { _supply = 2*(10**9)*(10**18); _balances[msg.sender] = _supply; owner = msg.sender; unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1533052800, idx: 1})); // Aug/01/2018 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1535731200, idx: 2})); // Sep/01/2018 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1538323200, idx: 3})); // Oct/01/2018 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1541001600, idx: 4})); // Nov/01/2018 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1543593600, idx: 5})); // Dec/01/2018 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1546272000, idx: 6})); // Jan/01/2019 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1548950400, idx: 7})); // Feb/01/2019 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1551369600, idx: 8})); // Mar/01/2019 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1554048000, idx: 9})); // Apr/01/2019 unfreezeTimeMap.push(FreezeStruct({unfreezeTime:1556640000, idx: 10})); // May/01/2019 } function transfer(address dst, uint256 wad) public returns (bool) { assert(checkFreezeValue(wad)); return super.transfer(dst, wad); } function checkFreezeValue(uint256 wad) internal view returns(bool) { if ( msg.sender == freezeAddress ) { for ( uint i = 0; i<unfreezeTimeMap.length; i++ ) { uint idx = unfreezeTimeMap[i].idx; uint256 unfreezeTime = unfreezeTimeMap[i].unfreezeTime; if ( now<unfreezeTime ) { uint256 shouldFreezedValue = freezedValue - (idx-1)*eachUnfreezeValue; if (sub(_balances[msg.sender], wad) < shouldFreezedValue) { return false; } } } } return true; } function freeze(address freezeAddr) public returns (bool) { require(msg.sender == owner); require(freezed == false); freezeAddress = freezeAddr; freezed = true; return super.transfer(freezeAddr, freezedValue); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"unfreezeTimeMap","outputs":[{"name":"unfreezeTime","type":"uint256"},{"name":"idx","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"freezedValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"src","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"freezeAddr","type":"address"}],"name":"freeze","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"eachUnfreezeValue","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"freezed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"freezeAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
60606040526040805190810160405280600381526020017f4950580000000000000000000000000000000000000000000000000000000000815250600290805190602001906200005192919062000508565b506040805190810160405280601081526020017f496e746572506c616e6574617279205800000000000000000000000000000000815250600390805190602001906200009f92919062000508565b5060126004556b014adf4b7320334b900000006005556a21165458500521280000006006553415620000d057600080fd5b6b06765c793fa10079d0000000600081905550600054600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555033600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600980548060010182816200018091906200058f565b916000526020600020906002020160006040805190810160405280635b608780815260200160018152509091909150600082015181600001556020820151816001015550505060098054806001018281620001dc91906200058f565b916000526020600020906002020160006040805190810160405280635b8966008152602001600281525090919091506000820151816000015560208201518160010155505050600980548060010182816200023891906200058f565b916000526020600020906002020160006040805190810160405280635bb0f3008152602001600381525090919091506000820151816000015560208201518160010155505050600980548060010182816200029491906200058f565b916000526020600020906002020160006040805190810160405280635bd9d180815260200160048152509091909150600082015181600001556020820151816001015550505060098054806001018281620002f091906200058f565b916000526020600020906002020160006040805190810160405280635c015e808152602001600581525090919091506000820151816000015560208201518160010155505050600980548060010182816200034c91906200058f565b916000526020600020906002020160006040805190810160405280635c2a3d00815260200160068152509091909150600082015181600001556020820151816001015550505060098054806001018281620003a891906200058f565b916000526020600020906002020160006040805190810160405280635c531b808152602001600781525090919091506000820151816000015560208201518160010155505050600980548060010182816200040491906200058f565b916000526020600020906002020160006040805190810160405280635c7805808152602001600881525090919091506000820151816000015560208201518160010155505050600980548060010182816200046091906200058f565b916000526020600020906002020160006040805190810160405280635ca0e400815260200160098152509091909150600082015181600001556020820151816001015550505060098054806001018281620004bc91906200058f565b916000526020600020906002020160006040805190810160405280635cc871008152602001600a815250909190915060008201518160000155602082015181600101555050506200061e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200054b57805160ff19168380011785556200057c565b828001600101855582156200057c579182015b828111156200057b5782518255916020019190600101906200055e565b5b5090506200058b9190620005c4565b5090565b815481835581811511620005bf57600202816002028360005260206000209182019101620005be9190620005ec565b5b505050565b620005e991905b80821115620005e5576000816000905550600101620005cb565b5090565b90565b6200061b91905b808211156200061757600080820160009055600182016000905550600201620005f3565b5090565b90565b610b7c806200062e6000396000f3006060604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100ca57806318160ddd14610158578063313ce567146101815780634e6a6ffc146101aa5780635f5868db146101e857806370a08231146102115780638d1fdf2f1461025e5780638da5cb5b146102af57806395d89b41146103045780639c04378314610392578063a9059cbb146103bb578063b7540d9f14610415578063e45da0be14610442575b600080fd5b34156100d557600080fd5b6100dd610497565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561011d578082015181840152602081019050610102565b50505050905090810190601f16801561014a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016357600080fd5b61016b610535565b6040518082815260200191505060405180910390f35b341561018c57600080fd5b61019461053e565b6040518082815260200191505060405180910390f35b34156101b557600080fd5b6101cb6004808035906020019091905050610544565b604051808381526020018281526020019250505060405180910390f35b34156101f357600080fd5b6101fb610577565b6040518082815260200191505060405180910390f35b341561021c57600080fd5b610248600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061057d565b6040518082815260200191505060405180910390f35b341561026957600080fd5b610295600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105c6565b604051808215151515815260200191505060405180910390f35b34156102ba57600080fd5b6102c26106b5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561030f57600080fd5b6103176106db565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561035757808201518184015260208101905061033c565b50505050905090810190601f1680156103845780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561039d57600080fd5b6103a5610779565b6040518082815260200191505060405180910390f35b34156103c657600080fd5b6103fb600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061077f565b604051808215151515815260200191505060405180910390f35b341561042057600080fd5b6104286107a4565b604051808215151515815260200191505060405180910390f35b341561044d57600080fd5b6104556107b7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561052d5780601f106105025761010080835404028352916020019161052d565b820191906000526020600020905b81548152906001019060200180831161051057829003601f168201915b505050505081565b60008054905090565b60045481565b60098181548110151561055357fe5b90600052602060002090600202016000915090508060000154908060010154905082565b60055481565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561062457600080fd5b60001515600860149054906101000a900460ff16151514151561064657600080fd5b81600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600860146101000a81548160ff0219169083151502179055506106ae826005546107dd565b9050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107715780601f1061074657610100808354040283529160200191610771565b820191906000526020600020905b81548152906001019060200180831161075457829003601f168201915b505050505081565b60065481565b600061078a826109b4565b151561079257fe5b61079c83836107dd565b905092915050565b600860149054906101000a900460ff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015151561082d57600080fd5b610876600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610af6565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610902600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610b23565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000806000806000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610ae857600093505b600980549050841015610ae757600984815481101515610a3357fe5b9060005260206000209060020201600101549250600984815481101515610a5657fe5b906000526020600020906002020160000154915081421015610ada57600654600184030260055403905080610aca600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488610af6565b1015610ad95760009450610aed565b5b8380600101945050610a17565b5b600194505b50505050919050565b6000808284039050828410158015610b0e5750838111155b1515610b1957600080fd5b8091505092915050565b6000808284019050838110158015610b3b5750828110155b1515610b4657600080fd5b80915050929150505600a165627a7a72305820663c719718fc271135b6003fa471fe2b0b4324f630b0d579bb425cf5f461176a0029
Deployed Bytecode
0x6060604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100ca57806318160ddd14610158578063313ce567146101815780634e6a6ffc146101aa5780635f5868db146101e857806370a08231146102115780638d1fdf2f1461025e5780638da5cb5b146102af57806395d89b41146103045780639c04378314610392578063a9059cbb146103bb578063b7540d9f14610415578063e45da0be14610442575b600080fd5b34156100d557600080fd5b6100dd610497565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561011d578082015181840152602081019050610102565b50505050905090810190601f16801561014a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561016357600080fd5b61016b610535565b6040518082815260200191505060405180910390f35b341561018c57600080fd5b61019461053e565b6040518082815260200191505060405180910390f35b34156101b557600080fd5b6101cb6004808035906020019091905050610544565b604051808381526020018281526020019250505060405180910390f35b34156101f357600080fd5b6101fb610577565b6040518082815260200191505060405180910390f35b341561021c57600080fd5b610248600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061057d565b6040518082815260200191505060405180910390f35b341561026957600080fd5b610295600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105c6565b604051808215151515815260200191505060405180910390f35b34156102ba57600080fd5b6102c26106b5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561030f57600080fd5b6103176106db565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561035757808201518184015260208101905061033c565b50505050905090810190601f1680156103845780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561039d57600080fd5b6103a5610779565b6040518082815260200191505060405180910390f35b34156103c657600080fd5b6103fb600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061077f565b604051808215151515815260200191505060405180910390f35b341561042057600080fd5b6104286107a4565b604051808215151515815260200191505060405180910390f35b341561044d57600080fd5b6104556107b7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561052d5780601f106105025761010080835404028352916020019161052d565b820191906000526020600020905b81548152906001019060200180831161051057829003601f168201915b505050505081565b60008054905090565b60045481565b60098181548110151561055357fe5b90600052602060002090600202016000915090508060000154908060010154905082565b60055481565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561062457600080fd5b60001515600860149054906101000a900460ff16151514151561064657600080fd5b81600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600860146101000a81548160ff0219169083151502179055506106ae826005546107dd565b9050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107715780601f1061074657610100808354040283529160200191610771565b820191906000526020600020905b81548152906001019060200180831161075457829003601f168201915b505050505081565b60065481565b600061078a826109b4565b151561079257fe5b61079c83836107dd565b905092915050565b600860149054906101000a900460ff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015151561082d57600080fd5b610876600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610af6565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610902600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610b23565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000806000806000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610ae857600093505b600980549050841015610ae757600984815481101515610a3357fe5b9060005260206000209060020201600101549250600984815481101515610a5657fe5b906000526020600020906002020160000154915081421015610ada57600654600184030260055403905080610aca600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488610af6565b1015610ad95760009450610aed565b5b8380600101945050610a17565b5b600194505b50505050919050565b6000808284039050828410158015610b0e5750838111155b1515610b1957600080fd5b8091505092915050565b6000808284019050838110158015610b3b5750828110155b1515610b4657600080fd5b80915050929150505600a165627a7a72305820663c719718fc271135b6003fa471fe2b0b4324f630b0d579bb425cf5f461176a0029
Swarm Source
bzzr://663c719718fc271135b6003fa471fe2b0b4324f630b0d579bb425cf5f461176a
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.