ERC-20
Mining
Overview
Max Total Supply
840,325,318 SWAT
Holders
1,872 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH
Onchain Market Cap
$340.90
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 8 Decimals)
Balance
2,000 SWATValue
$0.00 ( ~0 Eth) [0.0002%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SWTCoin
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-11-29 */ pragma solidity ^0.4.25; contract SWTCoin { string public name = "SWTCoin"; // token name string public symbol = "SWAT"; // token symbol string public version = "2.0"; uint256 public decimals = 8; // token digit mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; uint256 public totalSupply = 29200000000000000; uint256 public MaxSupply = 0; bool public stopped = true; //000 000 000 000 000 000 address owner = 0x48850F503412d8A6e3d63541F0e225f04b13a544; address minter = 0x47c803871c99EC7180E50dcDA989320871FcBfEE; modifier isOwner { assert(owner == msg.sender); _; } modifier isMinter { assert(minter == msg.sender); _; } modifier validAddress { assert(0x0 != msg.sender); _; } constructor () public { MaxSupply = 154000000000000000; balanceOf[owner] = totalSupply; emit Transfer(0x0, owner, totalSupply); } function changeOwner(address _newaddress) isOwner public { owner = _newaddress; } function changeMinter(address _new_mint_address) isOwner public { minter = _new_mint_address; } function airdropMinting(address[] _to_list, uint[] _values) isMinter public { require(_to_list.length == _values.length); for (uint i = 0; i < _to_list.length; i++) { mintToken(_to_list[i], _values[i]); } } function setMaxSupply(uint256 maxsupply_amount) isOwner public { MaxSupply = maxsupply_amount; } function mintToken(address target, uint256 mintedAmount) isMinter public { require(MaxSupply > totalSupply); balanceOf[target] += mintedAmount; totalSupply += mintedAmount; emit Transfer(0, this, mintedAmount); emit Transfer(this, target, mintedAmount); } function transfer(address _to, uint256 _value) public returns (bool success) { require(balanceOf[msg.sender] >= _value); require(balanceOf[_to] + _value >= balanceOf[_to]); balanceOf[msg.sender] -= _value; balanceOf[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } function transferFrom(address src, address dst, uint256 wad) public returns (bool success) { require(balanceOf[src] >= wad); require(allowance[src][msg.sender] >= wad); allowance[src][msg.sender] -= wad; balanceOf[src] -= wad; balanceOf[dst] += wad; emit Transfer(src, dst, wad); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { require(_value == 0 || allowance[msg.sender][_spender] == 0); allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _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":"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":"src","type":"address"},{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_new_mint_address","type":"address"}],"name":"changeMinter","outputs":[],"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_list","type":"address[]"},{"name":"_values","type":"uint256[]"}],"name":"airdropMinting","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"maxsupply_amount","type":"uint256"}],"name":"setMaxSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newaddress","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"MaxSupply","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"},{"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
60c0604052600760808190527f535754436f696e0000000000000000000000000000000000000000000000000060a090815261003e91600091906101bd565b506040805180820190915260048082527f53574154000000000000000000000000000000000000000000000000000000006020909201918252610083916001916101bd565b506040805180820190915260038082527f322e30000000000000000000000000000000000000000000000000000000000060209092019182526100c8916002916101bd565b50600860038190556667bd3ecb71000060065560006007558054600160ff199091161761010060a860020a0319167448850f503412d8a6e3d63541f0e225f04b13a54400179055600980547347c803871c99ec7180e50dcda989320871fcbfee600160a060020a031990911617905534801561014357600080fd5b506702231e2f1f69000060075560065460088054600160a060020a036101009182900481166000908152600460209081526040808320879055945485519687529451939094049091169390927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3610258565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101fe57805160ff191683800117855561022b565b8280016001018555821561022b579182015b8281111561022b578251825591602001919060010190610210565b5061023792915061023b565b5090565b61025591905b808211156102375760008155600101610241565b90565b610999806102676000396000f3006080604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b757806323b872dd146101de5780632c4d4d1814610208578063313ce5671461022b5780633ff00ba51461024057806354fd4d50146102ce5780636f8b44b0146102e357806370a08231146102fb57806375f12b211461031c57806379c650681461033157806395d89b4114610355578063a6f9dae11461036a578063a9059cbb1461038b578063b36c1284146103af578063dd62ed3e146103c4575b600080fd5b34801561010157600080fd5b5061010a6103eb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018b57600080fd5b506101a3600160a060020a0360043516602435610479565b604080519115158252519081900360200190f35b3480156101c357600080fd5b506101cc61051b565b60408051918252519081900360200190f35b3480156101ea57600080fd5b506101a3600160a060020a0360043581169060243516604435610521565b34801561021457600080fd5b50610229600160a060020a03600435166105ee565b005b34801561023757600080fd5b506101cc610636565b34801561024c57600080fd5b506040805160206004803580820135838102808601850190965280855261022995369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061063c9650505050505050565b3480156102da57600080fd5b5061010a6106b3565b3480156102ef57600080fd5b5061022960043561070b565b34801561030757600080fd5b506101cc600160a060020a0360043516610729565b34801561032857600080fd5b506101a361073b565b34801561033d57600080fd5b50610229600160a060020a0360043516602435610744565b34801561036157600080fd5b5061010a6107e3565b34801561037657600080fd5b50610229600160a060020a036004351661083d565b34801561039757600080fd5b506101a3600160a060020a036004351660243561088b565b3480156103bb57600080fd5b506101cc61092a565b3480156103d057600080fd5b506101cc600160a060020a0360043581169060243516610930565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104715780601f1061044657610100808354040283529160200191610471565b820191906000526020600020905b81548152906001019060200180831161045457829003601f168201915b505050505081565b60008115806104a95750336000908152600560209081526040808320600160a060020a0387168452909152902054155b15156104b457600080fd5b336000818152600560209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60065481565b600160a060020a03831660009081526004602052604081205482111561054657600080fd5b600160a060020a038416600090815260056020908152604080832033845290915290205482111561057657600080fd5b600160a060020a03808516600081815260056020908152604080832033845282528083208054889003905583835260048252808320805488900390559387168083529184902080548701905583518681529351919360008051602061094e833981519152929081900390910190a35060019392505050565b6008546101009004600160a060020a0316331461060757fe5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035481565b600954600090600160a060020a0316331461065357fe5b815183511461066157600080fd5b5060005b82518110156106ae576106a6838281518110151561067f57fe5b90602001906020020151838381518110151561069757fe5b90602001906020020151610744565b600101610665565b505050565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104715780601f1061044657610100808354040283529160200191610471565b6008546101009004600160a060020a0316331461072457fe5b600755565b60046020526000908152604090205481565b60085460ff1681565b600954600160a060020a0316331461075857fe5b6006546007541161076857600080fd5b600160a060020a038216600090815260046020908152604080832080548501905560068054850190558051848152905130939260008051602061094e833981519152928290030190a3604080518281529051600160a060020a03841691309160008051602061094e8339815191529181900360200190a35050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104715780601f1061044657610100808354040283529160200191610471565b6008546101009004600160a060020a0316331461085657fe5b60088054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b336000908152600460205260408120548211156108a757600080fd5b600160a060020a03831660009081526004602052604090205482810110156108ce57600080fd5b33600081815260046020908152604080832080548790039055600160a060020a038716808452928190208054870190558051868152905192939260008051602061094e833981519152929181900390910190a350600192915050565b60075481565b6005602090815260009283526040808420909152908252902054815600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820465d592be2573cd2d6e3ca8f264fc699d763cec5a0d2e9e4c6486416f84084be0029
Deployed Bytecode
0x6080604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f5578063095ea7b31461017f57806318160ddd146101b757806323b872dd146101de5780632c4d4d1814610208578063313ce5671461022b5780633ff00ba51461024057806354fd4d50146102ce5780636f8b44b0146102e357806370a08231146102fb57806375f12b211461031c57806379c650681461033157806395d89b4114610355578063a6f9dae11461036a578063a9059cbb1461038b578063b36c1284146103af578063dd62ed3e146103c4575b600080fd5b34801561010157600080fd5b5061010a6103eb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018b57600080fd5b506101a3600160a060020a0360043516602435610479565b604080519115158252519081900360200190f35b3480156101c357600080fd5b506101cc61051b565b60408051918252519081900360200190f35b3480156101ea57600080fd5b506101a3600160a060020a0360043581169060243516604435610521565b34801561021457600080fd5b50610229600160a060020a03600435166105ee565b005b34801561023757600080fd5b506101cc610636565b34801561024c57600080fd5b506040805160206004803580820135838102808601850190965280855261022995369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061063c9650505050505050565b3480156102da57600080fd5b5061010a6106b3565b3480156102ef57600080fd5b5061022960043561070b565b34801561030757600080fd5b506101cc600160a060020a0360043516610729565b34801561032857600080fd5b506101a361073b565b34801561033d57600080fd5b50610229600160a060020a0360043516602435610744565b34801561036157600080fd5b5061010a6107e3565b34801561037657600080fd5b50610229600160a060020a036004351661083d565b34801561039757600080fd5b506101a3600160a060020a036004351660243561088b565b3480156103bb57600080fd5b506101cc61092a565b3480156103d057600080fd5b506101cc600160a060020a0360043581169060243516610930565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104715780601f1061044657610100808354040283529160200191610471565b820191906000526020600020905b81548152906001019060200180831161045457829003601f168201915b505050505081565b60008115806104a95750336000908152600560209081526040808320600160a060020a0387168452909152902054155b15156104b457600080fd5b336000818152600560209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60065481565b600160a060020a03831660009081526004602052604081205482111561054657600080fd5b600160a060020a038416600090815260056020908152604080832033845290915290205482111561057657600080fd5b600160a060020a03808516600081815260056020908152604080832033845282528083208054889003905583835260048252808320805488900390559387168083529184902080548701905583518681529351919360008051602061094e833981519152929081900390910190a35060019392505050565b6008546101009004600160a060020a0316331461060757fe5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035481565b600954600090600160a060020a0316331461065357fe5b815183511461066157600080fd5b5060005b82518110156106ae576106a6838281518110151561067f57fe5b90602001906020020151838381518110151561069757fe5b90602001906020020151610744565b600101610665565b505050565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104715780601f1061044657610100808354040283529160200191610471565b6008546101009004600160a060020a0316331461072457fe5b600755565b60046020526000908152604090205481565b60085460ff1681565b600954600160a060020a0316331461075857fe5b6006546007541161076857600080fd5b600160a060020a038216600090815260046020908152604080832080548501905560068054850190558051848152905130939260008051602061094e833981519152928290030190a3604080518281529051600160a060020a03841691309160008051602061094e8339815191529181900360200190a35050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104715780601f1061044657610100808354040283529160200191610471565b6008546101009004600160a060020a0316331461085657fe5b60088054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b336000908152600460205260408120548211156108a757600080fd5b600160a060020a03831660009081526004602052604090205482810110156108ce57600080fd5b33600081815260046020908152604080832080548790039055600160a060020a038716808452928190208054870190558051868152905192939260008051602061094e833981519152929181900390910190a350600192915050565b60075481565b6005602090815260009283526040808420909152908252902054815600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820465d592be2573cd2d6e3ca8f264fc699d763cec5a0d2e9e4c6486416f84084be0029
Swarm Source
bzzr://465d592be2573cd2d6e3ca8f264fc699d763cec5a0d2e9e4c6486416f84084be
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.