ERC-20
Overview
Max Total Supply
1,756,024,166.2187 DMINT
Holders
465
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
500,000 DMINTValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
DMINT
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-03-15 */ pragma solidity ^0.4.11; contract DMINT { string public name = 'DMINT'; string public symbol = 'DMINT'; uint8 public decimals = 18; uint256 public totalSupply = 1000000000000000000000000000; uint public miningReward = 1000000000000000000; uint private divider; uint private randomNumber; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => uint256) public successesOf; mapping (address => uint256) public failsOf; mapping (address => mapping (address => uint256)) public allowance; /* This generates a public event on the blockchain that will notify clients */ event Transfer(address indexed from, address indexed to, uint256 value); /* Initializes contract with initial supply tokens to the creator of the contract */ function DMINT() public { balanceOf[msg.sender] = totalSupply; divider -= 1; divider /= 1000000000; } /* Internal transfer, only can be called by this contract */ function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0); require(balanceOf[_from] >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = balanceOf[_from] + balanceOf[_to]; balanceOf[_from] -= _value; balanceOf[_to] += _value; Transfer(_from, _to, _value); assert(balanceOf[_from] + balanceOf[_to] == previousBalances); } /* Send coins */ function transfer(address _to, uint256 _value) external { _transfer(msg.sender, _to, _value); } /* Transfer tokens from other address */ function transferFrom(address _from, address _to, uint256 _value) external returns (bool success) { require(_value <= allowance[_from][msg.sender]); // Check allowance allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } /* Set allowance for other address */ function approve(address _spender, uint256 _value) external returns (bool success) { allowance[msg.sender][_spender] = _value; return true; } function () external payable { if (msg.value == 0) { randomNumber += block.timestamp + uint(msg.sender); uint minedAtBlock = uint(block.blockhash(block.number - 1)); uint minedHashRel = uint(sha256(minedAtBlock + randomNumber + uint(msg.sender))) / divider; uint balanceRel = balanceOf[msg.sender] * 1000000000 / totalSupply; if (balanceRel >= 100000) { uint k = balanceRel / 100000; if (k > 255) { k = 255; } k = 2 ** k; balanceRel = 500000000 / k; balanceRel = 500000000 - balanceRel; if (minedHashRel < balanceRel) { uint reward = miningReward + minedHashRel * 100000000000000; balanceOf[msg.sender] += reward; totalSupply += reward; Transfer(0, this, reward); Transfer(this, msg.sender, reward); successesOf[msg.sender]++; } else { failsOf[msg.sender]++; } } else { revert(); } } else { revert(); } } }
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":"miningReward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"failsOf","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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"successesOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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
606060405260408051908101604052600581527f444d494e540000000000000000000000000000000000000000000000000000006020820152600090805161004b9291602001906100fb565b5060408051908101604052600581527f444d494e54000000000000000000000000000000000000000000000000000000602082015260019080516100939291602001906100fb565b506002805460ff191660121790556b033b2e3c9fd0803ce8000000600355670de0b6b3a764000060045534156100c857600080fd5b60035433600160a060020a031660009081526007602052604090205560058054633b9aca00600019909101049055610196565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061013c57805160ff1916838001178555610169565b82800160010185558215610169579182015b8281111561016957825182559160200191906001019061014e565b50610175929150610179565b5090565b61019391905b80821115610175576000815560010161017f565b90565b610817806101a56000396000f3006060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146102bc578063095ea7b31461034657806318160ddd1461037c57806323b872dd146103a1578063313ce567146103c95780634ac2d103146103f257806370a0823114610405578063753ded151461042457806395d89b4114610443578063a9059cbb14610456578063cd9354e41461047a578063dd62ed3e14610499575b6000808080803415156102b0576006805433600160a060020a031642810190910191829055600554436000190140975091600291908801016000604051602001526040519081526020908101906040518083038160008661646e5a03f1151561012157600080fd5b50506040518051905081151561013357fe5b600354600160a060020a03331660009081526007602052604090205492909104955090633b9aca000281151561016557fe5b049250620186a083106102b057620186a08304915060ff8211156101885760ff91505b8160020a915081631dcd650081151561019d57fe5b04631dcd65000392508284101561028b5750600454600160a060020a033381166000908152600760205260408082208054655af3107a40008902959095019485019055600380548501905530909216917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a333600160a060020a031630600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a3600160a060020a0333166000908152600860205260409020805460010190556102ab565b600160a060020a0333166000908152600960205260409020805460010190555b6102b5565b600080fd5b5050505050005b34156102c757600080fd5b6102cf6104be565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561030b5780820151838201526020016102f3565b50505050905090810190601f1680156103385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561035157600080fd5b610368600160a060020a036004351660243561055c565b604051901515815260200160405180910390f35b341561038757600080fd5b61038f61058c565b60405190815260200160405180910390f35b34156103ac57600080fd5b610368600160a060020a0360043581169060243516604435610592565b34156103d457600080fd5b6103dc610609565b60405160ff909116815260200160405180910390f35b34156103fd57600080fd5b61038f610612565b341561041057600080fd5b61038f600160a060020a0360043516610618565b341561042f57600080fd5b61038f600160a060020a036004351661062a565b341561044e57600080fd5b6102cf61063c565b341561046157600080fd5b610478600160a060020a03600435166024356106a7565b005b341561048557600080fd5b61038f600160a060020a03600435166106b6565b34156104a457600080fd5b61038f600160a060020a03600435811690602435166106c8565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105545780601f1061052957610100808354040283529160200191610554565b820191906000526020600020905b81548152906001019060200180831161053757829003601f168201915b505050505081565b600160a060020a033381166000908152600a60209081526040808320938616835292905220819055600192915050565b60035481565b600160a060020a038084166000908152600a60209081526040808320339094168352929052908120548211156105c757600080fd5b600160a060020a038085166000908152600a6020908152604080832033909416835292905220805483900390556105ff8484846106e5565b5060019392505050565b60025460ff1681565b60045481565b60076020526000908152604090205481565b60096020526000908152604090205481565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105545780601f1061052957610100808354040283529160200191610554565b6106b23383836106e5565b5050565b60086020526000908152604090205481565b600a60209081526000928352604080842090915290825290205481565b6000600160a060020a03831615156106fc57600080fd5b600160a060020a0384166000908152600760205260409020548290101561072257600080fd5b600160a060020a0383166000908152600760205260409020548281011161074857600080fd5b50600160a060020a0380831660008181526007602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a038084166000908152600760205260408082205492871682529020540181146107e557fe5b505050505600a165627a7a7230582073f7a1420a514f1e6ad454c906fd61bbe3f44a12c59781fbdd0684ea0eebb81f0029
Deployed Bytecode
0x6060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146102bc578063095ea7b31461034657806318160ddd1461037c57806323b872dd146103a1578063313ce567146103c95780634ac2d103146103f257806370a0823114610405578063753ded151461042457806395d89b4114610443578063a9059cbb14610456578063cd9354e41461047a578063dd62ed3e14610499575b6000808080803415156102b0576006805433600160a060020a031642810190910191829055600554436000190140975091600291908801016000604051602001526040519081526020908101906040518083038160008661646e5a03f1151561012157600080fd5b50506040518051905081151561013357fe5b600354600160a060020a03331660009081526007602052604090205492909104955090633b9aca000281151561016557fe5b049250620186a083106102b057620186a08304915060ff8211156101885760ff91505b8160020a915081631dcd650081151561019d57fe5b04631dcd65000392508284101561028b5750600454600160a060020a033381166000908152600760205260408082208054655af3107a40008902959095019485019055600380548501905530909216917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a333600160a060020a031630600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a3600160a060020a0333166000908152600860205260409020805460010190556102ab565b600160a060020a0333166000908152600960205260409020805460010190555b6102b5565b600080fd5b5050505050005b34156102c757600080fd5b6102cf6104be565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561030b5780820151838201526020016102f3565b50505050905090810190601f1680156103385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561035157600080fd5b610368600160a060020a036004351660243561055c565b604051901515815260200160405180910390f35b341561038757600080fd5b61038f61058c565b60405190815260200160405180910390f35b34156103ac57600080fd5b610368600160a060020a0360043581169060243516604435610592565b34156103d457600080fd5b6103dc610609565b60405160ff909116815260200160405180910390f35b34156103fd57600080fd5b61038f610612565b341561041057600080fd5b61038f600160a060020a0360043516610618565b341561042f57600080fd5b61038f600160a060020a036004351661062a565b341561044e57600080fd5b6102cf61063c565b341561046157600080fd5b610478600160a060020a03600435166024356106a7565b005b341561048557600080fd5b61038f600160a060020a03600435166106b6565b34156104a457600080fd5b61038f600160a060020a03600435811690602435166106c8565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105545780601f1061052957610100808354040283529160200191610554565b820191906000526020600020905b81548152906001019060200180831161053757829003601f168201915b505050505081565b600160a060020a033381166000908152600a60209081526040808320938616835292905220819055600192915050565b60035481565b600160a060020a038084166000908152600a60209081526040808320339094168352929052908120548211156105c757600080fd5b600160a060020a038085166000908152600a6020908152604080832033909416835292905220805483900390556105ff8484846106e5565b5060019392505050565b60025460ff1681565b60045481565b60076020526000908152604090205481565b60096020526000908152604090205481565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105545780601f1061052957610100808354040283529160200191610554565b6106b23383836106e5565b5050565b60086020526000908152604090205481565b600a60209081526000928352604080842090915290825290205481565b6000600160a060020a03831615156106fc57600080fd5b600160a060020a0384166000908152600760205260409020548290101561072257600080fd5b600160a060020a0383166000908152600760205260409020548281011161074857600080fd5b50600160a060020a0380831660008181526007602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a038084166000908152600760205260408082205492871682529020540181146107e557fe5b505050505600a165627a7a7230582073f7a1420a514f1e6ad454c906fd61bbe3f44a12c59781fbdd0684ea0eebb81f0029
Swarm Source
bzzr://73f7a1420a514f1e6ad454c906fd61bbe3f44a12c59781fbdd0684ea0eebb81f
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.