Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 50 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 7348534 | 2172 days ago | IN | 0 ETH | 0.00012136 | ||||
Transfer | 6133218 | 2383 days ago | IN | 0 ETH | 0.0002028 | ||||
Transfer | 6127324 | 2384 days ago | IN | 0 ETH | 0.00031201 | ||||
Transfer | 6127287 | 2384 days ago | IN | 0 ETH | 0.00031201 | ||||
Transfer | 6098073 | 2389 days ago | IN | 0 ETH | 0.0000934 | ||||
Transfer | 6095854 | 2389 days ago | IN | 0 ETH | 0.00008372 | ||||
Transfer | 6056142 | 2396 days ago | IN | 0 ETH | 0.00010387 | ||||
Transfer | 6044347 | 2398 days ago | IN | 0 ETH | 0.00010387 | ||||
Transfer | 6027898 | 2401 days ago | IN | 0 ETH | 0.00025969 | ||||
Transfer | 6027611 | 2401 days ago | IN | 0 ETH | 0.00028046 | ||||
Transfer | 6027545 | 2401 days ago | IN | 0 ETH | 0.00025969 | ||||
Transfer | 5983885 | 2408 days ago | IN | 0 ETH | 0.000148 | ||||
Transfer | 5957152 | 2413 days ago | IN | 0 ETH | 0.00161206 | ||||
Transfer | 5956687 | 2413 days ago | IN | 0 ETH | 0.00088429 | ||||
Transfer | 5954879 | 2413 days ago | IN | 0 ETH | 0.00066488 | ||||
Transfer | 5953713 | 2413 days ago | IN | 0 ETH | 0.00055311 | ||||
Transfer | 5937842 | 2416 days ago | IN | 0 ETH | 0.00104004 | ||||
Transfer | 5927417 | 2418 days ago | IN | 0 ETH | 0.00176371 | ||||
Transfer | 5927039 | 2418 days ago | IN | 0 ETH | 0.00135038 | ||||
Transfer | 5925324 | 2418 days ago | IN | 0 ETH | 0.0026001 | ||||
Transfer | 5920742 | 2419 days ago | IN | 0 ETH | 0.00312012 | ||||
Transfer | 5920421 | 2419 days ago | IN | 0 ETH | 0.00364014 | ||||
Transfer | 5919760 | 2419 days ago | IN | 0 ETH | 0.00312012 | ||||
Transfer | 5919043 | 2419 days ago | IN | 0 ETH | 0.00311628 | ||||
Transfer | 5914927 | 2420 days ago | IN | 0 ETH | 0.00277515 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
HPToken
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-06-29 */ pragma solidity ^0.4.20; /** * @title ERC20 interface */ interface HERC20 { function balanceOf(address _owner) public view returns (uint256); function allowance(address _owner, address _spender) public view returns (uint256); function transfer(address _to, uint256 _value) public returns (bool); function transferFrom(address _from, address _to, uint256 _value) public returns (bool); function approve(address _spender, uint256 _value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(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; } } /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 */ contract HPToken is HERC20 { using SafeMath for uint256; string public name = 'Healthy Physique Token'; string public symbol = 'HPT'; uint8 public constant decimals = 18; uint256 public constant decimalFactor = 10 ** uint256(decimals); uint256 public constant totalSupply = 2000000000 * decimalFactor; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) internal allowed; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Constructor for HPToken creation * @dev Assigns the totalSupply to the HPToken contract */ function HPToken() public { balances[msg.sender] = totalSupply; } /** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance(address _owner, address _spender) public view returns (uint256) { return allowed[_owner][_spender]; } /** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */ function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; } /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); emit Transfer(_from, _to, _value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _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,"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":true,"inputs":[],"name":"decimalFactor","outputs":[{"name":"","type":"uint256"}],"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":"","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
60c0604052601660808190527f4865616c74687920506879736971756520546f6b656e0000000000000000000060a090815261003e91600091906100b4565b506040805180820190915260038082527f48505400000000000000000000000000000000000000000000000000000000006020909201918252610083916001916100b4565b5034801561009057600080fd5b503360009081526002602052604090206b06765c793fa10079d0000000905561014f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f557805160ff1916838001178555610122565b82800160010185558215610122579182015b82811115610122578251825591602001919060010190610107565b5061012e929150610132565b5090565b61014c91905b8082111561012e5760008155600101610138565b90565b6106e18061015e6000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb5780636d6a6a4d146101e657806370a08231146101fb57806395d89b411461021c578063a9059cbb14610231578063dd62ed3e14610255575b600080fd5b3480156100b457600080fd5b506100bd61027c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a036004351660243561030a565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f610370565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a0360043581169060243516604435610380565b3480156101c757600080fd5b506101d06104f9565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b5061017f6104fe565b34801561020757600080fd5b5061017f600160a060020a036004351661050a565b34801561022857600080fd5b506100bd610525565b34801561023d57600080fd5b50610156600160a060020a036004351660243561057f565b34801561026157600080fd5b5061017f600160a060020a0360043581169060243516610662565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b820191906000526020600020905b8154815290600101906020018083116102e557829003601f168201915b505050505081565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b6b06765c793fa10079d000000081565b6000600160a060020a038316151561039757600080fd5b600160a060020a0384166000908152600260205260409020548211156103bc57600080fd5b600160a060020a03841660009081526003602090815260408083203384529091529020548211156103ec57600080fd5b600160a060020a038416600090815260026020526040902054610415908363ffffffff61068d16565b600160a060020a03808616600090815260026020526040808220939093559085168152205461044a908363ffffffff61069f16565b600160a060020a03808516600090815260026020908152604080832094909455918716815260038252828120338252909152205461048e908363ffffffff61068d16565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b670de0b6b3a764000081565b600160a060020a031660009081526002602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b6000600160a060020a038316151561059657600080fd5b336000908152600260205260409020548211156105b257600080fd5b336000908152600260205260409020546105d2908363ffffffff61068d16565b3360009081526002602052604080822092909255600160a060020a03851681522054610604908363ffffffff61069f16565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60008282111561069957fe5b50900390565b6000828201838110156106ae57fe5b93925050505600a165627a7a72305820696422960b6d7a8305c5ef20ced8402c2b5e35cfbfd73bf9483013c44ba2abb70029
Deployed Bytecode
0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb5780636d6a6a4d146101e657806370a08231146101fb57806395d89b411461021c578063a9059cbb14610231578063dd62ed3e14610255575b600080fd5b3480156100b457600080fd5b506100bd61027c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a036004351660243561030a565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f610370565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a0360043581169060243516604435610380565b3480156101c757600080fd5b506101d06104f9565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b5061017f6104fe565b34801561020757600080fd5b5061017f600160a060020a036004351661050a565b34801561022857600080fd5b506100bd610525565b34801561023d57600080fd5b50610156600160a060020a036004351660243561057f565b34801561026157600080fd5b5061017f600160a060020a0360043581169060243516610662565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b820191906000526020600020905b8154815290600101906020018083116102e557829003601f168201915b505050505081565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b6b06765c793fa10079d000000081565b6000600160a060020a038316151561039757600080fd5b600160a060020a0384166000908152600260205260409020548211156103bc57600080fd5b600160a060020a03841660009081526003602090815260408083203384529091529020548211156103ec57600080fd5b600160a060020a038416600090815260026020526040902054610415908363ffffffff61068d16565b600160a060020a03808616600090815260026020526040808220939093559085168152205461044a908363ffffffff61069f16565b600160a060020a03808516600090815260026020908152604080832094909455918716815260038252828120338252909152205461048e908363ffffffff61068d16565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b670de0b6b3a764000081565b600160a060020a031660009081526002602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b6000600160a060020a038316151561059657600080fd5b336000908152600260205260409020548211156105b257600080fd5b336000908152600260205260409020546105d2908363ffffffff61068d16565b3360009081526002602052604080822092909255600160a060020a03851681522054610604908363ffffffff61069f16565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60008282111561069957fe5b50900390565b6000828201838110156106ae57fe5b93925050505600a165627a7a72305820696422960b6d7a8305c5ef20ced8402c2b5e35cfbfd73bf9483013c44ba2abb70029
Swarm Source
bzzr://696422960b6d7a8305c5ef20ced8402c2b5e35cfbfd73bf9483013c44ba2abb7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.