ERC-20
Platform
Overview
Max Total Supply
1,000,000,000 HAC
Holders
649 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 4 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HacToken
Compiler Version
v0.4.12+commit.194ff033
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-04-26 */ pragma solidity ^0.4.11; contract ERC20Interface { function totalSupply() constant returns (uint256 total); // Get the total token supply function balanceOf(address _owner) constant returns (uint256 balance); // Get the account balance of another account with address _owner function transfer(address _to, uint256 _value) returns (bool success); // Send _value amount of tokens to address _to function transferFrom(address _from, address _to, uint256 _value) returns (bool success); // Send _value amount of tokens from address _from to address _to // Allow _spender to withdraw from your account, multiple times, up to the _value amount. // If this function is called again it overwrites the current allowance with _value. // this function is required for some DEX functionality // function approve(address _spender, uint256 _value) returns (bool success); // function allowance(address _owner, address _spender) constant returns (uint256 remaining); // Returns the amount which _spender is still allowed to withdraw from _owner event Transfer(address indexed _from, address indexed _to, uint256 _value); // Triggered when tokens are transferred. //event Approval(address indexed _owner, address indexed _spender, uint256 _value); // Triggered whenever approve(address _spender, uint256 _value) is called. } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant 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 constant returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) revert(); _; } /* function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } */ } contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); } contract HacToken is ERC20Interface, owned{ string public standard = 'Token 0.1'; string public name; string public symbol; uint8 public decimals; uint256 public freeTokens; uint256 public totalSupply; mapping (address => uint256) public balanceOf; event TransferFrom(address indexed _from, address indexed _to, uint256 _value); // Triggered when tokens are transferred by owner. function HacToken() { totalSupply = freeTokens = 10000000000000; name = "HAC Token"; decimals = 4; symbol = "HAC"; } function totalSupply() constant returns (uint256 total) { return total = totalSupply; } function balanceOf(address _owner) constant returns (uint256 balance) { return balanceOf[_owner]; } /* function approve(address _spender, uint256 _amount) returns (bool success) { return false; } function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return 0; } */ function () { revert(); } function setTokens(address target, uint256 amount) onlyOwner { if(freeTokens < amount) revert(); balanceOf[target] = SafeMath.add(balanceOf[target], amount); freeTokens = SafeMath.sub(freeTokens, amount); Transfer(this, target, amount); } function transfer(address _to, uint256 _value) returns (bool success){ balanceOf[msg.sender] = SafeMath.sub(balanceOf[msg.sender], _value); balanceOf[_to] = SafeMath.add(balanceOf[_to], _value); Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) onlyOwner returns (bool success) { balanceOf[_from] = SafeMath.sub(balanceOf[_from], _value); balanceOf[_to] = SafeMath.add(balanceOf[_to], _value); TransferFrom(_from, _to, _value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"total","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"freeTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"amount","type":"uint256"}],"name":"setTokens","outputs":[],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":false,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"TransferFrom","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"}]
Contract Creation Code
606060405260408051908101604052600981527f546f6b656e20302e3100000000000000000000000000000000000000000000006020820152600190805161004b929160200190610125565b50341561005757600080fd5b5b5b60008054600160a060020a03191633600160a060020a03161790555b6509184e72a000600581905560065560408051908101604052600981527f48414320546f6b656e0000000000000000000000000000000000000000000000602082015260029080516100cb929160200190610125565b506004805460ff1916811790556040805190810160405260038082527f4841430000000000000000000000000000000000000000000000000000000000602083015290805161011e929160200190610125565b505b6101c5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061016657805160ff1916838001178555610193565b82800160010185558215610193579182015b82811115610193578251825591602001919060010190610178565b5b506101a09291506101a4565b5090565b6101c291905b808211156101a057600081556001016101aa565b5090565b90565b61088b806101d46000396000f300606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c457806318160ddd1461014f57806323b872dd14610174578063313ce567146101b05780635a3b7e42146101d95780636fe8f9c51461026457806370a08231146102895780638da5cb5b146102ba57806395d89b41146102e9578063a9059cbb14610374578063bac79651146103aa575b34156100b757600080fd5b6100c25b600080fd5b565b005b34156100cf57600080fd5b6100d76103ce565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101145780820151818401525b6020016100fb565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015a57600080fd5b61016261046c565b60405190815260200160405180910390f35b341561017f57600080fd5b61019c600160a060020a0360043581169060243516604435610473565b604051901515815260200160405180910390f35b34156101bb57600080fd5b6101c3610544565b60405160ff909116815260200160405180910390f35b34156101e457600080fd5b6100d761054d565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101145780820151818401525b6020016100fb565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561026f57600080fd5b6101626105eb565b60405190815260200160405180910390f35b341561029457600080fd5b610162600160a060020a03600435166105f1565b60405190815260200160405180910390f35b34156102c557600080fd5b6102cd610610565b604051600160a060020a03909116815260200160405180910390f35b34156102f457600080fd5b6100d761061f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101145780820151818401525b6020016100fb565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037f57600080fd5b61019c600160a060020a03600435166024356106bd565b604051901515815260200160405180910390f35b34156103b557600080fd5b6100c2600160a060020a0360043516602435610771565b005b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b505050505081565b6006545b90565b6000805433600160a060020a0390811691161461048f57600080fd5b600160a060020a0384166000908152600760205260409020546104b2908361082e565b600160a060020a0380861660009081526007602052604080822093909355908516815220546104e19083610845565b600160a060020a03808516600081815260076020526040908190209390935591908616907fc0d84ce5c7ff9ca21adb0f8436ff3f4951b4bb78c4e2fae2b6837958b3946ffd9085905190815260200160405180910390a35060015b5b9392505050565b60045460ff1681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b505050505081565b60055481565b600160a060020a0381166000908152600760205260409020545b919050565b600054600160a060020a031681565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b505050505081565b600160a060020a0333166000908152600760205260408120546106e0908361082e565b600160a060020a03338116600090815260076020526040808220939093559085168152205461070f9083610845565b600160a060020a0380851660008181526007602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b60005433600160a060020a0390811691161461078c57600080fd5b80600554101561079b57600080fd5b600160a060020a0382166000908152600760205260409020546107be9082610845565b600160a060020a0383166000908152600760205260409020556005546107e4908261082e565b600555600160a060020a038083169030167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35b5b5050565b60008282111561083a57fe5b508082035b92915050565b60008282018381101561085457fe5b8091505b50929150505600a165627a7a723058200dfa1c5789b9d4268db841c18402f848888cf2009f8fd7ca26d8d7b477189e370029
Deployed Bytecode
0x606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c457806318160ddd1461014f57806323b872dd14610174578063313ce567146101b05780635a3b7e42146101d95780636fe8f9c51461026457806370a08231146102895780638da5cb5b146102ba57806395d89b41146102e9578063a9059cbb14610374578063bac79651146103aa575b34156100b757600080fd5b6100c25b600080fd5b565b005b34156100cf57600080fd5b6100d76103ce565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101145780820151818401525b6020016100fb565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015a57600080fd5b61016261046c565b60405190815260200160405180910390f35b341561017f57600080fd5b61019c600160a060020a0360043581169060243516604435610473565b604051901515815260200160405180910390f35b34156101bb57600080fd5b6101c3610544565b60405160ff909116815260200160405180910390f35b34156101e457600080fd5b6100d761054d565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101145780820151818401525b6020016100fb565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561026f57600080fd5b6101626105eb565b60405190815260200160405180910390f35b341561029457600080fd5b610162600160a060020a03600435166105f1565b60405190815260200160405180910390f35b34156102c557600080fd5b6102cd610610565b604051600160a060020a03909116815260200160405180910390f35b34156102f457600080fd5b6100d761061f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101145780820151818401525b6020016100fb565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037f57600080fd5b61019c600160a060020a03600435166024356106bd565b604051901515815260200160405180910390f35b34156103b557600080fd5b6100c2600160a060020a0360043516602435610771565b005b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b505050505081565b6006545b90565b6000805433600160a060020a0390811691161461048f57600080fd5b600160a060020a0384166000908152600760205260409020546104b2908361082e565b600160a060020a0380861660009081526007602052604080822093909355908516815220546104e19083610845565b600160a060020a03808516600081815260076020526040908190209390935591908616907fc0d84ce5c7ff9ca21adb0f8436ff3f4951b4bb78c4e2fae2b6837958b3946ffd9085905190815260200160405180910390a35060015b5b9392505050565b60045460ff1681565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b505050505081565b60055481565b600160a060020a0381166000908152600760205260409020545b919050565b600054600160a060020a031681565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104645780601f1061043957610100808354040283529160200191610464565b820191906000526020600020905b81548152906001019060200180831161044757829003601f168201915b505050505081565b600160a060020a0333166000908152600760205260408120546106e0908361082e565b600160a060020a03338116600090815260076020526040808220939093559085168152205461070f9083610845565b600160a060020a0380851660008181526007602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b60005433600160a060020a0390811691161461078c57600080fd5b80600554101561079b57600080fd5b600160a060020a0382166000908152600760205260409020546107be9082610845565b600160a060020a0383166000908152600760205260409020556005546107e4908261082e565b600555600160a060020a038083169030167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35b5b5050565b60008282111561083a57fe5b508082035b92915050565b60008282018381101561085457fe5b8091505b50929150505600a165627a7a723058200dfa1c5789b9d4268db841c18402f848888cf2009f8fd7ca26d8d7b477189e370029
Swarm Source
bzzr://0dfa1c5789b9d4268db841c18402f848888cf2009f8fd7ca26d8d7b477189e37
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.