Sponsored:   LH-CRYPTO - 200 instruments (BTC, EUR, GOLD, OIL, SHARES). Leverage up to 1:500. OPEN ACCOUNT
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 13172 txns
Token Tracker: BAI2.0 (BAI)
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xe7fd8212182565500c3d47cb03ce2564266181c5at txn 0x61fee7f60411c86fa85c7c02c5c9f3c1f30161e3d1240b6dca770a98e3c90657
Token Balance:
 Latest 25 transactions from a total of 13172 transactions

TxHash Age From To Value [TxFee]
0xbd7ae4c6d6e23751d0fb8d70951279051242cf79fd2da5a5f3c5241273d7927527 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00037886
0x172032adcb0384c697385e37f0d8f15b6acf388ee2165f394ba0c6395298671b28 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00018975
0xdcdc69a17ab265d534d4c37d63429011549a76a3f796e8a4fd617ae98d4512ba50 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00034155
0x813648521fc76509c87b5af518f979fee4e715ebffa50c74bdf076c005dcf0bb1 hr 32 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00018943
0x148321ce661b3a14cd9a03a43efe6bbf7ad36bf845728a40a39706b394c25ff41 hr 38 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000492518
0x828682ebf77d7481ddba3f7eec97fbb1397e2c035ada5dda4de89e35188142ff1 hr 40 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000492518
0xa0beb566f52d185eac6f438cb8075ca12068ad918f70065134b8aa9bf380919f1 hr 41 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00049335
0xb36516dd5b71c8168f942bb94487b99f2c19470470f4d3991749a398beb3f8211 hr 45 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000494182
0x5f6b65707c799506dc4b7e46bac4f1aff1285be8b15fc423012f6e63c455197e1 hr 46 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000265202
0x3064a9be58529d104c31c34471461790ebb70f58b22ddb22de7453d3520f05381 hr 55 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.0003036
0x5e624765caa954044a7b20ae229d30166f20f8dfb12cdcb9e0487a65235e7bd71 hr 58 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.0003795
0xfb509eebfa2094a82aae8b24c933435515281575868be00a65c4a6bb6aa4cb022 hrs 3 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.0003795
0x9133225c64f76de27501bda7da452d52c5cc71728f2ab84035fdccb3f001f0f82 hrs 8 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000759
0xeacceba302d3f7904833aa3f31e059fe29a3403441e12644680d5c57fd4e8c6e2 hrs 12 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00075644
0x0c482e33e412d3dde2a37f2d8506883a57a9c58872fa93485bd172633e7be22b2 hrs 13 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000453864
0x9006e4e5c2fd9f3f34ee4acd6cf33a777accbe42bb5060519b3bd23a41dee9572 hrs 15 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00075644
0x1f097c8320e034af7c28e95c31cd482bf4d51fbdc529988b0d0557fe8fe20cd12 hrs 35 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000303088
0x6836688cda51f92cdff5e18fe5c03c37a2c1a868911d30181cb1375e3a5aecb45 hrs 11 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000340974
0xec505a45b3e19fe28f5795de53c2cffd819e1af7881eff114ef808513bf8d8ea5 hrs 38 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00019007
0xc812b7851cda4f5c5090433c48d0a1c993c34abffc83a55e55bf0294336483d95 hrs 49 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000304112
0x3e7d5f2c58eafbdfe223535fea6ffcfcd19212f438bcfc4072390eaa7d7b51b77 hrs 37 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00019007
0x4a5e2c6fc5fcd3b0a27906a4482d3a591bf2faad8fec505b8ae78fb13be3f8c67 hrs 40 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00018975
0xfff22fbb0a1e24dfebda2977ee962fd4c39ab69a00bc39da9e4a441a5c1efdcd7 hrs 42 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.000265202
0xacd61f0d020a95e0ab223cca256584ae957eceeead4c78e181067e375fcdf0b57 hrs 45 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00019007
0xda06db61b11ab38ed497eacb4b97297924a5f4dd00193f937a6df9c82aa769017 hrs 46 mins ago0xa3051838e8384ff1b4538f24c9a1d9cc1a5905dc  IN   0x14d9779b6585f3a7d4f768383b3cb030705dad2e0 Ether0.00018975
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: BAI20
Compiler Text: v0.4.18+commit.9cf6e910
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.18;

interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }

/*
You should inherit from TokenBase. This implements ONLY the standard functions obeys ERC20,
and NOTHING else. If you deploy this, you won't have anything useful.

Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20
.*/
contract ERC20 {

    /// total amount of tokens
    uint256 public totalSupply;

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) constant public returns (uint256 balance);

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) public returns (bool success);

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);

    /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of tokens to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint256 _value) public returns (bool success);

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) constant public returns (uint256 remaining);

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

