ETH Price: $3,441.56 (-0.23%)
Gas: 6 Gwei

Token

Kanga Exchange Token (KNG)
 

Overview

Max Total Supply

21,000,000 KNG

Holders

287

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
3.88937690156135353 KNG

Value
$0.00
0xE66369B78a00655E1A4963657Cd6dA6751f33B78
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:
KangaToken

Compiler Version
v0.5.12+commit.7709ece9

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2019-11-10
*/

// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
pragma solidity >=0.4.0 <0.6.0;

contract Token {
  /* This is a slight change to the ERC20 base standard.
     function totalSupply() constant returns (uint256 supply);
     is replaced with:
     uint256 public totalSupply;
     This automatically creates a getter function for the totalSupply.
     This is moved to the base contract since public getter functions are not
     currently recognised as an implementation of the matching abstract
     function by the compiler.
  */
  /// total amount of tokens
  uint256 public totalSupply;

  /// @param _owner The address from which the balance will be retrieved
  /// @return The balance
  function balanceOf(address _owner) public view returns (uint256 balance);

  /// @notice send `_value` token to `_to` from `msg.sender`
  /// @param _to The address of the recipient
  /// @param _value The amount of token to be transferred
  /// @return Whether the transfer was successful or not
  function transfer(address _to, uint256 _value) public returns (bool success);

  /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
  /// @param _from The address of the sender
  /// @param _to The address of the recipient
  /// @param _value The amount of token to be transferred
  /// @return Whether the transfer was successful or not
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);

  /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
  /// @param _spender The address of the account able to transfer the tokens
  /// @param _value The amount of tokens to be approved for transfer
  /// @return Whether the approval was successful or not
  function approve(address _spender, uint256 _value) public returns (bool success);

  /// @param _owner The address of the account owning tokens
  /// @param _spender The address of the account able to transfer the tokens
  /// @return Amount of remaining tokens allowed to spent
  function allowance(address _owner, address _spender) public view returns (uint256 remaining);

  event Transfer(address indexed _from, address indexed _to, uint256 _value);
  event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}
