ETH Price: $2,450.46 (+2.06%)

Contract

0x08fc9307E928076062460A0c4Db0d2461591ED71
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer44436852017-10-28 5:29:192518 days ago1509168559IN
0x08fc9307...61591ED71
0.05 ETH0.0005682424
Transfer44149782017-10-23 14:44:292523 days ago1508769869IN
0x08fc9307...61591ED71
2.5 ETH0.0005682424
Transfer44149382017-10-23 14:37:172523 days ago1508769437IN
0x08fc9307...61591ED71
1 ETH0.0004972121
Finalise44103822017-10-22 20:59:492524 days ago1508705989IN
0x08fc9307...61591ED71
0 ETH0.0003554610
Allocate Locked44103102017-10-22 20:45:152524 days ago1508705115IN
0x08fc9307...61591ED71
0 ETH0.000465510
Allocate Locked44103102017-10-22 20:45:152524 days ago1508705115IN
0x08fc9307...61591ED71
0 ETH0.000615510
Allocate Locked44103102017-10-22 20:45:152524 days ago1508705115IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Locked44103102017-10-22 20:45:152524 days ago1508705115IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Locked44103102017-10-22 20:45:152524 days ago1508705115IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Locked44103082017-10-22 20:44:162524 days ago1508705056IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Locked44103082017-10-22 20:44:162524 days ago1508705056IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Locked44103072017-10-22 20:44:062524 days ago1508705046IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Locked44103052017-10-22 20:43:452524 days ago1508705025IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Locked44103052017-10-22 20:43:452524 days ago1508705025IN
0x08fc9307...61591ED71
0 ETH0.0006161410
Allocate Liquid44103042017-10-22 20:43:322524 days ago1508705012IN
0x08fc9307...61591ED71
0 ETH0.0004589910
Allocate Liquid44103012017-10-22 20:42:152524 days ago1508704935IN
0x08fc9307...61591ED71
0 ETH0.0006096310
Initialise Alloc...44102962017-10-22 20:41:222524 days ago1508704882IN
0x08fc9307...61591ED71
0 ETH0.0008331210
Transfer44098872017-10-22 19:06:252524 days ago1508699185IN
0x08fc9307...61591ED71
0.19 ETH0.0004972121
Transfer44098602017-10-22 18:59:182524 days ago1508698758IN
0x08fc9307...61591ED71
0.19 ETH0.0004972121
Transfer44097192017-10-22 18:26:472524 days ago1508696807IN
0x08fc9307...61591ED71
0.4 ETH0.0004972121
Transfer44097092017-10-22 18:23:042524 days ago1508696584IN
0x08fc9307...61591ED71
0.4 ETH0.0004972121
Transfer44092752017-10-22 16:34:242524 days ago1508690064IN
0x08fc9307...61591ED71
3.5 ETH0.0004972121
Transfer44092122017-10-22 16:20:582524 days ago1508689258IN
0x08fc9307...61591ED71
0.1 ETH0.0005682424
Transfer44091282017-10-22 16:02:112524 days ago1508688131IN
0x08fc9307...61591ED71
1.22 ETH0.0005682424
Transfer44091242017-10-22 16:01:372524 days ago1508688097IN
0x08fc9307...61591ED71
2 ETH0.0004972121
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
44091162017-10-22 15:59:302524 days ago1508687970
0x08fc9307...61591ED71
0.33 ETH
44091152017-10-22 15:59:092524 days ago1508687949
0x08fc9307...61591ED71
0.02 ETH
44091032017-10-22 15:56:002524 days ago1508687760
0x08fc9307...61591ED71
5 ETH
44090992017-10-22 15:54:242524 days ago1508687664
0x08fc9307...61591ED71
3 ETH
44090972017-10-22 15:53:512524 days ago1508687631
0x08fc9307...61591ED71
6 ETH
44090892017-10-22 15:51:322524 days ago1508687492
0x08fc9307...61591ED71
10 ETH
44090832017-10-22 15:50:102524 days ago1508687410
0x08fc9307...61591ED71
3.01 ETH
44090832017-10-22 15:50:102524 days ago1508687410
0x08fc9307...61591ED71
1.98 ETH
44090802017-10-22 15:49:262524 days ago1508687366
0x08fc9307...61591ED71
1 ETH
44090742017-10-22 15:48:022524 days ago1508687282
0x08fc9307...61591ED71
0.19485515 ETH
44090592017-10-22 15:45:482524 days ago1508687148
0x08fc9307...61591ED71
0.99 ETH
44090572017-10-22 15:45:202524 days ago1508687120
0x08fc9307...61591ED71
0.69 ETH
44090572017-10-22 15:45:202524 days ago1508687120
0x08fc9307...61591ED71
0.25 ETH
44090572017-10-22 15:45:202524 days ago1508687120
0x08fc9307...61591ED71
10 ETH
44090502017-10-22 15:42:592524 days ago1508686979
0x08fc9307...61591ED71
10 ETH
44090262017-10-22 15:37:382524 days ago1508686658
0x08fc9307...61591ED71
3 ETH
44090072017-10-22 15:33:062524 days ago1508686386
0x08fc9307...61591ED71
0.01 ETH
44090022017-10-22 15:31:352524 days ago1508686295
0x08fc9307...61591ED71
0.74819562 ETH
44089722017-10-22 15:25:002524 days ago1508685900
0x08fc9307...61591ED71
3 ETH
44089542017-10-22 15:19:292524 days ago1508685569
0x08fc9307...61591ED71
1 ETH
44089432017-10-22 15:17:592524 days ago1508685479
0x08fc9307...61591ED71
0.021 ETH
44089332017-10-22 15:16:282524 days ago1508685388
0x08fc9307...61591ED71
6 ETH
44089252017-10-22 15:13:582524 days ago1508685238
0x08fc9307...61591ED71
0.99 ETH
44089182017-10-22 15:12:002524 days ago1508685120
0x08fc9307...61591ED71
4.5 ETH
44089162017-10-22 15:11:202524 days ago1508685080
0x08fc9307...61591ED71
20 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AmbrosusSale

Compiler Version
v0.4.15+commit.bbb8e64f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2017-09-22
*/

//! By Parity Technologies, 2017.
//! Released under the Apache Licence 2.

pragma solidity ^0.4.15;

// ECR20 standard token interface
contract Token {
	event Transfer(address indexed from, address indexed to, uint256 value);
	event Approval(address indexed owner, address indexed spender, uint256 value);

	function balanceOf(address _owner) constant returns (uint256 balance);
	function transfer(address _to, uint256 _value) returns (bool success);
	function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
	function approve(address _spender, uint256 _value) returns (bool success);
	function allowance(address _owner, address _spender) constant returns (uint256 remaining);
}

// Owner-specific contract interface
contract Owned {
	event NewOwner(address indexed old, address indexed current);

	modifier only_owner {
		require (msg.sender == owner);
		_;
	}

	address public owner = msg.sender;

	function setOwner(address _new) only_owner {
		NewOwner(owner, _new);
		owner = _new;
	}
}

/// Stripped down certifier interface.
contract Certifier {
	function certified(address _who) constant returns (bool);
}

