ETH Price: $3,367.41 (-2.62%)

Token

DMTS (DMTS)
 

Overview

Max Total Supply

400,000,000 DMTS

Holders

31,015

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
1 DMTS

Value
$0.00
0x0c080400e31b727636248090650a197c495e4787
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DMTSCoin

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-11-01
*/

pragma solidity ^0.4.18;

library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a / b;
    return c;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

contract ERC20Basic {
    uint256 public totalSupply;
    function balanceOf(address who) public constant returns (uint256);
    function transfer(address to, uint256 value) public returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
}

contract ERC20 is ERC20Basic {
    function allowance(address owner, address spender) public constant returns (uint256);
    function transferFrom(address from, address to, uint256 value) public returns (bool);
    function approve(address spender, uint256 value) public returns (bool);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract DMTSCoin is ERC20 {
    
    using SafeMath for uint256;
    address public owner = msg.sender;

    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;

    string public constant name = "DMTS";
    string public constant symbol = "DMTS";
    uint public constant decimals = 8;
    uint256 public totalSupply = 400000000e8;

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    event Burn(address indexed burner, uint256 value);

    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    function DMTSCoin () public {
        owner = msg.sender;
        balances[msg.sender] = totalSupply;
    }
    
    function transferOwnership(address newOwner) onlyOwner public {
        if (newOwner != address(0)) {
            owner = newOwner;
        }
    }

    function balanceOf(address _owner) constant public 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 _amount) onlyPayloadSize(2 * 32) public returns (bool success) {

        require(_to != address(0));
        require(_amount <= balances[msg.sender]);
        
        balances[msg.sender] = balances[msg.sender].sub(_amount);
        balances[_to] = balances[_to].add(_amount);
        Transfer(msg.sender, _to, _amount);
        return true;
    }
    
    function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) {

        require(_to != address(0));
        require(_amount <= balances[_from]);
        require(_amount <= allowed[_from][msg.sender]);
        
        balances[_from] = balances[_from].sub(_amount);
        allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);
        balances[_to] = balances[_to].add(_amount);
        Transfer(_from, _to, _amount);
        return true;
    }
    
    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }
    
    function allowance(address _owner, address _spender) constant public returns (uint256) {
        return allowed[_owner][_spender];
    }
    
    function burn(uint256 _value) onlyOwner public {
        require(_value <= balances[msg.sender]);

        address burner = msg.sender;
        balances[burner] = balances[burner].sub(_value);
        totalSupply = totalSupply.sub(_value);
        Burn(burner, _value);
    }
    
    function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        
        require(_spender.call(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extraData));
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"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":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","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":"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":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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,"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":"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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]

606060405260018054600160a060020a03191633600160a060020a0316179055668e1bc9bf040000600455341561003557600080fd5b60018054600160a060020a033316600160a060020a03199091168117909155600454600091825260026020526040909120556109bf806100766000396000f3006060604052600436106100ab5763ffffffff60e060020a60003504166306fdde0381146100b0578063095ea7b31461013a57806318160ddd1461017057806323b872dd14610195578063313ce567146101bd57806342966c68146101d057806370a08231146101e85780638da5cb5b1461020757806395d89b41146100b0578063a9059cbb14610236578063cae9ca5114610258578063dd62ed3e146102bd578063f2fde38b146102e2575b600080fd5b34156100bb57600080fd5b6100c3610301565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100ff5780820151838201526020016100e7565b50505050905090810190601f16801561012c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014557600080fd5b61015c600160a060020a0360043516602435610338565b604051901515815260200160405180910390f35b341561017b57600080fd5b6101836103a4565b60405190815260200160405180910390f35b34156101a057600080fd5b61015c600160a060020a03600435811690602435166044356103aa565b34156101c857600080fd5b61018361053a565b34156101db57600080fd5b6101e660043561053f565b005b34156101f357600080fd5b610183600160a060020a0360043516610617565b341561021257600080fd5b61021a610632565b604051600160a060020a03909116815260200160405180910390f35b341561024157600080fd5b61015c600160a060020a0360043516602435610641565b341561026357600080fd5b61015c60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061074a95505050505050565b34156102c857600080fd5b610183600160a060020a03600435811690602435166108ea565b34156102ed57600080fd5b6101e6600160a060020a0360043516610915565b60408051908101604052600481527f444d545300000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260036020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60045481565b6000606060643610156103b957fe5b600160a060020a03841615156103ce57600080fd5b600160a060020a0385166000908152600260205260409020548311156103f357600080fd5b600160a060020a038086166000908152600360209081526040808320339094168352929052205483111561042657600080fd5b600160a060020a03851660009081526002602052604090205461044f908463ffffffff61096b16565b600160a060020a0380871660009081526002602090815260408083209490945560038152838220339093168252919091522054610492908463ffffffff61096b16565b600160a060020a03808716600090815260036020908152604080832033851684528252808320949094559187168152600290915220546104d8908463ffffffff61097d16565b600160a060020a03808616600081815260026020526040908190209390935591908716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b600881565b60015460009033600160a060020a0390811691161461055d57600080fd5b600160a060020a03331660009081526002602052604090205482111561058257600080fd5b5033600160a060020a0381166000908152600260205260409020546105a7908361096b565b600160a060020a0382166000908152600260205260409020556004546105d3908363ffffffff61096b16565b600455600160a060020a0381167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a25050565b600160a060020a031660009081526002602052604090205490565b600154600160a060020a031681565b60006040604436101561065057fe5b600160a060020a038416151561066557600080fd5b600160a060020a03331660009081526002602052604090205483111561068a57600080fd5b600160a060020a0333166000908152600260205260409020546106b3908463ffffffff61096b16565b600160a060020a0333811660009081526002602052604080822093909355908616815220546106e8908463ffffffff61097d16565b600160a060020a0380861660008181526002602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a35060019392505050565b600160a060020a03338116600081815260036020908152604080832094881680845294909152808220869055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259086905190815260200160405180910390a383600160a060020a03166040517f72656365697665417070726f76616c28616464726573732c75696e743235362c81527f616464726573732c6279746573290000000000000000000000000000000000006020820152602e01604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b8381101561088b578082015183820152602001610873565b50505050905090810190601f1680156108b85780820380516001836020036101000a031916815260200191505b5094505050505060006040518083038160008761646e5a03f19250505015156108e057600080fd5b5060019392505050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60015433600160a060020a0390811691161461093057600080fd5b600160a060020a03811615610968576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60008282111561097757fe5b50900390565b60008282018381101561098c57fe5b93925050505600a165627a7a72305820bee9098a8d1de6a54c21c81d7635984b323d69b68f8f75148f1ed9a7a9d0a3da0029

