ETH Price: $3,224.26 (-0.94%)
Gas: 21 Gwei

Token

BitcoinPublic (BTP)
 

Overview

Max Total Supply

15,000,000,000 BTP

Holders

5,713

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
150,000 BTP

Value
$0.00
0x3752e293f79a673d93d4350405cee0d79e150af9
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:
BitcoinPublic

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-09-05
*/

pragma solidity ^0.4.19;

contract BaseToken {
    string public name;
    string public symbol;
    uint8 public decimals;
    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 Approval(address indexed owner, address indexed spender, uint256 value);

    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;
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
        Transfer(_from, _to, _value);
    }

    function transfer(address _to, uint256 _value) public returns (bool success) {
        _transfer(msg.sender, _to, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= allowance[_from][msg.sender]);
        allowance[_from][msg.sender] -= _value;
        _transfer(_from, _to, _value);
        return true;
    }

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

contract AirdropToken is BaseToken {
    uint256 public airAmount;
    uint256 public airBegintime;
    uint256 public airEndtime;
    address public airSender;
    uint32 public airLimitCount;

    mapping (address => uint32) public airCountOf;

    event Airdrop(address indexed from, uint32 indexed count, uint256 tokenValue);

    function airdrop() public payable {
        require(now >= airBegintime && now <= airEndtime);
        require(msg.value == 0);
        if (airLimitCount > 0 && airCountOf[msg.sender] >= airLimitCount) {
            revert();
        }
        _transfer(airSender, msg.sender, airAmount);
        airCountOf[msg.sender] += 1;
        Airdrop(msg.sender, airCountOf[msg.sender], airAmount);
    }
}

contract ICOToken is BaseToken {
    // 1 ether = icoRatio token
    uint256 public icoRatio;
    uint256 public icoBegintime;
    uint256 public icoEndtime;
    address public icoSender;
    address public icoHolder;

    event ICO(address indexed from, uint256 indexed value, uint256 tokenValue);
    event Withdraw(address indexed from, address indexed holder, uint256 value);

    function ico() public payable {
        require(now >= icoBegintime && now <= icoEndtime);
        uint256 tokenValue = (msg.value * icoRatio * 10 ** uint256(decimals)) / (1 ether / 1 wei);
        if (tokenValue == 0 || balanceOf[icoSender] < tokenValue) {
            revert();
        }
        _transfer(icoSender, msg.sender, tokenValue);
        ICO(msg.sender, msg.value, tokenValue);
    }

    function withdraw() public {
        uint256 balance = this.balance;
        icoHolder.transfer(balance);
        Withdraw(msg.sender, icoHolder, balance);
    }
}

contract BitcoinPublic is BaseToken, AirdropToken, ICOToken {
    function BitcoinPublic() public {
        totalSupply = 15000000000e18;
        name = 'BitcoinPublic';
        symbol = 'BTP';
        decimals = 18;
        balanceOf[0x5Feda404a3E4917691f543312DF3F4570b0E7E5d] = totalSupply;
        Transfer(address(0), 0x5Feda404a3E4917691f543312DF3F4570b0E7E5d, totalSupply);

        airAmount = 150000e18;
        airBegintime = 1535009400;
        airEndtime = 1541116740;
        airSender = 0x55f0DF548ba20895E4170E7539580600D9065269;
        airLimitCount = 1;

        icoRatio = 50000000;
        icoBegintime = 1535009400;
        icoEndtime = 1541116740;
        icoSender = 0x3F21176896DbD5130B550C893Ccd37997585Ff6f;
        icoHolder = 0x3F21176896DbD5130B550C893Ccd37997585Ff6f;
    }

    function() public payable {
        if (msg.value == 0) {
            airdrop();
        } else {
            ico();
        }
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airAmount","outputs":[{"name":"","type":"uint256"}],"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":false,"inputs":[],"name":"airdrop","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"ico","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airSender","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":true,"inputs":[],"name":"icoHolder","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"airCountOf","outputs":[{"name":"","type":"uint32"}],"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":true,"inputs":[],"name":"airEndtime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoRatio","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoEndtime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoSender","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoBegintime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airBegintime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"airLimitCount","outputs":[{"name":"","type":"uint32"}],"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":"value","type":"uint256"},{"indexed":false,"name":"tokenValue","type":"uint256"}],"name":"ICO","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"holder","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"count","type":"uint32"},{"indexed":false,"name":"tokenValue","type":"uint256"}],"name":"Airdrop","type":"event"},{"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"}]