// BasicCoin, ECR20 tokens that all belong to the owner for sending around
contract AmberToken is Token, Owned {
	struct Account {
		// Balance is always less than or equal totalSupply since totalSupply is increased straight away of when releasing locked tokens.
		uint balance;
		mapping (address => uint) allowanceOf;

		// TokensPerPhase is always less than or equal to totalSupply since anything added to it is UNLOCK_PHASES times lower than added to totalSupply.
		uint tokensPerPhase;
		uint nextPhase;
	}

	event Minted(address indexed who, uint value);
	event MintedLocked(address indexed who, uint value);

	function AmberToken() {}

	// Mint a certain number of tokens.
	// _value has to be bounded not to overflow.
	function mint(address _who, uint _value)
		only_owner
		public
	{
		accounts[_who].balance += _value;
		totalSupply += _value;
		Minted(_who, _value);
	}

	// Mint a certain number of tokens that are locked up.
	// _value has to be bounded not to overflow.
	function mintLocked(address _who, uint _value)
		only_owner
		public
	{
		accounts[_who].tokensPerPhase += _value / UNLOCK_PHASES;
		totalSupply += _value;
		MintedLocked(_who, _value);
	}

	/// Finalise any minting operations. Resets the owner and causes normal tokens
	/// to be liquid. Also begins the countdown for locked-up tokens.
	function finalise()
		only_owner
		public
	{
		locked = false;
		owner = 0;
		phaseStart = now;
	}

	/// Return the current unlock-phase. Won't work until after the contract
	/// has `finalise()` called.
	function currentPhase()
		public
		constant
		returns (uint)
	{
		require (phaseStart > 0);
		uint p = (now - phaseStart) / PHASE_DURATION;
		return p > UNLOCK_PHASES ? UNLOCK_PHASES : p;
	}

	/// Unlock any now freeable tokens that are locked up for account `_who`.
	function unlockTokens(address _who)
		public
	{
		uint phase = currentPhase();
		uint tokens = accounts[_who].tokensPerPhase;
		uint nextPhase = accounts[_who].nextPhase;
		if (tokens > 0 && phase > nextPhase) {
			accounts[_who].balance += tokens * (phase - nextPhase);
			accounts[_who].nextPhase = phase;
		}
	}

	// Transfer tokens between accounts.
	function transfer(address _to, uint256 _value)
		when_owns(msg.sender, _value)
		when_liquid
		returns (bool)
	{
		Transfer(msg.sender, _to, _value);
		accounts[msg.sender].balance -= _value;
		accounts[_to].balance += _value;

		return true;
	}

	// Transfer via allowance.
	function transferFrom(address _from, address _to, uint256 _value)
		when_owns(_from, _value)
		when_has_allowance(_from, msg.sender, _value)
		when_liquid
		returns (bool)
	{
		Transfer(_from, _to, _value);
		accounts[_from].allowanceOf[msg.sender] -= _value;
		accounts[_from].balance -= _value;
		accounts[_to].balance += _value;

		return true;
	}

	// Approve allowances
	function approve(address _spender, uint256 _value)
		when_liquid
		returns (bool)
	{
		// Mitigate the race condition described here:
		// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
		require (_value == 0 || accounts[msg.sender].allowanceOf[_spender] == 0);
		Approval(msg.sender, _spender, _value);
		accounts[msg.sender].allowanceOf[_spender] = _value;

		return true;
	}

	// Get the balance of a specific address.
	function balanceOf(address _who) constant returns (uint256) {
		return accounts[_who].balance;
	}

	// Available allowance
	function allowance(address _owner, address _spender)
		constant
		returns (uint256)
	{
		return accounts[_owner].allowanceOf[_spender];
	}

	// The balance should be available
	modifier when_owns(address _owner, uint _amount) {
		require (accounts[_owner].balance >= _amount);
		_;
	}

	// An allowance should be available
	modifier when_has_allowance(address _owner, address _spender, uint _amount) {
		require (accounts[_owner].allowanceOf[_spender] >= _amount);
		_;
	}

	// Tokens must not be locked.
	modifier when_liquid {
		require (!locked);
		_;
	}

	/// Usual token descriptors.
	string constant public name = "Amber Token";
	uint8 constant public decimals = 18;
	string constant public symbol = "AMB";

	// Are the tokens non-transferrable?
	bool public locked = true;

	// Phase information for slow-release tokens.
	uint public phaseStart = 0;
	uint public constant PHASE_DURATION = 180 days;
	uint public constant UNLOCK_PHASES = 4;

	// available token supply
	uint public totalSupply;

	// storage and mapping of all balances & allowances
	mapping (address => Account) accounts;
}

