ERC-20
Overview
Max Total Supply
1,000,000,000 UBC
Holders
1,231
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 10 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
UBCToken
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-08-10 */ pragma solidity ^0.4.8; contract ERC20Interface { function totalSupply() constant returns (uint256 totalSupply); function balanceOf(address _owner) constant returns (uint256 balance); function transfer(address _to, uint256 _value) returns (bool success); function transferFrom(address _from, address _to, uint256 _value) returns (bool success); function approve(address _spender, uint256 _value) returns (bool success); function allowance(address _owner, address _spender) constant returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract UBCToken is ERC20Interface{ /* 合约初始参数*/ string public standard = 'Token 1.0.8'; string public constant name="Ubiquitous Business Credit 2.0"; string public constant symbol="UBC"; uint8 public constant decimals=10; uint256 public constant _totalSupply=10000000000000000000; /*相关规则交由社区监督*/ mapping(address => mapping (address => uint256)) allowed; //mapping (address => uint256) public balanceOf; mapping(address => uint256) balances; //mapping (address => mapping (address => uint256)) public allowance; address public owner; /* 全部*/ function UBCToken() { owner = msg.sender; balances[owner] = _totalSupply; } function totalSupply() constant returns (uint256 totalSupply) { totalSupply = _totalSupply; } /*balanceOf*/ function balanceOf(address _owner) constant returns (uint256 balance){ return balances[_owner]; } /* transfer */ function transfer(address _to, uint256 _amount) returns (bool success) { if (balances[msg.sender] >= _amount && _amount > 0 && balances[_to] + _amount > balances[_to]) { balances[msg.sender] -= _amount; balances[_to] += _amount; Transfer(msg.sender, _to, _amount); return true; } else { return false; } } /*transferFrom*/ function transferFrom(address _from, address _to, uint256 _amount) returns (bool success){ if (balances[_from] >= _amount && _amount > 0 && balances[_to] + _amount > balances[_to] && _amount <= allowed[_from][msg.sender]) { balances[_from] -= _amount; balances[_to] += _amount; allowed[_from][msg.sender] -= _amount; Transfer(_from, _to, _amount); return true; } else { return false; } } /**/ function approve(address _spender, uint256 _value) returns (bool success){ allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } /**/ function allowance(address _owner, address _spender) 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":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"totalSupply","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"standard","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":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":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","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"},{"inputs":[],"payable":false,"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
60a0604052600b60608190527f546f6b656e20312e302e38000000000000000000000000000000000000000000608090815261003e916000919061008a565b50341561004757fe5b5b60038054600160a060020a03191633600160a060020a039081169190911791829055166000908152600260205260409020678ac7230489e8000090555b61012a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100cb57805160ff19168380011785556100f8565b828001600101855582156100f8579182015b828111156100f85782518255916020019190600101906100dd565b5b50610105929150610109565b5090565b61012791905b80821115610105576000815560010161010f565b5090565b90565b6107f7806101396000396000f300606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b9578063095ea7b31461014957806318160ddd1461017c57806323b872dd1461019e578063313ce567146101d75780633eaaf86b146101fd5780635a3b7e421461021f57806370a08231146102af5780638da5cb5b146102dd57806395d89b4114610309578063a9059cbb14610399578063dd62ed3e146103cc575bfe5b34156100c157fe5b6100c9610400565b60408051602080825283518183015283519192839290830191850190808383821561010f575b80518252602083111561010f57601f1990920191602091820191016100ef565b505050905090810190601f16801561013b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015157fe5b610168600160a060020a0360043516602435610437565b604080519115158252519081900360200190f35b341561018457fe5b61018c6104a2565b60408051918252519081900360200190f35b34156101a657fe5b610168600160a060020a03600435811690602435166044356104af565b604080519115158252519081900360200190f35b34156101df57fe5b6101e76105c9565b6040805160ff9092168252519081900360200190f35b341561020557fe5b61018c6105ce565b60408051918252519081900360200190f35b341561022757fe5b6100c96105da565b60408051602080825283518183015283519192839290830191850190808383821561010f575b80518252602083111561010f57601f1990920191602091820191016100ef565b505050905090810190601f16801561013b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102b757fe5b61018c600160a060020a0360043516610668565b60408051918252519081900360200190f35b34156102e557fe5b6102ed610687565b60408051600160a060020a039092168252519081900360200190f35b341561031157fe5b6100c9610696565b60408051602080825283518183015283519192839290830191850190808383821561010f575b80518252602083111561010f57601f1990920191602091820191016100ef565b505050905090810190601f16801561013b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103a157fe5b610168600160a060020a03600435166024356106cd565b604080519115158252519081900360200190f35b34156103d457fe5b61018c600160a060020a036004358116906024351661079e565b60408051918252519081900360200190f35b60408051808201909152601e81527f556269717569746f757320427573696e6573732043726564697420322e300000602082015281565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b678ac7230489e800005b90565b600160a060020a0383166000908152600260205260408120548290108015906104d85750600082115b80156104fd5750600160a060020a038316600090815260026020526040902054828101115b801561052f5750600160a060020a03808516600090815260016020908152604080832033909416835292905220548211155b156105bd57600160a060020a03808516600081815260026020908152604080832080548890039055878516808452818420805489019055848452600183528184203390961684529482529182902080548790039055815186815291517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016105c1565b5060005b5b9392505050565b600a81565b678ac7230489e8000081565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106605780601f1061063557610100808354040283529160200191610660565b820191906000526020600020905b81548152906001019060200180831161064357829003601f168201915b505050505081565b600160a060020a0381166000908152600260205260409020545b919050565b600354600160a060020a031681565b60408051808201909152600381527f5542430000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600260205260408120548290108015906106f65750600082115b801561071b5750600160a060020a038316600090815260026020526040902054828101115b1561078f57600160a060020a03338116600081815260026020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350600161049c565b50600061049c565b5b92915050565b600160a060020a038083166000908152600160209081526040808320938516835292905220545b929150505600a165627a7a7230582034a8e49b1e332f34b6a4e565f2b657862ec2c220d186d055a67274e455a752570029
Deployed Bytecode
0x606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b9578063095ea7b31461014957806318160ddd1461017c57806323b872dd1461019e578063313ce567146101d75780633eaaf86b146101fd5780635a3b7e421461021f57806370a08231146102af5780638da5cb5b146102dd57806395d89b4114610309578063a9059cbb14610399578063dd62ed3e146103cc575bfe5b34156100c157fe5b6100c9610400565b60408051602080825283518183015283519192839290830191850190808383821561010f575b80518252602083111561010f57601f1990920191602091820191016100ef565b505050905090810190601f16801561013b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015157fe5b610168600160a060020a0360043516602435610437565b604080519115158252519081900360200190f35b341561018457fe5b61018c6104a2565b60408051918252519081900360200190f35b34156101a657fe5b610168600160a060020a03600435811690602435166044356104af565b604080519115158252519081900360200190f35b34156101df57fe5b6101e76105c9565b6040805160ff9092168252519081900360200190f35b341561020557fe5b61018c6105ce565b60408051918252519081900360200190f35b341561022757fe5b6100c96105da565b60408051602080825283518183015283519192839290830191850190808383821561010f575b80518252602083111561010f57601f1990920191602091820191016100ef565b505050905090810190601f16801561013b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102b757fe5b61018c600160a060020a0360043516610668565b60408051918252519081900360200190f35b34156102e557fe5b6102ed610687565b60408051600160a060020a039092168252519081900360200190f35b341561031157fe5b6100c9610696565b60408051602080825283518183015283519192839290830191850190808383821561010f575b80518252602083111561010f57601f1990920191602091820191016100ef565b505050905090810190601f16801561013b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103a157fe5b610168600160a060020a03600435166024356106cd565b604080519115158252519081900360200190f35b34156103d457fe5b61018c600160a060020a036004358116906024351661079e565b60408051918252519081900360200190f35b60408051808201909152601e81527f556269717569746f757320427573696e6573732043726564697420322e300000602082015281565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b678ac7230489e800005b90565b600160a060020a0383166000908152600260205260408120548290108015906104d85750600082115b80156104fd5750600160a060020a038316600090815260026020526040902054828101115b801561052f5750600160a060020a03808516600090815260016020908152604080832033909416835292905220548211155b156105bd57600160a060020a03808516600081815260026020908152604080832080548890039055878516808452818420805489019055848452600183528184203390961684529482529182902080548790039055815186815291517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060016105c1565b5060005b5b9392505050565b600a81565b678ac7230489e8000081565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106605780601f1061063557610100808354040283529160200191610660565b820191906000526020600020905b81548152906001019060200180831161064357829003601f168201915b505050505081565b600160a060020a0381166000908152600260205260409020545b919050565b600354600160a060020a031681565b60408051808201909152600381527f5542430000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600260205260408120548290108015906106f65750600082115b801561071b5750600160a060020a038316600090815260026020526040902054828101115b1561078f57600160a060020a03338116600081815260026020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a350600161049c565b50600061049c565b5b92915050565b600160a060020a038083166000908152600160209081526040808320938516835292905220545b929150505600a165627a7a7230582034a8e49b1e332f34b6a4e565f2b657862ec2c220d186d055a67274e455a752570029
Swarm Source
bzzr://34a8e49b1e332f34b6a4e565f2b657862ec2c220d186d055a67274e455a75257
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.