608060405234801561001057600080fd5b506b3077b58d5d3783919800000060035560408051808201909152600d8082527f426974636f696e5075626c6963000000000000000000000000000000000000006020909201918252610065916000916101e6565b506040805180820190915260038082527f425450000000000000000000000000000000000000000000000000000000000060209092019182526100aa916001916101e6565b506002805460ff19166012179055600354735feda404a3e4917691f543312df3f4570b0e7e5d6000818152600460209081527f56bc725d8543682d77ec022cbf7e380b8b6061a1d77a8863ed9b94af4f1730368490556040805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3691fc3842bd1f071c00000600655635b7e62786007819055635bdb934460088190556009805460a060020a63ffffffff0219600160a060020a03199182167355f0df548ba20895e4170e7539580600d9065269171674010000000000000000000000000000000000000000179091556302faf080600b55600c92909255600d55600e80548216733f21176896dbd5130b550c893ccd37997585ff6f908117909155600f8054909216179055610281565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061022757805160ff1916838001178555610254565b82800160010185558215610254579182015b82811115610254578251825591602001919060010190610239565b50610260929150610264565b5090565b61027e91905b80821115610260576000815560010161026a565b90565b610a71806102906000396000f3006080604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461015057806307cc6051146101da578063095ea7b31461020157806318160ddd1461023957806323b872dd1461024e578063313ce567146102785780633884d635146102a35780633ccfd60b146102ab5780635d4522011461014657806370a08231146102c05780637d720296146102e157806395d89b4114610312578063a2ebb20b14610327578063a3fe1ade1461033c578063a9059cbb14610376578063b0f85a101461039a578063b3b8c620146103af578063d211fe86146103c4578063dd62ed3e146103d9578063de28fc1d14610400578063e6136d8414610415578063e67ad2541461042a578063e779a8cf1461043f575b34151561014657610141610454565b61014e565b61014e61056f565b005b34801561015c57600080fd5b5061016561062f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e657600080fd5b506101ef6106bd565b60408051918252519081900360200190f35b34801561020d57600080fd5b50610225600160a060020a03600435166024356106c3565b604080519115158252519081900360200190f35b34801561024557600080fd5b506101ef610729565b34801561025a57600080fd5b50610225600160a060020a036004358116906024351660443561072f565b34801561028457600080fd5b5061028d61079e565b6040805160ff9092168252519081900360200190f35b61014e610454565b3480156102b757600080fd5b5061014e6107a7565b3480156102cc57600080fd5b506101ef600160a060020a036004351661082b565b3480156102ed57600080fd5b506102f661083d565b60408051600160a060020a039092168252519081900360200190f35b34801561031e57600080fd5b5061016561084c565b34801561033357600080fd5b506102f66108a6565b34801561034857600080fd5b5061035d600160a060020a03600435166108b5565b6040805163ffffffff9092168252519081900360200190f35b34801561038257600080fd5b50610225600160a060020a03600435166024356108cd565b3480156103a657600080fd5b506101ef6108e3565b3480156103bb57600080fd5b506101ef6108e9565b3480156103d057600080fd5b506101ef6108ef565b3480156103e557600080fd5b506101ef600160a060020a03600435811690602435166108f5565b34801561040c57600080fd5b506102f6610912565b34801561042157600080fd5b506101ef610921565b34801561043657600080fd5b506101ef610927565b34801561044b57600080fd5b5061035d61092d565b600754421015801561046857506008544211155b151561047357600080fd5b341561047e57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104e25750600954336000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156104ec57600080fd5b60095460065461050791600160a060020a0316903390610951565b336000818152600a6020908152604091829020805463ffffffff198116600163ffffffff928316018216179182905560065484519081529351911693927fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4892908290030190a3565b6000600c5442101580156105855750600d544211155b151561059057600080fd5b600254600b54670de0b6b3a76400009160ff16600a0a34909102020490508015806105d45750600e54600160a060020a031660009081526004602052604090205481115b156105de57600080fd5b600e546105f590600160a060020a03163383610951565b604080518281529051349133917f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac09181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b60065481565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a038316600090815260056020908152604080832033845290915281205482111561075f57600080fd5b600160a060020a0384166000908152600560209081526040808320338452909152902080548390039055610794848484610951565b5060019392505050565b60025460ff1681565b600f54604051303191600160a060020a03169082156108fc029083906000818181858888f193505050501580156107e2573d6000803e3d6000fd5b50600f54604080518381529051600160a060020a039092169133917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb919081900360200190a350565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b600f54600160a060020a031681565b600a6020526000908152604090205463ffffffff1681565b60006108da338484610951565b50600192915050565b60085481565b600b5481565b600d5481565b600560209081526000928352604080842090915290825290205481565b600e54600160a060020a031681565b600c5481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561096857600080fd5b600160a060020a03841660009081526004602052604090205482111561098d57600080fd5b600160a060020a038316600090815260046020526040902054828101116109b357600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146109f457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3505050505600a165627a7a72305820bc612914cfe926e28e0c10aba90808b78dee60da9b3e14e8a33fe15f3632b0280029

