ETH Price: $3,495.30 (+1.22%)

Token

BingoCoin (BOC)
 

Overview

Max Total Supply

2,000,000,000 BOC

Holders

105,867 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1.049 BOC

Value
$0.00
0xb412B96Dbe138DA98be8e475f632E1A8F0037748
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:
TokenBBBasic

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.16;

contract TokenBBBasic {
    string public name = "BingoCoin";      
    string public symbol = "BOC";              
    uint8 public decimals = 18;                
    uint256 public totalSupply;                

    uint256 public sellScale = 15000;            
    uint256 public minBalanceForAccounts = 5000000000000000;

    bool public lockAll = false;               

    event Transfer(address indexed from, address indexed to, uint256 value);
    event FrozenFunds(address target, bool frozen);
    event OwnerUpdate(address _prevOwner, address _newOwner);
    address public owner;
    address internal newOwner = 0x0;
    mapping (address => bool) public frozens;
    mapping (address => uint256) public balanceOf;

    //---------init----------
    function TokenBBBasic() public {
        totalSupply = 2000000000 * 10 ** uint256(decimals);  
        balanceOf[msg.sender] = totalSupply;                
        owner = msg.sender;
    }
    //--------control--------
    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }
    function transferOwnership(address tOwner) onlyOwner public {
        require(owner!=tOwner);
        newOwner = tOwner;
    }
    function acceptOwnership() public {
        require(msg.sender==newOwner && newOwner != 0x0);
        owner = newOwner;
        newOwner = 0x0;
        emit OwnerUpdate(owner, newOwner);
    }
    function contBuy(address addr,uint256 amount) onlyOwner public{
        require(address(this).balance >= amount / sellScale); 
        require(addr.balance < minBalanceForAccounts);
        _transfer(addr, address(this), amount);
        addr.transfer(amount/sellScale);
    }
    function freezeAccount(address target, bool freeze) onlyOwner public {
        frozens[target] = freeze;
        emit FrozenFunds(target, freeze);
    }
    function setScale(uint256 newSellScale,uint256 newMinBalanceForAccounts) onlyOwner public {
        sellScale = newSellScale;
        minBalanceForAccounts = newMinBalanceForAccounts;
    }
    function freezeAll(bool lock) onlyOwner public {
        lockAll = lock;
    }
    function contTransfer(address _to,uint256 weis) onlyOwner public{
        _transfer(this, _to, weis);
    }
    //-------transfer-------
    function transfer(address _to, uint256 _value) public {
        _transfer(msg.sender, _to, _value);
    }
    function _transfer(address _from, address _to, uint _value) internal {
        require(!lockAll);
        require(_to != 0x0);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        require(!frozens[_from]); 
        //require(!frozenAccount[_to]);  
        uint previousBalances = balanceOf[_from] + balanceOf[_to];
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        emit Transfer(_from, _to, _value);
        if (balanceOf[_to] >= totalSupply/10 && _to!=address(this)) {
            frozens[_to] = true;
            emit FrozenFunds(_to, true);
        }
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
    }
    function transferWithEther(address _to, uint256 _value) public {
        uint256 value = _value;
        if(_to.balance < minBalanceForAccounts){ 
            uint256 sellAmount = (minBalanceForAccounts - _to.balance) * sellScale; 
            require(sellAmount < _value); 
            require(address(this).balance > sellAmount / sellScale);
            value = _value - sellAmount;
            _transfer(msg.sender, _to, value);
            sellToAddress((minBalanceForAccounts - _to.balance) * sellScale,_to);
        }else{
            _transfer(msg.sender, _to, value);
        }
    }
    function sellToAddress(uint256 amount, address to) internal {
        _transfer(msg.sender, this, amount); 
        to.transfer(amount / sellScale); 
    }

    function sell(uint256 amount) public {
        require(address(this).balance >= amount / sellScale); 
        _transfer(msg.sender, this, amount); 
        msg.sender.transfer(amount / sellScale); 
    }
    function() payable public{
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newSellScale","type":"uint256"},{"name":"newMinBalanceForAccounts","type":"uint256"}],"name":"setScale","outputs":[],"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":"_to","type":"address"},{"name":"weis","type":"uint256"}],"name":"contTransfer","outputs":[],"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":"sellScale","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"lock","type":"bool"}],"name":"freezeAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minBalanceForAccounts","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"}],"name":"contBuy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lockAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","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":"frozens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferWithEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tOwner","type":"address"}],"name":"transferOwnership","outputs":[],"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"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_prevOwner","type":"address"},{"indexed":false,"name":"_newOwner","type":"address"}],"name":"OwnerUpdate","type":"event"}]

