ETH Price: $1,981.38 (-5.10%)
Gas: 0.04 Gwei

Contract

0x2097175d0abb8258f2468E3487F8db776E29D076
 

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Some65651052018-10-22 22:57:192692 days ago1540249039IN
Education Ecosystem: Token Sale
0 ETH0.000153385
Withdraw Some65650832018-10-22 22:51:252692 days ago1540248685IN
Education Ecosystem: Token Sale
0 ETH0.000153385
Withdraw Some65650582018-10-22 22:46:072692 days ago1540248367IN
Education Ecosystem: Token Sale
0 ETH0.000153385
Withdraw Some65650142018-10-22 22:36:292692 days ago1540247789IN
Education Ecosystem: Token Sale
0 ETH0.000153385
Withdraw Some65649542018-10-22 22:20:422692 days ago1540246842IN
Education Ecosystem: Token Sale
0 ETH0.000153385
Withdraw Some65646612018-10-22 21:09:422692 days ago1540242582IN
Education Ecosystem: Token Sale
0 ETH0.000153065
Withdraw Some65646382018-10-22 21:04:332692 days ago1540242273IN
Education Ecosystem: Token Sale
0 ETH0.000151465
Accept Ownership65645752018-10-22 20:48:332692 days ago1540241313IN
Education Ecosystem: Token Sale
0 ETH0.0007116741
Transfer53709002018-04-03 3:55:322894 days ago1522727732IN
Education Ecosystem: Token Sale
0.01 ETH0.0008912541
Transfer53673732018-04-02 13:58:192895 days ago1522677499IN
Education Ecosystem: Token Sale
0.01 ETH0.0008912541
Transfer53370532018-03-28 12:33:202900 days ago1522240400IN
Education Ecosystem: Token Sale
0.003 ETH0.000130426
Change Owner53031782018-03-22 20:37:332906 days ago1521751053IN
Education Ecosystem: Token Sale
0 ETH0.00013143
Withdraw Some53031382018-03-22 20:27:472906 days ago1521750467IN
Education Ecosystem: Token Sale
0 ETH0.000092023
Transfer52738142018-03-17 22:24:202911 days ago1521325460IN
Education Ecosystem: Token Sale
0.1 ETH0.0004782322
Transfer51548612018-02-25 17:06:032931 days ago1519578363IN
Education Ecosystem: Token Sale
1.25 ETH0.000065213
Transfer51294082018-02-21 9:20:272935 days ago1519204827IN
Education Ecosystem: Token Sale
0.00001 ETH0.0004564921
Transfer50254122018-02-03 21:24:232953 days ago1517693063IN
Education Ecosystem: Token Sale
0.140404 ETH0.000021731
Transfer50253642018-02-03 21:11:282953 days ago1517692288IN
Education Ecosystem: Token Sale
0.020202 ETH0.000021731
Transfer50166512018-02-02 10:07:512954 days ago1517566071IN
Education Ecosystem: Token Sale
0.017386 ETH0.0006521430
Transfer50120322018-02-01 14:47:202955 days ago1517496440IN
Education Ecosystem: Token Sale
0.6 ETH0.0009564744
Transfer50111342018-02-01 10:55:342955 days ago1517482534IN
Education Ecosystem: Token Sale
0.8 ETH0.0002173810
Transfer50111252018-02-01 10:53:272955 days ago1517482407IN
Education Ecosystem: Token Sale
0.9 ETH0.0002173810
Transfer50111212018-02-01 10:53:062955 days ago1517482386IN
Education Ecosystem: Token Sale
0.9 ETH0.0002173810
Transfer50034642018-01-31 3:41:232956 days ago1517370083IN
Education Ecosystem: Token Sale
0.5 ETH0.0010550
Transfer49944282018-01-29 15:00:122958 days ago1517238012IN
Education Ecosystem: Token Sale
0.12 ETH0.0004220
View all transactions

