Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 24 from a total of 24 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Change Owner | 4227144 | 2721 days ago | IN | 0 ETH | 0.00154596 | ||||
Buy Tokens | 4223593 | 2722 days ago | IN | 0 ETH | 0.023014 | ||||
Buy Tokens | 4223592 | 2722 days ago | IN | 0 ETH | 0.948583 | ||||
Change Owner | 4223519 | 2722 days ago | IN | 0 ETH | 0.00068863 | ||||
Transfer | 4223501 | 2722 days ago | IN | 10 ETH | 0.00104918 | ||||
Set ICO | 4223495 | 2722 days ago | IN | 0 ETH | 0.00104916 | ||||
Transfer | 4221258 | 2723 days ago | IN | 10 ETH | 0.011 | ||||
Transfer | 4221242 | 2723 days ago | IN | 10 ETH | 0.003 | ||||
Transfer | 4221233 | 2723 days ago | IN | 10 ETH | 0.000315 | ||||
Transfer | 4220886 | 2723 days ago | IN | 1 ETH | 0.0175 | ||||
Transfer | 4220085 | 2723 days ago | IN | 173 ETH | 0.00187565 | ||||
Transfer | 4219993 | 2723 days ago | IN | 229 ETH | 0.00058766 | ||||
Transfer | 4219191 | 2723 days ago | IN | 30 ETH | 0.00187565 | ||||
Transfer | 4217188 | 2724 days ago | IN | 100 ETH | 0.00061564 | ||||
Transfer | 4217179 | 2724 days ago | IN | 200 ETH | 0.00187565 | ||||
Transfer | 4217154 | 2724 days ago | IN | 20 ETH | 0.00187565 | ||||
Transfer | 4217142 | 2724 days ago | IN | 55 ETH | 0.00187565 | ||||
Transfer | 4216999 | 2724 days ago | IN | 50 ETH | 0.00357268 | ||||
Transfer | 4216980 | 2724 days ago | IN | 50 ETH | 0.00267951 | ||||
Transfer | 4216954 | 2724 days ago | IN | 32.98 ETH | 0.00187565 | ||||
Transfer | 4216947 | 2724 days ago | IN | 300 ETH | 0.00187565 | ||||
Transfer | 4216929 | 2724 days ago | IN | 1,033 ETH | 0.00187565 | ||||
Transfer | 4215759 | 2724 days ago | IN | 1,350 ETH | 0.00219065 | ||||
Transfer | 4215718 | 2724 days ago | IN | 1,350 ETH | 0.00042 |
Latest 11 internal transactions
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
4223592 | 2722 days ago | 173 ETH | ||||
4223592 | 2722 days ago | 30 ETH | ||||
4223592 | 2722 days ago | 200 ETH | ||||
4223592 | 2722 days ago | 20 ETH | ||||
4223592 | 2722 days ago | 55 ETH | ||||
4223592 | 2722 days ago | 50 ETH | ||||
4223592 | 2722 days ago | 50 ETH | ||||
4223592 | 2722 days ago | 32.98 ETH | ||||
4223592 | 2722 days ago | 300 ETH | ||||
4223592 | 2722 days ago | 1,262 ETH | ||||
4223592 | 2722 days ago | 1,450 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xe45F4E9C...2782682E8 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Reservation2
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-08-28 */ /** * This reservation contract accepts investments, which will be sent to the ICO contract as soon as it starts buy calling buyTokens(). * Investors may withdraw their funds anytime if they change their mind as long as the tokens have not yet been purchased. * Author: Julia Altenried * Internal audit: Alex Bazhanau, Andrej Ruckij * Audit: Blockchain & Smart Contract Security Group **/ pragma solidity ^0.4.15; contract ICO { function invest(address receiver) payable {} } contract SafeMath { function safeAdd(uint a, uint b) internal returns(uint) { uint c = a + b; assert(c >= a && c >= b); return c; } function safeMul(uint a, uint b) internal returns(uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } } contract owned { address public owner; modifier onlyOwner { require(msg.sender == owner); _; } function owned() { owner = msg.sender; } function changeOwner(address newOwner) onlyOwner { owner = newOwner; } } contract mortal is owned { function close() onlyOwner { require(address(this).balance == 0); selfdestruct(owner); } } contract Reservation2 is mortal, SafeMath { ICO public ico; address[] public investors; mapping(address => uint) public balanceOf; mapping(address => bool) invested; uint public weiCap; /** constructs an investment contract for an ICO contract **/ function Reservation2(address _icoAddr, uint _etherCap) { ico = ICO(_icoAddr); weiCap = safeMul(_etherCap, 1 ether); } /** make an investment **/ function() payable { require(msg.value > 0); require(weiCap == 0 || this.balance <= weiCap); if (!invested[msg.sender]) { investors.push(msg.sender); invested[msg.sender] = true; } balanceOf[msg.sender] = safeAdd(balanceOf[msg.sender], msg.value); } /** buys tokens in behalf of the investors by calling the ico contract * starting with the investor at index from and ending with investor at index to. * This function will be called as soon as the ICO starts and as often as necessary, until all investments were made. **/ function buyTokens(uint _from, uint _to) onlyOwner { require(address(ico)!=0x0);//would fail anyway below, but to be sure uint amount; if (_to > investors.length) _to = investors.length; for (uint i = _from; i < _to; i++) { if (balanceOf[investors[i]] > 0) { amount = balanceOf[investors[i]]; delete balanceOf[investors[i]]; ico.invest.value(amount)(investors[i]); } } } /** In case an investor wants to retrieve his or her funds he or she can call this function. * (only possible before tokens are bought) **/ function withdraw() { uint amount = balanceOf[msg.sender]; require(amount > 0); balanceOf[msg.sender] = 0; msg.sender.transfer(amount); } /** returns the number of investors **/ function getNumInvestors() constant returns(uint) { return investors.length; } function setICO(address _icoAddr) onlyOwner { ico = ICO(_icoAddr); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"investors","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"close","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"ico","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getNumInvestors","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"uint256"},{"name":"_to","type":"uint256"}],"name":"buyTokens","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"weiCap","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_icoAddr","type":"address"}],"name":"setICO","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_icoAddr","type":"address"},{"name":"_etherCap","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"}]
Deployed Bytecode
0x606060405236156100ac5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633ccfd60b811461019d5780633feb5f2b146101b257806343d726d6146101e45780635d452201146101f957806370a082311461022857806372ea4b8c146102595780637975ce281461027e57806384fe5029146102995780638da5cb5b146102be578063a6f9dae1146102ed578063b6f50c291461030e575b5b600034116100ba57600080fd5b60055415806100d5575060055430600160a060020a03163111155b15156100e057600080fd5b600160a060020a03331660009081526004602052604090205460ff16151561015e576002805460018101610114838261070b565b916000526020600020900160005b8154600160a060020a033381166101009390930a838102910219909116179091556000908152600460205260409020805460ff19166001179055505b600160a060020a033316600090815260036020526040902054610181903461032f565b600160a060020a0333166000908152600360205260409020555b005b34156101a857600080fd5b61019b610357565b005b34156101bd57600080fd5b6101c86004356103c4565b604051600160a060020a03909116815260200160405180910390f35b34156101ef57600080fd5b61019b6103f6565b005b341561020457600080fd5b6101c8610437565b604051600160a060020a03909116815260200160405180910390f35b341561023357600080fd5b610247600160a060020a0360043516610446565b60405190815260200160405180910390f35b341561026457600080fd5b610247610458565b60405190815260200160405180910390f35b341561028957600080fd5b61019b60043560243561045f565b005b34156102a457600080fd5b610247610666565b60405190815260200160405180910390f35b34156102c957600080fd5b6101c861066c565b604051600160a060020a03909116815260200160405180910390f35b34156102f857600080fd5b61019b600160a060020a036004351661067b565b005b341561031957600080fd5b61019b600160a060020a03600435166106c3565b005b60008282018381108015906103445750828110155b151561034c57fe5b8091505b5092915050565b600160a060020a03331660009081526003602052604081205490811161037c57600080fd5b600160a060020a0333166000818152600360205260408082209190915582156108fc0290839051600060405180830381858888f1935050505015156103c057600080fd5b5b50565b60028054829081106103d257fe5b906000526020600020900160005b915054906101000a9004600160a060020a031681565b60005433600160a060020a0390811691161461041157600080fd5b600160a060020a033016311561042657600080fd5b600054600160a060020a0316ff5b5b565b600154600160a060020a031681565b60036020526000908152604090205481565b6002545b90565b60008054819033600160a060020a0390811691161461047d57600080fd5b600154600160a060020a0316151561049457600080fd5b6002548311156104a45760025492505b50825b8281101561065e576000600360006002848154811015156104c457fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316600160a060020a0316600160a060020a03168152602001908152602001600020541115610655576003600060028381548110151561051e57fe5b906000526020600020900160005b9054906101000a9004600160a060020a0316600160a060020a0316600160a060020a031681526020019081526020016000205491506003600060028381548110151561057457fe5b906000526020600020900160005b9054600160a060020a036101009290920a90048116825260208201929092526040016000908120556001546002805491909216916303f9c79391859190859081106105c957fe5b906000526020600020900160005b9054906101000a9004600160a060020a03166040517c010000000000000000000000000000000000000000000000000000000063ffffffff8516028152600160a060020a0390911660048201526024016000604051808303818588803b151561063f57600080fd5b6125ee5a03f1151561065057600080fd5b505050505b5b6001016104a7565b5b5b50505050565b60055481565b600054600160a060020a031681565b60005433600160a060020a0390811691161461069657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a039081169116146106de57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b81548183558181151161072f5760008381526020902061072f918101908301610735565b5b505050565b61045c91905b8082111561074f576000815560010161073b565b5090565b90565b6000828202831580610344575082848281151561076f57fe5b04145b151561034c57fe5b8091505b50929150505600a165627a7a723058206dc8ef5c3da7ae4ba6150d95fbdab3df4cdb73e8d136990cf789a5e0e89d75df0029
Swarm Source
bzzr://6dc8ef5c3da7ae4ba6150d95fbdab3df4cdb73e8d136990cf789a5e0e89d75df
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.