Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000,000 FUD
Holders
3,703
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 8 Decimals)
Balance
5,230 FUDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DimonCoin
Compiler Version
v0.4.16+commit.d7661dd9
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-10-07 */ pragma solidity ^0.4.16; contract ForeignToken { function balanceOf(address _owner) constant returns (uint256); function transfer(address _to, uint256 _value) returns (bool); } contract DimonCoin { address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; uint256 public totalSupply = 100000000 * 10**8; function name() constant returns (string) { return "DimonCoin"; } function symbol() constant returns (string) { return "FUD"; } function decimals() constant returns (uint8) { return 8; } event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); function DimonCoin() { owner = msg.sender; balances[msg.sender] = totalSupply; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } function getEthBalance(address _addr) constant returns(uint) { return _addr.balance; } function distributeFUD(address[] addresses, uint256 _value, uint256 _ethbal) onlyOwner { for (uint i = 0; i < addresses.length; i++) { if (getEthBalance(addresses[i]) < _ethbal) { continue; } balances[owner] -= _value; balances[addresses[i]] += _value; Transfer(owner, addresses[i], _value); } } function balanceOf(address _owner) constant returns (uint256) { return balances[_owner]; } // mitigates the ERC20 short address attack modifier onlyPayloadSize(uint size) { assert(msg.data.length >= size + 4); _; } function transfer(address _to, uint256 _value) onlyPayloadSize(2 * 32) returns (bool success) { if (_value == 0) { return false; } uint256 fromBalance = balances[msg.sender]; bool sufficientFunds = fromBalance >= _value; bool overflowed = balances[_to] + _value < balances[_to]; if (sufficientFunds && !overflowed) { balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint256 _value) onlyPayloadSize(2 * 32) returns (bool success) { if (_value == 0) { return false; } uint256 fromBalance = balances[_from]; uint256 allowance = allowed[_from][msg.sender]; bool sufficientFunds = fromBalance <= _value; bool sufficientAllowance = allowance <= _value; bool overflowed = balances[_to] + _value > balances[_to]; if (sufficientFunds && sufficientAllowance && !overflowed) { balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; Transfer(_from, _to, _value); return true; } else { return false; } } function approve(address _spender, uint256 _value) returns (bool success) { // mitigates the ERC20 spend/approval race condition if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; } allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant returns (uint256) { return allowed[_owner][_spender]; } function withdrawForeignTokens(address _tokenContract) returns (bool) { require(msg.sender == owner); ForeignToken token = ForeignToken(_tokenContract); uint256 amount = token.balanceOf(address(this)); return token.transfer(owner, amount); } }
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":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"getEthBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addresses","type":"address[]"},{"name":"_value","type":"uint256"},{"name":"_ethbal","type":"uint256"}],"name":"distributeFUD","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenContract","type":"address"}],"name":"withdrawForeignTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
606060405260008054600160a060020a03191633600160a060020a0316179055662386f26fc10000600355341561003557600080fd5b5b60008054600160a060020a03191633600160a060020a0316908117825560035490825260016020526040909120555b5b610a6e806100756000396000f300606060405236156100a95763ffffffff60e060020a60003504166306fdde0381146100ae578063095ea7b31461013957806318160ddd1461016f57806323b872dd14610194578063313ce567146101d05780634d2301cc146101f95780636379ed9d1461022a57806370a082311461028257806395d89b41146102b3578063a9059cbb1461033e578063dd62ed3e14610374578063e58fc54c146103ab578063f2fde38b146103de575b600080fd5b34156100b957600080fd5b6100c16103ff565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014457600080fd5b61015b600160a060020a0360043516602435610441565b604051901515815260200160405180910390f35b341561017a57600080fd5b6101826104ed565b60405190815260200160405180910390f35b341561019f57600080fd5b61015b600160a060020a03600435811690602435166044356104f3565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101e3610628565b60405160ff909116815260200160405180910390f35b341561020457600080fd5b610182600160a060020a036004351661062e565b60405190815260200160405180910390f35b341561023557600080fd5b61028060046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496505084359460200135935061063f92505050565b005b341561028d57600080fd5b610182600160a060020a0360043516610755565b60405190815260200160405180910390f35b34156102be57600080fd5b6100c1610774565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561034957600080fd5b61015b600160a060020a03600435166024356107b6565b604051901515815260200160405180910390f35b341561037f57600080fd5b610182600160a060020a036004358116906024351661089c565b60405190815260200160405180910390f35b34156103b657600080fd5b61015b600160a060020a03600435166108c9565b604051901515815260200160405180910390f35b34156103e957600080fd5b610280600160a060020a03600435166109e8565b005b610407610a30565b60408051908101604052600981527f44696d6f6e436f696e0000000000000000000000000000000000000000000000602082015290505b90565b600081158015906104765750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b15610483575060006104e7565b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035481565b600080808080806040604436101561050757fe5b8715156105175760009650610619565b600160a060020a03808b16600090815260016020818152604080842054600283528185203387168652835281852054958f168552929091529091205490975090955088871180159550898711159450818a0191909111925084906105785750825b8015610582575081155b1561061457600160a060020a03808a16600081815260016020908152604080832080548e0190558e851680845281842080548f9003905560028352818420339096168452949091529081902080548c900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908b905190815260200160405180910390a360019650610619565b600096505b5b5b5050505050509392505050565b60085b90565b600160a060020a038116315b919050565b6000805433600160a060020a0390811691161461065b57600080fd5b5060005b835181101561074d578161068785838151811061067857fe5b9060200190602002015161062e565b101561069257610745565b60008054600160a060020a0316815260016020819052604082208054869003905584918684815181106106c157fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805490910190558381815181106106f757fe5b90602001906020020151600054600160a060020a0391821691167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a35b60010161065f565b5b5b50505050565b600160a060020a0381166000908152600160205260409020545b919050565b61077c610a30565b60408051908101604052600381527f4655440000000000000000000000000000000000000000000000000000000000602082015290505b90565b6000808080604060443610156107c857fe5b8515156107d85760009450610890565b600160a060020a0333811660009081526001602052604080822054928a168252902054909450868510801594508188019190911092508390610818575081155b1561088b57600160a060020a0333811660008181526001602052604080822080548b90039055928a168082529083902080548a019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9089905190815260200160405180910390a360019450610890565b600094505b5b5b5050505092915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600080548190819033600160a060020a039081169116146108e957600080fd5b83915081600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561094357600080fd5b6102c65a03f1151561095457600080fd5b505050604051805160008054919350600160a060020a03808616935063a9059cbb92169084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156109c457600080fd5b6102c65a03f115156109d557600080fd5b50505060405180519350505b5050919050565b60005433600160a060020a03908116911614610a0357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b602060405190810160405260008152905600a165627a7a7230582090685583a7ba0fe8d10820a4a616d9e0ba7ac2327f5d089fa62d9f4d10fd5f670029
Deployed Bytecode
0x606060405236156100a95763ffffffff60e060020a60003504166306fdde0381146100ae578063095ea7b31461013957806318160ddd1461016f57806323b872dd14610194578063313ce567146101d05780634d2301cc146101f95780636379ed9d1461022a57806370a082311461028257806395d89b41146102b3578063a9059cbb1461033e578063dd62ed3e14610374578063e58fc54c146103ab578063f2fde38b146103de575b600080fd5b34156100b957600080fd5b6100c16103ff565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014457600080fd5b61015b600160a060020a0360043516602435610441565b604051901515815260200160405180910390f35b341561017a57600080fd5b6101826104ed565b60405190815260200160405180910390f35b341561019f57600080fd5b61015b600160a060020a03600435811690602435166044356104f3565b604051901515815260200160405180910390f35b34156101db57600080fd5b6101e3610628565b60405160ff909116815260200160405180910390f35b341561020457600080fd5b610182600160a060020a036004351661062e565b60405190815260200160405180910390f35b341561023557600080fd5b61028060046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496505084359460200135935061063f92505050565b005b341561028d57600080fd5b610182600160a060020a0360043516610755565b60405190815260200160405180910390f35b34156102be57600080fd5b6100c1610774565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100fe5780820151818401525b6020016100e5565b50505050905090810190601f16801561012b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561034957600080fd5b61015b600160a060020a03600435166024356107b6565b604051901515815260200160405180910390f35b341561037f57600080fd5b610182600160a060020a036004358116906024351661089c565b60405190815260200160405180910390f35b34156103b657600080fd5b61015b600160a060020a03600435166108c9565b604051901515815260200160405180910390f35b34156103e957600080fd5b610280600160a060020a03600435166109e8565b005b610407610a30565b60408051908101604052600981527f44696d6f6e436f696e0000000000000000000000000000000000000000000000602082015290505b90565b600081158015906104765750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b15610483575060006104e7565b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035481565b600080808080806040604436101561050757fe5b8715156105175760009650610619565b600160a060020a03808b16600090815260016020818152604080842054600283528185203387168652835281852054958f168552929091529091205490975090955088871180159550898711159450818a0191909111925084906105785750825b8015610582575081155b1561061457600160a060020a03808a16600081815260016020908152604080832080548e0190558e851680845281842080548f9003905560028352818420339096168452949091529081902080548c900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908b905190815260200160405180910390a360019650610619565b600096505b5b5b5050505050509392505050565b60085b90565b600160a060020a038116315b919050565b6000805433600160a060020a0390811691161461065b57600080fd5b5060005b835181101561074d578161068785838151811061067857fe5b9060200190602002015161062e565b101561069257610745565b60008054600160a060020a0316815260016020819052604082208054869003905584918684815181106106c157fe5b90602001906020020151600160a060020a031681526020810191909152604001600020805490910190558381815181106106f757fe5b90602001906020020151600054600160a060020a0391821691167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a35b60010161065f565b5b5b50505050565b600160a060020a0381166000908152600160205260409020545b919050565b61077c610a30565b60408051908101604052600381527f4655440000000000000000000000000000000000000000000000000000000000602082015290505b90565b6000808080604060443610156107c857fe5b8515156107d85760009450610890565b600160a060020a0333811660009081526001602052604080822054928a168252902054909450868510801594508188019190911092508390610818575081155b1561088b57600160a060020a0333811660008181526001602052604080822080548b90039055928a168082529083902080548a019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9089905190815260200160405180910390a360019450610890565b600094505b5b5b5050505092915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600080548190819033600160a060020a039081169116146108e957600080fd5b83915081600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561094357600080fd5b6102c65a03f1151561095457600080fd5b505050604051805160008054919350600160a060020a03808616935063a9059cbb92169084906040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156109c457600080fd5b6102c65a03f115156109d557600080fd5b50505060405180519350505b5050919050565b60005433600160a060020a03908116911614610a0357600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b602060405190810160405260008152905600a165627a7a7230582090685583a7ba0fe8d10820a4a616d9e0ba7ac2327f5d089fa62d9f4d10fd5f670029
Swarm Source
bzzr://90685583a7ba0fe8d10820a4a616d9e0ba7ac2327f5d089fa62d9f4d10fd5f67
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.