ERC-20
Overview
Max Total Supply
1,000,000,000 GTBC
Holders
385
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
GTBC
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-08-01 */ pragma solidity ^0.4.24; contract Owned { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) public onlyOwner { owner = newOwner; } } contract SafeMath { function mul(uint a, uint b) internal pure returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal pure returns (uint) { assert(b > 0); uint c = a / b; assert(a == b * c + a % b); return c; } function sub(uint a, uint b) internal pure returns (uint) { assert(b <= a); return a - b; } function add(uint a, uint b) internal pure returns (uint) { uint c = a + b; assert(c >= a); return c; } } contract Pausable is Owned { bool public paused = false; event Pause(); event Unpause(); modifier notPaused { require(!paused); _; } function pause() public onlyOwner { paused = true; emit Pause(); } function unpause() public onlyOwner { paused = false; emit Unpause(); } } contract EIP20Interface { uint256 public totalSupply; function balanceOf(address _owner) public view returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); function approve(address _spender, uint256 _value) public returns (bool success); 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 GTBC is Owned, SafeMath, Pausable, EIP20Interface { string public name; string public symbol; uint8 public decimals; uint8 public version = 1; mapping (address => uint256) public balances; mapping (address => uint256) public frozen; mapping (address => mapping (address => uint256)) public allowed; event Freeze(address indexed from, uint256 value); event Unfreeze(address indexed from, uint256 value); constructor() public { name = "Global Token Bet Coin "; symbol = "GTBC"; decimals = 18; totalSupply = 1000000000 * 10 ** uint256(decimals); balances[msg.sender] = totalSupply; } // freeze part function freeze(address _addr, uint256 _value) public onlyOwner returns (bool success) { require(balances[_addr] >= _value); require(_value > 0); balances[_addr] = sub(balances[_addr], _value); frozen[_addr] = add(frozen[_addr], _value); emit Freeze(_addr, _value); return true; } function unfreeze(address _addr, uint256 _value) public onlyOwner returns (bool success) { require(frozen[_addr] >= _value); require(_value > 0); frozen[_addr] = sub(frozen[_addr], _value); balances[_addr] = add(balances[_addr], _value); emit Unfreeze(_addr, _value); return true; } function frozenOf(address _owner) public view returns (uint256 balance) { return frozen[_owner]; } // erc20 part function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } function transfer(address _to, uint256 _value) public notPaused returns (bool success) { require(balances[msg.sender] >= _value); require(balances[_to] + _value >= balances[_to]); balances[msg.sender] -= _value; balances[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) notPaused public returns (bool success) { require(balances[_from] >= _value); require(balances[_to] + _value >= balances[_to]); require(allowed[_from][msg.sender] >= _value); balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; emit Transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public notPaused returns (bool success) { require(_value > 0); 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]; } }
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":true,"inputs":[{"name":"_owner","type":"address"}],"name":"frozenOf","outputs":[{"name":"balance","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":false,"inputs":[{"name":"_addr","type":"address"},{"name":"_value","type":"uint256"}],"name":"freeze","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"},{"name":"_value","type":"uint256"}],"name":"unfreeze","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"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":"frozen","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Freeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Unfreeze","type":"event"},{"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"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"}]
Contract Creation Code
60806040526000805460a060020a60ff02191690556004805461ff00191661010017905534801561002f57600080fd5b5060008054600160a060020a031916331790556040805180820190915260168082527f476c6f62616c20546f6b656e2042657420436f696e2000000000000000000000602090920191825261008691600291610103565b506040805180820190915260048082527f475442430000000000000000000000000000000000000000000000000000000060209092019182526100cb91600391610103565b5060048054601260ff19909116179081905560ff16600a0a633b9aca000260018190553360009081526005602052604090205561019e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014457805160ff1916838001178555610171565b82800160010185558215610171579182015b82811115610171578251825591602001919060010190610156565b5061017d929150610181565b5090565b61019b91905b8082111561017d5760008155600101610187565b90565b610bd9806101ad6000396000f30060806040526004361061011c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610121578063095ea7b3146101ab57806318160ddd146101e35780631bf6e00d1461020a57806323b872dd1461022b57806324bce60c1461025557806327e235e314610279578063313ce5671461029a5780633f4ba83a146102c557806354fd4d50146102dc5780635c658165146102f15780635c975abb1461031857806370a082311461032d5780637b46b80b1461034e5780638456cb59146103725780638da5cb5b1461038757806395d89b41146103b8578063a9059cbb146103cd578063d0516650146103f1578063dd62ed3e14610412578063f2fde38b14610439575b600080fd5b34801561012d57600080fd5b5061013661045a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610170578181015183820152602001610158565b50505050905090810190601f16801561019d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b757600080fd5b506101cf600160a060020a03600435166024356104e5565b604080519115158252519081900360200190f35b3480156101ef57600080fd5b506101f8610571565b60408051918252519081900360200190f35b34801561021657600080fd5b506101f8600160a060020a0360043516610577565b34801561023757600080fd5b506101cf600160a060020a0360043581169060243516604435610592565b34801561026157600080fd5b506101cf600160a060020a03600435166024356106ae565b34801561028557600080fd5b506101f8600160a060020a03600435166107a5565b3480156102a657600080fd5b506102af6107b7565b6040805160ff9092168252519081900360200190f35b3480156102d157600080fd5b506102da6107c0565b005b3480156102e857600080fd5b506102af61081e565b3480156102fd57600080fd5b506101f8600160a060020a036004358116906024351661082c565b34801561032457600080fd5b506101cf610849565b34801561033957600080fd5b506101f8600160a060020a0360043516610859565b34801561035a57600080fd5b506101cf600160a060020a0360043516602435610874565b34801561037e57600080fd5b506102da61096b565b34801561039357600080fd5b5061039c6109cf565b60408051600160a060020a039092168252519081900360200190f35b3480156103c457600080fd5b506101366109de565b3480156103d957600080fd5b506101cf600160a060020a0360043516602435610a39565b3480156103fd57600080fd5b506101f8600160a060020a0360043516610b02565b34801561041e57600080fd5b506101f8600160a060020a0360043581169060243516610b14565b34801561044557600080fd5b506102da600160a060020a0360043516610b3f565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b505050505081565b6000805460a060020a900460ff16156104fd57600080fd5b6000821161050a57600080fd5b336000818152600760209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60015481565b600160a060020a031660009081526006602052604090205490565b6000805460a060020a900460ff16156105aa57600080fd5b600160a060020a0384166000908152600560205260409020548211156105cf57600080fd5b600160a060020a03831660009081526005602052604090205482810110156105f657600080fd5b600160a060020a038416600090815260076020908152604080832033845290915290205482111561062657600080fd5b600160a060020a03808416600081815260056020908152604080832080548801905593881680835284832080548890039055600782528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b60008054600160a060020a031633146106c657600080fd5b600160a060020a0383166000908152600560205260409020548211156106eb57600080fd5b600082116106f857600080fd5b600160a060020a03831660009081526005602052604090205461071b9083610b85565b600160a060020a03841660009081526005602090815260408083209390935560069052205461074a9083610b97565b600160a060020a038416600081815260066020908152604091829020939093558051858152905191927ff97a274face0b5517365ad396b1fdba6f68bd3135ef603e44272adba3af5a1e092918290030190a250600192915050565b60056020526000908152604090205481565b60045460ff1681565b600054600160a060020a031633146107d757600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b600454610100900460ff1681565b600760209081526000928352604080842090915290825290205481565b60005460a060020a900460ff1681565b600160a060020a031660009081526005602052604090205490565b60008054600160a060020a0316331461088c57600080fd5b600160a060020a0383166000908152600660205260409020548211156108b157600080fd5b600082116108be57600080fd5b600160a060020a0383166000908152600660205260409020546108e19083610b85565b600160a060020a0384166000908152600660209081526040808320939093556005905220546109109083610b97565b600160a060020a038416600081815260056020908152604091829020939093558051858152905191927f2cfce4af01bcb9d6cf6c84ee1b7c491100b8695368264146a94d71e10a63083f92918290030190a250600192915050565b600054600160a060020a0316331461098257600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104dd5780601f106104b2576101008083540402835291602001916104dd565b6000805460a060020a900460ff1615610a5157600080fd5b33600090815260056020526040902054821115610a6d57600080fd5b600160a060020a0383166000908152600560205260409020548281011015610a9457600080fd5b33600081815260056020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60066020526000908152604090205481565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205490565b600054600160a060020a03163314610b5657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610b9157fe5b50900390565b600082820183811015610ba657fe5b93925050505600a165627a7a7230582003b32274096d4172baf0eb3eeaf4dbff03174a06410201b410fea4034d15102e0029
Deployed Bytecode
0x60806040526004361061011c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610121578063095ea7b3146101ab57806318160ddd146101e35780631bf6e00d1461020a57806323b872dd1461022b57806324bce60c1461025557806327e235e314610279578063313ce5671461029a5780633f4ba83a146102c557806354fd4d50146102dc5780635c658165146102f15780635c975abb1461031857806370a082311461032d5780637b46b80b1461034e5780638456cb59146103725780638da5cb5b1461038757806395d89b41146103b8578063a9059cbb146103cd578063d0516650146103f1578063dd62ed3e14610412578063f2fde38b14610439575b600080fd5b34801561012d57600080fd5b5061013661045a565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610170578181015183820152602001610158565b50505050905090810190601f16801561019d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101b757600080fd5b506101cf600160a060020a03600435166024356104e5565b604080519115158252519081900360200190f35b3480156101ef57600080fd5b506101f8610571565b60408051918252519081900360200190f35b34801561021657600080fd5b506101f8600160a060020a0360043516610577565b34801561023757600080fd5b506101cf600160a060020a0360043581169060243516604435610592565b34801561026157600080fd5b506101cf600160a060020a03600435166024356106ae565b34801561028557600080fd5b506101f8600160a060020a03600435166107a5565b3480156102a657600080fd5b506102af6107b7565b6040805160ff9092168252519081900360200190f35b3480156102d157600080fd5b506102da6107c0565b005b3480156102e857600080fd5b506102af61081e565b3480156102fd57600080fd5b506101f8600160a060020a036004358116906024351661082c565b34801561032457600080fd5b506101cf610849565b34801561033957600080fd5b506101f8600160a060020a0360043516610859565b34801561035a57600080fd5b506101cf600160a060020a0360043516602435610874565b34801561037e57600080fd5b506102da61096b565b34801561039357600080fd5b5061039c6109cf565b60408051600160a060020a039092168252519081900360200190f35b3480156103c457600080fd5b506101366109de565b3480156103d957600080fd5b506101cf600160a060020a0360043516602435610a39565b3480156103fd57600080fd5b506101f8600160a060020a0360043516610b02565b34801561041e57600080fd5b506101f8600160a060020a0360043581169060243516610b14565b34801561044557600080fd5b506102da600160a060020a0360043516610b3f565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b505050505081565b6000805460a060020a900460ff16156104fd57600080fd5b6000821161050a57600080fd5b336000818152600760209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60015481565b600160a060020a031660009081526006602052604090205490565b6000805460a060020a900460ff16156105aa57600080fd5b600160a060020a0384166000908152600560205260409020548211156105cf57600080fd5b600160a060020a03831660009081526005602052604090205482810110156105f657600080fd5b600160a060020a038416600090815260076020908152604080832033845290915290205482111561062657600080fd5b600160a060020a03808416600081815260056020908152604080832080548801905593881680835284832080548890039055600782528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b60008054600160a060020a031633146106c657600080fd5b600160a060020a0383166000908152600560205260409020548211156106eb57600080fd5b600082116106f857600080fd5b600160a060020a03831660009081526005602052604090205461071b9083610b85565b600160a060020a03841660009081526005602090815260408083209390935560069052205461074a9083610b97565b600160a060020a038416600081815260066020908152604091829020939093558051858152905191927ff97a274face0b5517365ad396b1fdba6f68bd3135ef603e44272adba3af5a1e092918290030190a250600192915050565b60056020526000908152604090205481565b60045460ff1681565b600054600160a060020a031633146107d757600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b339190a1565b600454610100900460ff1681565b600760209081526000928352604080842090915290825290205481565b60005460a060020a900460ff1681565b600160a060020a031660009081526005602052604090205490565b60008054600160a060020a0316331461088c57600080fd5b600160a060020a0383166000908152600660205260409020548211156108b157600080fd5b600082116108be57600080fd5b600160a060020a0383166000908152600660205260409020546108e19083610b85565b600160a060020a0384166000908152600660209081526040808320939093556005905220546109109083610b97565b600160a060020a038416600081815260056020908152604091829020939093558051858152905191927f2cfce4af01bcb9d6cf6c84ee1b7c491100b8695368264146a94d71e10a63083f92918290030190a250600192915050565b600054600160a060020a0316331461098257600080fd5b6000805474ff0000000000000000000000000000000000000000191660a060020a1781556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff6259190a1565b600054600160a060020a031681565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104dd5780601f106104b2576101008083540402835291602001916104dd565b6000805460a060020a900460ff1615610a5157600080fd5b33600090815260056020526040902054821115610a6d57600080fd5b600160a060020a0383166000908152600560205260409020548281011015610a9457600080fd5b33600081815260056020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b60066020526000908152604090205481565b600160a060020a03918216600090815260076020908152604080832093909416825291909152205490565b600054600160a060020a03163314610b5657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600082821115610b9157fe5b50900390565b600082820183811015610ba657fe5b93925050505600a165627a7a7230582003b32274096d4172baf0eb3eeaf4dbff03174a06410201b410fea4034d15102e0029
Swarm Source
bzzr://03b32274096d4172baf0eb3eeaf4dbff03174a06410201b410fea4034d15102e
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.