ETH Price: $2,707.96 (+2.79%)

Contract

0x311906E811012Fa3f7D69d9a6b6226625B670E44
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer73485342019-03-11 14:53:392172 days ago1552316019IN
0x311906E8...25B670E44
0 ETH0.000121365.5
Transfer61332182018-08-12 8:58:072383 days ago1534064287IN
0x311906E8...25B670E44
0 ETH0.00020283.9
Transfer61273242018-08-11 8:53:072384 days ago1533977587IN
0x311906E8...25B670E44
0 ETH0.000312016
Transfer61272872018-08-11 8:45:042384 days ago1533977104IN
0x311906E8...25B670E44
0 ETH0.000312015.99999999
Transfer60980732018-08-06 10:12:572389 days ago1533550377IN
0x311906E8...25B670E44
0 ETH0.00009342.52
Transfer60958542018-08-06 1:18:282389 days ago1533518308IN
0x311906E8...25B670E44
0 ETH0.000083721.61
Transfer60561422018-07-30 8:11:262396 days ago1532938286IN
0x311906E8...25B670E44
0 ETH0.000103872
Transfer60443472018-07-28 8:57:562398 days ago1532768276IN
0x311906E8...25B670E44
0 ETH0.000103872
Transfer60278982018-07-25 14:12:312401 days ago1532527951IN
0x311906E8...25B670E44
0 ETH0.000259695
Transfer60276112018-07-25 13:03:142401 days ago1532523794IN
0x311906E8...25B670E44
0 ETH0.000280465.4
Transfer60275452018-07-25 12:47:312401 days ago1532522851IN
0x311906E8...25B670E44
0 ETH0.000259695
Transfer59838852018-07-18 2:08:202408 days ago1531879700IN
0x311906E8...25B670E44
0 ETH0.0001484
Transfer59571522018-07-13 14:10:272413 days ago1531491027IN
0x311906E8...25B670E44
0 ETH0.0016120631.00000038
Transfer59566872018-07-13 12:18:392413 days ago1531484319IN
0x311906E8...25B670E44
0 ETH0.0008842923.94
Transfer59548792018-07-13 5:01:572413 days ago1531458117IN
0x311906E8...25B670E44
0 ETH0.0006648818
Transfer59537132018-07-13 0:19:462413 days ago1531441186IN
0x311906E8...25B670E44
0 ETH0.0005531115
Transfer59378422018-07-10 7:52:362416 days ago1531209156IN
0x311906E8...25B670E44
0 ETH0.0010400420
Transfer59274172018-07-08 12:51:392418 days ago1531054299IN
0x311906E8...25B670E44
0 ETH0.0017637134
Transfer59270392018-07-08 11:19:212418 days ago1531048761IN
0x311906E8...25B670E44
0 ETH0.0013503826
Transfer59253242018-07-08 4:05:302418 days ago1531022730IN
0x311906E8...25B670E44
0 ETH0.002600150
Transfer59207422018-07-07 9:07:172419 days ago1530954437IN
0x311906E8...25B670E44
0 ETH0.0031201260
Transfer59204212018-07-07 7:39:162419 days ago1530949156IN
0x311906E8...25B670E44
0 ETH0.0036401470
Transfer59197602018-07-07 4:57:292419 days ago1530939449IN
0x311906E8...25B670E44
0 ETH0.0031201260
Transfer59190432018-07-07 2:01:522419 days ago1530928912IN
0x311906E8...25B670E44
0 ETH0.0031162860
Transfer59149272018-07-06 9:05:142420 days ago1530867914IN
0x311906E8...25B670E44
0 ETH0.0027751575
View all transactions

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
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
/**
 *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

Contract ABI

[{"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"}]

60c0604052601660808190527f4865616c74687920506879736971756520546f6b656e0000000000000000000060a090815261003e91600091906100b4565b506040805180820190915260038082527f48505400000000000000000000000000000000000000000000000000000000006020909201918252610083916001916100b4565b5034801561009057600080fd5b503360009081526002602052604090206b06765c793fa10079d0000000905561014f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f557805160ff1916838001178555610122565b82800160010185558215610122579182015b82811115610122578251825591602001919060010190610107565b5061012e929150610132565b5090565b61014c91905b8082111561012e5760008155600101610138565b90565b6106e18061015e6000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb5780636d6a6a4d146101e657806370a08231146101fb57806395d89b411461021c578063a9059cbb14610231578063dd62ed3e14610255575b600080fd5b3480156100b457600080fd5b506100bd61027c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a036004351660243561030a565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f610370565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a0360043581169060243516604435610380565b3480156101c757600080fd5b506101d06104f9565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b5061017f6104fe565b34801561020757600080fd5b5061017f600160a060020a036004351661050a565b34801561022857600080fd5b506100bd610525565b34801561023d57600080fd5b50610156600160a060020a036004351660243561057f565b34801561026157600080fd5b5061017f600160a060020a0360043581169060243516610662565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b820191906000526020600020905b8154815290600101906020018083116102e557829003601f168201915b505050505081565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b6b06765c793fa10079d000000081565b6000600160a060020a038316151561039757600080fd5b600160a060020a0384166000908152600260205260409020548211156103bc57600080fd5b600160a060020a03841660009081526003602090815260408083203384529091529020548211156103ec57600080fd5b600160a060020a038416600090815260026020526040902054610415908363ffffffff61068d16565b600160a060020a03808616600090815260026020526040808220939093559085168152205461044a908363ffffffff61069f16565b600160a060020a03808516600090815260026020908152604080832094909455918716815260038252828120338252909152205461048e908363ffffffff61068d16565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b670de0b6b3a764000081565b600160a060020a031660009081526002602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b6000600160a060020a038316151561059657600080fd5b336000908152600260205260409020548211156105b257600080fd5b336000908152600260205260409020546105d2908363ffffffff61068d16565b3360009081526002602052604080822092909255600160a060020a03851681522054610604908363ffffffff61069f16565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60008282111561069957fe5b50900390565b6000828201838110156106ae57fe5b93925050505600a165627a7a72305820696422960b6d7a8305c5ef20ced8402c2b5e35cfbfd73bf9483013c44ba2abb70029

Deployed Bytecode

0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016a57806323b872dd14610191578063313ce567146101bb5780636d6a6a4d146101e657806370a08231146101fb57806395d89b411461021c578063a9059cbb14610231578063dd62ed3e14610255575b600080fd5b3480156100b457600080fd5b506100bd61027c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013e57600080fd5b50610156600160a060020a036004351660243561030a565b604080519115158252519081900360200190f35b34801561017657600080fd5b5061017f610370565b60408051918252519081900360200190f35b34801561019d57600080fd5b50610156600160a060020a0360043581169060243516604435610380565b3480156101c757600080fd5b506101d06104f9565b6040805160ff9092168252519081900360200190f35b3480156101f257600080fd5b5061017f6104fe565b34801561020757600080fd5b5061017f600160a060020a036004351661050a565b34801561022857600080fd5b506100bd610525565b34801561023d57600080fd5b50610156600160a060020a036004351660243561057f565b34801561026157600080fd5b5061017f600160a060020a0360043581169060243516610662565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b820191906000526020600020905b8154815290600101906020018083116102e557829003601f168201915b505050505081565b336000818152600360209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b6b06765c793fa10079d000000081565b6000600160a060020a038316151561039757600080fd5b600160a060020a0384166000908152600260205260409020548211156103bc57600080fd5b600160a060020a03841660009081526003602090815260408083203384529091529020548211156103ec57600080fd5b600160a060020a038416600090815260026020526040902054610415908363ffffffff61068d16565b600160a060020a03808616600090815260026020526040808220939093559085168152205461044a908363ffffffff61069f16565b600160a060020a03808516600090815260026020908152604080832094909455918716815260038252828120338252909152205461048e908363ffffffff61068d16565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b670de0b6b3a764000081565b600160a060020a031660009081526002602052604090205490565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103025780601f106102d757610100808354040283529160200191610302565b6000600160a060020a038316151561059657600080fd5b336000908152600260205260409020548211156105b257600080fd5b336000908152600260205260409020546105d2908363ffffffff61068d16565b3360009081526002602052604080822092909255600160a060020a03851681522054610604908363ffffffff61069f16565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60008282111561069957fe5b50900390565b6000828201838110156106ae57fe5b93925050505600a165627a7a72305820696422960b6d7a8305c5ef20ced8402c2b5e35cfbfd73bf9483013c44ba2abb70029

Swarm Source

bzzr://696422960b6d7a8305c5ef20ced8402c2b5e35cfbfd73bf9483013c44ba2abb7

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.