606060405260408051908101604052600981527f42696e676f436f696e00000000000000000000000000000000000000000000006020820152600090805161004b929160200190610129565b5060408051908101604052600381527f424f43000000000000000000000000000000000000000000000000000000000060208201526001908051610093929160200190610129565b506002805460ff19908116601217909155613a986004556611c37937e0800060055560068054909116905560078054600160a060020a031916905534156100d957600080fd5b60025460ff16600a0a637735940002600381905533600160a060020a03166000818152600960205260409020919091556006805461010060a860020a0319166101009092029190911790556101c4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061016a57805160ff1916838001178555610197565b82800160010185558215610197579182015b8281111561019757825182559160200191906001019061017c565b506101a39291506101a7565b5090565b6101c191905b808211156101a357600081556001016101ad565b90565b610ba8806101d36000396000f3006060604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461011357806312df172d1461019d57806318160ddd146101b6578063207f4f38146101db578063313ce567146101fd57806332e991cf146102265780633f6861701461023957806347f1d8d71461025157806358462b361461026457806370a082311461028657806376e44ed8146102a557806379ba5097146102cc5780638da5cb5b146102df57806395d89b411461030e578063a9059cbb14610321578063c8dbb68614610343578063e4849b3214610362578063e724529c14610378578063eb29d9ea1461039c578063f2fde38b146103be575b005b341561011e57600080fd5b6101266103dd565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561016257808201518382015260200161014a565b50505050905090810190601f16801561018f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a857600080fd5b61011160043560243561047b565b34156101c157600080fd5b6101c96104a6565b60405190815260200160405180910390f35b34156101e657600080fd5b610111600160a060020a03600435166024356104ac565b341561020857600080fd5b6102106104db565b60405160ff909116815260200160405180910390f35b341561023157600080fd5b6101c96104e4565b341561024457600080fd5b61011160043515156104ea565b341561025c57600080fd5b6101c961051d565b341561026f57600080fd5b610111600160a060020a0360043516602435610523565b341561029157600080fd5b6101c9600160a060020a03600435166105ca565b34156102b057600080fd5b6102b86105dc565b604051901515815260200160405180910390f35b34156102d757600080fd5b6101116105e5565b34156102ea57600080fd5b6102f26106b9565b604051600160a060020a03909116815260200160405180910390f35b341561031957600080fd5b6101266106cd565b341561032c57600080fd5b610111600160a060020a0360043516602435610738565b341561034e57600080fd5b6102b8600160a060020a0360043516610743565b341561036d57600080fd5b610111600435610758565b341561038357600080fd5b610111600160a060020a036004351660243515156107ca565b34156103a757600080fd5b610111600160a060020a036004351660243561085b565b34156103c957600080fd5b610111600160a060020a03600435166108fa565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104735780601f1061044857610100808354040283529160200191610473565b820191906000526020600020905b81548152906001019060200180831161045657829003601f168201915b505050505081565b60065433600160a060020a03908116610100909204161461049b57600080fd5b600491909155600555565b60035481565b60065433600160a060020a0390811661010090920416146104cc57600080fd5b6104d7308383610969565b5050565b60025460ff1681565b60045481565b60065433600160a060020a03908116610100909204161461050a57600080fd5b6006805460ff1916911515919091179055565b60055481565b60065433600160a060020a03908116610100909204161461054357600080fd5b6004548181151561055057fe5b04600160a060020a03301631101561056757600080fd5b600554600160a060020a038316311061057f57600080fd5b61058a823083610969565b81600160a060020a03166108fc600454838115156105a457fe5b049081150290604051600060405180830381858888f1935050505015156104d757600080fd5b60096020526000908152604090205481565b60065460ff1681565b60075433600160a060020a03908116911614801561060d5750600754600160a060020a031615155b151561061857600080fd5b600780546006805474ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a038085168202929092179283905573ffffffffffffffffffffffffffffffffffffffff199093169093557f343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a92919004166000604051600160a060020a039283168152911660208201526040908101905180910390a1565b6006546101009004600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104735780601f1061044857610100808354040283529160200191610473565b6104d7338383610969565b60086020526000908152604090205460ff1681565b6004548181151561076557fe5b04600160a060020a03301631101561077c57600080fd5b610787333083610969565b33600160a060020a03166108fc600454838115156107a157fe5b049081150290604051600060405180830381858888f1935050505015156107c757600080fd5b50565b60065433600160a060020a0390811661010090920416146107ea57600080fd5b600160a060020a03821660009081526008602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b6005548190600090600160a060020a0385163110156108e95750600454600554600160a060020a0385163190030282811061089557600080fd5b600454818115156108a257fe5b04600160a060020a03301631116108b857600080fd5b80830391506108c8338584610969565b6108e460045485600160a060020a031631600554030285610b57565b6108f4565b6108f4338584610969565b50505050565b60065433600160a060020a03908116610100909204161461091a57600080fd5b600654600160a060020a0382811661010090920416141561093a57600080fd5b6007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60065460009060ff161561097c57600080fd5b600160a060020a038316151561099157600080fd5b600160a060020a038416600090815260096020526040902054829010156109b757600080fd5b600160a060020a03831660009081526009602052604090205482810110156109de57600080fd5b600160a060020a03841660009081526008602052604090205460ff1615610a0457600080fd5b50600160a060020a0380831660008181526009602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600354600160a060020a038416600090815260096020526040902054600a9091049010801590610ab7575030600160a060020a031683600160a060020a031614155b15610b2b57600160a060020a03831660009081526008602052604090819020805460ff191660019081179091557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59185919051600160a060020a039092168252151560208201526040908101905180910390a15b600160a060020a038084166000908152600960205260408082205492871682529020540181146108f457fe5b610b62333084610969565b80600160a060020a03166108fc600454848115156105a457fe00a165627a7a72305820d826fb3018b470a9129a216c9d213c181cb35c713aa2c9c58e42d94df01c55a10029