Latest 8 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer65651052018-10-22 22:57:192692 days ago1540249039
Education Ecosystem: Token Sale
977 ETH
Transfer65650832018-10-22 22:51:252692 days ago1540248685
Education Ecosystem: Token Sale
2,000 ETH
Transfer65650582018-10-22 22:46:072692 days ago1540248367
Education Ecosystem: Token Sale
2,000 ETH
Transfer65650142018-10-22 22:36:292692 days ago1540247789
Education Ecosystem: Token Sale
500 ETH
Transfer65649542018-10-22 22:20:422692 days ago1540246842
Education Ecosystem: Token Sale
400 ETH
Transfer65646612018-10-22 21:09:422692 days ago1540242582
Education Ecosystem: Token Sale
2 ETH
Transfer65646382018-10-22 21:04:332692 days ago1540242273
Education Ecosystem: Token Sale
1 wei
Transfer53031382018-03-22 20:27:472906 days ago1521750467
Education Ecosystem: Token Sale
647.2 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:
Sale

Compiler Version
v0.4.14+commit.c2215d46

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-11-02
*/

// Copyright New Alchemy Limited, 2017. All rights reserved.

pragma solidity >=0.4.10;

// Just the bits of ERC20 that we need.
contract Token {
	function balanceOf(address addr) returns(uint);
	function transfer(address to, uint amount) returns(bool);
}

