ETH Price: $2,014.59 (+2.16%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer67873532018-11-28 9:12:092651 days ago1543396329IN
0xe5f298fa...2b1540a68
1 ETH0.0031453941
Transfer66062402018-10-29 16:05:522681 days ago1540829152IN
0xe5f298fa...2b1540a68
0.51 ETH0.0029283441
Transfer65938272018-10-27 15:15:542683 days ago1540653354IN
0xe5f298fa...2b1540a68
0.7 ETH0.000357115
Transfer65827052018-10-25 19:39:262685 days ago1540496366IN
0xe5f298fa...2b1540a68
0.504 ETH0.000571388
Transfer65270432018-10-16 17:30:122694 days ago1539711012IN
0xe5f298fa...2b1540a68
0.74 ETH0.0037603941
Transfer64956182018-10-11 14:50:312699 days ago1539269431IN
0xe5f298fa...2b1540a68
0.2534 ETH0.000214263
Transfer64887612018-10-10 11:51:442700 days ago1539172304IN
0xe5f298fa...2b1540a68
0.1402 ETH0.000499967
Transfer64866772018-10-10 3:53:382700 days ago1539143618IN
0xe5f298fa...2b1540a68
0.742 ETH0.000292834.1
Transfer64786632018-10-08 20:43:452702 days ago1539031425IN
0xe5f298fa...2b1540a68
0.7 ETH0.000304263

Latest 9 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer67873532018-11-28 9:12:092651 days ago1543396329
0xe5f298fa...2b1540a68
1 ETH
Transfer66062402018-10-29 16:05:522681 days ago1540829152
0xe5f298fa...2b1540a68
0.51 ETH
Transfer65938272018-10-27 15:15:542683 days ago1540653354
0xe5f298fa...2b1540a68
0.7 ETH
Transfer65827052018-10-25 19:39:262685 days ago1540496366
0xe5f298fa...2b1540a68
0.504 ETH
Transfer65270432018-10-16 17:30:122694 days ago1539711012
0xe5f298fa...2b1540a68
0.74 ETH
Transfer64956182018-10-11 14:50:312699 days ago1539269431
0xe5f298fa...2b1540a68
0.2534 ETH
Transfer64887612018-10-10 11:51:442700 days ago1539172304
0xe5f298fa...2b1540a68
0.1402 ETH
Transfer64866772018-10-10 3:53:382700 days ago1539143618
0xe5f298fa...2b1540a68
0.742 ETH
Transfer64786632018-10-08 20:43:452702 days ago1539031425
0xe5f298fa...2b1540a68
0.7 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LGRSale

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-10-06
*/

// GYM Ledger Token Sale Contract - Project website: www.gymledger.com

// GYM Reward, LLC

pragma solidity ^0.4.25;

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;
  }
}

contract Ownable {
  address public owner;

  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

  constructor() public {
    owner = msg.sender;
  }
  modifier onlyOwner() {
    require(msg.sender == owner, "Only owner can call this function");
    _;
  }
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0), "Valid address is required");
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}

interface TokenContract {
  function mintTo(address _to, uint256 _amount) external;
}

