ERC-20
Overview
Max Total Supply
500,000,000 HuobiAirdrop.com
Holders
10,173
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
100,200 HuobiAirdrop.comValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HBToken
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-11-15 */ /** * * Huobi, one of the largest crypto exchanges, is airdropping Huobi Token (HT) to active crypto traders. * * HT can be used to pay for trading fees on Huobi. * * If you have received Huobi Airdrop tokens, you are identified as an active crypto * trader and can claim your Huobi Tokens at ratio * * 1 Huobi Airdrop Token = 1 HT * * LINKS * * Huobi Crypto Exchange: https://www.huobi.com/ * Huobi Token (HT): https://coinmarketcap.com/currencies/huobi-token/ * Huobi Airdrop: http://huobiairdrop.com/ * */ pragma solidity ^0.4.23; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint 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, uint _value) 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, uint _value) returns (bool success) {} /// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint _value) 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 returns (uint remaining) {} event Transfer(address indexed _from, address indexed _to, uint _value); event Approval(address indexed _owner, address indexed _spender, uint _value); } contract RegularToken is Token { function transfer(address _to, uint _value) returns (bool) { //Default assumes totalSupply can't be over max (2^256 - 1). if (balances[msg.sender] >= _value && balances[_to] + _value >= balances[_to]) { balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint _value) returns (bool) { if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value >= balances[_to]) { balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) constant returns (uint) { return balances[_owner]; } function approve(address _spender, uint _value) returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant returns (uint) { return allowed[_owner][_spender]; } mapping (address => uint) balances; mapping (address => mapping (address => uint)) allowed; uint public totalSupply; } contract UnboundedRegularToken is RegularToken { uint constant MAX_UINT = 2**256 - 1; /// @dev ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited amount. /// @param _from Address to transfer from. /// @param _to Address to transfer to. /// @param _value Amount to transfer. /// @return Success of transfer. function transferFrom(address _from, address _to, uint _value) public returns (bool) { uint allowance = allowed[_from][msg.sender]; if (balances[_from] >= _value && allowance >= _value && balances[_to] + _value >= balances[_to] ) { balances[_to] += _value; balances[_from] -= _value; if (allowance < MAX_UINT) { allowed[_from][msg.sender] -= _value; } Transfer(_from, _to, _value); return true; } else { return false; } } } contract HBToken is UnboundedRegularToken { uint public totalSupply = 5*10**26; uint8 constant public decimals = 18; string constant public name = "Huobi Airdrop HuobiAirdrop.com"; string constant public symbol = "HuobiAirdrop.com"; function HBToken() { balances[msg.sender] = totalSupply; Transfer(address(0), msg.sender, totalSupply); } function sendFromContract(address _to, uint _value) returns (bool) { //Default assumes totalSupply can't be over max (2^256 - 1). if (balances[this] >= _value && balances[_to] + _value >= balances[_to]) { balances[this] -= _value; balances[_to] += _value; Transfer(this, _to, _value); return true; } else { return false; } } }
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":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","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":"","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":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"sendFromContract","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"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":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
60806040526b019d971e4fe8401e7400000060035534801561002057600080fd5b5060035433600081815260208181526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36106658061007a6000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb5780634bd50dcf146101e657806370a082311461020a57806395d89b411461022b578063a9059cbb14610240578063dd62ed3e14610264575b600080fd5b3480156100b457600080fd5b506100bd61028b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a03600435166024356102c2565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f610329565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a036004358116906024351660443561032f565b3480156101c757600080fd5b506101d061045d565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b50610156600160a060020a0360043516602435610462565b34801561021657600080fd5b5061017f600160a060020a0360043516610513565b34801561023757600080fd5b506100bd61052e565b34801561024c57600080fd5b50610156600160a060020a0360043516602435610565565b34801561027057600080fd5b5061017f600160a060020a036004358116906024351661060e565b60408051808201909152601e81527f48756f62692041697264726f702048756f626941697264726f702e636f6d0000602082015281565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60035481565b600160a060020a038316600081815260016020908152604080832033845282528083205493835290829052812054909190831180159061036f5750828110155b80156103955750600160a060020a03841660009081526020819052604090205483810110155b1561045057600160a060020a03808516600090815260208190526040808220805487019055918716815220805484900390556000198110156103fc57600160a060020a03851660009081526001602090815260408083203384529091529020805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a360019150610455565b600091505b509392505050565b601281565b30600090815260208190526040812054821180159061049b5750600160a060020a03831660009081526020819052604090205482810110155b1561050b573060008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610323565b506000610323565b600160a060020a031660009081526020819052604090205490565b60408051808201909152601081527f48756f626941697264726f702e636f6d00000000000000000000000000000000602082015281565b33600090815260208190526040812054821180159061059e5750600160a060020a03831660009081526020819052604090205482810110155b1561050b573360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610323565b600160a060020a039182166000908152600160209081526040808320939094168252919091522054905600a165627a7a723058204da0d3c6a713aeb02bcd5f73d3917009b7ae709d1049bffa023ebefbbca470b80029
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb5780634bd50dcf146101e657806370a082311461020a57806395d89b411461022b578063a9059cbb14610240578063dd62ed3e14610264575b600080fd5b3480156100b457600080fd5b506100bd61028b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a03600435166024356102c2565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f610329565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a036004358116906024351660443561032f565b3480156101c757600080fd5b506101d061045d565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b50610156600160a060020a0360043516602435610462565b34801561021657600080fd5b5061017f600160a060020a0360043516610513565b34801561023757600080fd5b506100bd61052e565b34801561024c57600080fd5b50610156600160a060020a0360043516602435610565565b34801561027057600080fd5b5061017f600160a060020a036004358116906024351661060e565b60408051808201909152601e81527f48756f62692041697264726f702048756f626941697264726f702e636f6d0000602082015281565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60035481565b600160a060020a038316600081815260016020908152604080832033845282528083205493835290829052812054909190831180159061036f5750828110155b80156103955750600160a060020a03841660009081526020819052604090205483810110155b1561045057600160a060020a03808516600090815260208190526040808220805487019055918716815220805484900390556000198110156103fc57600160a060020a03851660009081526001602090815260408083203384529091529020805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a360019150610455565b600091505b509392505050565b601281565b30600090815260208190526040812054821180159061049b5750600160a060020a03831660009081526020819052604090205482810110155b1561050b573060008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610323565b506000610323565b600160a060020a031660009081526020819052604090205490565b60408051808201909152601081527f48756f626941697264726f702e636f6d00000000000000000000000000000000602082015281565b33600090815260208190526040812054821180159061059e5750600160a060020a03831660009081526020819052604090205482810110155b1561050b573360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610323565b600160a060020a039182166000908152600160209081526040808320939094168252919091522054905600a165627a7a723058204da0d3c6a713aeb02bcd5f73d3917009b7ae709d1049bffa023ebefbbca470b80029
Swarm Source
bzzr://4da0d3c6a713aeb02bcd5f73d3917009b7ae709d1049bffa023ebefbbca470b8
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.