ETH Price: $2,071.62 (-3.74%)

Contract

0xbE7dEcF6Ec9227263fA29dA0b2AA41E3d5A95eec
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set One Token In...52685982018-03-17 1:01:472927 days ago1521248507IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52626932018-03-16 1:01:322928 days ago1521162092IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52568462018-03-15 1:06:162929 days ago1521075976IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52509612018-03-14 1:02:362930 days ago1520989356IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52451272018-03-13 1:07:152931 days ago1520903235IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52394012018-03-12 1:31:392932 days ago1520818299IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52333462018-03-11 1:06:312933 days ago1520730391IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52274412018-03-10 1:01:382934 days ago1520643698IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52215312018-03-09 1:01:232935 days ago1520557283IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52156802018-03-08 1:03:002936 days ago1520470980IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52097662018-03-07 1:02:222937 days ago1520384542IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...52051182018-03-06 6:04:062938 days ago1520316246IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51979872018-03-05 1:03:412939 days ago1520211821IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51921282018-03-04 1:06:422940 days ago1520125602IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51861442018-03-03 1:01:042941 days ago1520038864IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51802812018-03-02 1:01:322942 days ago1519952492IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51743912018-03-01 1:01:072943 days ago1519866067IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51688442018-02-28 2:29:032944 days ago1519784943IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51626222018-02-27 1:01:152945 days ago1519693275IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51568192018-02-26 1:01:092946 days ago1519606869IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51509722018-02-25 1:01:062947 days ago1519520466IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51450782018-02-24 1:01:322948 days ago1519434092IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51274532018-02-21 1:02:362951 days ago1519174956IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
Set One Token In...51216422018-02-20 1:01:022952 days ago1519088462IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0005989522
Set One Token In...51097632018-02-18 1:01:022954 days ago1518915662IN
0xbE7dEcF6...3d5A95eec
0 ETH0.0006003522
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
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:
FlatPricing

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
No with 200 runs

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

/**
 * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
 *
 * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
 */

pragma solidity ^0.4.15;



/**
 * @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 Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


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


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() public {
    owner = msg.sender;
  }


  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }


  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}


/**
 * Interface for defining crowdsale pricing.
 */
contract PricingStrategy is Ownable {

  /** Interface declaration. */
  function isPricingStrategy() public constant returns (bool) {
    return true;
  }

  /** Self check if all references are correctly set.
   *
   * Checks that pricing strategy matches crowdsale parameters.
   */
  function isSane(address crowdsale) public constant returns (bool) {
    return true;
  }

  /**
   * @dev Pricing tells if this is a presale purchase or not.
     @param purchaser Address of the purchaser
     @return False by default, true if a presale purchaser
   */
  function isPresalePurchase(address purchaser) public constant returns (bool) {
    return false;
  }

  /**
   * When somebody tries to buy tokens for X eth, calculate how many tokens they get.
   *
   *
   * @param value - What is the value of the transaction send in as wei
   * @param tokensSold - how much tokens have been sold this far
   * @param weiRaised - how much money has been raised this far in the main token sale - this number excludes presale
   * @param msgSender - who is the investor of this transaction
   * @param decimals - how many decimal units the token has
   * @return Amount of tokens the investor receives
   */
  function calculatePrice(uint value, uint weiRaised, uint tokensSold, address msgSender, uint decimals) public constant returns (uint tokenAmount);
}

/**
 * Fixed crowdsale pricing - everybody gets the same price.
 */
