ERC-20
Overview
Max Total Supply
1,000,000,000 PBC
Holders
43
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 Name:
PBC
Compiler Version
v0.4.13+commit.fb4cb1a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-04-03 */ pragma solidity ^0.4.13; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public constant returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval(address indexed owner, address indexed spender, uint256 value); } contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) onlyOwner public { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; } } library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal constant returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract PBC is ERC20,Ownable{ using SafeMath for uint256; string public constant name="polar bear(北极熊)"; string public symbol="PBC"; string public constant version = "1.0"; uint256 public constant decimals = 18; uint256 public totalSupply; uint256 public constant MAX_SUPPLY=uint256(1000000000)*uint256(10)**decimals; mapping(address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; event GetETH(address indexed _from, uint256 _value); //owner一次性获取代币 function PBC(){ totalSupply=MAX_SUPPLY; balances[msg.sender] = MAX_SUPPLY; Transfer(0x0, msg.sender, MAX_SUPPLY); } //允许用户往合约账户打币 function () payable external { GetETH(msg.sender,msg.value); } function etherProceeds() external onlyOwner { if(!msg.sender.send(this.balance)) revert(); } function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_to != address(this)); require(msg.sender != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_from != address(0)); require(_to != address(0)); require(_to != address(this)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); uint256 _allowance = allowed[_from][msg.sender]; balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = _allowance.sub(_value); Transfer(_from, _to, _value); return true; } function approve(address _spender, uint256 _value) public returns (bool) { require(_value > 0); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) public constant 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,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MAX_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"etherProceeds","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"GetETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
606060405260408051908101604052600381527f50424300000000000000000000000000000000000000000000000000000000006020820152600290805161004b9291602001906100df565b50341561005757600080fd5b5b5b60018054600160a060020a03191633600160a060020a03161790555b6b033b2e3c9fd0803ce80000006003819055600160a060020a033316600081815260046020526040808220849055919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91905190815260200160405180910390a35b61017f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012057805160ff191683800117855561014d565b8280016001018555821561014d579182015b8281111561014d578251825591602001919060010190610132565b5b5061015a92915061015e565b5090565b61017c91905b8082111561015a5760008155600101610164565b5090565b90565b610ad08061018e6000396000f300606060405236156100cd5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610113578063095ea7b31461019e57806318160ddd146101d457806323b872dd146101f9578063313ce5671461023557806332cb6b0c1461025a57806354fd4d501461027f57806370a082311461030a578063801aba561461033b5780638da5cb5b1461035057806395d89b411461037f578063a9059cbb1461040a578063dd62ed3e14610440578063f2fde38b14610477575b6101115b33600160a060020a03167f59cbf1251d8592510b5a3df66c42ab0664604d319dcd3202a097a04a1cfbda083460405190815260200160405180910390a25b565b005b341561011e57600080fd5b610126610498565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101635780820151818401525b60200161014a565b50505050905090810190601f1680156101905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a957600080fd5b6101c0600160a060020a03600435166024356104cf565b604051901515815260200160405180910390f35b34156101df57600080fd5b6101e7610547565b60405190815260200160405180910390f35b341561020457600080fd5b6101c0600160a060020a036004358116906024351660443561054d565b604051901515815260200160405180910390f35b341561024057600080fd5b6101e7610707565b60405190815260200160405180910390f35b341561026557600080fd5b6101e761070c565b60405190815260200160405180910390f35b341561028a57600080fd5b61012661071c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101635780820151818401525b60200161014a565b50505050905090810190601f1680156101905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561031557600080fd5b6101e7600160a060020a0360043516610753565b60405190815260200160405180910390f35b341561034657600080fd5b610111610772565b005b341561035b57600080fd5b6103636107ce565b604051600160a060020a03909116815260200160405180910390f35b341561038a57600080fd5b6101266107dd565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101635780820151818401525b60200161014a565b50505050905090810190601f1680156101905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561041557600080fd5b6101c0600160a060020a036004351660243561087b565b604051901515815260200160405180910390f35b341561044b57600080fd5b6101e7600160a060020a03600435811690602435166109ad565b60405190815260200160405180910390f35b341561048257600080fd5b610111600160a060020a03600435166109da565b005b60408051908101604052601581527f706f6c6172206265617228e58c97e69e81e7868a290000000000000000000000602082015281565b60008082116104dd57600080fd5b600160a060020a03338116600081815260056020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035481565b600080600160a060020a038516151561056557600080fd5b600160a060020a038416151561057a57600080fd5b30600160a060020a031684600160a060020a03161415151561059b57600080fd5b600160a060020a0385166000908152600460205260409020548311156105c057600080fd5b600160a060020a03808616600090815260056020908152604080832033909416835292905220548311156105f357600080fd5b50600160a060020a03808516600081815260056020908152604080832033909516835293815283822054928252600490529190912054610639908463ffffffff610a7316565b600160a060020a03808716600090815260046020526040808220939093559086168152205461066e908463ffffffff610a8a16565b600160a060020a038516600090815260046020526040902055610697818463ffffffff610a7316565b600160a060020a03808716600081815260056020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b601281565b6b033b2e3c9fd0803ce800000081565b60408051908101604052600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0381166000908152600460205260409020545b919050565b60015433600160a060020a0390811691161461078d57600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561010f57600080fd5b5b5b565b600154600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108735780601f1061084857610100808354040283529160200191610873565b820191906000526020600020905b81548152906001019060200180831161085657829003601f168201915b505050505081565b6000600160a060020a038316151561089257600080fd5b30600160a060020a031683600160a060020a0316141515156108b357600080fd5b33600160a060020a031615156108c857600080fd5b600160a060020a0333166000908152600460205260409020548211156108ed57600080fd5b600160a060020a033316600090815260046020526040902054610916908363ffffffff610a7316565b600160a060020a03338116600090815260046020526040808220939093559085168152205461094b908363ffffffff610a8a16565b600160a060020a0380851660008181526004602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600160a060020a038083166000908152600560209081526040808320938516835292905220545b92915050565b60015433600160a060020a039081169116146109f557600080fd5b600160a060020a0381161515610a0a57600080fd5b600154600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600082821115610a7f57fe5b508082035b92915050565b600082820183811015610a9957fe5b8091505b50929150505600a165627a7a72305820be702c767d3455a19d1aa3f7eadff6d2788e9a693eb4b30413b0874b1d8ed0080029
Deployed Bytecode
0x606060405236156100cd5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610113578063095ea7b31461019e57806318160ddd146101d457806323b872dd146101f9578063313ce5671461023557806332cb6b0c1461025a57806354fd4d501461027f57806370a082311461030a578063801aba561461033b5780638da5cb5b1461035057806395d89b411461037f578063a9059cbb1461040a578063dd62ed3e14610440578063f2fde38b14610477575b6101115b33600160a060020a03167f59cbf1251d8592510b5a3df66c42ab0664604d319dcd3202a097a04a1cfbda083460405190815260200160405180910390a25b565b005b341561011e57600080fd5b610126610498565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101635780820151818401525b60200161014a565b50505050905090810190601f1680156101905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a957600080fd5b6101c0600160a060020a03600435166024356104cf565b604051901515815260200160405180910390f35b34156101df57600080fd5b6101e7610547565b60405190815260200160405180910390f35b341561020457600080fd5b6101c0600160a060020a036004358116906024351660443561054d565b604051901515815260200160405180910390f35b341561024057600080fd5b6101e7610707565b60405190815260200160405180910390f35b341561026557600080fd5b6101e761070c565b60405190815260200160405180910390f35b341561028a57600080fd5b61012661071c565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101635780820151818401525b60200161014a565b50505050905090810190601f1680156101905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561031557600080fd5b6101e7600160a060020a0360043516610753565b60405190815260200160405180910390f35b341561034657600080fd5b610111610772565b005b341561035b57600080fd5b6103636107ce565b604051600160a060020a03909116815260200160405180910390f35b341561038a57600080fd5b6101266107dd565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101635780820151818401525b60200161014a565b50505050905090810190601f1680156101905780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561041557600080fd5b6101c0600160a060020a036004351660243561087b565b604051901515815260200160405180910390f35b341561044b57600080fd5b6101e7600160a060020a03600435811690602435166109ad565b60405190815260200160405180910390f35b341561048257600080fd5b610111600160a060020a03600435166109da565b005b60408051908101604052601581527f706f6c6172206265617228e58c97e69e81e7868a290000000000000000000000602082015281565b60008082116104dd57600080fd5b600160a060020a03338116600081815260056020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60035481565b600080600160a060020a038516151561056557600080fd5b600160a060020a038416151561057a57600080fd5b30600160a060020a031684600160a060020a03161415151561059b57600080fd5b600160a060020a0385166000908152600460205260409020548311156105c057600080fd5b600160a060020a03808616600090815260056020908152604080832033909416835292905220548311156105f357600080fd5b50600160a060020a03808516600081815260056020908152604080832033909516835293815283822054928252600490529190912054610639908463ffffffff610a7316565b600160a060020a03808716600090815260046020526040808220939093559086168152205461066e908463ffffffff610a8a16565b600160a060020a038516600090815260046020526040902055610697818463ffffffff610a7316565b600160a060020a03808716600081815260056020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b601281565b6b033b2e3c9fd0803ce800000081565b60408051908101604052600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0381166000908152600460205260409020545b919050565b60015433600160a060020a0390811691161461078d57600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561010f57600080fd5b5b5b565b600154600160a060020a031681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108735780601f1061084857610100808354040283529160200191610873565b820191906000526020600020905b81548152906001019060200180831161085657829003601f168201915b505050505081565b6000600160a060020a038316151561089257600080fd5b30600160a060020a031683600160a060020a0316141515156108b357600080fd5b33600160a060020a031615156108c857600080fd5b600160a060020a0333166000908152600460205260409020548211156108ed57600080fd5b600160a060020a033316600090815260046020526040902054610916908363ffffffff610a7316565b600160a060020a03338116600090815260046020526040808220939093559085168152205461094b908363ffffffff610a8a16565b600160a060020a0380851660008181526004602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600160a060020a038083166000908152600560209081526040808320938516835292905220545b92915050565b60015433600160a060020a039081169116146109f557600080fd5b600160a060020a0381161515610a0a57600080fd5b600154600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600082821115610a7f57fe5b508082035b92915050565b600082820183811015610a9957fe5b8091505b50929150505600a165627a7a72305820be702c767d3455a19d1aa3f7eadff6d2788e9a693eb4b30413b0874b1d8ed0080029
Swarm Source
bzzr://be702c767d3455a19d1aa3f7eadff6d2788e9a693eb4b30413b0874b1d8ed008
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.