ETH Price: $3,354.29 (+1.65%)
 

Overview

Max Total Supply

802,500 KJC

Holders

182

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
2,500 KJC

Value
$0.00
0xbf9f20ff0a518b5d1e252eec372332199d6a290a
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:
DemoTokenMintable

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.13;

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

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

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

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

contract Ownable {
  address public owner;
  function Ownable() {
    owner = msg.sender;
  }

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

  function transferOwnership(address newOwner) onlyOwner {
    if (newOwner != address(0)) {
      owner = newOwner;
    }
  }

}

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

contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;
  
  function transfer(address _to, uint256 _value) returns (bool) {
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

  function balanceOf(address _owner) constant returns (uint256 balance) {
    return balances[_owner];
  }

}

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

contract StandardToken is ERC20, BasicToken {

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

  function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
    var _allowance = allowed[_from][msg.sender];

    balances[_to] = balances[_to].add(_value);
    balances[_from] = balances[_from].sub(_value);
    allowed[_from][msg.sender] = _allowance.sub(_value);
    Transfer(_from, _to, _value);
    return true;
  }

  function approve(address _spender, uint256 _value) returns (bool) {

    require((_value == 0) || (allowed[msg.sender][_spender] == 0));

    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
    return allowed[_owner][_spender];
  }

}

contract MintableToken is StandardToken, Ownable {
  event Mint(address indexed to, uint256 amount);
  event MintFinished();

  bool public mintingFinished = false;


  modifier canMint() {
    require(!mintingFinished);
    _;
  }

  function mint(address _to, uint256 _amount) onlyOwner canMint returns (bool) {
    totalSupply = totalSupply.add(_amount);
    balances[_to] = balances[_to].add(_amount);
    Mint(_to, _amount);
    return true;
  }

  function finishMinting() onlyOwner returns (bool) {
    mintingFinished = true;
    MintFinished();
    return true;
  }
}

contract DemoTokenMintable is MintableToken {

        string public name = "KimJongCoin";
        string public symbol = "KJC";
        uint256 public decimals = 8;

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"mintingFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"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":"","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":"","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":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finishMinting","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":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[],"name":"MintFinished","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":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]

606060409081526003805460a060020a60ff02191690558051908101604052600b81527f4b696d4a6f6e67436f696e0000000000000000000000000000000000000000006020820152600490805161005b9291602001906100c9565b5060408051908101604052600381527f4b4a430000000000000000000000000000000000000000000000000000000000602082015260059080516100a39291602001906100c9565b50600860065560038054600160a060020a03191633600160a060020a0316179055610164565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061010a57805160ff1916838001178555610137565b82800160010185558215610137579182015b8281111561013757825182559160200191906001019061011c565b50610143929150610147565b5090565b61016191905b80821115610143576000815560010161014d565b90565b610916806101736000396000f3006060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305d2035b81146100d457806306fdde03146100fb578063095ea7b31461018557806318160ddd146101a757806323b872dd146101cc578063313ce567146101f457806340c10f191461020757806370a08231146102295780637d64bcb4146102485780638da5cb5b1461025b57806395d89b411461028a578063a9059cbb1461029d578063dd62ed3e146102bf578063f2fde38b146102e4575b600080fd5b34156100df57600080fd5b6100e7610305565b604051901515815260200160405180910390f35b341561010657600080fd5b61010e610326565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014a578082015183820152602001610132565b50505050905090810190601f1680156101775780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019057600080fd5b6100e7600160a060020a03600435166024356103c4565b34156101b257600080fd5b6101ba61046a565b60405190815260200160405180910390f35b34156101d757600080fd5b6100e7600160a060020a0360043581169060243516604435610470565b34156101ff57600080fd5b6101ba610583565b341561021257600080fd5b6100e7600160a060020a0360043516602435610589565b341561023457600080fd5b6101ba600160a060020a0360043516610668565b341561025357600080fd5b6100e7610683565b341561026657600080fd5b61026e610708565b604051600160a060020a03909116815260200160405180910390f35b341561029557600080fd5b61010e610717565b34156102a857600080fd5b6100e7600160a060020a0360043516602435610782565b34156102ca57600080fd5b6101ba600160a060020a0360043581169060243516610841565b34156102ef57600080fd5b610303600160a060020a036004351661086c565b005b60035474010000000000000000000000000000000000000000900460ff1681565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103bc5780601f10610391576101008083540402835291602001916103bc565b820191906000526020600020905b81548152906001019060200180831161039f57829003601f168201915b505050505081565b60008115806103f65750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561040157600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906104b7908463ffffffff6108c216565b600160a060020a0380861660009081526001602052604080822093909355908716815220546104ec908463ffffffff6108d816565b600160a060020a038616600090815260016020526040902055610515818463ffffffff6108d816565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b60065481565b60035460009033600160a060020a039081169116146105a757600080fd5b60035474010000000000000000000000000000000000000000900460ff16156105cf57600080fd5b6000546105e2908363ffffffff6108c216565b6000908155600160a060020a03841681526001602052604090205461060d908363ffffffff6108c216565b600160a060020a0384166000818152600160205260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a250600192915050565b600160a060020a031660009081526001602052604090205490565b60035460009033600160a060020a039081169116146106a157600080fd5b6003805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790557fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a150600190565b600354600160a060020a031681565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103bc5780601f10610391576101008083540402835291602001916103bc565b600160a060020a0333166000908152600160205260408120546107ab908363ffffffff6108d816565b600160a060020a0333811660009081526001602052604080822093909355908516815220546107e0908363ffffffff6108c216565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461088757600080fd5b600160a060020a038116156108bf576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b6000828201838110156108d157fe5b9392505050565b6000828211156108e457fe5b509003905600a165627a7a723058203e05a855aba7888f6cfd3d876f6f012b306b8d7f51926dfdf3be3a6bf6f824a10029