contract FlatPricing is PricingStrategy {

  using SafeMath for uint;

  /* How many weis one token costs */
  uint public oneTokenInWei;

  function FlatPricing(uint _oneTokenInWei) {
    require(_oneTokenInWei > 0);
    oneTokenInWei = _oneTokenInWei;
  }

  function setOneTokenInWei(uint _oneTokenInWei) onlyOwner {
    require(_oneTokenInWei > 0);
    oneTokenInWei = _oneTokenInWei;
  }

  /**
   * Calculate the current price for buy in amount.
   *
   */
  function calculatePrice(uint value, uint weiRaised, uint tokensSold, address msgSender, uint decimals) public constant returns (uint) {
    uint multiplier = 10 ** decimals;
    return value.mul(multiplier).div(oneTokenInWei);
  }

}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"isPricingStrategy","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_oneTokenInWei","type":"uint256"}],"name":"setOneTokenInWei","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"value","type":"uint256"},{"name":"weiRaised","type":"uint256"},{"name":"tokensSold","type":"uint256"},{"name":"msgSender","type":"address"},{"name":"decimals","type":"uint256"}],"name":"calculatePrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"oneTokenInWei","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":"crowdsale","type":"address"}],"name":"isSane","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"purchaser","type":"address"}],"name":"isPresalePurchase","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_oneTokenInWei","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6060604052341561000f57600080fd5b60405160208061060e83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008111151561007a57600080fd5b806001819055505061057d806100916000396000f30060606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806304bbc2551461009357806313823365146100c057806318a4155e146100e357806384e3ac94146101545780638da5cb5b1461017d5780638e768288146101d2578063f14ae17d14610223578063f2fde38b14610274575b600080fd5b341561009e57600080fd5b6100a66102ad565b604051808215151515815260200191505060405180910390f35b34156100cb57600080fd5b6100e160048080359060200190919050506102b6565b005b34156100ee57600080fd5b61013e600480803590602001909190803590602001909190803590602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061032a565b6040518082815260200191505060405180910390f35b341561015f57600080fd5b610167610366565b6040518082815260200191505060405180910390f35b341561018857600080fd5b61019061036c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101dd57600080fd5b610209600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610391565b604051808215151515815260200191505060405180910390f35b341561022e57600080fd5b61025a600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061039c565b604051808215151515815260200191505060405180910390f35b341561027f57600080fd5b6102ab600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506103a6565b005b60006001905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561031157600080fd5b60008111151561032057600080fd5b8060018190555050565b60008082600a0a905061035a60015461034c838a6104fb90919063ffffffff16565b61053690919063ffffffff16565b91505095945050505050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019050919050565b6000809050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561040157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561043d57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806000841415610510576000915061052f565b828402905082848281151561052157fe5b0414151561052b57fe5b8091505b5092915050565b600080828481151561054457fe5b04905080915050929150505600a165627a7a72305820b0e44502fefbf38d9d042fbe39a58d7cba4b9bfa2b169a9f0a582de2233e681000290000000000000000000000000000000000000000000000000001a50ff6f39a13

Deployed Bytecode

0x60606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806304bbc2551461009357806313823365146100c057806318a4155e146100e357806384e3ac94146101545780638da5cb5b1461017d5780638e768288146101d2578063f14ae17d14610223578063f2fde38b14610274575b600080fd5b341561009e57600080fd5b6100a66102ad565b604051808215151515815260200191505060405180910390f35b34156100cb57600080fd5b6100e160048080359060200190919050506102b6565b005b34156100ee57600080fd5b61013e600480803590602001909190803590602001909190803590602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061032a565b6040518082815260200191505060405180910390f35b341561015f57600080fd5b610167610366565b6040518082815260200191505060405180910390f35b341561018857600080fd5b61019061036c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101dd57600080fd5b610209600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610391565b604051808215151515815260200191505060405180910390f35b341561022e57600080fd5b61025a600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061039c565b604051808215151515815260200191505060405180910390f35b341561027f57600080fd5b6102ab600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506103a6565b005b60006001905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561031157600080fd5b60008111151561032057600080fd5b8060018190555050565b60008082600a0a905061035a60015461034c838a6104fb90919063ffffffff16565b61053690919063ffffffff16565b91505095945050505050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019050919050565b6000809050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561040157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561043d57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000806000841415610510576000915061052f565b828402905082848281151561052157fe5b0414151561052b57fe5b8091505b5092915050565b600080828481151561054457fe5b04905080915050929150505600a165627a7a72305820b0e44502fefbf38d9d042fbe39a58d7cba4b9bfa2b169a9f0a582de2233e68100029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000001a50ff6f39a13

-----Decoded View---------------
Arg [0] : _oneTokenInWei (uint256): 462962962962963

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000001a50ff6f39a13


Swarm Source

bzzr://b0e44502fefbf38d9d042fbe39a58d7cba4b9bfa2b169a9f0a582de2233e6810

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.