More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 211 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 3970493 | 2649 days ago | IN | 0 ETH | 0.00258545 | ||||
Transfer | 3829796 | 2676 days ago | IN | 9 ETH | 0.0024624 | ||||
Transfer | 3829635 | 2676 days ago | IN | 1 ETH | 0.0024623 | ||||
Transfer | 3829618 | 2676 days ago | IN | 0.01 ETH | 0.00174413 | ||||
Transfer | 3829467 | 2676 days ago | IN | 1.38 ETH | 0.0051298 | ||||
Transfer | 3829328 | 2676 days ago | IN | 0.49 ETH | 0.0024623 | ||||
Transfer | 3828959 | 2677 days ago | IN | 1.01530907 ETH | 0.0024623 | ||||
Transfer | 3828872 | 2677 days ago | IN | 1.3 ETH | 0.0024623 | ||||
Transfer | 3828727 | 2677 days ago | IN | 0.1 ETH | 0.0024623 | ||||
Transfer | 3828661 | 2677 days ago | IN | 1 ETH | 0.00041038 | ||||
Transfer | 3828634 | 2677 days ago | IN | 0.81595 ETH | 0.00277009 | ||||
Transfer | 3828556 | 2677 days ago | IN | 0.2686 ETH | 0.0024623 | ||||
Transfer | 3828554 | 2677 days ago | IN | 0.4 ETH | 0.0024623 | ||||
Transfer | 3828471 | 2677 days ago | IN | 3 ETH | 0.0024623 | ||||
Transfer | 3828370 | 2677 days ago | IN | 0.25 ETH | 0.0024623 | ||||
Transfer | 3827914 | 2677 days ago | IN | 3.90136734 ETH | 0.00145192 | ||||
Transfer | 3827727 | 2677 days ago | IN | 0.094 ETH | 0.00205192 | ||||
Transfer | 3827670 | 2677 days ago | IN | 0.4 ETH | 0.0017423 | ||||
Transfer | 3827637 | 2677 days ago | IN | 0.1 ETH | 0.0024623 | ||||
Transfer | 3827134 | 2677 days ago | IN | 1 ETH | 0.0024623 | ||||
Transfer | 3827031 | 2677 days ago | IN | 0.1 ETH | 0.0024623 | ||||
Transfer | 3826173 | 2677 days ago | IN | 1 ETH | 0.0024623 | ||||
Transfer | 3825725 | 2677 days ago | IN | 4 ETH | 0.0024623 | ||||
Transfer | 3825092 | 2677 days ago | IN | 0.13 ETH | 0.00225711 | ||||
Transfer | 3824772 | 2677 days ago | IN | 2 ETH | 0.0024623 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
3829796 | 2676 days ago | 9 ETH | ||||
3829635 | 2676 days ago | 1 ETH | ||||
3829618 | 2676 days ago | 0.01 ETH | ||||
3829467 | 2676 days ago | 1.38 ETH | ||||
3829328 | 2676 days ago | 0.49 ETH | ||||
3828959 | 2677 days ago | 1.01530907 ETH | ||||
3828872 | 2677 days ago | 1.3 ETH | ||||
3828727 | 2677 days ago | 0.1 ETH | ||||
3828661 | 2677 days ago | 1 ETH | ||||
3828634 | 2677 days ago | 0.81595 ETH | ||||
3828556 | 2677 days ago | 0.2686 ETH | ||||
3828554 | 2677 days ago | 0.4 ETH | ||||
3828471 | 2677 days ago | 3 ETH | ||||
3828370 | 2677 days ago | 0.25 ETH | ||||
3827914 | 2677 days ago | 3.90136734 ETH | ||||
3827727 | 2677 days ago | 0.094 ETH | ||||
3827670 | 2677 days ago | 0.4 ETH | ||||
3827637 | 2677 days ago | 0.1 ETH | ||||
3827134 | 2677 days ago | 1 ETH | ||||
3827031 | 2677 days ago | 0.1 ETH | ||||
3826173 | 2677 days ago | 1 ETH | ||||
3825725 | 2677 days ago | 4 ETH | ||||
3825092 | 2677 days ago | 0.13 ETH | ||||
3824772 | 2677 days ago | 2 ETH | ||||
3824709 | 2677 days ago | 5 ETH |
Loading...
Loading
Contract Name:
Crowdsale
Compiler Version
v0.4.7+commit.822622cf
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-05-02 */ pragma solidity ^0.4.6; contract token { function transferFrom(address sender, address receiver, uint amount) returns(bool success){} function burn() {} } contract SafeMath { function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeSub(uint a, uint b) internal returns (uint) { assert(b <= a); return a - b; } function safeAdd(uint a, uint b) internal returns (uint) { uint c = a + b; assert(c>=a && c>=b); return c; } function assert(bool assertion) internal { if (!assertion) throw; } } contract Crowdsale is SafeMath { /* tokens will be transfered from this address (92M) */ address public beneficiary = 0xbB93222C54f72ae99b2539a44093f2ED62533EBE; /* if the funding goal is not reached, investors may withdraw their funds,this is the minimum target */ uint public fundingGoal = 1200000; /* maximum amount of tokens to be sold */ uint public maxGoal = 92000000; /* how much has been raised by crowdale ( ETH) */ uint public amountRaised; /* the start date of the crowdsale */ uint public start = 1493727424; /* the number of tokens already sold */ uint public tokensSold; /* there are different prices in different time intervals */ uint[2] public deadlines = [1494086400,1496757600]; uint[2] public prices = [5000000000000000 ,6250000000000000 ]; /* the address of the token contract */ token public tokenReward; /* the balances (in ETH) of all investors */ mapping(address => uint256) public balanceOf; /* indicated if the funding goal has been reached. */ bool fundingGoalReached = false; /* indicates if the crowdsale has been closed already */ bool crowdsaleClosed = false; /* the multisignature wallet on which the funds will be stored */ address msWallet = 0x82612343BD6856E2A90378fAdeB5FFd950C348C9; /* notifying transfers and the success of the crowdsale*/ event GoalReached(address beneficiary, uint amountRaised); event FundTransfer(address backer, uint amount, bool isContribution, uint amountRaised); /* initialization, set the voise token address */ function Crowdsale( ) { tokenReward = token(0x82665764ea0b58157E1e5E9bab32F68c76Ec0CdF); } /* invest by sending ether to the contract. */ function () payable{ if(msg.sender != msWallet) //do not trigger investment if the multisig wallet is returning the funds invest(msg.sender); } /* function to invest in the crowdsale * only callable if the crowdsale started and hasn't been closed already and the maxGoal wasn't reached yet. * the current token price is looked up and the corresponding number of tokens is transfered to the receiver. * the sent value is directly forwarded to a safe multisig wallet. * this method allows to purchase tokens in behalf of another address.*/ function invest(address receiver) payable{ uint amount = msg.value; uint price = getPrice(); if(price > amount) throw; uint numTokens = amount / price; if (crowdsaleClosed||now<start||safeAdd(tokensSold,numTokens)>maxGoal) throw; if(!msWallet.send(amount)) throw; balanceOf[receiver] = safeAdd(balanceOf[receiver],amount); amountRaised = safeAdd(amountRaised, amount); tokensSold+=numTokens; if(!tokenReward.transferFrom(beneficiary, receiver, numTokens)) throw; FundTransfer(receiver, amount, true, amountRaised); } /* looks up the current token price */ function getPrice() constant returns (uint256 price){ for(var i = 0; i < deadlines.length; i++) if(now<deadlines[i]) return prices[i]; return prices[prices.length-1];//should never be returned, but to be sure to not divide by 0 } modifier afterDeadline() { if (now >= deadlines[deadlines.length-1]) _; } /* checks if the goal or time limit has been reached and ends the campaign */ function checkGoalReached() afterDeadline { if (tokensSold >= fundingGoal){ fundingGoalReached = true; tokenReward.burn(); //burn remaining tokens GoalReached(beneficiary, amountRaised); } crowdsaleClosed = true; } /* allows the funders to withdraw their funds if the goal has not been reached. * only works after funds have been returned from the multisig wallet. */ function safeWithdrawal() afterDeadline { uint amount = balanceOf[msg.sender]; if(address(this).balance >= amount){ balanceOf[msg.sender] = 0; if (amount > 0) { if (msg.sender.send(amount)) { FundTransfer(msg.sender, amount, false, amountRaised); } else { balanceOf[msg.sender] = amount; } } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[],"name":"checkGoalReached","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"receiver","type":"address"}],"name":"invest","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenReward","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":"fundingGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"amountRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getPrice","outputs":[{"name":"price","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"deadlines","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"prices","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maxGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"safeWithdrawal","outputs":[],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"beneficiary","type":"address"},{"indexed":false,"name":"amountRaised","type":"uint256"}],"name":"GoalReached","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"},{"indexed":false,"name":"amountRaised","type":"uint256"}],"name":"FundTransfer","type":"event"}]
Contract Creation Code
60008054600160a060020a03191673bb93222c54f72ae99b2539a44093f2ed62533ebe17905562124f8060015563057bcf0060025563590878c060045560a0604081905263590df3006060908152635936b5606080526006916008919083905b82811115610082578251829063ffffffff1690559160200191906001019061005f565b5b506100a39291505b8082111561009f576000815560010161008b565b5090565b505060408051808201918290526611c37937e0800081526616345785d8a0006020820152600891600a919083905b828111156100f7578251829066ffffffffffffff169055916020019190600101906100d1565b5b506101189291505b8082111561009f576000815560010161008b565b5090565b5050600c8054600160b060020a0319167582612343bd6856e2a90378fadeb5ffd950c348c9000017905534610000575b600a8054600160a060020a0319167382665764ea0b58157e1e5e9bab32f68c76ec0cdf1790555b5b6107958061017f6000396000f300606060405236156100b45763ffffffff60e060020a60003504166301cb3b2081146100e357806303f9c793146100f257806338af3eed14610108578063518ab2a8146101315780636e66f6e91461015057806370a08231146101795780637a3a0e84146101a45780637b3e5e7b146101c357806398d5fdca146101e2578063b025cc4514610201578063bc31c1c114610223578063be9a655514610245578063f71441a514610264578063fd6b7ef814610283575b6100e15b600c5433600160a060020a039081166201000090920416146100dd576100dd33610292565b5b5b565b005b34610000576100e1610471565b005b6100e1600160a060020a0360043516610292565b005b346100005761011561055a565b60408051600160a060020a039092168252519081900360200190f35b346100005761013e610569565b60408051918252519081900360200190f35b346100005761011561056f565b60408051600160a060020a039092168252519081900360200190f35b346100005761013e600160a060020a036004351661057e565b60408051918252519081900360200190f35b346100005761013e610590565b60408051918252519081900360200190f35b346100005761013e610596565b60408051918252519081900360200190f35b346100005761013e61059c565b60408051918252519081900360200190f35b346100005761013e6004356105fb565b60408051918252519081900360200190f35b346100005761013e600435610612565b60408051918252519081900360200190f35b346100005761013e610629565b60408051918252519081900360200190f35b346100005761013e61062f565b60408051918252519081900360200190f35b34610000576100e1610635565b005b3460008061029e61059c565b9150828211156102ad57610000565b8183811561000057600c549190049150610100900460ff16806102d1575060045442105b806102e857506002546102e660055483610731565b115b156102f257610000565b600c5460405162010000909104600160a060020a0316906108fc8515029085906000818181858888f19350505050151561032b57610000565b600160a060020a0384166000908152600b602052604090205461034e9084610731565b600160a060020a0385166000908152600b60205260409020556003546103749084610731565b6003556005805482019055600a546000805460408051602090810184905281517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a039384166004820152898416602482015260448101879052915192909416936323b872dd9360648084019492938390030190829087803b156100005760325a03f115610000575050604051511515905061041757610000565b60035460408051600160a060020a0387168152602081018690526001818301526060810192909252517f1673f758ed3beff5e37b51f770fd638a812bade2568f15526a4f5b33945c93639181900360800190a15b50505050565b600760005b505442106100dd576001546005541061054657600c805460ff19166001179055600a54604080517f44df8e700000000000000000000000000000000000000000000000000000000081529051600160a060020a03909216916344df8e709160048082019260009290919082900301818387803b156100005760325a03f11561000057505060005460035460408051600160a060020a039093168352602083019190915280517fec3f991caf7857d61663fd1bba1739e04abd4781238508cde554bb849d790c859350918290030190a15b600c805461ff0019166101001790555b5b5b565b600054600160a060020a031681565b60055481565b600a54600160a060020a031681565b600b6020526000908152604090205481565b60015481565b60035481565b6000805b60028160ff1610156105ed5760068160ff166002811015610000570160005b50544210156105e45760088160ff166002811015610000570160005b505491506105f7565b5b6001016105a0565b600960005b505491505b5090565b6006816002811015610000570160005b5054905081565b6008816002811015610000570160005b5054905081565b60045481565b60025481565b60006007815b505442106107295750600160a060020a033381166000908152600b60205260409020549030163181901061072957600160a060020a0333166000908152600b6020526040812081905581111561072957604051600160a060020a0333169082156108fc029083906000818181858888f193505050501561070d5760035460408051600160a060020a0333168152602081018490526000818301526060810192909252517f1673f758ed3beff5e37b51f770fd638a812bade2568f15526a4f5b33945c93639181900360800190a1610729565b600160a060020a0333166000908152600b602052604090208190555b5b5b5b5b5b50565b600082820161074e8482108015906107495750838210155b610759565b8091505b5092915050565b80151561072957610000565b5b505600a165627a7a7230582025e9f58bb4e6236fd39a88819e6a069d98663fc852477ac6ed0d2c11d88a6c660029
Deployed Bytecode
0x606060405236156100b45763ffffffff60e060020a60003504166301cb3b2081146100e357806303f9c793146100f257806338af3eed14610108578063518ab2a8146101315780636e66f6e91461015057806370a08231146101795780637a3a0e84146101a45780637b3e5e7b146101c357806398d5fdca146101e2578063b025cc4514610201578063bc31c1c114610223578063be9a655514610245578063f71441a514610264578063fd6b7ef814610283575b6100e15b600c5433600160a060020a039081166201000090920416146100dd576100dd33610292565b5b5b565b005b34610000576100e1610471565b005b6100e1600160a060020a0360043516610292565b005b346100005761011561055a565b60408051600160a060020a039092168252519081900360200190f35b346100005761013e610569565b60408051918252519081900360200190f35b346100005761011561056f565b60408051600160a060020a039092168252519081900360200190f35b346100005761013e600160a060020a036004351661057e565b60408051918252519081900360200190f35b346100005761013e610590565b60408051918252519081900360200190f35b346100005761013e610596565b60408051918252519081900360200190f35b346100005761013e61059c565b60408051918252519081900360200190f35b346100005761013e6004356105fb565b60408051918252519081900360200190f35b346100005761013e600435610612565b60408051918252519081900360200190f35b346100005761013e610629565b60408051918252519081900360200190f35b346100005761013e61062f565b60408051918252519081900360200190f35b34610000576100e1610635565b005b3460008061029e61059c565b9150828211156102ad57610000565b8183811561000057600c549190049150610100900460ff16806102d1575060045442105b806102e857506002546102e660055483610731565b115b156102f257610000565b600c5460405162010000909104600160a060020a0316906108fc8515029085906000818181858888f19350505050151561032b57610000565b600160a060020a0384166000908152600b602052604090205461034e9084610731565b600160a060020a0385166000908152600b60205260409020556003546103749084610731565b6003556005805482019055600a546000805460408051602090810184905281517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a039384166004820152898416602482015260448101879052915192909416936323b872dd9360648084019492938390030190829087803b156100005760325a03f115610000575050604051511515905061041757610000565b60035460408051600160a060020a0387168152602081018690526001818301526060810192909252517f1673f758ed3beff5e37b51f770fd638a812bade2568f15526a4f5b33945c93639181900360800190a15b50505050565b600760005b505442106100dd576001546005541061054657600c805460ff19166001179055600a54604080517f44df8e700000000000000000000000000000000000000000000000000000000081529051600160a060020a03909216916344df8e709160048082019260009290919082900301818387803b156100005760325a03f11561000057505060005460035460408051600160a060020a039093168352602083019190915280517fec3f991caf7857d61663fd1bba1739e04abd4781238508cde554bb849d790c859350918290030190a15b600c805461ff0019166101001790555b5b5b565b600054600160a060020a031681565b60055481565b600a54600160a060020a031681565b600b6020526000908152604090205481565b60015481565b60035481565b6000805b60028160ff1610156105ed5760068160ff166002811015610000570160005b50544210156105e45760088160ff166002811015610000570160005b505491506105f7565b5b6001016105a0565b600960005b505491505b5090565b6006816002811015610000570160005b5054905081565b6008816002811015610000570160005b5054905081565b60045481565b60025481565b60006007815b505442106107295750600160a060020a033381166000908152600b60205260409020549030163181901061072957600160a060020a0333166000908152600b6020526040812081905581111561072957604051600160a060020a0333169082156108fc029083906000818181858888f193505050501561070d5760035460408051600160a060020a0333168152602081018490526000818301526060810192909252517f1673f758ed3beff5e37b51f770fd638a812bade2568f15526a4f5b33945c93639181900360800190a1610729565b600160a060020a0333166000908152600b602052604090208190555b5b5b5b5b5b50565b600082820161074e8482108015906107495750838210155b610759565b8091505b5092915050565b80151561072957610000565b5b505600a165627a7a7230582025e9f58bb4e6236fd39a88819e6a069d98663fc852477ac6ed0d2c11d88a6c660029
Swarm Source
bzzr://25e9f58bb4e6236fd39a88819e6a069d98663fc852477ac6ed0d2c11d88a6c66
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 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.