ETH Price: $2,804.03 (+1.20%)

Contract

0xA0323E104627bcA15b719a3d8Ebee715b2CB93DB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Close62527362018-09-01 13:37:572367 days ago1535809077IN
0xA0323E10...5b2CB93DB
0 ETH0.000078092.25
Deposit62316492018-08-29 0:00:432370 days ago1535500843IN
0xA0323E10...5b2CB93DB
0.5 ETH0.000167671.69
Deposit62309102018-08-28 21:04:572370 days ago1535490297IN
0xA0323E10...5b2CB93DB
0.5 ETH0.000170651.72
Deposit62306802018-08-28 20:11:332370 days ago1535487093IN
0xA0323E10...5b2CB93DB
0.5 ETH0.000226121.75
Init62266602018-08-28 3:48:342371 days ago1535428114IN
0xA0323E10...5b2CB93DB
0 ETH0.000075311.8

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
62527362018-09-01 13:37:572367 days ago1535809077
0xA0323E10...5b2CB93DB
1.5 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
QCO_Presale

Compiler Version
v0.4.14+commit.c2215d46

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *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

Contract ABI

[{"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"}]

606060405260028054600160a060020a03191633600160a060020a0316179055341561002a57600080fd5b5b61031d8061003a6000396000f3006060604052361561005f5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663278ecde1811461006357806343d726d61461007b578063b7b0422d14610090578063d0e30db0146100a8575b5b5b005b341561006e57600080fd5b61005f6004356100b2565b005b341561008657600080fd5b61005f61012e565b005b341561009b57600080fd5b61005f600435610183565b005b61005f61018c565b005b600160a060020a0333166000908152600460205260409020548190108015906100db5750600081115b156101285760015442101580156100f25750600054155b1561012857600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561012857600080fd5b5b5b5b50565b60025433600160a060020a039081169116141561017f5742600055600160a060020a033381169030163180156108fc0290604051600060405180830381858888f19350505050151561017f57600080fd5b5b5b565b60018190555b50565b60006706f05b59d3b2000034101580156101b7575032600160a060020a031633600160a060020a0316145b1561025d57805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161781553460018083019190915560038054909181016101fe8382610280565b916000526020600020906002020160005b508254815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0391821617825560018085015492019190915533166000908152600460205260409020805434019055505b68015af1d78b58c40000600160a060020a033016311061012857426000555b5b50565b8154818355818115116102ac576002028160020283600052602060002091820191016102ac91906102b2565b5b505050565b6102ee91905b808211156102ea57805473ffffffffffffffffffffffffffffffffffffffff19168155600060018201556002016102b8565b5090565b905600a165627a7a723058205f2cedbdf7e0fb4bdad236bfe949bed2f91f0c26f63ee0e6979beb0cd934b08b0029

Deployed Bytecode

0x6060604052361561005f5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663278ecde1811461006357806343d726d61461007b578063b7b0422d14610090578063d0e30db0146100a8575b5b5b005b341561006e57600080fd5b61005f6004356100b2565b005b341561008657600080fd5b61005f61012e565b005b341561009b57600080fd5b61005f600435610183565b005b61005f61018c565b005b600160a060020a0333166000908152600460205260409020548190108015906100db5750600081115b156101285760015442101580156100f25750600054155b1561012857600160a060020a03331681156108fc0282604051600060405180830381858888f19350505050151561012857600080fd5b5b5b5b50565b60025433600160a060020a039081169116141561017f5742600055600160a060020a033381169030163180156108fc0290604051600060405180830381858888f19350505050151561017f57600080fd5b5b5b565b60018190555b50565b60006706f05b59d3b2000034101580156101b7575032600160a060020a031633600160a060020a0316145b1561025d57805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161781553460018083019190915560038054909181016101fe8382610280565b916000526020600020906002020160005b508254815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0391821617825560018085015492019190915533166000908152600460205260409020805434019055505b68015af1d78b58c40000600160a060020a033016311061012857426000555b5b50565b8154818355818115116102ac576002028160020283600052602060002091820191016102ac91906102b2565b5b505050565b6102ee91905b808211156102ea57805473ffffffffffffffffffffffffffffffffffffffff19168155600060018201556002016102b8565b5090565b905600a165627a7a723058205f2cedbdf7e0fb4bdad236bfe949bed2f91f0c26f63ee0e6979beb0cd934b08b0029

Swarm Source

bzzr://5f2cedbdf7e0fb4bdad236bfe949bed2f91f0c26f63ee0e6979beb0cd934b08b

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.