contract LGRSale is Ownable {
  using SafeMath for uint256;

  address public walletAddress;
  TokenContract public tkn;
  uint256[3] public pricePerToken = [1400 szabo, 1500 szabo, 2000 szabo];
  uint256[3] public levelEndDate = [1539648000, 1541030400, 1546300740];
  uint8 public currentLevel;
  uint256 public tokensSold;
  uint256 public ethRised;

  constructor() public {
    currentLevel = 0;
    tokensSold = 0;
    ethRised = 0;
    walletAddress = 0xE38cc3F48b4F98Cb3577aC75bB96DBBc87bc57d6;
    tkn = TokenContract(0x7172433857c83A68F6Dc98EdE4391c49785feD0B);
  }

  function() public payable {
    
    if (levelEndDate[currentLevel] < now) {
      currentLevel += 1;
      if (currentLevel > 2) {
        msg.sender.transfer(msg.value);
      } else {
        executeSell();
      }
    } else {
      executeSell();
    }
  }
  
  function executeSell() private {
    uint256 tokensToSell;
    require(msg.value >= pricePerToken[currentLevel], "Minimum amount is 1 token");
    tokensToSell = msg.value.div(pricePerToken[currentLevel]) * 1 ether;
    tkn.mintTo(msg.sender, tokensToSell);
    tokensSold = tokensSold.add(tokensToSell);
    ethRised = ethRised.add(msg.value);
    walletAddress.transfer(msg.value);
  }

  function killContract(bool _kill) public onlyOwner {
    if (_kill == true) {
      selfdestruct(owner);
    }
  }

  function setWallet(address _wallet) public onlyOwner {
    walletAddress = _wallet;
  }

  function setLevelEndDate(uint256 _level, uint256 _date) public onlyOwner {
    levelEndDate[_level] = _date;
  }

}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"tkn","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"levelEndDate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"walletAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_level","type":"uint256"},{"name":"_date","type":"uint256"}],"name":"setLevelEndDate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ethRised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentLevel","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_kill","type":"bool"}],"name":"killContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"pricePerToken","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_wallet","type":"address"}],"name":"setWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60e06040526604f94ae6af800060809081526605543df729c00060a05266071afd498d000060c05261003490600390816100e3565b5060408051606081018252635bc52a008152635bda42006020820152635c2aad449181019190915261006a90600690600361012c565b5034801561007757600080fd5b5060008054600160a060020a0319908116331782556009805460ff19169055600a829055600b9190915560018054821673e38cc3f48b4f98cb3577ac75bb96dbbc87bc57d617905560028054909116737172433857c83a68f6dc98ede4391c49785fed0b17905561017f565b826003810192821561011c579160200282015b8281111561011c578251829066ffffffffffffff169055916020019190600101906100f6565b50610128929150610162565b5090565b826003810192821561011c579160200282015b8281111561011c578251829063ffffffff1690559160200191906001019061013f565b61017c91905b808211156101285760008155600101610168565b90565b6107b08061018e6000396000f3006080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305f3a85281146101415780632ccdd95a14610172578063518ab2a81461019c5780636ad5b3ea146101b15780636efef04d146101c657806375c767f8146101e15780638da5cb5b146101f65780639dc4b9c91461020b578063cd5a489d14610236578063d1cc6e3f14610250578063deaa59df14610268578063f2fde38b14610289575b600954429060069060ff16600381106100ce57fe5b01541015610137576009805460ff198116600160ff928316018216179182905560029116111561012a5760405133903480156108fc02916000818181858888f19350505050158015610124573d6000803e3d6000fd5b50610132565b6101326102aa565b61013f565b61013f6102aa565b005b34801561014d57600080fd5b5061015661043a565b60408051600160a060020a039092168252519081900360200190f35b34801561017e57600080fd5b5061018a600435610449565b60408051918252519081900360200190f35b3480156101a857600080fd5b5061018a61045d565b3480156101bd57600080fd5b50610156610463565b3480156101d257600080fd5b5061013f600435602435610472565b3480156101ed57600080fd5b5061018a6104e3565b34801561020257600080fd5b506101566104e9565b34801561021757600080fd5b506102206104f8565b6040805160ff9092168252519081900360200190f35b34801561024257600080fd5b5061013f6004351515610501565b34801561025c57600080fd5b5061018a60043561057a565b34801561027457600080fd5b5061013f600160a060020a0360043516610586565b34801561029557600080fd5b5061013f600160a060020a0360043516610612565b60095460009060039060ff168181106102bf57fe5b0154341015610318576040805160e560020a62461bcd02815260206004820152601960248201527f4d696e696d756d20616d6f756e74206973203120746f6b656e00000000000000604482015290519081900360640190fd5b60095461033d9060039060ff1681811061032e57fe5b0154349063ffffffff61073716565b600254604080517f449a52f8000000000000000000000000000000000000000000000000000000008152336004820152670de0b6b3a764000093909302602484018190529051909350600160a060020a039091169163449a52f891604480830192600092919082900301818387803b1580156103b857600080fd5b505af11580156103cc573d6000803e3d6000fd5b5050600a546103e4925090508263ffffffff61074e16565b600a55600b546103fa903463ffffffff61074e16565b600b55600154604051600160a060020a03909116903480156108fc02916000818181858888f19350505050158015610436573d6000803e3d6000fd5b5050565b600254600160a060020a031681565b6006816003811061045657fe5b0154905081565b600a5481565b600154600160a060020a031681565b600054600160a060020a031633146104cf576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b80600683600381106104dd57fe5b01555050565b600b5481565b600054600160a060020a031681565b60095460ff1681565b600054600160a060020a0316331461055e576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b6001811515141561057757600054600160a060020a0316ff5b50565b60038181811061045657fe5b600054600160a060020a031633146105e3576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a0316331461066f576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b600160a060020a03811615156106cf576040805160e560020a62461bcd02815260206004820152601960248201527f56616c6964206164647265737320697320726571756972656400000000000000604482015290519081900360640190fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080828481151561074557fe5b04949350505050565b60008282018381101561075d57fe5b939250505056004f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696fa165627a7a72305820cb6c8cd8f8889a41f338bb17596b5023e9b47404f5c1b4f5455fcfb1c83318fe0029