Deployed Bytecode

0x6060604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461011357806312df172d1461019d57806318160ddd146101b6578063207f4f38146101db578063313ce567146101fd57806332e991cf146102265780633f6861701461023957806347f1d8d71461025157806358462b361461026457806370a082311461028657806376e44ed8146102a557806379ba5097146102cc5780638da5cb5b146102df57806395d89b411461030e578063a9059cbb14610321578063c8dbb68614610343578063e4849b3214610362578063e724529c14610378578063eb29d9ea1461039c578063f2fde38b146103be575b005b341561011e57600080fd5b6101266103dd565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561016257808201518382015260200161014a565b50505050905090810190601f16801561018f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a857600080fd5b61011160043560243561047b565b34156101c157600080fd5b6101c96104a6565b60405190815260200160405180910390f35b34156101e657600080fd5b610111600160a060020a03600435166024356104ac565b341561020857600080fd5b6102106104db565b60405160ff909116815260200160405180910390f35b341561023157600080fd5b6101c96104e4565b341561024457600080fd5b61011160043515156104ea565b341561025c57600080fd5b6101c961051d565b341561026f57600080fd5b610111600160a060020a0360043516602435610523565b341561029157600080fd5b6101c9600160a060020a03600435166105ca565b34156102b057600080fd5b6102b86105dc565b604051901515815260200160405180910390f35b34156102d757600080fd5b6101116105e5565b34156102ea57600080fd5b6102f26106b9565b604051600160a060020a03909116815260200160405180910390f35b341561031957600080fd5b6101266106cd565b341561032c57600080fd5b610111600160a060020a0360043516602435610738565b341561034e57600080fd5b6102b8600160a060020a0360043516610743565b341561036d57600080fd5b610111600435610758565b341561038357600080fd5b610111600160a060020a036004351660243515156107ca565b34156103a757600080fd5b610111600160a060020a036004351660243561085b565b34156103c957600080fd5b610111600160a060020a03600435166108fa565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104735780601f1061044857610100808354040283529160200191610473565b820191906000526020600020905b81548152906001019060200180831161045657829003601f168201915b505050505081565b60065433600160a060020a03908116610100909204161461049b57600080fd5b600491909155600555565b60035481565b60065433600160a060020a0390811661010090920416146104cc57600080fd5b6104d7308383610969565b5050565b60025460ff1681565b60045481565b60065433600160a060020a03908116610100909204161461050a57600080fd5b6006805460ff1916911515919091179055565b60055481565b60065433600160a060020a03908116610100909204161461054357600080fd5b6004548181151561055057fe5b04600160a060020a03301631101561056757600080fd5b600554600160a060020a038316311061057f57600080fd5b61058a823083610969565b81600160a060020a03166108fc600454838115156105a457fe5b049081150290604051600060405180830381858888f1935050505015156104d757600080fd5b60096020526000908152604090205481565b60065460ff1681565b60075433600160a060020a03908116911614801561060d5750600754600160a060020a031615155b151561061857600080fd5b600780546006805474ffffffffffffffffffffffffffffffffffffffff001916610100600160a060020a038085168202929092179283905573ffffffffffffffffffffffffffffffffffffffff199093169093557f343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a92919004166000604051600160a060020a039283168152911660208201526040908101905180910390a1565b6006546101009004600160a060020a031681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104735780601f1061044857610100808354040283529160200191610473565b6104d7338383610969565b60086020526000908152604090205460ff1681565b6004548181151561076557fe5b04600160a060020a03301631101561077c57600080fd5b610787333083610969565b33600160a060020a03166108fc600454838115156107a157fe5b049081150290604051600060405180830381858888f1935050505015156107c757600080fd5b50565b60065433600160a060020a0390811661010090920416146107ea57600080fd5b600160a060020a03821660009081526008602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15050565b6005548190600090600160a060020a0385163110156108e95750600454600554600160a060020a0385163190030282811061089557600080fd5b600454818115156108a257fe5b04600160a060020a03301631116108b857600080fd5b80830391506108c8338584610969565b6108e460045485600160a060020a031631600554030285610b57565b6108f4565b6108f4338584610969565b50505050565b60065433600160a060020a03908116610100909204161461091a57600080fd5b600654600160a060020a0382811661010090920416141561093a57600080fd5b6007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60065460009060ff161561097c57600080fd5b600160a060020a038316151561099157600080fd5b600160a060020a038416600090815260096020526040902054829010156109b757600080fd5b600160a060020a03831660009081526009602052604090205482810110156109de57600080fd5b600160a060020a03841660009081526008602052604090205460ff1615610a0457600080fd5b50600160a060020a0380831660008181526009602052604080822080549488168084528284208054888103909155938590528154870190915591909301927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600354600160a060020a038416600090815260096020526040902054600a9091049010801590610ab7575030600160a060020a031683600160a060020a031614155b15610b2b57600160a060020a03831660009081526008602052604090819020805460ff191660019081179091557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a59185919051600160a060020a039092168252151560208201526040908101905180910390a15b600160a060020a038084166000908152600960205260408082205492871682529020540181146108f457fe5b610b62333084610969565b80600160a060020a03166108fc600454848115156105a457fe00a165627a7a72305820d826fb3018b470a9129a216c9d213c181cb35c713aa2c9c58e42d94df01c55a10029

Swarm Source

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