contract StandardToken is Token {

  function transfer(address _to, uint256 _value) public returns (bool success) {
    //Default assumes totalSupply can't be over max (2^256 - 1).
    //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap.
    //Replace the if with this one instead.
    //if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
    if (balances[msg.sender] >= _value && _value > 0) {
      balances[msg.sender] -= _value;
      balances[_to] += _value;
      emit Transfer(msg.sender, _to, _value);
      return true;
    } else { return false; }
  }

  function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
    //same as above. Replace this line with the following if you want to protect against wrapping uints.
    //if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
    if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
      balances[_to] += _value;
      balances[_from] -= _value;
      allowed[_from][msg.sender] -= _value;
      emit Transfer(_from, _to, _value);
      return true;
    } else { return false; }
  }

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

  function approve(address _spender, uint256 _value) public returns (bool success) {
    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

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

  mapping (address => uint256) balances;
  mapping (address => mapping (address => uint256)) allowed;
}
contract KangaToken is StandardToken {

  string public constant name = "Kanga Exchange Token";
  string public constant symbol = "KNG";
  uint8 public constant decimals = 18;
  address public owner;
  
  modifier isOwner() {
    require(msg.sender == owner);
    _;
  }
  
  constructor() public {
      owner = msg.sender;
      totalSupply = 21000000* 10**18;
      balances[owner] = totalSupply;
  }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600380546001600160a01b0319163317908190556a115eec47f6cf7e3500000060008181556001600160a01b03929092168252600160205260409091205561054b8061005e6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a08231146101ce5780638da5cb5b146101f457806395d89b4114610218578063a9059cbb14610220578063dd62ed3e1461024c5761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab61027a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b0381351690602001356102aa565b604080519115158252519081900360200190f35b610168610311565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610317565b6101b8610404565b6040805160ff9092168252519081900360200190f35b610168600480360360208110156101e457600080fd5b50356001600160a01b0316610409565b6101fc610424565b604080516001600160a01b039092168252519081900360200190f35b6100ab610433565b61014c6004803603604081101561023657600080fd5b506001600160a01b038135169060200135610452565b6101686004803603604081101561026257600080fd5b506001600160a01b03813581169160200135166104eb565b6040518060400160405280601481526020017325b0b733b09022bc31b430b733b2902a37b5b2b760611b81525081565b3360008181526002602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b6001600160a01b038316600090815260016020526040812054821180159061036257506001600160a01b03841660009081526002602090815260408083203384529091529020548211155b801561036e5750600082115b156103f9576001600160a01b03808416600081815260016020908152604080832080548801905593881680835284832080548890039055600282528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016103fd565b5060005b9392505050565b601281565b6001600160a01b031660009081526001602052604090205490565b6003546001600160a01b031681565b604051806040016040528060038152602001624b4e4760e81b81525081565b3360009081526001602052604081205482118015906104715750600082115b156104e357336000818152600160209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600161030b565b50600061030b565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220549056fea265627a7a723158201f13e31b17622275961c7bae60ef5f66c563a7b55a48cdbe5714e4af43e769ff64736f6c634300050c0032

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a08231146101ce5780638da5cb5b146101f457806395d89b4114610218578063a9059cbb14610220578063dd62ed3e1461024c5761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab61027a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b0381351690602001356102aa565b604080519115158252519081900360200190f35b610168610311565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610317565b6101b8610404565b6040805160ff9092168252519081900360200190f35b610168600480360360208110156101e457600080fd5b50356001600160a01b0316610409565b6101fc610424565b604080516001600160a01b039092168252519081900360200190f35b6100ab610433565b61014c6004803603604081101561023657600080fd5b506001600160a01b038135169060200135610452565b6101686004803603604081101561026257600080fd5b506001600160a01b03813581169160200135166104eb565b6040518060400160405280601481526020017325b0b733b09022bc31b430b733b2902a37b5b2b760611b81525081565b3360008181526002602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005481565b6001600160a01b038316600090815260016020526040812054821180159061036257506001600160a01b03841660009081526002602090815260408083203384529091529020548211155b801561036e5750600082115b156103f9576001600160a01b03808416600081815260016020908152604080832080548801905593881680835284832080548890039055600282528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016103fd565b5060005b9392505050565b601281565b6001600160a01b031660009081526001602052604090205490565b6003546001600160a01b031681565b604051806040016040528060038152602001624b4e4760e81b81525081565b3360009081526001602052604081205482118015906104715750600082115b156104e357336000818152600160209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600161030b565b50600061030b565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220549056fea265627a7a723158201f13e31b17622275961c7bae60ef5f66c563a7b55a48cdbe5714e4af43e769ff64736f6c634300050c0032

Deployed Bytecode Sourcemap

4271:424:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4271:424:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4315:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4315:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3816:200;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3816:200:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;631:26;;;:::i;:::-;;;;;;;;;;;;;;;;3070:625;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3070:625:0;;;;;;;;;;;;;;;;;:::i;4414:35::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3701:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3701:109:0;-1:-1:-1;;;;;3701:109:0;;:::i;4454:20::-;;;:::i;:::-;;;;-1:-1:-1;;;;;4454:20:0;;;;;;;;;;;;;;4372:37;;;:::i;2433:631::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2433:631:0;;;;;;;;:::i;4022:138::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4022:138:0;;;;;;;;;;:::i;4315:52::-;;;;;;;;;;;;;;-1:-1:-1;;;4315:52:0;;;;:::o;3816:200::-;3912:10;3883:12;3904:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;3904:29:0;;;;;;;;;;;:38;;;3954;;;;;;;3883:12;;3904:29;;3912:10;;3954:38;;;;;;;;-1:-1:-1;4006:4:0;3816:200;;;;;:::o;631:26::-;;;;:::o;3070:625::-;-1:-1:-1;;;;;3405:15:0;;3152:12;3405:15;;;:8;:15;;;;;;:25;-1:-1:-1;3405:25:0;;;:65;;-1:-1:-1;;;;;;3434:14:0;;;;;;:7;:14;;;;;;;;3449:10;3434:26;;;;;;;;:36;-1:-1:-1;3434:36:0;3405:65;:79;;;;;3483:1;3474:6;:10;3405:79;3401:289;;;-1:-1:-1;;;;;3495:13:0;;;;;;;:8;:13;;;;;;;;:23;;;;;;3527:15;;;;;;;;;:25;;;;;;;3561:7;:14;;;;;3576:10;3561:26;;;;;;;;:36;;;;;;;3611:28;;;;;;;3495:13;;3527:15;;3611:28;;;;;;;;;;-1:-1:-1;3655:4:0;3648:11;;3401:289;-1:-1:-1;3682:5:0;3401:289;3070:625;;;;;:::o;4414:35::-;4447:2;4414:35;:::o;3701:109::-;-1:-1:-1;;;;;3788:16:0;3757:15;3788:16;;;:8;:16;;;;;;;3701:109::o;4454:20::-;;;-1:-1:-1;;;;;4454:20:0;;:::o;4372:37::-;;;;;;;;;;;;;;-1:-1:-1;;;4372:37:0;;;;:::o;2433:631::-;2853:10;2496:12;2844:20;;;:8;:20;;;;;;:30;-1:-1:-1;2844:30:0;;;:44;;;2887:1;2878:6;:10;2844:44;2840:219;;;2908:10;2899:20;;;;:8;:20;;;;;;;;:30;;;;;;;-1:-1:-1;;;;;2938:13:0;;;;;;;;;:23;;;;;;2975:33;;;;;;;2938:13;;2908:10;2975:33;;;;;;;;;;;-1:-1:-1;3024:4:0;3017:11;;2840:219;-1:-1:-1;3051:5:0;3044:12;;4022:138;-1:-1:-1;;;;;4129:15:0;;;4096:17;4129:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;4022:138::o

Swarm Source

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