Deployed Bytecode

0x6080604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305f3a85281146101415780632ccdd95a14610172578063518ab2a81461019c5780636ad5b3ea146101b15780636efef04d146101c657806375c767f8146101e15780638da5cb5b146101f65780639dc4b9c91461020b578063cd5a489d14610236578063d1cc6e3f14610250578063deaa59df14610268578063f2fde38b14610289575b600954429060069060ff16600381106100ce57fe5b01541015610137576009805460ff198116600160ff928316018216179182905560029116111561012a5760405133903480156108fc02916000818181858888f19350505050158015610124573d6000803e3d6000fd5b50610132565b6101326102aa565b61013f565b61013f6102aa565b005b34801561014d57600080fd5b5061015661043a565b60408051600160a060020a039092168252519081900360200190f35b34801561017e57600080fd5b5061018a600435610449565b60408051918252519081900360200190f35b3480156101a857600080fd5b5061018a61045d565b3480156101bd57600080fd5b50610156610463565b3480156101d257600080fd5b5061013f600435602435610472565b3480156101ed57600080fd5b5061018a6104e3565b34801561020257600080fd5b506101566104e9565b34801561021757600080fd5b506102206104f8565b6040805160ff9092168252519081900360200190f35b34801561024257600080fd5b5061013f6004351515610501565b34801561025c57600080fd5b5061018a60043561057a565b34801561027457600080fd5b5061013f600160a060020a0360043516610586565b34801561029557600080fd5b5061013f600160a060020a0360043516610612565b60095460009060039060ff168181106102bf57fe5b0154341015610318576040805160e560020a62461bcd02815260206004820152601960248201527f4d696e696d756d20616d6f756e74206973203120746f6b656e00000000000000604482015290519081900360640190fd5b60095461033d9060039060ff1681811061032e57fe5b0154349063ffffffff61073716565b600254604080517f449a52f8000000000000000000000000000000000000000000000000000000008152336004820152670de0b6b3a764000093909302602484018190529051909350600160a060020a039091169163449a52f891604480830192600092919082900301818387803b1580156103b857600080fd5b505af11580156103cc573d6000803e3d6000fd5b5050600a546103e4925090508263ffffffff61074e16565b600a55600b546103fa903463ffffffff61074e16565b600b55600154604051600160a060020a03909116903480156108fc02916000818181858888f19350505050158015610436573d6000803e3d6000fd5b5050565b600254600160a060020a031681565b6006816003811061045657fe5b0154905081565b600a5481565b600154600160a060020a031681565b600054600160a060020a031633146104cf576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b80600683600381106104dd57fe5b01555050565b600b5481565b600054600160a060020a031681565b60095460ff1681565b600054600160a060020a0316331461055e576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b6001811515141561057757600054600160a060020a0316ff5b50565b60038181811061045657fe5b600054600160a060020a031633146105e3576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a0316331461066f576040805160e560020a62461bcd0281526020600482015260216024820152600080516020610765833981519152604482015260f960020a603702606482015290519081900360840190fd5b600160a060020a03811615156106cf576040805160e560020a62461bcd02815260206004820152601960248201527f56616c6964206164647265737320697320726571756972656400000000000000604482015290519081900360640190fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080828481151561074557fe5b04949350505050565b60008282018381101561075d57fe5b939250505056004f6e6c79206f776e65722063616e2063616c6c20746869732066756e6374696fa165627a7a72305820cb6c8cd8f8889a41f338bb17596b5023e9b47404f5c1b4f5455fcfb1c83318fe0029

Swarm Source

bzzr://cb6c8cd8f8889a41f338bb17596b5023e9b47404f5c1b4f5455fcfb1c83318fe

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.