/// Will accept Ether "contributions" and record each both as a log and in a
/// queryable record.
contract AmbrosusSale {
	/// Constructor.
	function AmbrosusSale() {
		tokens = new AmberToken();
	}

	// Can only be called by the administrator.
	modifier only_admin { require (msg.sender == ADMINISTRATOR); _; }
	// Can only be called by the prepurchaser.
	modifier only_prepurchaser { require (msg.sender == PREPURCHASER); _; }

	// The transaction params are valid for buying in.
	modifier is_valid_buyin { require (tx.gasprice <= MAX_BUYIN_GAS_PRICE && msg.value >= MIN_BUYIN_VALUE); _; }
	// Requires the hard cap to be respected given the desired amount for `buyin`.
	modifier is_under_cap_with(uint buyin) { require (buyin + saleRevenue <= MAX_REVENUE); _; }
	// Requires sender to be certified.
	modifier only_certified(address who) { require (CERTIFIER.certified(who)); _; }

	/*
		Sale life cycle:
		1. Not yet started.
		2. Started, further purchases possible.
			a. Normal operation (next step can be 2b or 3)
			b. Paused (next step can be 2a or 3)
		3. Complete (equivalent to Allocation Lifecycle 2 & 3).
	*/

	// Can only be called by prior to the period (1).
	modifier only_before_period { require (now < BEGIN_TIME); _; }
	// Can only be called during the period when not paused (2a).
	modifier only_during_period { require (now >= BEGIN_TIME && now < END_TIME && !isPaused); _; }
	// Can only be called during the period when paused (2b)
	modifier only_during_paused_period { require (now >= BEGIN_TIME && now < END_TIME && isPaused); _; }
	// Can only be called after the period (3).
	modifier only_after_sale { require (now >= END_TIME || saleRevenue >= MAX_REVENUE); _; }

	/*
		Allocation life cycle:
		1. Uninitialised (sale not yet started/ended, equivalent to Sale Lifecycle 1 & 2).
		2. Initialised, not yet completed (further allocations possible).
		3. Completed (no further allocations possible).
	*/

	// Only when allocations have not yet been initialised (1).
	modifier when_allocations_uninitialised { require (!allocationsInitialised); _; }
	// Only when sufficient allocations remain for making this liquid allocation (2).
	modifier when_allocatable_liquid(uint amount) { require (liquidAllocatable >= amount); _; }
	// Only when sufficient allocations remain for making this locked allocation (2).
	modifier when_allocatable_locked(uint amount) { require (lockedAllocatable >= amount); _; }
	// Only when no further allocations are possible (3).
	modifier when_allocations_complete { require (allocationsInitialised && liquidAllocatable == 0 && lockedAllocatable == 0); _; }

	/// Note a pre-ICO sale.
	event Prepurchased(address indexed recipient, uint etherPaid, uint amberSold);
	/// Some contribution `amount` received from `recipient`.
	event Purchased(address indexed recipient, uint amount);
	/// Some contribution `amount` received from `recipient`.
	event SpecialPurchased(address indexed recipient, uint etherPaid, uint amberSold);
	/// Period paused abnormally.
	event Paused();
	/// Period restarted after abnormal halt.
	event Unpaused();
	/// Some contribution `amount` received from `recipient`.
	event Allocated(address indexed recipient, uint amount, bool liquid);

	/// Note a prepurchase that has already happened.
	/// Up to owner to ensure that values do not overflow.
	///
	/// Preconditions: !sale_started
	/// Writes {Tokens, Sale}
	function notePrepurchase(address _who, uint _etherPaid, uint _amberSold)
		only_prepurchaser
		only_before_period
		public
	{
		// Admin ensures bounded value.
		tokens.mint(_who, _amberSold);
		saleRevenue += _etherPaid;
		totalSold += _amberSold;
		Prepurchased(_who, _etherPaid, _amberSold);
	}

	/// Make a purchase from a privileged account. No KYC is required and a
	/// preferential buyin rate may be given.
	///
	/// Preconditions: !paused, sale_ongoing
	/// Postconditions: !paused, ?!sale_ongoing
	/// Writes {Tokens, Sale}
	function specialPurchase()
		only_before_period
		is_under_cap_with(msg.value)
		payable
		public
	{
		uint256 bought = buyinReturn(msg.sender) * msg.value;
		require (bought > 0);   // be kind and don't punish the idiots.

		// Bounded value, see STANDARD_BUYIN.
		tokens.mint(msg.sender, bought);
		TREASURY.transfer(msg.value);
		saleRevenue += msg.value;
		totalSold += bought;
		SpecialPurchased(msg.sender, msg.value, bought);
   }

	/// Let sender make a purchase to their account.
	///
	/// Preconditions: !paused, sale_ongoing
	/// Postconditions: ?!sale_ongoing
	/// Writes {Tokens, Sale}
	function ()
		only_certified(msg.sender)
		payable
		public
	{
		processPurchase(msg.sender);
	}

	/// Let sender make a standard purchase; AMB goes into another account.
	///
	/// Preconditions: !paused, sale_ongoing
	/// Postconditions: ?!sale_ongoing
	/// Writes {Tokens, Sale}
	function purchaseTo(address _recipient)
		only_certified(msg.sender)
		payable
		public
	{
		processPurchase(_recipient);
	}

	/// Receive a contribution from `_recipient`.
	///
	/// Preconditions: !paused, sale_ongoing
	/// Postconditions: ?!sale_ongoing
	/// Writes {Tokens, Sale}
	function processPurchase(address _recipient)
		only_during_period
		is_valid_buyin
		is_under_cap_with(msg.value)
		private
	{
		// Bounded value, see STANDARD_BUYIN.
		tokens.mint(_recipient, msg.value * STANDARD_BUYIN);
		TREASURY.transfer(msg.value);
		saleRevenue += msg.value;
		totalSold += msg.value * STANDARD_BUYIN;
		Purchased(_recipient, msg.value);
	}

	/// Determine purchase price for a given address.
	function buyinReturn(address _who)
		constant
		public
		returns (uint)
	{
		// Chinese exchanges.
		if (
			_who == CHINESE_EXCHANGE_1 || _who == CHINESE_EXCHANGE_2 ||
			_who == CHINESE_EXCHANGE_3 || _who == CHINESE_EXCHANGE_4
		)
			return CHINESE_EXCHANGE_BUYIN;

		// BTCSuisse tier 1
		if (_who == BTC_SUISSE_TIER_1)
			return STANDARD_BUYIN;
		// BTCSuisse tier 2
		if (_who == BTC_SUISSE_TIER_2)
			return TIER_2_BUYIN;
		// BTCSuisse tier 3
		if (_who == BTC_SUISSE_TIER_3)
			return TIER_3_BUYIN;
		// BTCSuisse tier 4
		if (_who == BTC_SUISSE_TIER_4)
			return TIER_4_BUYIN;

		return 0;
	}

	/// Halt the contribution period. Any attempt at contributing will fail.
	///
	/// Preconditions: !paused, sale_ongoing
	/// Postconditions: paused
	/// Writes {Paused}
	function pause()
		only_admin
		only_during_period
		public
	{
		isPaused = true;
		Paused();
	}

	/// Unhalt the contribution period.
	///
	/// Preconditions: paused
	/// Postconditions: !paused
	/// Writes {Paused}
	function unpause()
		only_admin
		only_during_paused_period
		public
	{
		isPaused = false;
		Unpaused();
	}

	/// Called once by anybody after the sale ends.
	/// Initialises the specific values (i.e. absolute token quantities) of the
	/// allowed liquid/locked allocations.
	///
	/// Preconditions: !allocations_initialised
	/// Postconditions: allocations_initialised, !allocations_complete
	/// Writes {Allocations}
	function initialiseAllocations()
		public
		only_after_sale
		when_allocations_uninitialised
	{
		allocationsInitialised = true;
		liquidAllocatable = LIQUID_ALLOCATION_PPM * totalSold / SALES_ALLOCATION_PPM;
		lockedAllocatable = LOCKED_ALLOCATION_PPM * totalSold / SALES_ALLOCATION_PPM;
	}

	/// Preallocate a liquid portion of tokens.
	/// Admin may call this to allocate a share of the liquid tokens.
	/// Up to admin to ensure that value does not overflow.
	///
	/// Preconditions: allocations_initialised
	/// Postconditions: ?allocations_complete
	/// Writes {Allocations, Tokens}
	function allocateLiquid(address _who, uint _value)
		only_admin
		when_allocatable_liquid(_value)
		public
	{
		// Admin ensures bounded value.
		tokens.mint(_who, _value);
		liquidAllocatable -= _value;
		Allocated(_who, _value, true);
	}

	/// Preallocate a locked-up portion of tokens.
	/// Admin may call this to allocate a share of the locked tokens.
	/// Up to admin to ensure that value does not overflow and _value is divisible by UNLOCK_PHASES.
	///
	/// Preconditions: allocations_initialised
	/// Postconditions: ?allocations_complete
	/// Writes {Allocations, Tokens}
	function allocateLocked(address _who, uint _value)
		only_admin
		when_allocatable_locked(_value)
		public
	{
		// Admin ensures bounded value.
		tokens.mintLocked(_who, _value);
		lockedAllocatable -= _value;
		Allocated(_who, _value, false);
	}

	/// End of the sale and token allocation; retire this contract.
	/// Once called, no more tokens can be minted, basic tokens are now liquid.
	/// Anyone can call, but only once this contract can properly be retired.
	///
	/// Preconditions: allocations_complete
	/// Postconditions: liquid_tokens_transferable, this_is_dead
	/// Writes {Tokens}
	function finalise()
		when_allocations_complete
		public
	{
		tokens.finalise();
	}

	//////
	// STATE
	//////

	// How much is enough?
	uint public constant MIN_BUYIN_VALUE = 10000000000000000;
	// Max gas price for buyins.
	uint public constant MAX_BUYIN_GAS_PRICE = 25000000000;
	// The exposed hard cap.
	uint public constant MAX_REVENUE = 425203 ether;

	// The total share of tokens, expressed in PPM, allocated to pre-ICO and ICO.
	uint constant public SALES_ALLOCATION_PPM = 400000;
	// The total share of tokens, expressed in PPM, the admin may later allocate, as locked tokens.
	uint constant public LOCKED_ALLOCATION_PPM = 337000;
	// The total share of tokens, expressed in PPM, the admin may later allocate, as liquid tokens.
	uint constant public LIQUID_ALLOCATION_PPM = 263000;

	/// The certifier resource. TODO: set address
	Certifier public constant CERTIFIER = Certifier(0x7b1Ab331546F021A40bd4D09fFb802261CaACcc9);
	// Who can halt/unhalt/kill?
	address public constant ADMINISTRATOR = 0x11bF17B890a80080A8F9C1673D2951296a6F3D91;
	// Who can prepurchase?
	address public constant PREPURCHASER = 0x00C269e9D02188E39C9922386De631c6AED5b4d4;
	// Who gets the stash? Should not release funds during minting process.
	address public constant TREASURY = 0xB47aD434C6e401473F1d3442001Ac69cda1dcFDd;
	// When does the contribution period begin?
	uint public constant BEGIN_TIME = 1506096000;
	// How long does the sale last for?
	uint public constant DURATION = 30 days;
	// When does the period end?
	uint public constant END_TIME = BEGIN_TIME + DURATION;

	// The privileged buyin accounts.
	address public constant BTC_SUISSE_TIER_1 = 0x53B3D4f98fcb6f0920096fe1cCCa0E4327Da7a1D;
	address public constant BTC_SUISSE_TIER_2 = 0x642fDd12b1Dd27b9E19758F0AefC072dae7Ab996;
	address public constant BTC_SUISSE_TIER_3 = 0x64175446A1e3459c3E9D650ec26420BA90060d28;
	address public constant BTC_SUISSE_TIER_4 = 0xB17C2f9a057a2640309e41358a22Cf00f8B51626;
	address public constant CHINESE_EXCHANGE_1 = 0x36f548fAB37Fcd39cA8725B8fA214fcd784FE0A3;
	address public constant CHINESE_EXCHANGE_2 = 0x877Da872D223AB3D073Ab6f9B4bb27540E387C5F;
	address public constant CHINESE_EXCHANGE_3 = 0xCcC088ec38A4dbc15Ba269A176883F6ba302eD8d;
	// TODO: set address
	address public constant CHINESE_EXCHANGE_4 = 0;

	// Tokens per eth for the various buy-in rates.
	// 1e8 ETH in existence, means at most 1.5e11 issued.
	uint public constant STANDARD_BUYIN = 1000;
	uint public constant TIER_2_BUYIN = 1111;
	uint public constant TIER_3_BUYIN = 1250;
	uint public constant TIER_4_BUYIN = 1429;
	uint public constant CHINESE_EXCHANGE_BUYIN = 1087;

	//////
	// State Subset: Allocations
	//
	// Invariants:
	// !allocationsInitialised ||
	//   (liquidAllocatable + tokens.liquidAllocated) / LIQUID_ALLOCATION_PPM == totalSold / SALES_ALLOCATION_PPM &&
	//   (lockedAllocatable + tokens.lockedAllocated) / LOCKED_ALLOCATION_PPM == totalSold / SALES_ALLOCATION_PPM
	//
	// when_allocations_complete || (now < END_TIME && saleRevenue < MAX_REVENUE)

	// Have post-sale token allocations been initialised?
	bool public allocationsInitialised = false;
	// How many liquid tokens may yet be allocated?
	uint public liquidAllocatable;
	// How many locked tokens may yet be allocated?
	uint public lockedAllocatable;

	//////
	// State Subset: Sale
	//
	// Invariants:
	// saleRevenue <= MAX_REVENUE

	// Total amount raised in both presale and sale, in Wei.
	// Assuming TREASURY locks funds, so can not exceed total amount of Ether 1e8.
	uint public saleRevenue = 0;
	// Total amount minted in both presale and sale, in AMB * 10^-18.
	// Assuming the TREASURY locks funds, msg.value * STANDARD_BUYIN will be less than 1.5e11.
	uint public totalSold = 0;

	//////
	// State Subset: Tokens

	// The contract which gets called whenever anything is received.
	AmberToken public tokens;

	//////
	// State Subset: Pause

	// Are contributions abnormally paused?
	bool public isPaused = false;
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"TIER_3_BUYIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CHINESE_EXCHANGE_BUYIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MIN_BUYIN_VALUE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"TREASURY","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CHINESE_EXCHANGE_3","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_who","type":"address"},{"name":"_value","type":"uint256"}],"name":"allocateLiquid","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"BTC_SUISSE_TIER_4","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"END_TIME","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"TIER_2_BUYIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_who","type":"address"},{"name":"_etherPaid","type":"uint256"},{"name":"_amberSold","type":"uint256"}],"name":"notePrepurchase","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ADMINISTRATOR","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_who","type":"address"}],"name":"buyinReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MAX_REVENUE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"LIQUID_ALLOCATION_PPM","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"SALES_ALLOCATION_PPM","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"LOCKED_ALLOCATION_PPM","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CHINESE_EXCHANGE_2","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"allocationsInitialised","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"BTC_SUISSE_TIER_1","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokens","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CHINESE_EXCHANGE_1","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"finalise","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"STANDARD_BUYIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"isPaused","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"BTC_SUISSE_TIER_2","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"saleRevenue","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"PREPURCHASER","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"lockedAllocatable","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CERTIFIER","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"liquidAllocatable","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_who","type":"address"},{"name":"_value","type":"uint256"}],"name":"allocateLocked","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"BEGIN_TIME","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_recipient","type":"address"}],"name":"purchaseTo","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"TIER_4_BUYIN","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CHINESE_EXCHANGE_4","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"specialPurchase","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"MAX_BUYIN_GAS_PRICE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"initialiseAllocations","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"BTC_SUISSE_TIER_3","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"recipient","type":"address"},{"indexed":false,"name":"etherPaid","type":"uint256"},{"indexed":false,"name":"amberSold","type":"uint256"}],"name":"Prepurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"recipient","type":"address"},{"indexed":false,"name":"etherPaid","type":"uint256"},{"indexed":false,"name":"amberSold","type":"uint256"}],"name":"SpecialPurchased","type":"event"},{"anonymous":false,"inputs":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"liquid","type":"bool"}],"name":"Allocated","type":"event"}]

