ETH Price: $3,076.57 (-1.13%)
Gas: 4 Gwei

Token

SWTCoin (SWAT)
 

Overview

Max Total Supply

290,986,137 SWAT

Holders

157

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

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:
SWTCoin

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.16;

contract SWTCoin {
    string public name = "SWTCoin";      //  token name
    string public symbol = "SWAT";           //  token symbol
    string public version = "1.0";
    uint256 public decimals = 8;            //  token digit

    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    uint256 public totalSupply = 29000000000000000;
    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 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

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":"_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"}]

60c0604052600760808190527f535754436f696e0000000000000000000000000000000000000000000000000060a090815261003e91600091906101bd565b506040805180820190915260048082527f53574154000000000000000000000000000000000000000000000000000000006020909201918252610083916001916101bd565b506040805180820190915260038082527f312e30000000000000000000000000000000000000000000000000000000000060209092019182526100c8916002916101bd565b506008600381905566670758aa7c800060065560006007558054600160ff199091161761010060a860020a0319167448850f503412d8a6e3d63541f0e225f04b13a54400179055600980547347c803871c99ec7180e50dcda989320871fcbfee600160a060020a031990911617905534801561014357600080fd5b506702231e2f1f69000060075560065460088054600160a060020a036101009182900481166000908152600460209081526040808320879055945485519687529451939094049091169390927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3610258565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101fe57805160ff191683800117855561022b565b8280016001018555821561022b579182015b8281111561022b578251825591602001919060010190610210565b5061023792915061023b565b5090565b61025591905b808211156102375760008155600101610241565b90565b6108ad806102676000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac5780632c4d4d18146101d3578063313ce567146101f65780633ff00ba51461020b57806354fd4d50146102995780636f8b44b0146102ae57806370a08231146102c657806375f12b21146102e757806379c65068146102fc57806395d89b4114610320578063a6f9dae114610335578063a9059cbb14610356578063b36c12841461037a578063dd62ed3e1461038f575b600080fd5b3480156100f657600080fd5b506100ff6103b6565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610444565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c16104e6565b60408051918252519081900360200190f35b3480156101df57600080fd5b506101f4600160a060020a03600435166104ec565b005b34801561020257600080fd5b506101c1610534565b34801561021757600080fd5b50604080516020600480358082013583810280860185019096528085526101f495369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061053a9650505050505050565b3480156102a557600080fd5b506100ff6105b1565b3480156102ba57600080fd5b506101f4600435610609565b3480156102d257600080fd5b506101c1600160a060020a0360043516610627565b3480156102f357600080fd5b50610198610639565b34801561030857600080fd5b506101f4600160a060020a0360043516602435610642565b34801561032c57600080fd5b506100ff610705565b34801561034157600080fd5b506101f4600160a060020a036004351661075f565b34801561036257600080fd5b50610198600160a060020a03600435166024356107ad565b34801561038657600080fd5b506101c161085e565b34801561039b57600080fd5b506101c1600160a060020a0360043581169060243516610864565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561043c5780601f106104115761010080835404028352916020019161043c565b820191906000526020600020905b81548152906001019060200180831161041f57829003601f168201915b505050505081565b60008115806104745750336000908152600560209081526040808320600160a060020a0387168452909152902054155b151561047f57600080fd5b336000818152600560209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60065481565b6008546101009004600160a060020a0316331461050557fe5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035481565b600954600090600160a060020a0316331461055157fe5b815183511461055f57600080fd5b5060005b82518110156105ac576105a4838281518110151561057d57fe5b90602001906020020151838381518110151561059557fe5b90602001906020020151610642565b600101610563565b505050565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561043c5780601f106104115761010080835404028352916020019161043c565b6008546101009004600160a060020a0316331461062257fe5b600755565b60046020526000908152604090205481565b60085460ff1681565b600954600160a060020a0316331461065657fe5b6006546007541161066657600080fd5b600160a060020a03821660009081526004602090815260408083208054850190556006805485019055805184815290513093927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef928290030190a3604080518281529051600160a060020a0384169130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561043c5780601f106104115761010080835404028352916020019161043c565b6008546101009004600160a060020a0316331461077857fe5b60088054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b336000908152600460205260408120548211156107c957600080fd5b600160a060020a03831660009081526004602052604090205482810110156107f057600080fd5b33600081815260046020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60075481565b6005602090815260009283526040808420909152908252902054815600a165627a7a7230582049847beab67a94b9c27704afd5faaac3ddab67cacbdabbe9a2bbb007d5d53eca0029

Deployed Bytecode

0x6080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b31461017457806318160ddd146101ac5780632c4d4d18146101d3578063313ce567146101f65780633ff00ba51461020b57806354fd4d50146102995780636f8b44b0146102ae57806370a08231146102c657806375f12b21146102e757806379c65068146102fc57806395d89b4114610320578063a6f9dae114610335578063a9059cbb14610356578063b36c12841461037a578063dd62ed3e1461038f575b600080fd5b3480156100f657600080fd5b506100ff6103b6565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a0360043516602435610444565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c16104e6565b60408051918252519081900360200190f35b3480156101df57600080fd5b506101f4600160a060020a03600435166104ec565b005b34801561020257600080fd5b506101c1610534565b34801561021757600080fd5b50604080516020600480358082013583810280860185019096528085526101f495369593946024949385019291829185019084908082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061053a9650505050505050565b3480156102a557600080fd5b506100ff6105b1565b3480156102ba57600080fd5b506101f4600435610609565b3480156102d257600080fd5b506101c1600160a060020a0360043516610627565b3480156102f357600080fd5b50610198610639565b34801561030857600080fd5b506101f4600160a060020a0360043516602435610642565b34801561032c57600080fd5b506100ff610705565b34801561034157600080fd5b506101f4600160a060020a036004351661075f565b34801561036257600080fd5b50610198600160a060020a03600435166024356107ad565b34801561038657600080fd5b506101c161085e565b34801561039b57600080fd5b506101c1600160a060020a0360043581169060243516610864565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561043c5780601f106104115761010080835404028352916020019161043c565b820191906000526020600020905b81548152906001019060200180831161041f57829003601f168201915b505050505081565b60008115806104745750336000908152600560209081526040808320600160a060020a0387168452909152902054155b151561047f57600080fd5b336000818152600560209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60065481565b6008546101009004600160a060020a0316331461050557fe5b6009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60035481565b600954600090600160a060020a0316331461055157fe5b815183511461055f57600080fd5b5060005b82518110156105ac576105a4838281518110151561057d57fe5b90602001906020020151838381518110151561059557fe5b90602001906020020151610642565b600101610563565b505050565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561043c5780601f106104115761010080835404028352916020019161043c565b6008546101009004600160a060020a0316331461062257fe5b600755565b60046020526000908152604090205481565b60085460ff1681565b600954600160a060020a0316331461065657fe5b6006546007541161066657600080fd5b600160a060020a03821660009081526004602090815260408083208054850190556006805485019055805184815290513093927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef928290030190a3604080518281529051600160a060020a0384169130917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561043c5780601f106104115761010080835404028352916020019161043c565b6008546101009004600160a060020a0316331461077857fe5b60088054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b336000908152600460205260408120548211156107c957600080fd5b600160a060020a03831660009081526004602052604090205482810110156107f057600080fd5b33600081815260046020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60075481565b6005602090815260009283526040808420909152908252902054815600a165627a7a7230582049847beab67a94b9c27704afd5faaac3ddab67cacbdabbe9a2bbb007d5d53eca0029

Swarm Source

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