contract Sale {
	address public owner;    // contract owner
	address public newOwner; // new contract owner for two-way ownership handshake
	string public notice;    // arbitrary public notice text
	uint public start;       // start time of sale
	uint public end;         // end time of sale
	uint public cap;         // Ether hard cap
	bool public live;        // sale is live right now

	event StartSale();
	event EndSale();
	event EtherIn(address from, uint amount);

	function Sale() {
		owner = msg.sender;
	}

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

	function () payable {
		require(block.timestamp >= start);

		// If we've reached end-of-sale conditions, accept
		// this as the last contribution and emit the EndSale event.
		// (Technically this means we allow exactly one contribution
		// after the end of the sale.)
		// Conversely, if we haven't started the sale yet, emit
		// the StartSale event.
		if (block.timestamp > end || this.balance > cap) {
			require(live);
			live = false;
			EndSale();
		} else if (!live) {
			live = true;
			StartSale();
		}
		EtherIn(msg.sender, msg.value);
	}

	function init(uint _start, uint _end, uint _cap) onlyOwner {
		start = _start;
		end = _end;
		cap = _cap;
	}

	function softCap(uint _newend) onlyOwner {
		require(_newend >= block.timestamp && _newend >= start && _newend <= end);
		end = _newend;
	}

	// 1st half of ownership change
	function changeOwner(address next) onlyOwner {
		newOwner = next;
	}

	// 2nd half of ownership change
	function acceptOwnership() {
		require(msg.sender == newOwner);
		owner = msg.sender;
		newOwner = 0;
	}

	// put some text in the contract
	function setNotice(string note) onlyOwner {
		notice = note;
	}

	// withdraw all of the Ether
	function withdraw() onlyOwner {
		msg.sender.transfer(this.balance);
	}

	// withdraw some of the Ether
	function withdrawSome(uint value) onlyOwner {
		require(value <= this.balance);
		msg.sender.transfer(value);
	}

	// withdraw tokens to owner
	function withdrawToken(address token) onlyOwner {
		Token t = Token(token);
		require(t.transfer(msg.sender, t.balanceOf(this)));
	}

	// refund early/late tokens
	function refundToken(address token, address sender, uint amount) onlyOwner {
		Token t = Token(token);
		require(t.transfer(sender, amount));
	}
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"cap","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"note","type":"string"}],"name":"setNotice","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newend","type":"uint256"}],"name":"softCap","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"}],"name":"withdrawToken","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_start","type":"uint256"},{"name":"_end","type":"uint256"},{"name":"_cap","type":"uint256"}],"name":"init","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"sender","type":"address"},{"name":"amount","type":"uint256"}],"name":"refundToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"live","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"notice","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"next","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"withdrawSome","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"end","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[],"name":"StartSale","type":"event"},{"anonymous":false,"inputs":[],"name":"EndSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"EtherIn","type":"event"}]

6060604052341561000f57600080fd5b5b60008054600160a060020a03191633600160a060020a03161790555b5b6109f88061003c6000396000f300606060405236156100ca5763ffffffff60e060020a600035041663355274ea81146101d45780633ccfd60b146101f95780633cf572a71461020e57806379ba5097146102615780637a366d1414610276578063894760691461028e5780638cd8db8a146102af5780638da5cb5b146102cd578063932fec40146102fc578063957aa58c146103265780639c94e6c61461034d578063a6f9dae1146103d8578063ae9b051c146103f9578063be9a655514610411578063d4ee1d9014610436578063efbe1c1c14610465575b5b6003544210156100da57600080fd5b6004544211806100f5575060055430600160a060020a031631115b156101465760065460ff16151561010b57600080fd5b6006805460ff191690557f76b1dda3669703163e95691bf7f5e8f0120ebd611cfe4b483fba4de5a0b1e12e60405160405180910390a161018c565b60065460ff16151561018c576006805460ff191660011790557f03225f4cd13ea3e399c581b9799447ace26a69238cbb7a04a8ff0d0cc2c7bae560405160405180910390a15b5b7f6ede2106c9e940e0ba892174538eab7d151b8a519f73ff4d1baf16f406fc4d4f3334604051600160a060020a03909216825260208201526040908101905180910390a15b005b34156101df57600080fd5b6101e761048a565b60405190815260200160405180910390f35b341561020457600080fd5b6101d2610490565b005b341561021957600080fd5b6101d260046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104ec95505050505050565b005b341561026c57600080fd5b6101d2610520565b005b341561028157600080fd5b6101d2600435610572565b005b341561029957600080fd5b6101d2600160a060020a03600435166105c2565b005b34156102ba57600080fd5b6101d26004356024356044356106d1565b005b34156102d857600080fd5b6102e0610702565b604051600160a060020a03909116815260200160405180910390f35b341561030757600080fd5b6101d2600160a060020a0360043581169060243516604435610711565b005b341561033157600080fd5b6103396107ba565b604051901515815260200160405180910390f35b341561035857600080fd5b6103606107c3565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561039d5780820151818401525b602001610384565b50505050905090810190601f1680156103ca5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103e357600080fd5b6101d2600160a060020a0360043516610861565b005b341561040457600080fd5b6101d26004356108a9565b005b341561041c57600080fd5b6101e7610911565b60405190815260200160405180910390f35b341561044157600080fd5b6102e0610917565b604051600160a060020a03909116815260200160405180910390f35b341561047057600080fd5b6101e7610926565b60405190815260200160405180910390f35b60055481565b60005433600160a060020a039081169116146104ab57600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f1935050505015156104e857600080fd5b5b5b565b60005433600160a060020a0390811691161461050757600080fd5b600281805161051a92916020019061092c565b505b5b50565b60015433600160a060020a0390811691161461053b57600080fd5b60008054600160a060020a03331673ffffffffffffffffffffffffffffffffffffffff19918216179091556001805490911690555b565b60005433600160a060020a0390811691161461058d57600080fd5b42811015801561059f57506003548110155b80156105ad57506004548111155b15156105b857600080fd5b60048190555b5b50565b6000805433600160a060020a039081169116146105de57600080fd5b5080600160a060020a03811663a9059cbb33826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561063e57600080fd5b6102c65a03f1151561064f57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156106a557600080fd5b6102c65a03f115156106b657600080fd5b50505060405180519050151561051a57600080fd5b5b5b5050565b60005433600160a060020a039081169116146106ec57600080fd5b6003839055600482905560058190555b5b505050565b600054600160a060020a031681565b6000805433600160a060020a0390811691161461072d57600080fd5b5082600160a060020a03811663a9059cbb848460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561078c57600080fd5b6102c65a03f1151561079d57600080fd5b5050506040518051905015156107b257600080fd5b5b5b50505050565b60065460ff1681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108595780601f1061082e57610100808354040283529160200191610859565b820191906000526020600020905b81548152906001019060200180831161083c57829003601f168201915b505050505081565b60005433600160a060020a0390811691161461087c57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a039081169116146108c457600080fd5b600160a060020a033016318111156108db57600080fd5b600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561051c57600080fd5b5b5b50565b60035481565b600154600160a060020a031681565b60045481565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061096d57805160ff191683800117855561099a565b8280016001018555821561099a579182015b8281111561099a57825182559160200191906001019061097f565b5b506109a79291506109ab565b5090565b6109c991905b808211156109a757600081556001016109b1565b5090565b905600a165627a7a723058201a146ddab7dee1de1b0a81ab421f58ea3aae83dd10593d5fa018dcf31646fe3a0029

Deployed Bytecode

0x606060405236156100ca5763ffffffff60e060020a600035041663355274ea81146101d45780633ccfd60b146101f95780633cf572a71461020e57806379ba5097146102615780637a366d1414610276578063894760691461028e5780638cd8db8a146102af5780638da5cb5b146102cd578063932fec40146102fc578063957aa58c146103265780639c94e6c61461034d578063a6f9dae1146103d8578063ae9b051c146103f9578063be9a655514610411578063d4ee1d9014610436578063efbe1c1c14610465575b5b6003544210156100da57600080fd5b6004544211806100f5575060055430600160a060020a031631115b156101465760065460ff16151561010b57600080fd5b6006805460ff191690557f76b1dda3669703163e95691bf7f5e8f0120ebd611cfe4b483fba4de5a0b1e12e60405160405180910390a161018c565b60065460ff16151561018c576006805460ff191660011790557f03225f4cd13ea3e399c581b9799447ace26a69238cbb7a04a8ff0d0cc2c7bae560405160405180910390a15b5b7f6ede2106c9e940e0ba892174538eab7d151b8a519f73ff4d1baf16f406fc4d4f3334604051600160a060020a03909216825260208201526040908101905180910390a15b005b34156101df57600080fd5b6101e761048a565b60405190815260200160405180910390f35b341561020457600080fd5b6101d2610490565b005b341561021957600080fd5b6101d260046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104ec95505050505050565b005b341561026c57600080fd5b6101d2610520565b005b341561028157600080fd5b6101d2600435610572565b005b341561029957600080fd5b6101d2600160a060020a03600435166105c2565b005b34156102ba57600080fd5b6101d26004356024356044356106d1565b005b34156102d857600080fd5b6102e0610702565b604051600160a060020a03909116815260200160405180910390f35b341561030757600080fd5b6101d2600160a060020a0360043581169060243516604435610711565b005b341561033157600080fd5b6103396107ba565b604051901515815260200160405180910390f35b341561035857600080fd5b6103606107c3565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561039d5780820151818401525b602001610384565b50505050905090810190601f1680156103ca5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103e357600080fd5b6101d2600160a060020a0360043516610861565b005b341561040457600080fd5b6101d26004356108a9565b005b341561041c57600080fd5b6101e7610911565b60405190815260200160405180910390f35b341561044157600080fd5b6102e0610917565b604051600160a060020a03909116815260200160405180910390f35b341561047057600080fd5b6101e7610926565b60405190815260200160405180910390f35b60055481565b60005433600160a060020a039081169116146104ab57600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f1935050505015156104e857600080fd5b5b5b565b60005433600160a060020a0390811691161461050757600080fd5b600281805161051a92916020019061092c565b505b5b50565b60015433600160a060020a0390811691161461053b57600080fd5b60008054600160a060020a03331673ffffffffffffffffffffffffffffffffffffffff19918216179091556001805490911690555b565b60005433600160a060020a0390811691161461058d57600080fd5b42811015801561059f57506003548110155b80156105ad57506004548111155b15156105b857600080fd5b60048190555b5b50565b6000805433600160a060020a039081169116146105de57600080fd5b5080600160a060020a03811663a9059cbb33826370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561063e57600080fd5b6102c65a03f1151561064f57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156106a557600080fd5b6102c65a03f115156106b657600080fd5b50505060405180519050151561051a57600080fd5b5b5b5050565b60005433600160a060020a039081169116146106ec57600080fd5b6003839055600482905560058190555b5b505050565b600054600160a060020a031681565b6000805433600160a060020a0390811691161461072d57600080fd5b5082600160a060020a03811663a9059cbb848460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561078c57600080fd5b6102c65a03f1151561079d57600080fd5b5050506040518051905015156107b257600080fd5b5b5b50505050565b60065460ff1681565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108595780601f1061082e57610100808354040283529160200191610859565b820191906000526020600020905b81548152906001019060200180831161083c57829003601f168201915b505050505081565b60005433600160a060020a0390811691161461087c57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a039081169116146108c457600080fd5b600160a060020a033016318111156108db57600080fd5b600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561051c57600080fd5b5b5b50565b60035481565b600154600160a060020a031681565b60045481565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061096d57805160ff191683800117855561099a565b8280016001018555821561099a579182015b8281111561099a57825182559160200191906001019061097f565b5b506109a79291506109ab565b5090565b6109c991905b808211156109a757600081556001016109b1565b5090565b905600a165627a7a723058201a146ddab7dee1de1b0a81ab421f58ea3aae83dd10593d5fa018dcf31646fe3a0029

Swarm Source

bzzr://1a146ddab7dee1de1b0a81ab421f58ea3aae83dd10593d5fa018dcf31646fe3a

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.