Source Code
Latest 25 from a total of 66 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set One Token In... | 5268598 | 2927 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5262693 | 2928 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5256846 | 2929 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5250961 | 2930 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5245127 | 2931 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5239401 | 2932 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5233346 | 2933 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5227441 | 2934 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5221531 | 2935 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5215680 | 2936 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5209766 | 2937 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5205118 | 2938 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5197987 | 2939 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5192128 | 2940 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5186144 | 2941 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5180281 | 2942 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5174391 | 2943 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5168844 | 2944 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5162622 | 2945 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5156819 | 2946 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5150972 | 2947 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5145078 | 2948 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5127453 | 2951 days ago | IN | 0 ETH | 0.00060035 | ||||
| Set One Token In... | 5121642 | 2952 days ago | IN | 0 ETH | 0.00059895 | ||||
| Set One Token In... | 5109763 | 2954 days ago | IN | 0 ETH | 0.00060035 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FlatPricing
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*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
- No Contract Security Audit Submitted- Submit Audit Here
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"}]Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.