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 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
6252736 | 2367 days ago | 1.5 ETH |
Loading...
Loading
Contract Name:
QCO_Presale
Compiler Version
v0.4.14+commit.c2215d46
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-28 */ pragma solidity ^0.4.14; contract QCO_Presale { uint closed; struct Deposit { address buyer; uint amount; } uint refundDate; address fiduciary = msg.sender; Deposit[] Deposits; mapping (address => uint) total; function() public payable { } function init(uint date) { refundDate = date; } function deposit() public payable { if (msg.value >= 0.5 ether && msg.sender == tx.origin) { Deposit newDeposit; newDeposit.buyer = msg.sender; newDeposit.amount = msg.value; Deposits.push(newDeposit); total[msg.sender] += msg.value; } if (this.balance >= 25 ether) { closed = now; } } function refund(uint amount) public { if (total[msg.sender] >= amount && amount > 0) { if (now >= refundDate && closed == 0) { msg.sender.transfer(amount); } } } function close() public { if (msg.sender == fiduciary) { closed = now; msg.sender.transfer(this.balance); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"refund","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"close","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"date","type":"uint256"}],"name":"init","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"type":"function"},{"payable":true,"type":"fallback"}]
Contract Creation Code
606060405260028054600160a060020a03191633600160a060020a0316179055341561002a57600080fd5b5b61031d8061003a6000396000f3006060604052361561005f5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663278ecde1811461006357806343d726d61461007b578063b7b0422d14610090578063d0e30db0146100a8575b5b5b005b341561006e57600080fd5b61005f6004356100b2565b005b341561008657600080fd5b61005f61012e565b005b341561009b57600080fd5b61005f600435610183565b005b61005f61018c565b005b600160a060020a0333166000908152600460205260409020548190108015906100db5750600081115b156101285760015442101580156100f25750600054155b1561012857600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561012857600080fd5b5b5b5b50565b60025433600160a060020a039081169116141561017f5742600055600160a060020a033381169030163180156108fc0290604051600060405180830381858888f19350505050151561017f57600080fd5b5b5b565b60018190555b50565b60006706f05b59d3b2000034101580156101b7575032600160a060020a031633600160a060020a0316145b1561025d57805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161781553460018083019190915560038054909181016101fe8382610280565b916000526020600020906002020160005b508254815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0391821617825560018085015492019190915533166000908152600460205260409020805434019055505b68015af1d78b58c40000600160a060020a033016311061012857426000555b5b50565b8154818355818115116102ac576002028160020283600052602060002091820191016102ac91906102b2565b5b505050565b6102ee91905b808211156102ea57805473ffffffffffffffffffffffffffffffffffffffff19168155600060018201556002016102b8565b5090565b905600a165627a7a723058205f2cedbdf7e0fb4bdad236bfe949bed2f91f0c26f63ee0e6979beb0cd934b08b0029
Deployed Bytecode
0x6060604052361561005f5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663278ecde1811461006357806343d726d61461007b578063b7b0422d14610090578063d0e30db0146100a8575b5b5b005b341561006e57600080fd5b61005f6004356100b2565b005b341561008657600080fd5b61005f61012e565b005b341561009b57600080fd5b61005f600435610183565b005b61005f61018c565b005b600160a060020a0333166000908152600460205260409020548190108015906100db5750600081115b156101285760015442101580156100f25750600054155b1561012857600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561012857600080fd5b5b5b5b50565b60025433600160a060020a039081169116141561017f5742600055600160a060020a033381169030163180156108fc0290604051600060405180830381858888f19350505050151561017f57600080fd5b5b5b565b60018190555b50565b60006706f05b59d3b2000034101580156101b7575032600160a060020a031633600160a060020a0316145b1561025d57805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161781553460018083019190915560038054909181016101fe8382610280565b916000526020600020906002020160005b508254815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0391821617825560018085015492019190915533166000908152600460205260409020805434019055505b68015af1d78b58c40000600160a060020a033016311061012857426000555b5b50565b8154818355818115116102ac576002028160020283600052602060002091820191016102ac91906102b2565b5b505050565b6102ee91905b808211156102ea57805473ffffffffffffffffffffffffffffffffffffffff19168155600060018201556002016102b8565b5090565b905600a165627a7a723058205f2cedbdf7e0fb4bdad236bfe949bed2f91f0c26f63ee0e6979beb0cd934b08b0029
Swarm Source
bzzr://5f2cedbdf7e0fb4bdad236bfe949bed2f91f0c26f63ee0e6979beb0cd934b08b
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.