60606040526000805460ff1916815560038190556004556005805460a060020a60ff0219169055341561003157600080fd5b5b61003a610076565b604051809103906000f080151561005057600080fd5b60058054600160a060020a031916600160a060020a03929092169190911790555b610086565b604051610bd68061157183390190565b6114dc806100956000396000f300606060405236156101f35763ffffffff60e060020a6000350416630e2dc949811461028b5780631999cf37146102b05780631be05289146102d5578063294fa425146102fa5780632d2c55651461031f5780632f53cc961461034e57806332e7f81f1461037d578063368e5d4e146103a157806337ba682d146103d05780633f4ba83a146103f55780634177afa61461040a578063572f37b41461042f57806359fe72791461045657806361e49344146104855780636ab9aa21146104b65780636bf0a3bf146104db5780636d1e21941461050057806372b5e050146105255780637dc0d4511461054a57806383739eda146105795780638456cb59146105a05780639106d7ba146105b5578063949430f0146105da5780639d63848a146106095780639fe39d8514610638578063a439926314610667578063ae4ac63e1461067c578063b187bd26146106a1578063b3dd23e8146106c8578063b5f16939146106f7578063b6eeb6bb1461071c578063b839e0d11461074b578063b86bc74f14610770578063ba255cd11461079f578063c1614981146107c4578063c75363b6146107e8578063d15776561461080d578063dda81c1514610823578063df1673e914610848578063e2f6070614610877578063e963f3e814610881578063f48be22b146108a6578063f993d955146108bb575b5b33737b1ab331546f021a40bd4d09ffb802261caaccc963cc1d4c028260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561025757600080fd5b6102c65a03f1151561026857600080fd5b50505060405180519050151561027d57600080fd5b610286336108ea565b5b5b50005b341561029657600080fd5b61029e610a70565b60405190815260200160405180910390f35b34156102bb57600080fd5b61029e610a76565b60405190815260200160405180910390f35b34156102e057600080fd5b61029e610a7c565b60405190815260200160405180910390f35b341561030557600080fd5b61029e610a83565b60405190815260200160405180910390f35b341561032a57600080fd5b610332610a8e565b604051600160a060020a03909116815260200160405180910390f35b341561035957600080fd5b610332610aa6565b604051600160a060020a03909116815260200160405180910390f35b341561038857600080fd5b61039f600160a060020a0360043516602435610abe565b005b34156103ac57600080fd5b610332610bbc565b604051600160a060020a03909116815260200160405180910390f35b34156103db57600080fd5b61029e610bd4565b60405190815260200160405180910390f35b341561040057600080fd5b61039f610bdc565b005b341561041557600080fd5b61029e610c8b565b60405190815260200160405180910390f35b341561043a57600080fd5b61039f600160a060020a0360043516602435604435610c91565b005b341561046157600080fd5b610332610d8f565b604051600160a060020a03909116815260200160405180910390f35b341561049057600080fd5b61029e600160a060020a0360043516610da7565b60405190815260200160405180910390f35b34156104c157600080fd5b61029e610ef8565b60405190815260200160405180910390f35b34156104e657600080fd5b61029e610f06565b60405190815260200160405180910390f35b341561050b57600080fd5b61029e610f0d565b60405190815260200160405180910390f35b341561053057600080fd5b61029e610f14565b60405190815260200160405180910390f35b341561055557600080fd5b610332610f1b565b604051600160a060020a03909116815260200160405180910390f35b341561058457600080fd5b61058c610f33565b604051901515815260200160405180910390f35b34156105ab57600080fd5b61039f610f3c565b005b34156105c057600080fd5b61029e610ff2565b60405190815260200160405180910390f35b34156105e557600080fd5b610332610ff8565b604051600160a060020a03909116815260200160405180910390f35b341561061457600080fd5b610332611010565b604051600160a060020a03909116815260200160405180910390f35b341561064357600080fd5b61033261101f565b604051600160a060020a03909116815260200160405180910390f35b341561067257600080fd5b61039f611037565b005b341561068757600080fd5b61029e6110b7565b60405190815260200160405180910390f35b34156106ac57600080fd5b61058c6110bd565b604051901515815260200160405180910390f35b34156106d357600080fd5b6103326110cd565b604051600160a060020a03909116815260200160405180910390f35b341561070257600080fd5b61029e6110e5565b60405190815260200160405180910390f35b341561072757600080fd5b6103326110eb565b604051600160a060020a03909116815260200160405180910390f35b341561075657600080fd5b61029e611102565b60405190815260200160405180910390f35b341561077b57600080fd5b610332611108565b604051600160a060020a03909116815260200160405180910390f35b34156107aa57600080fd5b61029e611120565b60405190815260200160405180910390f35b34156107cf57600080fd5b61039f600160a060020a0360043516602435611126565b005b34156107f357600080fd5b61029e611223565b60405190815260200160405180910390f35b61039f600160a060020a036004351661122b565b005b341561082e57600080fd5b61029e6112c3565b60405190815260200160405180910390f35b341561085357600080fd5b6103326112c9565b604051600160a060020a03909116815260200160405180910390f35b61039f6112ce565b005b341561088c57600080fd5b61029e61141f565b60405190815260200160405180910390f35b34156108b157600080fd5b61039f611428565b005b34156108c657600080fd5b610332611498565b604051600160a060020a03909116815260200160405180910390f35b6359c53380421015801561090157506359ecc08042105b8015610917575060055460a060020a900460ff16155b151561092257600080fd5b6405d21dba003a1115801561093e5750662386f26fc100003410155b151561094957600080fd5b34695a0a4d025df453ec000060035482011115151561096757600080fd5b600554600160a060020a03166340c10f1983346103e80260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156109c157600080fd5b6102c65a03f115156109d257600080fd5b5073b47ad434c6e401473f1d3442001ac69cda1dcfdd9150503480156108fc0290604051600060405180830381858888f193505050501515610a1357600080fd5b6003805434908101909155600480546103e88302019055600160a060020a038316907fa512fb2532ca8587f236380171326ebb69670e86a2ba0c4412a3fcca4c3ada9b9060405190815260200160405180910390a25b5b505b5b50565b6104e281565b61043f81565b62278d0081565b662386f26fc1000081565b73b47ad434c6e401473f1d3442001ac69cda1dcfdd81565b73ccc088ec38a4dbc15ba269a176883f6ba302ed8d81565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d9114610ae757600080fd5b808060015410151515610af957600080fd5b600554600160a060020a03166340c10f19848460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610b4f57600080fd5b6102c65a03f11515610b6057600080fd5b5050600180548490038155600160a060020a03851691507f3f6ddb7506487dd99221443e2e5c06c3c0fc784eb266ec9e72dd519102c461d8908490604051918252151560208201526040908101905180910390a25b5b505b5050565b73b17c2f9a057a2640309e41358a22cf00f8b5162681565b6359ecc08081565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d9114610c0557600080fd5b6359c533804210158015610c1c57506359ecc08042105b8015610c31575060055460a060020a900460ff165b1515610c3c57600080fd5b6005805474ff0000000000000000000000000000000000000000191690557fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693360405160405180910390a15b5b5b565b61045781565b33600160a060020a031672c269e9d02188e39c9922386de631c6aed5b4d414610cb957600080fd5b6359c533804210610cc957600080fd5b600554600160a060020a03166340c10f19848360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610d1f57600080fd5b6102c65a03f11515610d3057600080fd5b50506003805484019055506004805482019055600160a060020a0383167f9547b44d2ea475e7d41d024ad83f8bf25d3b9d6a6840b626ae6e3b264fb8fe5e838360405191825260208201526040908101905180910390a25b5b5b505050565b7311bf17b890a80080a8f9c1673d2951296a6f3d9181565b6000600160a060020a0382167336f548fab37fcd39ca8725b8fa214fcd784fe0a31480610df05750600160a060020a03821673877da872d223ab3d073ab6f9b4bb27540e387c5f145b80610e175750600160a060020a03821673ccc088ec38a4dbc15ba269a176883f6ba302ed8d145b80610e295750600160a060020a038216155b15610e37575061043f610ef3565b600160a060020a0382167353b3d4f98fcb6f0920096fe1ccca0e4327da7a1d1415610e6557506103e8610ef3565b600160a060020a03821673642fdd12b1dd27b9e19758f0aefc072dae7ab9961415610e935750610457610ef3565b600160a060020a0382167364175446a1e3459c3e9d650ec26420ba90060d281415610ec157506104e2610ef3565b600160a060020a03821673b17c2f9a057a2640309e41358a22cf00f8b516261415610eef5750610595610ef3565b5060005b919050565b695a0a4d025df453ec000081565b6204035881565b62061a8081565b6205246881565b73877da872d223ab3d073ab6f9b4bb27540e387c5f81565b60005460ff1681565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d9114610f6557600080fd5b6359c533804210158015610f7c57506359ecc08042105b8015610f92575060055460a060020a900460ff16155b1515610f9d57600080fd5b6005805474ff0000000000000000000000000000000000000000191660a060020a1790557f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75260405160405180910390a15b5b5b565b60045481565b7353b3d4f98fcb6f0920096fe1ccca0e4327da7a1d81565b600554600160a060020a031681565b7336f548fab37fcd39ca8725b8fa214fcd784fe0a381565b60005460ff1680156110495750600154155b80156110555750600254155b151561106057600080fd5b600554600160a060020a031663a43992636040518163ffffffff1660e060020a028152600401600060405180830381600087803b151561109f57600080fd5b6102c65a03f11515610bb557600080fd5b5050505b5b565b6103e881565b60055460a060020a900460ff1681565b73642fdd12b1dd27b9e19758f0aefc072dae7ab99681565b60035481565b72c269e9d02188e39c9922386de631c6aed5b4d481565b60025481565b737b1ab331546f021a40bd4d09ffb802261caaccc981565b60015481565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d911461114f57600080fd5b80806002541015151561116157600080fd5b600554600160a060020a0316635143e246848460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156111b757600080fd5b6102c65a03f115156111c857600080fd5b505060028054849003905550600160a060020a0383167f3f6ddb7506487dd99221443e2e5c06c3c0fc784eb266ec9e72dd519102c461d8836000604051918252151560208201526040908101905180910390a25b5b505b5050565b6359c5338081565b33737b1ab331546f021a40bd4d09ffb802261caaccc963cc1d4c028260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561128e57600080fd5b6102c65a03f1151561129f57600080fd5b5050506040518051905015156112b457600080fd5b610a69826108ea565b5b5b5050565b61059581565b600081565b60006359c5338042106112e057600080fd5b34695a0a4d025df453ec00006003548201111515156112fe57600080fd5b3461130833610da7565b0291506000821161131857600080fd5b600554600160a060020a03166340c10f19338460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561136e57600080fd5b6102c65a03f1151561137f57600080fd5b5073b47ad434c6e401473f1d3442001ac69cda1dcfdd9150503480156108fc0290604051600060405180830381858888f1935050505015156113c057600080fd5b60038054349081019091556004805484019055600160a060020a033316907f83955bb22926704dd95ca18aa707bda6cb1a42dadff1bce6da1afc262a08cbdb908460405191825260208201526040908101905180910390a25b5b505b50565b6405d21dba0081565b6359ecc080421015806114475750695a0a4d025df453ec000060035410155b151561145257600080fd5b60005460ff161561146257600080fd5b6000805460ff1916600117905560045462061a809062040358025b0460015560045462061a809062052468025b046002555b5b5b565b7364175446a1e3459c3e9d650ec26420ba90060d28815600a165627a7a723058203573031b6d0324ff8435de78a2854afca357361773c74d3da868afa32b9eaf7c002960606040526000805474010000000000000000000000000000000000000000600160a060020a031990911633600160a060020a03161760a060020a60ff021916178155600155341561005057600080fd5b5b5b5b610b74806100626000396000f3006060604052361561010f5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663055ad42e811461011457806306fdde0314610139578063095ea7b3146101c457806313af4035146101fa57806318160ddd1461021b57806323b872dd14610240578063313ce5671461027c5780633d160e0b146102a557806340c10f19146102ca57806349abee50146102ee5780634ae2b849146103135780635143e2461461033857806370a082311461035c5780638da5cb5b1461038d57806395d89b41146103bc578063a439926314610447578063a9059cbb1461045c578063cb67f94814610492578063cf309012146104b3578063dd62ed3e146104da575b600080fd5b341561011f57600080fd5b610127610511565b60405190815260200160405180910390f35b341561014457600080fd5b61014c61054b565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101895780820151818401525b602001610170565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101cf57600080fd5b6101e6600160a060020a0360043516602435610582565b604051901515815260200160405180910390f35b341561020557600080fd5b610219600160a060020a0360043516610657565b005b341561022657600080fd5b6101276106db565b60405190815260200160405180910390f35b341561024b57600080fd5b6101e6600160a060020a03600435811690602435166044356106e1565b604051901515815260200160405180910390f35b341561028757600080fd5b61028f610804565b60405160ff909116815260200160405180910390f35b34156102b057600080fd5b610127610809565b60405190815260200160405180910390f35b34156102d557600080fd5b610219600160a060020a036004351660243561080e565b005b34156102f957600080fd5b61012761088a565b60405190815260200160405180910390f35b341561031e57600080fd5b610127610890565b60405190815260200160405180910390f35b341561034357600080fd5b610219600160a060020a0360043516602435610897565b005b341561036757600080fd5b610127600160a060020a0360043516610921565b60405190815260200160405180910390f35b341561039857600080fd5b6103a0610940565b604051600160a060020a03909116815260200160405180910390f35b34156103c757600080fd5b61014c61094f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101895780820151818401525b602001610170565b50505050905090810190601f1680156101b65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561045257600080fd5b610219610986565b005b341561046757600080fd5b6101e6600160a060020a03600435166024356109c7565b604051901515815260200160405180910390f35b341561049d57600080fd5b610219600160a060020a0360043516610a8d565b005b34156104be57600080fd5b6101e6610b07565b604051901515815260200160405180910390f35b34156104e557600080fd5b610127600160a060020a0360043581169060243516610b17565b60405190815260200160405180910390f35b600080600060015411151561052557600080fd5b60015462ed4e009042035b049050600481116105415780610544565b60045b91505b5090565b60408051908101604052600b81527f416d62657220546f6b656e000000000000000000000000000000000000000000602082015281565b6000805460a060020a900460ff161561059a57600080fd5b8115806105ce5750600160a060020a0333811660009081526003602090815260408083209387168352600190930190522054155b15156105d957600080fd5b82600160a060020a031633600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405190815260200160405180910390a350600160a060020a0333811660009081526003602090815260408083209386168352600193840190915290208290555b5b92915050565b60005433600160a060020a0390811691161461067257600080fd5b600054600160a060020a0380831691167f70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b236460405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60025481565b600160a060020a038316600090815260036020526040812054849083908190101561070b57600080fd5b600160a060020a03808716600090815260036020908152604080832033948516845260010190915290205487919086908190101561074857600080fd5b60005460a060020a900460ff161561075f57600080fd5b87600160a060020a031689600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8960405190815260200160405180910390a3600160a060020a03808a16600090815260036020818152604080842033861685526001808201845282862080548f900390559390925281548c9003909155928b16825291902080548901905595505b5b5b5050505b50509392505050565b601281565b600481565b60005433600160a060020a0390811691161461082957600080fd5b600160a060020a0382166000818152600360205260409081902080548401905560028054840190557f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe9083905190815260200160405180910390a25b5b5050565b60015481565b62ed4e0081565b60005433600160a060020a039081169116146108b257600080fd5b6004815b600160a060020a038416600081815260036020526040908190206002908101805495909404909401909255825484019092557f32e7179af8a9fdc2e9e300a8374683c008356bd3588861123b30800d00c1c0939083905190815260200160405180910390a25b5b5050565b600160a060020a0381166000908152600360205260409020545b919050565b600054600160a060020a031681565b60408051908101604052600381527f414d420000000000000000000000000000000000000000000000000000000000602082015281565b60005433600160a060020a039081169116146109a157600080fd5b6000805474ffffffffffffffffffffffffffffffffffffffffff19169055426001555b5b565b33600160a060020a0381166000908152600360205260408120549091908390819010156109f357600080fd5b60005460a060020a900460ff1615610a0a57600080fd5b84600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8660405190815260200160405180910390a3600160a060020a0333811660009081526003602052604080822080548890039055918716815220805485019055600192505b5b5b505092915050565b6000806000610a9a610511565b600160a060020a038516600090815260036020819052604082206002810154910154929550935090915082118015610ad157508083115b15610b0057600160a060020a038416600090815260036020819052604090912080548386038502018155018390555b5b50505050565b60005460a060020a900460ff1681565b600160a060020a03808316600090815260036020908152604080832093851683526001909301905220545b929150505600a165627a7a72305820204c178072e3f346742b9c8b512704514d37f965afae9a5ddc951542a6230e490029

