ERC-20
Overview
Max Total Supply
1,000,000,000 KWS
Holders
49
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
27,728,348.1171 KWSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KWSToken
Compiler Version
v0.4.24+commit.e67f0147
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-12-03 */ pragma solidity ^0.4.24; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function burn(uint256 value) external; event Transfer( address indexed from, address indexed to, uint256 value ); event Approval( address indexed owner, address indexed spender, uint256 value ); } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0); uint256 c = a / b; return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } contract KWSToken is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; string public name; uint8 public decimals; string public symbol; constructor(uint256 initialSupply, uint8 decimalUnits, string tokenName, string tokenSymbol) public { decimals = decimalUnits; _totalSupply = initialSupply * 10 ** uint(decimals); _balances[msg.sender] = _totalSupply; name = tokenName; symbol = tokenSymbol; } function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address owner) public view returns (uint256) { return _balances[owner]; } function allowance( address owner, address spender ) public view returns (uint256) { return _allowed[owner][spender]; } function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; } function approve(address spender, uint256 value) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function transferFrom( address from, address to, uint256 value ) public returns (bool) { require(value <= _allowed[from][msg.sender]); _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); _transfer(from, to, value); return true; } function _transfer(address from, address to, uint256 value) internal { require(value <= _balances[from]); require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); } function burn(uint256 value) public { require(value <= _balances[msg.sender]); _totalSupply = _totalSupply.sub(value); _balances[msg.sender] = _balances[msg.sender].sub(value); emit Transfer(msg.sender, address(0), value); } }
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":"","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":"uint8"}],"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":"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":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"}],"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
608060405234801561001057600080fd5b5060405161082738038061082783398101604090815281516020808401518385015160608601516004805460ff191660ff808616919091179182905516600a0a85026002819055336000908152808652969096209590955585018051939591949093910191610084916003918501906100a2565b5080516100989060059060208401906100a2565b505050505061013d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100e357805160ff1916838001178555610110565b82800160010185558215610110579182015b828111156101105782518255916020019190600101906100f5565b5061011c929150610120565b5090565b61013a91905b8082111561011c5760008155600101610126565b90565b6106db8061014c6000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb57806342966c68146101e657806370a082311461020057806395d89b4114610221578063a9059cbb14610236578063dd62ed3e1461025a575b600080fd5b3480156100b457600080fd5b506100bd610281565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a036004351660243561030f565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f61038d565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a0360043581169060243516604435610393565b3480156101c757600080fd5b506101d0610430565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b506101fe600435610439565b005b34801561020c57600080fd5b5061017f600160a060020a03600435166104d6565b34801561022d57600080fd5b506100bd6104f1565b34801561024257600080fd5b50610156600160a060020a036004351660243561054c565b34801561026657600080fd5b5061017f600160a060020a0360043581169060243516610562565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103075780601f106102dc57610100808354040283529160200191610307565b820191906000526020600020905b8154815290600101906020018083116102ea57829003601f168201915b505050505081565b6000600160a060020a038316151561032657600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60025490565b600160a060020a03831660009081526001602090815260408083203384529091528120548211156103c357600080fd5b600160a060020a03841660009081526001602090815260408083203384529091529020546103f7908363ffffffff61058d16565b600160a060020a03851660009081526001602090815260408083203384529091529020556104268484846105a4565b5060019392505050565b60045460ff1681565b3360009081526020819052604090205481111561045557600080fd5b600254610468908263ffffffff61058d16565b6002553360009081526020819052604090205461048b908263ffffffff61058d16565b33600081815260208181526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350565b600160a060020a031660009081526020819052604090205490565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103075780601f106102dc57610100808354040283529160200191610307565b60006105593384846105a4565b50600192915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b6000808383111561059d57600080fd5b5050900390565b600160a060020a0383166000908152602081905260409020548111156105c957600080fd5b600160a060020a03821615156105de57600080fd5b600160a060020a038316600090815260208190526040902054610607908263ffffffff61058d16565b600160a060020a03808516600090815260208190526040808220939093559084168152205461063c908263ffffffff61069616565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828201838110156106a857600080fd5b93925050505600a165627a7a7230582083b3fef95c0bbc2974528aa7270bc5fb2db70de74672032945056938e471d1080029000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000144b7561692057656368617420427573696e65737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b57530000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb57806342966c68146101e657806370a082311461020057806395d89b4114610221578063a9059cbb14610236578063dd62ed3e1461025a575b600080fd5b3480156100b457600080fd5b506100bd610281565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a036004351660243561030f565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f61038d565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a0360043581169060243516604435610393565b3480156101c757600080fd5b506101d0610430565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b506101fe600435610439565b005b34801561020c57600080fd5b5061017f600160a060020a03600435166104d6565b34801561022d57600080fd5b506100bd6104f1565b34801561024257600080fd5b50610156600160a060020a036004351660243561054c565b34801561026657600080fd5b5061017f600160a060020a0360043581169060243516610562565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103075780601f106102dc57610100808354040283529160200191610307565b820191906000526020600020905b8154815290600101906020018083116102ea57829003601f168201915b505050505081565b6000600160a060020a038316151561032657600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60025490565b600160a060020a03831660009081526001602090815260408083203384529091528120548211156103c357600080fd5b600160a060020a03841660009081526001602090815260408083203384529091529020546103f7908363ffffffff61058d16565b600160a060020a03851660009081526001602090815260408083203384529091529020556104268484846105a4565b5060019392505050565b60045460ff1681565b3360009081526020819052604090205481111561045557600080fd5b600254610468908263ffffffff61058d16565b6002553360009081526020819052604090205461048b908263ffffffff61058d16565b33600081815260208181526040808320949094558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350565b600160a060020a031660009081526020819052604090205490565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103075780601f106102dc57610100808354040283529160200191610307565b60006105593384846105a4565b50600192915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b6000808383111561059d57600080fd5b5050900390565b600160a060020a0383166000908152602081905260409020548111156105c957600080fd5b600160a060020a03821615156105de57600080fd5b600160a060020a038316600090815260208190526040902054610607908263ffffffff61058d16565b600160a060020a03808516600090815260208190526040808220939093559084168152205461063c908263ffffffff61069616565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828201838110156106a857600080fd5b93925050505600a165627a7a7230582083b3fef95c0bbc2974528aa7270bc5fb2db70de74672032945056938e471d1080029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000144b7561692057656368617420427573696e65737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b57530000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialSupply (uint256): 1000000000
Arg [1] : decimalUnits (uint8): 18
Arg [2] : tokenName (string): Kuai Wechat Business
Arg [3] : tokenSymbol (string): KWS
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000003b9aca00
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 4b7561692057656368617420427573696e657373000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4b57530000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
1606:2415:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1841:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1841:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;1841:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2828:244;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2828:244:0;-1:-1:-1;;;;;2828:244:0;;;;;;;;;;;;;;;;;;;;;;;;;2267:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2267:91:0;;;;;;;;;;;;;;;;;;;;3080:347;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3080:347:0;-1:-1:-1;;;;;3080:347:0;;;;;;;;;;;;1866:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1866:21:0;;;;;;;;;;;;;;;;;;;;;;;3749:267;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3749:267:0;;;;;;;2366:106;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2366:106:0;-1:-1:-1;;;;;2366:106:0;;;;;1894:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1894:20:0;;;;2680:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2680:140:0;-1:-1:-1;;;;;2680:140:0;;;;;;;2480:192;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2480:192:0;-1:-1:-1;;;;;2480:192:0;;;;;;;;;;1841:18;;;;;;;;;;;;;;;-1:-1:-1;;1841:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2828:244::-;2893:4;-1:-1:-1;;;;;2918:21:0;;;;2910:30;;;;;;2962:10;2953:20;;;;:8;:20;;;;;;;;-1:-1:-1;;;;;2953:29:0;;;;;;;;;;;;:37;;;3006:36;;;;;;;2953:29;;2962:10;3006:36;;;;;;;;;;;-1:-1:-1;3060:4:0;2828:244;;;;:::o;2267:91::-;2338:12;;2267:91;:::o;3080:347::-;-1:-1:-1;;;;;3254:14:0;;3215:4;3254:14;;;:8;:14;;;;;;;;3269:10;3254:26;;;;;;;;3245:35;;;3237:44;;;;;;-1:-1:-1;;;;;3323:14:0;;;;;;:8;:14;;;;;;;;3338:10;3323:26;;;;;;;;:37;;3354:5;3323:37;:30;:37;:::i;:::-;-1:-1:-1;;;;;3294:14:0;;;;;;:8;:14;;;;;;;;3309:10;3294:26;;;;;;;:66;3371:26;3303:4;3387:2;3391:5;3371:9;:26::i;:::-;-1:-1:-1;3415:4:0;3080:347;;;;;:::o;1866:21::-;;;;;;:::o;3749:267::-;3823:10;3813:9;:21;;;;;;;;;;;3804:30;;;3796:39;;;;;;3863:12;;:23;;3880:5;3863:23;:16;:23;:::i;:::-;3848:12;:38;3931:10;3921:9;:21;;;;;;;;;;;:32;;3947:5;3921:32;:25;:32;:::i;:::-;3907:10;3897:9;:21;;;;;;;;;;;:56;;;;3969:39;;;;;;;3897:9;;3969:39;;;;;;;;;;;3749:267;:::o;2366:106::-;-1:-1:-1;;;;;2448:16:0;2421:7;2448:16;;;;;;;;;;;;2366:106::o;1894:20::-;;;;;;;;;;;;;;;-1:-1:-1;;1894:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2680:140;2741:4;2758:32;2768:10;2780:2;2784:5;2758:9;:32::i;:::-;-1:-1:-1;2808:4:0;2680:140;;;;:::o;2480:192::-;-1:-1:-1;;;;;2640:15:0;;;2608:7;2640:15;;;:8;:15;;;;;;;;:24;;;;;;;;;;;;;2480:192::o;1201:136::-;1259:7;;1283:6;;;;1275:15;;;;;;-1:-1:-1;;1309:5:0;;;1201:136::o;3435:306::-;-1:-1:-1;;;;;3532:15:0;;:9;:15;;;;;;;;;;;3523:24;;;3515:33;;;;;;-1:-1:-1;;;;;3567:16:0;;;;3559:25;;;;;;-1:-1:-1;;;;;3615:15:0;;:9;:15;;;;;;;;;;;:26;;3635:5;3615:26;:19;:26;:::i;:::-;-1:-1:-1;;;;;3597:15:0;;;:9;:15;;;;;;;;;;;:44;;;;3668:13;;;;;;;:24;;3686:5;3668:24;:17;:24;:::i;:::-;-1:-1:-1;;;;;3652:13:0;;;:9;:13;;;;;;;;;;;;:40;;;;3708:25;;;;;;;3652:13;;3708:25;;;;;;;;;;;;;3435:306;;;:::o;1343:136::-;1401:7;1429:5;;;1449:6;;;;1441:15;;;;;;1472:1;1343:136;-1:-1:-1;;;1343:136:0:o
Swarm Source
bzzr://83b3fef95c0bbc2974528aa7270bc5fb2db70de74672032945056938e471d108
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.