ETH Price: $2,400.47 (-3.29%)
Gas: 3.88 Gwei
 

Overview

Max Total Supply

21,000,000,000 BAIC

Holders

24,244

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
TokenClub Token
Balance
2 BAIC

Value
$0.00
0x4824a7b64e3966b0133f4f4ffb1b9d6beb75fff7
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BAIC

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-05-24
*/

pragma solidity ^0.4.24;

/*
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
.*/

library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal pure 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 pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

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);

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

contract BasicToken is ERC20 {
    using SafeMath for uint;

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

    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].add(_value) > balances[_to]);

        uint previousBalances = balances[msg.sender].add(balances[_to]);
        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);

        emit 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].add(balances[_to]) == previousBalances);

        return true;
    }

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

contract BAIC is BasicToken {

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

    string public constant name = "BAIC";
    string public constant symbol = "BAIC";
    uint256 private constant _INITIAL_SUPPLY = 21000000000;
    uint8 public decimals = 18;
    uint256 public totalSupply;
    string public version = "BAIC 1.0";

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

Contract Security Audit

Contract ABI

[{"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":"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"},{"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"}]

6002805460ff1916601217905560c0604052600860808190527f4241494320312e3000000000000000000000000000000000000000000000000060a090815261004b9160049190610080565b5034801561005857600080fd5b506b43dacaf91c1a84ff0800000060038190553360009081526001602052604090205561011b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100c157805160ff19168380011785556100ee565b828001600101855582156100ee579182015b828111156100ee5782518255916020019190600101906100d3565b506100fa9291506100fe565b5090565b61011891905b808211156100fa5760008155600101610104565b90565b6104978061012a6000396000f3006080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461008757806318160ddd14610111578063313ce5671461013857806354fd4d501461016357806370a082311461017857806395d89b4114610087578063a9059cbb14610199575b600080fd5b34801561009357600080fd5b5061009c6101d1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100d65781810151838201526020016100be565b50505050905090810190601f1680156101035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561011d57600080fd5b50610126610208565b60408051918252519081900360200190f35b34801561014457600080fd5b5061014d61020e565b6040805160ff9092168252519081900360200190f35b34801561016f57600080fd5b5061009c610217565b34801561018457600080fd5b50610126600160a060020a03600435166102a5565b3480156101a557600080fd5b506101bd600160a060020a03600435166024356102c0565b604080519115158252519081900360200190f35b60408051808201909152600481527f4241494300000000000000000000000000000000000000000000000000000000602082015281565b60035481565b60025460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561029d5780601f106102725761010080835404028352916020019161029d565b820191906000526020600020905b81548152906001019060200180831161028057829003601f168201915b505050505081565b600160a060020a031660009081526001602052604090205490565b600080600160a060020a03841615156102d857600080fd5b336000908152600160205260409020548311156102f457600080fd5b600160a060020a03841660009081526001602052604090205461031d818563ffffffff61044316565b1161032757600080fd5b600160a060020a038416600090815260016020526040808220543383529120546103569163ffffffff61044316565b33600090815260016020526040902054909150610379908463ffffffff61045916565b3360009081526001602052604080822092909255600160a060020a038616815220546103ab908463ffffffff61044316565b600160a060020a0385166000818152600160209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3600160a060020a038416600090815260016020526040808220543383529120548291610432919063ffffffff61044316565b1461043957fe5b5060019392505050565b60008282018381101561045257fe5b9392505050565b60008282111561046557fe5b509003905600a165627a7a72305820f103ab73afdd626875fe3fdbedf9f133b7604e578e5916003e320063373361a40029

Deployed Bytecode

0x6080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461008757806318160ddd14610111578063313ce5671461013857806354fd4d501461016357806370a082311461017857806395d89b4114610087578063a9059cbb14610199575b600080fd5b34801561009357600080fd5b5061009c6101d1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100d65781810151838201526020016100be565b50505050905090810190601f1680156101035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561011d57600080fd5b50610126610208565b60408051918252519081900360200190f35b34801561014457600080fd5b5061014d61020e565b6040805160ff9092168252519081900360200190f35b34801561016f57600080fd5b5061009c610217565b34801561018457600080fd5b50610126600160a060020a03600435166102a5565b3480156101a557600080fd5b506101bd600160a060020a03600435166024356102c0565b604080519115158252519081900360200190f35b60408051808201909152600481527f4241494300000000000000000000000000000000000000000000000000000000602082015281565b60035481565b60025460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561029d5780601f106102725761010080835404028352916020019161029d565b820191906000526020600020905b81548152906001019060200180831161028057829003601f168201915b505050505081565b600160a060020a031660009081526001602052604090205490565b600080600160a060020a03841615156102d857600080fd5b336000908152600160205260409020548311156102f457600080fd5b600160a060020a03841660009081526001602052604090205461031d818563ffffffff61044316565b1161032757600080fd5b600160a060020a038416600090815260016020526040808220543383529120546103569163ffffffff61044316565b33600090815260016020526040902054909150610379908463ffffffff61045916565b3360009081526001602052604080822092909255600160a060020a038616815220546103ab908463ffffffff61044316565b600160a060020a0385166000818152600160209081526040918290209390935580518681529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3600160a060020a038416600090815260016020526040808220543383529120548291610432919063ffffffff61044316565b1461043957fe5b5060019392505050565b60008282018381101561045257fe5b9392505050565b60008282111561046557fe5b509003905600a165627a7a72305820f103ab73afdd626875fe3fdbedf9f133b7604e578e5916003e320063373361a40029

Swarm Source

bzzr://f103ab73afdd626875fe3fdbedf9f133b7604e578e5916003e320063373361a4
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.