Deployed Bytecode

0x6080604052600436106101325763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461015057806307cc6051146101da578063095ea7b31461020157806318160ddd1461023957806323b872dd1461024e578063313ce567146102785780633884d635146102a35780633ccfd60b146102ab5780635d4522011461014657806370a08231146102c05780637d720296146102e157806395d89b4114610312578063a2ebb20b14610327578063a3fe1ade1461033c578063a9059cbb14610376578063b0f85a101461039a578063b3b8c620146103af578063d211fe86146103c4578063dd62ed3e146103d9578063de28fc1d14610400578063e6136d8414610415578063e67ad2541461042a578063e779a8cf1461043f575b34151561014657610141610454565b61014e565b61014e61056f565b005b34801561015c57600080fd5b5061016561062f565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e657600080fd5b506101ef6106bd565b60408051918252519081900360200190f35b34801561020d57600080fd5b50610225600160a060020a03600435166024356106c3565b604080519115158252519081900360200190f35b34801561024557600080fd5b506101ef610729565b34801561025a57600080fd5b50610225600160a060020a036004358116906024351660443561072f565b34801561028457600080fd5b5061028d61079e565b6040805160ff9092168252519081900360200190f35b61014e610454565b3480156102b757600080fd5b5061014e6107a7565b3480156102cc57600080fd5b506101ef600160a060020a036004351661082b565b3480156102ed57600080fd5b506102f661083d565b60408051600160a060020a039092168252519081900360200190f35b34801561031e57600080fd5b5061016561084c565b34801561033357600080fd5b506102f66108a6565b34801561034857600080fd5b5061035d600160a060020a03600435166108b5565b6040805163ffffffff9092168252519081900360200190f35b34801561038257600080fd5b50610225600160a060020a03600435166024356108cd565b3480156103a657600080fd5b506101ef6108e3565b3480156103bb57600080fd5b506101ef6108e9565b3480156103d057600080fd5b506101ef6108ef565b3480156103e557600080fd5b506101ef600160a060020a03600435811690602435166108f5565b34801561040c57600080fd5b506102f6610912565b34801561042157600080fd5b506101ef610921565b34801561043657600080fd5b506101ef610927565b34801561044b57600080fd5b5061035d61092d565b600754421015801561046857506008544211155b151561047357600080fd5b341561047e57600080fd5b60095460007401000000000000000000000000000000000000000090910463ffffffff161180156104e25750600954336000908152600a602052604090205463ffffffff740100000000000000000000000000000000000000009092048216911610155b156104ec57600080fd5b60095460065461050791600160a060020a0316903390610951565b336000818152600a6020908152604091829020805463ffffffff198116600163ffffffff928316018216179182905560065484519081529351911693927fcce6ff7d594e7067a58df51c8588740b7c8b42537da7262add9823085de82e4892908290030190a3565b6000600c5442101580156105855750600d544211155b151561059057600080fd5b600254600b54670de0b6b3a76400009160ff16600a0a34909102020490508015806105d45750600e54600160a060020a031660009081526004602052604090205481115b156105de57600080fd5b600e546105f590600160a060020a03163383610951565b604080518281529051349133917f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac09181900360200190a350565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b60065481565b336000818152600560209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b600160a060020a038316600090815260056020908152604080832033845290915281205482111561075f57600080fd5b600160a060020a0384166000908152600560209081526040808320338452909152902080548390039055610794848484610951565b5060019392505050565b60025460ff1681565b600f54604051303191600160a060020a03169082156108fc029083906000818181858888f193505050501580156107e2573d6000803e3d6000fd5b50600f54604080518381529051600160a060020a039092169133917f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb919081900360200190a350565b60046020526000908152604090205481565b600954600160a060020a031681565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b55780601f1061068a576101008083540402835291602001916106b5565b600f54600160a060020a031681565b600a6020526000908152604090205463ffffffff1681565b60006108da338484610951565b50600192915050565b60085481565b600b5481565b600d5481565b600560209081526000928352604080842090915290825290205481565b600e54600160a060020a031681565b600c5481565b60075481565b60095474010000000000000000000000000000000000000000900463ffffffff1681565b6000600160a060020a038316151561096857600080fd5b600160a060020a03841660009081526004602052604090205482111561098d57600080fd5b600160a060020a038316600090815260046020526040902054828101116109b357600080fd5b50600160a060020a0382811660009081526004602052604080822080549387168352912080548481038255825485019283905590549201910181146109f457fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3505050505600a165627a7a72305820bc612914cfe926e28e0c10aba90808b78dee60da9b3e14e8a33fe15f3632b0280029

Swarm Source

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