contract TokenBase is ERC20 {
    function transfer(address _to, uint256 _value) public returns (bool success) {
        // Prevent transfer to 0x0 address.
        require(_to != 0x0);
        // Check if the sender has enough
        require(balances[msg.sender] >= _value);
        // Check for overflows
        require(balances[_to] + _value > balances[_to]);

        uint previousBalances = balances[msg.sender] + balances[_to];
        balances[msg.sender] -= _value;
        balances[_to] += _value;
        Transfer(msg.sender, _to, _value);
        // Asserts are used to use static analysis to find bugs in your code. They should never fail
        assert(balances[msg.sender] + balances[_to] == previousBalances);

        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        /// same as above
        require(_to != 0x0);
        require(balances[_from] >= _value);
        require(balances[_to] + _value > balances[_to]);

        uint previousBalances = balances[_from] + balances[_to];
        balances[_from] -= _value;
        balances[_to] += _value;
        allowed[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        assert(balances[_from] + balances[_to] == previousBalances);

        return true;
    }

    function balanceOf(address _owner) constant public returns (uint256 balance) {
        return balances[_owner];
    }

    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) constant public returns (uint256 remaining) {
      return allowed[_owner][_spender];
    }

    mapping (address => uint256) balances; /// balance amount of tokens for address
    mapping (address => mapping (address => uint256)) allowed;
}

contract BAI20 is TokenBase {

    function () payable public {
        //if ether is sent to this address, send it back.
        //throw;
        require(false);
    }

    string public constant name = "BAI2.0";
    string public constant symbol = "BAI";
    uint256 private constant _INITIAL_SUPPLY = 21000000000;
    uint8 public decimals = 18;
    uint256 public totalSupply;
    string public version = "BAI2.0";

    function BAI20(
    ) public {
        // init
        totalSupply = _INITIAL_SUPPLY * 10 ** 18;
        balances[msg.sender] = totalSupply;
    }

    /* Approves and then calls the receiving contract */
    function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) {
        tokenRecipient spender = tokenRecipient(_spender);
        if (approve(_spender, _value)) {
            spender.receiveApproval(msg.sender, _value, this, _extraData);
            return true;
        }
    }
}

    Contract ABI  
[{"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":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"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":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":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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 Switch To Opcodes View
606060409081526003805460ff191660121790558051908101604052600681527f424149322e30000000000000000000000000000000000000000000000000000060208201526005908051610058929160200190610094565b50341561006457600080fd5b6b43dacaf91c1a84ff080000006004819055600160a060020a03331660009081526001602052604090205561012f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100d557805160ff1916838001178555610102565b82800160010185558215610102579182015b828111156101025782518255916020019190600101906100e7565b5061010e929150610112565b5090565b61012c91905b8082111561010e5760008155600101610118565b90565b6108358061013e6000396000f3006060604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b3578063095ea7b31461013d57806318160ddd1461017357806323b872dd14610198578063313ce567146101c057806354fd4d50146101e957806370a08231146101fc57806395d89b411461021b578063a9059cbb1461022e578063cae9ca5114610250578063dd62ed3e146102b5575b600080fd5b34156100be57600080fd5b6100c66102da565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101025780820151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014857600080fd5b61015f600160a060020a0360043516602435610311565b604051901515815260200160405180910390f35b341561017e57600080fd5b61018661037d565b60405190815260200160405180910390f35b34156101a357600080fd5b61015f600160a060020a0360043581169060243516604435610383565b34156101cb57600080fd5b6101d36104aa565b60405160ff909116815260200160405180910390f35b34156101f457600080fd5b6100c66104b3565b341561020757600080fd5b610186600160a060020a0360043516610551565b341561022657600080fd5b6100c661056c565b341561023957600080fd5b61015f600160a060020a03600435166024356105a3565b341561025b57600080fd5b61015f60048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506106b095505050505050565b34156102c057600080fd5b610186600160a060020a03600435811690602435166107de565b60408051908101604052600681527f424149322e300000000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60045481565b600080600160a060020a038416151561039b57600080fd5b600160a060020a038516600090815260016020526040902054839010156103c157600080fd5b600160a060020a038416600090815260016020526040902054838101116103e757600080fd5b50600160a060020a03838116600081815260016020908152604080832080548a871680865283862080548b810390915583548b0190935560028552838620339098168652969093529281902080548890039055910192907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600160a060020a0380851660009081526001602052604080822054928816825290205401811461049d57fe5b600191505b509392505050565b60035460ff1681565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105495780601f1061051e57610100808354040283529160200191610549565b820191906000526020600020905b81548152906001019060200180831161052c57829003601f168201915b505050505081565b600160a060020a031660009081526001602052604090205490565b60408051908101604052600381527f4241490000000000000000000000000000000000000000000000000000000000602082015281565b600080600160a060020a03841615156105bb57600080fd5b600160a060020a033316600090815260016020526040902054839010156105e157600080fd5b600160a060020a0384166000908152600160205260409020548381011161060757600080fd5b50600160a060020a038084166000818152600160205260408082208054339095168084528284208054898103909155938590528154880190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600160a060020a03808516600090815260016020526040808220543390931682529020540181146106a657fe5b5060019392505050565b6000836106bd8185610311565b156104a25780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561077357808201518382015260200161075b565b50505050905090810190601f1680156107a05780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15156107c157600080fd5b6102c65a03f115156107d257600080fd5b505050600191506104a2565b600160a060020a039182166000908152600260209081526040808320939094168252919091522054905600a165627a7a7230582052b148a845e779bbb1fca45d1187a06dc5dd2b782bb3f12e06227e50aa1979c10029

   Swarm Source:
bzzr://52b148a845e779bbb1fca45d1187a06dc5dd2b782bb3f12e06227e50aa1979c1

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.