Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
0 BAI
Holders
2,791
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Balance
0 BAIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BAI
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-02-02 */ pragma solidity ^0.4.18; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } contract BAI is owned { string public constant name = "BAI"; string public constant symbol = "BAI"; uint256 private constant _INITIAL_SUPPLY = 21000000000; uint8 public decimals = 0; 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); function BAI ( address genesis ) public { owner = msg.sender; require(owner != 0x0); require(genesis != 0x0); totalSupply = _INITIAL_SUPPLY; balanceOf[genesis] = totalSupply; } function _transfer(address _from, address _to, uint _value) internal { require(_to != 0x0); require(balanceOf[_from] >= _value); require(balanceOf[_to] + _value > balanceOf[_to]); uint previousBalances = balanceOf[_from] + balanceOf[_to]; balanceOf[_from] -= _value; balanceOf[_to] += _value; Transfer(_from, _to, _value); assert(balanceOf[_from] + balanceOf[_to] == previousBalances); } function transfer(address _to, uint256 _value) public { _transfer(msg.sender, _to, _value); } function destroy() public { if (msg.sender == owner) { selfdestruct(owner); } } }
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":true,"inputs":[],"name":"totalSupply","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":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"destroy","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":[],"payable":false,"stateMutability":"nonpayable","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"genesis","type":"address"}],"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"}]
Contract Creation Code
60606040526000805460a060020a60ff0219169055341561001f57600080fd5b60405160208061054a8339810160405280805160008054600160a060020a03338116600160a060020a0319928316811790921690911791829055919350161515905061006a57600080fd5b600160a060020a038116151561007f57600080fd5b6404e3b292006001819055600160a060020a03909116600090815260026020526040902055610497806100b36000396000f3006060604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a857806318160ddd14610132578063313ce5671461015757806370a082311461018057806383197ef01461019f5780638da5cb5b146101b457806395d89b41146100a8578063a9059cbb146101e3578063dd62ed3e14610205578063f2fde38b1461022a575b600080fd5b34156100b357600080fd5b6100bb610249565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f75780820151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013d57600080fd5b610145610280565b60405190815260200160405180910390f35b341561016257600080fd5b61016a610286565b60405160ff909116815260200160405180910390f35b341561018b57600080fd5b610145600160a060020a03600435166102a7565b34156101aa57600080fd5b6101b26102b9565b005b34156101bf57600080fd5b6101c76102e0565b604051600160a060020a03909116815260200160405180910390f35b34156101ee57600080fd5b6101b2600160a060020a03600435166024356102ef565b341561021057600080fd5b610145600160a060020a03600435811690602435166102fe565b341561023557600080fd5b6101b2600160a060020a036004351661031b565b60408051908101604052600381527f4241490000000000000000000000000000000000000000000000000000000000602082015281565b60015481565b60005474010000000000000000000000000000000000000000900460ff1681565b60026020526000908152604090205481565b60005433600160a060020a03908116911614156102de57600054600160a060020a0316ff5b565b600054600160a060020a031681565b6102fa338383610365565b5050565b600360209081526000928352604080842090915290825290205481565b60005433600160a060020a0390811691161461033657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a038316151561037c57600080fd5b600160a060020a038416600090815260026020526040902054829010156103a257600080fd5b600160a060020a038316600090815260026020526040902054828101116103c857600080fd5b50600160a060020a0380831660008181526002602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a0380841660009081526002602052604080822054928716825290205401811461046557fe5b505050505600a165627a7a72305820a139a081898c646687dba803625f1a09cc6971cbab7d4a17459241c65ec5394d0029000000000000000000000000e7fd8212182565500c3d47cb03ce2564266181c5
Deployed Bytecode
0x6060604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a857806318160ddd14610132578063313ce5671461015757806370a082311461018057806383197ef01461019f5780638da5cb5b146101b457806395d89b41146100a8578063a9059cbb146101e3578063dd62ed3e14610205578063f2fde38b1461022a575b600080fd5b34156100b357600080fd5b6100bb610249565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f75780820151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013d57600080fd5b610145610280565b60405190815260200160405180910390f35b341561016257600080fd5b61016a610286565b60405160ff909116815260200160405180910390f35b341561018b57600080fd5b610145600160a060020a03600435166102a7565b34156101aa57600080fd5b6101b26102b9565b005b34156101bf57600080fd5b6101c76102e0565b604051600160a060020a03909116815260200160405180910390f35b34156101ee57600080fd5b6101b2600160a060020a03600435166024356102ef565b341561021057600080fd5b610145600160a060020a03600435811690602435166102fe565b341561023557600080fd5b6101b2600160a060020a036004351661031b565b60408051908101604052600381527f4241490000000000000000000000000000000000000000000000000000000000602082015281565b60015481565b60005474010000000000000000000000000000000000000000900460ff1681565b60026020526000908152604090205481565b60005433600160a060020a03908116911614156102de57600054600160a060020a0316ff5b565b600054600160a060020a031681565b6102fa338383610365565b5050565b600360209081526000928352604080842090915290825290205481565b60005433600160a060020a0390811691161461033657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000600160a060020a038316151561037c57600080fd5b600160a060020a038416600090815260026020526040902054829010156103a257600080fd5b600160a060020a038316600090815260026020526040902054828101116103c857600080fd5b50600160a060020a0380831660008181526002602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a0380841660009081526002602052604080822054928716825290205401811461046557fe5b505050505600a165627a7a72305820a139a081898c646687dba803625f1a09cc6971cbab7d4a17459241c65ec5394d0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e7fd8212182565500c3d47cb03ce2564266181c5
-----Decoded View---------------
Arg [0] : genesis (address): 0xe7fd8212182565500C3d47cb03Ce2564266181c5
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e7fd8212182565500c3d47cb03ce2564266181c5
Swarm Source
bzzr://a139a081898c646687dba803625f1a09cc6971cbab7d4a17459241c65ec5394d
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.