ERC-20
Overview
Max Total Supply
1,000,000,000 MOBA
Holders
236
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 6 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BlockMobaToken
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-07-17 */ pragma solidity ^0.4.24; contract SafeMath { function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) { assert(b > 0); uint256 c = a / b; assert(a == b * c + a % b); return c; } function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c>=a && c>=b); return c; } } contract BlockMobaToken is SafeMath { address public owner; string public name; string public symbol; uint public decimals; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Burn(address indexed from, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); mapping (address => bool) public frozenAccount; event FrozenFunds(address target, bool frozen); bool lock = false; constructor( uint256 initialSupply, string tokenName, string tokenSymbol, uint decimalUnits ) public { owner = msg.sender; name = tokenName; symbol = tokenSymbol; decimals = decimalUnits; totalSupply = initialSupply * 10 ** uint256(decimals); balanceOf[msg.sender] = totalSupply; } modifier onlyOwner { require(msg.sender == owner); _; } modifier isLock { require(!lock); _; } function setLock(bool _lock) onlyOwner public{ lock = _lock; } function transferOwnership(address newOwner) onlyOwner public { if (newOwner != address(0)) { owner = newOwner; } } function _transfer(address _from, address _to, uint _value) isLock internal { require (_to != 0x0); require (balanceOf[_from] >= _value); require (balanceOf[_to] + _value > balanceOf[_to]); require(!frozenAccount[_from]); require(!frozenAccount[_to]); balanceOf[_from] -= _value; balanceOf[_to] += _value; emit Transfer(_from, _to, _value); } function transfer(address _to, uint256 _value) public returns (bool success) { _transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { require(_value <= allowance[_from][msg.sender]); allowance[_from][msg.sender] -= _value; _transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function burn(uint256 _value) onlyOwner public returns (bool success) { require(balanceOf[msg.sender] >= _value); balanceOf[msg.sender] -= _value; totalSupply -= _value; emit Burn(msg.sender, _value); return true; } function burnFrom(address _from, uint256 _value) onlyOwner public returns (bool success) { require(balanceOf[_from] >= _value); require(_value <= allowance[_from][msg.sender]); balanceOf[_from] -= _value; allowance[_from][msg.sender] -= _value; totalSupply -= _value; emit Burn(_from, _value); return true; } function mintToken(address target, uint256 mintedAmount) onlyOwner public { uint256 _amount = mintedAmount * 10 ** uint256(decimals); balanceOf[target] += _amount; totalSupply += _amount; emit Transfer(this, target, _amount); } function freezeAccount(address target, bool freeze) onlyOwner public { frozenAccount[target] = freeze; emit FrozenFunds(target, freeze); } function transferBatch(address[] _to, uint256 _value) public returns (bool success) { for (uint i=0; i<_to.length; i++) { _transfer(msg.sender, _to[i], _value); } return true; } }
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":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","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":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_lock","type":"bool"}],"name":"setLock","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":false,"inputs":[{"name":"target","type":"address"},{"name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"burnFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address[]"},{"name":"_value","type":"uint256"}],"name":"transferBatch","outputs":[{"name":"success","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":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"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"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},{"name":"decimalUnits","type":"uint256"}],"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":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","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":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"}]
Contract Creation Code
60806040526008805460ff1916905534801561001a57600080fd5b50604051610c1d380380610c1d833981016040908152815160208084015192840151606085015160008054600160a060020a031916331790559385018051939590949101929091610070916001918601906100ae565b5081516100849060029060208501906100ae565b506003819055600a0a92909202600481905533600090815260056020526040902055506101499050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100ef57805160ff191683800117855561011c565b8280016001018555821561011c579182015b8281111561011c578251825591602001919060010190610101565b5061012892915061012c565b5090565b61014691905b808211156101285760008155600101610132565b90565b610ac5806101586000396000f3006080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610100578063095ea7b31461018a57806318160ddd146101c257806323b872dd146101e9578063313ce5671461021357806342966c6814610228578063619d51941461024057806370a082311461025c57806379c650681461027d57806379cc6790146102a1578063806e085e146102c55780638da5cb5b1461031c57806395d89b411461034d578063a9059cbb14610362578063b414d4b614610386578063dd62ed3e146103a7578063e724529c146103ce578063f2fde38b146103f4575b600080fd5b34801561010c57600080fd5b50610115610415565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019657600080fd5b506101ae600160a060020a03600435166024356104a2565b604080519115158252519081900360200190f35b3480156101ce57600080fd5b506101d7610508565b60408051918252519081900360200190f35b3480156101f557600080fd5b506101ae600160a060020a036004358116906024351660443561050e565b34801561021f57600080fd5b506101d761057d565b34801561023457600080fd5b506101ae600435610583565b34801561024c57600080fd5b5061025a6004351515610613565b005b34801561026857600080fd5b506101d7600160a060020a036004351661063d565b34801561028957600080fd5b5061025a600160a060020a036004351660243561064f565b3480156102ad57600080fd5b506101ae600160a060020a03600435166024356106d5565b3480156102d157600080fd5b50604080516020600480358082013583810280860185019096528085526101ae9536959394602494938501929182918501908490808284375094975050933594506107be9350505050565b34801561032857600080fd5b506103316107f5565b60408051600160a060020a039092168252519081900360200190f35b34801561035957600080fd5b50610115610804565b34801561036e57600080fd5b506101ae600160a060020a036004351660243561085c565b34801561039257600080fd5b506101ae600160a060020a0360043516610872565b3480156103b357600080fd5b506101d7600160a060020a0360043581169060243516610887565b3480156103da57600080fd5b5061025a600160a060020a036004351660243515156108a4565b34801561040057600080fd5b5061025a600160a060020a036004351661091f565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561049a5780601f1061046f5761010080835404028352916020019161049a565b820191906000526020600020905b81548152906001019060200180831161047d57829003601f168201915b505050505081565b336000818152600660209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b600160a060020a038316600090815260066020908152604080832033845290915281205482111561053e57600080fd5b600160a060020a0384166000908152600660209081526040808320338452909152902080548390039055610573848484610971565b5060019392505050565b60035481565b60008054600160a060020a0316331461059b57600080fd5b336000908152600560205260409020548211156105b757600080fd5b3360008181526005602090815260409182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b600054600160a060020a0316331461062a57600080fd5b6008805460ff1916911515919091179055565b60056020526000908152604090205481565b60008054600160a060020a0316331461066757600080fd5b50600354600160a060020a0383166000818152600560209081526040918290208054600a9590950a8602948501905560048054850190558151848152915130927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a3505050565b60008054600160a060020a031633146106ed57600080fd5b600160a060020a03831660009081526005602052604090205482111561071257600080fd5b600160a060020a038316600090815260066020908152604080832033845290915290205482111561074257600080fd5b600160a060020a0383166000818152600560209081526040808320805487900390556006825280832033845282529182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a250600192915050565b6000805b8351811015610573576107ed3385838151811015156107dd57fe5b9060200190602002015185610971565b6001016107c2565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561049a5780601f1061046f5761010080835404028352916020019161049a565b6000610869338484610971565b50600192915050565b60076020526000908152604090205460ff1681565b600660209081526000928352604080842090915290825290205481565b600054600160a060020a031633146108bb57600080fd5b600160a060020a038216600081815260076020908152604091829020805460ff191685151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a15050565b600054600160a060020a0316331461093657600080fd5b600160a060020a0381161561096e576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60085460ff161561098157600080fd5b600160a060020a038216151561099657600080fd5b600160a060020a0383166000908152600560205260409020548111156109bb57600080fd5b600160a060020a038216600090815260056020526040902054818101116109e157600080fd5b600160a060020a03831660009081526007602052604090205460ff1615610a0757600080fd5b600160a060020a03821660009081526007602052604090205460ff1615610a2d57600080fd5b600160a060020a03808416600081815260056020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a7230582062046692426fb41d5af72f52e8601a57d2ae21baaac6cb724c0bf0566630da5f002900000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000f426c6f636b4d6f626120546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d4f424100000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610100578063095ea7b31461018a57806318160ddd146101c257806323b872dd146101e9578063313ce5671461021357806342966c6814610228578063619d51941461024057806370a082311461025c57806379c650681461027d57806379cc6790146102a1578063806e085e146102c55780638da5cb5b1461031c57806395d89b411461034d578063a9059cbb14610362578063b414d4b614610386578063dd62ed3e146103a7578063e724529c146103ce578063f2fde38b146103f4575b600080fd5b34801561010c57600080fd5b50610115610415565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561014f578181015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019657600080fd5b506101ae600160a060020a03600435166024356104a2565b604080519115158252519081900360200190f35b3480156101ce57600080fd5b506101d7610508565b60408051918252519081900360200190f35b3480156101f557600080fd5b506101ae600160a060020a036004358116906024351660443561050e565b34801561021f57600080fd5b506101d761057d565b34801561023457600080fd5b506101ae600435610583565b34801561024c57600080fd5b5061025a6004351515610613565b005b34801561026857600080fd5b506101d7600160a060020a036004351661063d565b34801561028957600080fd5b5061025a600160a060020a036004351660243561064f565b3480156102ad57600080fd5b506101ae600160a060020a03600435166024356106d5565b3480156102d157600080fd5b50604080516020600480358082013583810280860185019096528085526101ae9536959394602494938501929182918501908490808284375094975050933594506107be9350505050565b34801561032857600080fd5b506103316107f5565b60408051600160a060020a039092168252519081900360200190f35b34801561035957600080fd5b50610115610804565b34801561036e57600080fd5b506101ae600160a060020a036004351660243561085c565b34801561039257600080fd5b506101ae600160a060020a0360043516610872565b3480156103b357600080fd5b506101d7600160a060020a0360043581169060243516610887565b3480156103da57600080fd5b5061025a600160a060020a036004351660243515156108a4565b34801561040057600080fd5b5061025a600160a060020a036004351661091f565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561049a5780601f1061046f5761010080835404028352916020019161049a565b820191906000526020600020905b81548152906001019060200180831161047d57829003601f168201915b505050505081565b336000818152600660209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60045481565b600160a060020a038316600090815260066020908152604080832033845290915281205482111561053e57600080fd5b600160a060020a0384166000908152600660209081526040808320338452909152902080548390039055610573848484610971565b5060019392505050565b60035481565b60008054600160a060020a0316331461059b57600080fd5b336000908152600560205260409020548211156105b757600080fd5b3360008181526005602090815260409182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a2506001919050565b600054600160a060020a0316331461062a57600080fd5b6008805460ff1916911515919091179055565b60056020526000908152604090205481565b60008054600160a060020a0316331461066757600080fd5b50600354600160a060020a0383166000818152600560209081526040918290208054600a9590950a8602948501905560048054850190558151848152915130927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a3505050565b60008054600160a060020a031633146106ed57600080fd5b600160a060020a03831660009081526005602052604090205482111561071257600080fd5b600160a060020a038316600090815260066020908152604080832033845290915290205482111561074257600080fd5b600160a060020a0383166000818152600560209081526040808320805487900390556006825280832033845282529182902080548690039055600480548690039055815185815291517fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59281900390910190a250600192915050565b6000805b8351811015610573576107ed3385838151811015156107dd57fe5b9060200190602002015185610971565b6001016107c2565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561049a5780601f1061046f5761010080835404028352916020019161049a565b6000610869338484610971565b50600192915050565b60076020526000908152604090205460ff1681565b600660209081526000928352604080842090915290825290205481565b600054600160a060020a031633146108bb57600080fd5b600160a060020a038216600081815260076020908152604091829020805460ff191685151590811790915582519384529083015280517f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59281900390910190a15050565b600054600160a060020a0316331461093657600080fd5b600160a060020a0381161561096e576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60085460ff161561098157600080fd5b600160a060020a038216151561099657600080fd5b600160a060020a0383166000908152600560205260409020548111156109bb57600080fd5b600160a060020a038216600090815260056020526040902054818101116109e157600080fd5b600160a060020a03831660009081526007602052604090205460ff1615610a0757600080fd5b600160a060020a03821660009081526007602052604090205460ff1615610a2d57600080fd5b600160a060020a03808416600081815260056020908152604080832080548790039055938616808352918490208054860190558351858152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35050505600a165627a7a7230582062046692426fb41d5af72f52e8601a57d2ae21baaac6cb724c0bf0566630da5f0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000f426c6f636b4d6f626120546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d4f424100000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialSupply (uint256): 10000000000
Arg [1] : tokenName (string): BlockMoba Token
Arg [2] : tokenSymbol (string): MOBA
Arg [3] : decimalUnits (uint256): 6
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000002540be400
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 426c6f636b4d6f626120546f6b656e0000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4d4f424100000000000000000000000000000000000000000000000000000000
Swarm Source
bzzr://62046692426fb41d5af72f52e8601a57d2ae21baaac6cb724c0bf0566630da5f
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.