Deployed Bytecode

0x606060405236156101f35763ffffffff60e060020a6000350416630e2dc949811461028b5780631999cf37146102b05780631be05289146102d5578063294fa425146102fa5780632d2c55651461031f5780632f53cc961461034e57806332e7f81f1461037d578063368e5d4e146103a157806337ba682d146103d05780633f4ba83a146103f55780634177afa61461040a578063572f37b41461042f57806359fe72791461045657806361e49344146104855780636ab9aa21146104b65780636bf0a3bf146104db5780636d1e21941461050057806372b5e050146105255780637dc0d4511461054a57806383739eda146105795780638456cb59146105a05780639106d7ba146105b5578063949430f0146105da5780639d63848a146106095780639fe39d8514610638578063a439926314610667578063ae4ac63e1461067c578063b187bd26146106a1578063b3dd23e8146106c8578063b5f16939146106f7578063b6eeb6bb1461071c578063b839e0d11461074b578063b86bc74f14610770578063ba255cd11461079f578063c1614981146107c4578063c75363b6146107e8578063d15776561461080d578063dda81c1514610823578063df1673e914610848578063e2f6070614610877578063e963f3e814610881578063f48be22b146108a6578063f993d955146108bb575b5b33737b1ab331546f021a40bd4d09ffb802261caaccc963cc1d4c028260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561025757600080fd5b6102c65a03f1151561026857600080fd5b50505060405180519050151561027d57600080fd5b610286336108ea565b5b5b50005b341561029657600080fd5b61029e610a70565b60405190815260200160405180910390f35b34156102bb57600080fd5b61029e610a76565b60405190815260200160405180910390f35b34156102e057600080fd5b61029e610a7c565b60405190815260200160405180910390f35b341561030557600080fd5b61029e610a83565b60405190815260200160405180910390f35b341561032a57600080fd5b610332610a8e565b604051600160a060020a03909116815260200160405180910390f35b341561035957600080fd5b610332610aa6565b604051600160a060020a03909116815260200160405180910390f35b341561038857600080fd5b61039f600160a060020a0360043516602435610abe565b005b34156103ac57600080fd5b610332610bbc565b604051600160a060020a03909116815260200160405180910390f35b34156103db57600080fd5b61029e610bd4565b60405190815260200160405180910390f35b341561040057600080fd5b61039f610bdc565b005b341561041557600080fd5b61029e610c8b565b60405190815260200160405180910390f35b341561043a57600080fd5b61039f600160a060020a0360043516602435604435610c91565b005b341561046157600080fd5b610332610d8f565b604051600160a060020a03909116815260200160405180910390f35b341561049057600080fd5b61029e600160a060020a0360043516610da7565b60405190815260200160405180910390f35b34156104c157600080fd5b61029e610ef8565b60405190815260200160405180910390f35b34156104e657600080fd5b61029e610f06565b60405190815260200160405180910390f35b341561050b57600080fd5b61029e610f0d565b60405190815260200160405180910390f35b341561053057600080fd5b61029e610f14565b60405190815260200160405180910390f35b341561055557600080fd5b610332610f1b565b604051600160a060020a03909116815260200160405180910390f35b341561058457600080fd5b61058c610f33565b604051901515815260200160405180910390f35b34156105ab57600080fd5b61039f610f3c565b005b34156105c057600080fd5b61029e610ff2565b60405190815260200160405180910390f35b34156105e557600080fd5b610332610ff8565b604051600160a060020a03909116815260200160405180910390f35b341561061457600080fd5b610332611010565b604051600160a060020a03909116815260200160405180910390f35b341561064357600080fd5b61033261101f565b604051600160a060020a03909116815260200160405180910390f35b341561067257600080fd5b61039f611037565b005b341561068757600080fd5b61029e6110b7565b60405190815260200160405180910390f35b34156106ac57600080fd5b61058c6110bd565b604051901515815260200160405180910390f35b34156106d357600080fd5b6103326110cd565b604051600160a060020a03909116815260200160405180910390f35b341561070257600080fd5b61029e6110e5565b60405190815260200160405180910390f35b341561072757600080fd5b6103326110eb565b604051600160a060020a03909116815260200160405180910390f35b341561075657600080fd5b61029e611102565b60405190815260200160405180910390f35b341561077b57600080fd5b610332611108565b604051600160a060020a03909116815260200160405180910390f35b34156107aa57600080fd5b61029e611120565b60405190815260200160405180910390f35b34156107cf57600080fd5b61039f600160a060020a0360043516602435611126565b005b34156107f357600080fd5b61029e611223565b60405190815260200160405180910390f35b61039f600160a060020a036004351661122b565b005b341561082e57600080fd5b61029e6112c3565b60405190815260200160405180910390f35b341561085357600080fd5b6103326112c9565b604051600160a060020a03909116815260200160405180910390f35b61039f6112ce565b005b341561088c57600080fd5b61029e61141f565b60405190815260200160405180910390f35b34156108b157600080fd5b61039f611428565b005b34156108c657600080fd5b610332611498565b604051600160a060020a03909116815260200160405180910390f35b6359c53380421015801561090157506359ecc08042105b8015610917575060055460a060020a900460ff16155b151561092257600080fd5b6405d21dba003a1115801561093e5750662386f26fc100003410155b151561094957600080fd5b34695a0a4d025df453ec000060035482011115151561096757600080fd5b600554600160a060020a03166340c10f1983346103e80260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156109c157600080fd5b6102c65a03f115156109d257600080fd5b5073b47ad434c6e401473f1d3442001ac69cda1dcfdd9150503480156108fc0290604051600060405180830381858888f193505050501515610a1357600080fd5b6003805434908101909155600480546103e88302019055600160a060020a038316907fa512fb2532ca8587f236380171326ebb69670e86a2ba0c4412a3fcca4c3ada9b9060405190815260200160405180910390a25b5b505b5b50565b6104e281565b61043f81565b62278d0081565b662386f26fc1000081565b73b47ad434c6e401473f1d3442001ac69cda1dcfdd81565b73ccc088ec38a4dbc15ba269a176883f6ba302ed8d81565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d9114610ae757600080fd5b808060015410151515610af957600080fd5b600554600160a060020a03166340c10f19848460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610b4f57600080fd5b6102c65a03f11515610b6057600080fd5b5050600180548490038155600160a060020a03851691507f3f6ddb7506487dd99221443e2e5c06c3c0fc784eb266ec9e72dd519102c461d8908490604051918252151560208201526040908101905180910390a25b5b505b5050565b73b17c2f9a057a2640309e41358a22cf00f8b5162681565b6359ecc08081565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d9114610c0557600080fd5b6359c533804210158015610c1c57506359ecc08042105b8015610c31575060055460a060020a900460ff165b1515610c3c57600080fd5b6005805474ff0000000000000000000000000000000000000000191690557fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693360405160405180910390a15b5b5b565b61045781565b33600160a060020a031672c269e9d02188e39c9922386de631c6aed5b4d414610cb957600080fd5b6359c533804210610cc957600080fd5b600554600160a060020a03166340c10f19848360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610d1f57600080fd5b6102c65a03f11515610d3057600080fd5b50506003805484019055506004805482019055600160a060020a0383167f9547b44d2ea475e7d41d024ad83f8bf25d3b9d6a6840b626ae6e3b264fb8fe5e838360405191825260208201526040908101905180910390a25b5b5b505050565b7311bf17b890a80080a8f9c1673d2951296a6f3d9181565b6000600160a060020a0382167336f548fab37fcd39ca8725b8fa214fcd784fe0a31480610df05750600160a060020a03821673877da872d223ab3d073ab6f9b4bb27540e387c5f145b80610e175750600160a060020a03821673ccc088ec38a4dbc15ba269a176883f6ba302ed8d145b80610e295750600160a060020a038216155b15610e37575061043f610ef3565b600160a060020a0382167353b3d4f98fcb6f0920096fe1ccca0e4327da7a1d1415610e6557506103e8610ef3565b600160a060020a03821673642fdd12b1dd27b9e19758f0aefc072dae7ab9961415610e935750610457610ef3565b600160a060020a0382167364175446a1e3459c3e9d650ec26420ba90060d281415610ec157506104e2610ef3565b600160a060020a03821673b17c2f9a057a2640309e41358a22cf00f8b516261415610eef5750610595610ef3565b5060005b919050565b695a0a4d025df453ec000081565b6204035881565b62061a8081565b6205246881565b73877da872d223ab3d073ab6f9b4bb27540e387c5f81565b60005460ff1681565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d9114610f6557600080fd5b6359c533804210158015610f7c57506359ecc08042105b8015610f92575060055460a060020a900460ff16155b1515610f9d57600080fd5b6005805474ff0000000000000000000000000000000000000000191660a060020a1790557f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75260405160405180910390a15b5b5b565b60045481565b7353b3d4f98fcb6f0920096fe1ccca0e4327da7a1d81565b600554600160a060020a031681565b7336f548fab37fcd39ca8725b8fa214fcd784fe0a381565b60005460ff1680156110495750600154155b80156110555750600254155b151561106057600080fd5b600554600160a060020a031663a43992636040518163ffffffff1660e060020a028152600401600060405180830381600087803b151561109f57600080fd5b6102c65a03f11515610bb557600080fd5b5050505b5b565b6103e881565b60055460a060020a900460ff1681565b73642fdd12b1dd27b9e19758f0aefc072dae7ab99681565b60035481565b72c269e9d02188e39c9922386de631c6aed5b4d481565b60025481565b737b1ab331546f021a40bd4d09ffb802261caaccc981565b60015481565b33600160a060020a03167311bf17b890a80080a8f9c1673d2951296a6f3d911461114f57600080fd5b80806002541015151561116157600080fd5b600554600160a060020a0316635143e246848460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156111b757600080fd5b6102c65a03f115156111c857600080fd5b505060028054849003905550600160a060020a0383167f3f6ddb7506487dd99221443e2e5c06c3c0fc784eb266ec9e72dd519102c461d8836000604051918252151560208201526040908101905180910390a25b5b505b5050565b6359c5338081565b33737b1ab331546f021a40bd4d09ffb802261caaccc963cc1d4c028260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561128e57600080fd5b6102c65a03f1151561129f57600080fd5b5050506040518051905015156112b457600080fd5b610a69826108ea565b5b5b5050565b61059581565b600081565b60006359c5338042106112e057600080fd5b34695a0a4d025df453ec00006003548201111515156112fe57600080fd5b3461130833610da7565b0291506000821161131857600080fd5b600554600160a060020a03166340c10f19338460405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561136e57600080fd5b6102c65a03f1151561137f57600080fd5b5073b47ad434c6e401473f1d3442001ac69cda1dcfdd9150503480156108fc0290604051600060405180830381858888f1935050505015156113c057600080fd5b60038054349081019091556004805484019055600160a060020a033316907f83955bb22926704dd95ca18aa707bda6cb1a42dadff1bce6da1afc262a08cbdb908460405191825260208201526040908101905180910390a25b5b505b50565b6405d21dba0081565b6359ecc080421015806114475750695a0a4d025df453ec000060035410155b151561145257600080fd5b60005460ff161561146257600080fd5b6000805460ff1916600117905560045462061a809062040358025b0460015560045462061a809062052468025b046002555b5b5b565b7364175446a1e3459c3e9d650ec26420ba90060d28815600a165627a7a723058203573031b6d0324ff8435de78a2854afca357361773c74d3da868afa32b9eaf7c0029

Swarm Source

bzzr://204c178072e3f346742b9c8b512704514d37f965afae9a5ddc951542a6230e49

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  ]
[ 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.