Deployed Bytecode

0x6060604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305d2035b81146100d457806306fdde03146100fb578063095ea7b31461018557806318160ddd146101a757806323b872dd146101cc578063313ce567146101f457806340c10f191461020757806370a08231146102295780637d64bcb4146102485780638da5cb5b1461025b57806395d89b411461028a578063a9059cbb1461029d578063dd62ed3e146102bf578063f2fde38b146102e4575b600080fd5b34156100df57600080fd5b6100e7610305565b604051901515815260200160405180910390f35b341561010657600080fd5b61010e610326565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014a578082015183820152602001610132565b50505050905090810190601f1680156101775780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019057600080fd5b6100e7600160a060020a03600435166024356103c4565b34156101b257600080fd5b6101ba61046a565b60405190815260200160405180910390f35b34156101d757600080fd5b6100e7600160a060020a0360043581169060243516604435610470565b34156101ff57600080fd5b6101ba610583565b341561021257600080fd5b6100e7600160a060020a0360043516602435610589565b341561023457600080fd5b6101ba600160a060020a0360043516610668565b341561025357600080fd5b6100e7610683565b341561026657600080fd5b61026e610708565b604051600160a060020a03909116815260200160405180910390f35b341561029557600080fd5b61010e610717565b34156102a857600080fd5b6100e7600160a060020a0360043516602435610782565b34156102ca57600080fd5b6101ba600160a060020a0360043581169060243516610841565b34156102ef57600080fd5b610303600160a060020a036004351661086c565b005b60035474010000000000000000000000000000000000000000900460ff1681565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103bc5780601f10610391576101008083540402835291602001916103bc565b820191906000526020600020905b81548152906001019060200180831161039f57829003601f168201915b505050505081565b60008115806103f65750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561040157600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906104b7908463ffffffff6108c216565b600160a060020a0380861660009081526001602052604080822093909355908716815220546104ec908463ffffffff6108d816565b600160a060020a038616600090815260016020526040902055610515818463ffffffff6108d816565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b60065481565b60035460009033600160a060020a039081169116146105a757600080fd5b60035474010000000000000000000000000000000000000000900460ff16156105cf57600080fd5b6000546105e2908363ffffffff6108c216565b6000908155600160a060020a03841681526001602052604090205461060d908363ffffffff6108c216565b600160a060020a0384166000818152600160205260409081902092909255907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859084905190815260200160405180910390a250600192915050565b600160a060020a031660009081526001602052604090205490565b60035460009033600160a060020a039081169116146106a157600080fd5b6003805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790557fae5184fba832cb2b1f702aca6117b8d265eaf03ad33eb133f19dde0f5920fa0860405160405180910390a150600190565b600354600160a060020a031681565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103bc5780601f10610391576101008083540402835291602001916103bc565b600160a060020a0333166000908152600160205260408120546107ab908363ffffffff6108d816565b600160a060020a0333811660009081526001602052604080822093909355908516815220546107e0908363ffffffff6108c216565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461088757600080fd5b600160a060020a038116156108bf576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b6000828201838110156108d157fe5b9392505050565b6000828211156108e457fe5b509003905600a165627a7a723058203e05a855aba7888f6cfd3d876f6f012b306b8d7f51926dfdf3be3a6bf6f824a10029

Swarm Source

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