ERC-20
Overview
Max Total Supply
1,000 MDT
Holders
46
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MillionDollarToken
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-08-17 */ pragma solidity ^0.4.8; contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); } contract MillionDollarToken { //~ Hashes for lookups mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; //~ Events event Transfer(address indexed from, address indexed to, uint256 value); //~ Setup string public standard = 'MillionDollarToken'; string public name = "MillionDollarToken"; string public symbol = "MDT"; uint8 public decimals = 0; uint256 public totalSupply = 1000; //~ Init we set totalSupply function MillionDollarToken() { balanceOf[msg.sender] = totalSupply; } //~~ Methods based on Token.sol from Ethereum Foundation //~ Transfer FLIP function transfer(address _to, uint256 _value) { if (_to == 0x0) throw; if (balanceOf[msg.sender] < _value) throw; if (balanceOf[_to] + _value < balanceOf[_to]) throw; balanceOf[msg.sender] -= _value; balanceOf[_to] += _value; Transfer(msg.sender, _to, _value); } function approve(address _spender, uint256 _value) returns (bool success) { allowance[msg.sender][_spender] = _value; return true; } function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { if (_to == 0x0) throw; if (balanceOf[_from] < _value) throw; if (balanceOf[_to] + _value < balanceOf[_to]) throw; if (_value > allowance[_from][msg.sender]) throw; balanceOf[_from] -= _value; balanceOf[_to] += _value; allowance[_from][msg.sender] -= _value; Transfer(_from, _to, _value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"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
60a0604052601260608190527f4d696c6c696f6e446f6c6c6172546f6b656e0000000000000000000000000000608090815261003e9160029190610104565b506040805180820190915260128082527f4d696c6c696f6e446f6c6c6172546f6b656e0000000000000000000000000000602090920191825261008391600391610104565b506040805180820190915260038082527f4d4454000000000000000000000000000000000000000000000000000000000060209092019182526100c891600491610104565b506005805460ff191690556103e860065534156100e157fe5b5b600654600160a060020a0333166000908152602081905260409020555b6101a4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014557805160ff1916838001178555610172565b82800160010185558215610172579182015b82811115610172578251825591602001919060010190610157565b5b5061017f929150610183565b5090565b6101a191905b8082111561017f5760008155600101610189565b5090565b90565b61097c806101b36000396000f300606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ae578063095ea7b31461013e57806318160ddd1461017157806323b872dd14610193578063313ce567146101cc5780635a3b7e42146101f257806370a082311461028257806395d89b41146102b0578063a9059cbb14610340578063cae9ca5114610361578063dd62ed3e146103d8575bfe5b34156100b657fe5b6100be61040c565b604080516020808252835181830152835191928392908301918501908083838215610104575b80518252602083111561010457601f1990920191602091820191016100e4565b505050905090810190601f1680156101305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014657fe5b61015d600160a060020a036004351660243561049a565b604080519115158252519081900360200190f35b341561017957fe5b6101816104cb565b60408051918252519081900360200190f35b341561019b57fe5b61015d600160a060020a03600435811690602435166044356104d1565b604080519115158252519081900360200190f35b34156101d457fe5b6101dc6105f6565b6040805160ff9092168252519081900360200190f35b34156101fa57fe5b6100be6105ff565b604080516020808252835181830152835191928392908301918501908083838215610104575b80518252602083111561010457601f1990920191602091820191016100e4565b505050905090810190601f1680156101305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561028a57fe5b610181600160a060020a036004351661068a565b60408051918252519081900360200190f35b34156102b857fe5b6100be61069c565b604080516020808252835181830152835191928392908301918501908083838215610104575b80518252602083111561010457601f1990920191602091820191016100e4565b505050905090810190601f1680156101305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561034857fe5b61035f600160a060020a036004351660243561072a565b005b341561036957fe5b604080516020600460443581810135601f810184900484028501840190955284845261015d948235600160a060020a03169460248035956064949293919092019181908401838280828437509496506107f995505050505050565b604080519115158252519081900360200190f35b34156103e057fe5b610181600160a060020a0360043581169060243516610933565b60408051918252519081900360200190f35b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104925780601f1061046757610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161047557829003601f168201915b505050505081565b600160a060020a03338116600090815260016020818152604080842094871684529390529190208290555b92915050565b60065481565b6000600160a060020a03831615156104e95760006000fd5b600160a060020a038416600090815260208190526040902054829010156105105760006000fd5b600160a060020a03831660009081526020819052604090205482810110156105385760006000fd5b600160a060020a038085166000908152600160209081526040808320339094168352929052205482111561056c5760006000fd5b600160a060020a0380851660008181526020818152604080832080548890039055878516808452818420805489019055848452600183528184203390961684529482529182902080548790039055815186815291517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060015b9392505050565b60055460ff1681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104925780601f1061046757610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161047557829003601f168201915b505050505081565b60006020819052908152604090205481565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104925780601f1061046757610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161047557829003601f168201915b505050505081565b600160a060020a03821615156107405760006000fd5b600160a060020a033316600090815260208190526040902054819010156107675760006000fd5b600160a060020a038216600090815260208190526040902054818101101561078f5760006000fd5b600160a060020a0333811660008181526020818152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35b5050565b600083610806818561049a565b1561092a5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383600083146108ca575b8051825260208311156108ca57601f1990920191602091820191016108aa565b505050905090810190601f1680156108f65780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561091457fe5b6102c65a03f1151561092257fe5b505050600191505b5b509392505050565b6001602090815260009283526040808420909152908252902054815600a165627a7a72305820a13348f3b3a5fee693a47fd959e8a34865d7ebac5f1e99f6a9009a182f7be1030029
Deployed Bytecode
0x606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ae578063095ea7b31461013e57806318160ddd1461017157806323b872dd14610193578063313ce567146101cc5780635a3b7e42146101f257806370a082311461028257806395d89b41146102b0578063a9059cbb14610340578063cae9ca5114610361578063dd62ed3e146103d8575bfe5b34156100b657fe5b6100be61040c565b604080516020808252835181830152835191928392908301918501908083838215610104575b80518252602083111561010457601f1990920191602091820191016100e4565b505050905090810190601f1680156101305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014657fe5b61015d600160a060020a036004351660243561049a565b604080519115158252519081900360200190f35b341561017957fe5b6101816104cb565b60408051918252519081900360200190f35b341561019b57fe5b61015d600160a060020a03600435811690602435166044356104d1565b604080519115158252519081900360200190f35b34156101d457fe5b6101dc6105f6565b6040805160ff9092168252519081900360200190f35b34156101fa57fe5b6100be6105ff565b604080516020808252835181830152835191928392908301918501908083838215610104575b80518252602083111561010457601f1990920191602091820191016100e4565b505050905090810190601f1680156101305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561028a57fe5b610181600160a060020a036004351661068a565b60408051918252519081900360200190f35b34156102b857fe5b6100be61069c565b604080516020808252835181830152835191928392908301918501908083838215610104575b80518252602083111561010457601f1990920191602091820191016100e4565b505050905090810190601f1680156101305780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561034857fe5b61035f600160a060020a036004351660243561072a565b005b341561036957fe5b604080516020600460443581810135601f810184900484028501840190955284845261015d948235600160a060020a03169460248035956064949293919092019181908401838280828437509496506107f995505050505050565b604080519115158252519081900360200190f35b34156103e057fe5b610181600160a060020a0360043581169060243516610933565b60408051918252519081900360200190f35b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104925780601f1061046757610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161047557829003601f168201915b505050505081565b600160a060020a03338116600090815260016020818152604080842094871684529390529190208290555b92915050565b60065481565b6000600160a060020a03831615156104e95760006000fd5b600160a060020a038416600090815260208190526040902054829010156105105760006000fd5b600160a060020a03831660009081526020819052604090205482810110156105385760006000fd5b600160a060020a038085166000908152600160209081526040808320339094168352929052205482111561056c5760006000fd5b600160a060020a0380851660008181526020818152604080832080548890039055878516808452818420805489019055848452600183528184203390961684529482529182902080548790039055815186815291517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060015b9392505050565b60055460ff1681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104925780601f1061046757610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161047557829003601f168201915b505050505081565b60006020819052908152604090205481565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104925780601f1061046757610100808354040283529160200191610492565b820191906000526020600020905b81548152906001019060200180831161047557829003601f168201915b505050505081565b600160a060020a03821615156107405760006000fd5b600160a060020a033316600090815260208190526040902054819010156107675760006000fd5b600160a060020a038216600090815260208190526040902054818101101561078f5760006000fd5b600160a060020a0333811660008181526020818152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35b5050565b600083610806818561049a565b1561092a5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383600083146108ca575b8051825260208311156108ca57601f1990920191602091820191016108aa565b505050905090810190601f1680156108f65780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b151561091457fe5b6102c65a03f1151561092257fe5b505050600191505b5b509392505050565b6001602090815260009283526040808420909152908252902054815600a165627a7a72305820a13348f3b3a5fee693a47fd959e8a34865d7ebac5f1e99f6a9009a182f7be1030029
Swarm Source
bzzr://a13348f3b3a5fee693a47fd959e8a34865d7ebac5f1e99f6a9009a182f7be103
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.