Deployed Bytecode

0x6060604052600436106100ab5763ffffffff60e060020a60003504166306fdde0381146100b0578063095ea7b31461013a57806318160ddd1461017057806323b872dd14610195578063313ce567146101bd57806342966c68146101d057806370a08231146101e85780638da5cb5b1461020757806395d89b41146100b0578063a9059cbb14610236578063cae9ca5114610258578063dd62ed3e146102bd578063f2fde38b146102e2575b600080fd5b34156100bb57600080fd5b6100c3610301565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100ff5780820151838201526020016100e7565b50505050905090810190601f16801561012c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014557600080fd5b61015c600160a060020a0360043516602435610338565b604051901515815260200160405180910390f35b341561017b57600080fd5b6101836103a4565b60405190815260200160405180910390f35b34156101a057600080fd5b61015c600160a060020a03600435811690602435166044356103aa565b34156101c857600080fd5b61018361053a565b34156101db57600080fd5b6101e660043561053f565b005b34156101f357600080fd5b610183600160a060020a0360043516610617565b341561021257600080fd5b61021a610632565b604051600160a060020a03909116815260200160405180910390f35b341561024157600080fd5b61015c600160a060020a0360043516602435610641565b341561026357600080fd5b61015c60048035600160a060020a03169060248035919060649060443590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061074a95505050505050565b34156102c857600080fd5b610183600160a060020a03600435811690602435166108ea565b34156102ed57600080fd5b6101e6600160a060020a0360043516610915565b60408051908101604052600481527f444d545300000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260036020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60045481565b6000606060643610156103b957fe5b600160a060020a03841615156103ce57600080fd5b600160a060020a0385166000908152600260205260409020548311156103f357600080fd5b600160a060020a038086166000908152600360209081526040808320339094168352929052205483111561042657600080fd5b600160a060020a03851660009081526002602052604090205461044f908463ffffffff61096b16565b600160a060020a0380871660009081526002602090815260408083209490945560038152838220339093168252919091522054610492908463ffffffff61096b16565b600160a060020a03808716600090815260036020908152604080832033851684528252808320949094559187168152600290915220546104d8908463ffffffff61097d16565b600160a060020a03808616600081815260026020526040908190209390935591908716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b600881565b60015460009033600160a060020a0390811691161461055d57600080fd5b600160a060020a03331660009081526002602052604090205482111561058257600080fd5b5033600160a060020a0381166000908152600260205260409020546105a7908361096b565b600160a060020a0382166000908152600260205260409020556004546105d3908363ffffffff61096b16565b600455600160a060020a0381167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a25050565b600160a060020a031660009081526002602052604090205490565b600154600160a060020a031681565b60006040604436101561065057fe5b600160a060020a038416151561066557600080fd5b600160a060020a03331660009081526002602052604090205483111561068a57600080fd5b600160a060020a0333166000908152600260205260409020546106b3908463ffffffff61096b16565b600160a060020a0333811660009081526002602052604080822093909355908616815220546106e8908463ffffffff61097d16565b600160a060020a0380861660008181526002602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a35060019392505050565b600160a060020a03338116600081815260036020908152604080832094881680845294909152808220869055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259086905190815260200160405180910390a383600160a060020a03166040517f72656365697665417070726f76616c28616464726573732c75696e743235362c81527f616464726573732c6279746573290000000000000000000000000000000000006020820152602e01604051809103902060e060020a9004338530866040518563ffffffff1660e060020a0281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a03168152602001828051906020019080838360005b8381101561088b578082015183820152602001610873565b50505050905090810190601f1680156108b85780820380516001836020036101000a031916815260200191505b5094505050505060006040518083038160008761646e5a03f19250505015156108e057600080fd5b5060019392505050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60015433600160a060020a0390811691161461093057600080fd5b600160a060020a03811615610968576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60008282111561097757fe5b50900390565b60008282018381101561098c57fe5b93925050505600a165627a7a72305820bee9098a8d1de6a54c21c81d7635984b323d69b68f8f75148f1ed9a7a9d0a3da0029

Swarm Source

bzzr://bee9098a8d1de6a54c21c81d7635984b323d69b68f8f75148f1ed9a7a9d0a3da
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.