More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 102 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 5684888 | 2356 days ago | IN | 0.005 ETH | 0.00020425 | ||||
Transfer | 4895940 | 2491 days ago | IN | 0.1 ETH | 0.00105 | ||||
Transfer | 4895906 | 2491 days ago | IN | 0.1 ETH | 0.000861 | ||||
Transfer | 4895836 | 2491 days ago | IN | 0.1 ETH | 0.000861 | ||||
Transfer | 4895573 | 2491 days ago | IN | 0.09 ETH | 0.00127942 | ||||
Transfer | 4892506 | 2492 days ago | IN | 0.2 ETH | 0.0011223 | ||||
Transfer | 4892089 | 2492 days ago | IN | 0.06 ETH | 0.00105 | ||||
Transfer | 4892015 | 2492 days ago | IN | 0.05 ETH | 0.000525 | ||||
Transfer | 4891969 | 2492 days ago | IN | 0.15 ETH | 0.0022446 | ||||
Transfer | 4890935 | 2492 days ago | IN | 0.25 ETH | 0.0011223 | ||||
Transfer | 4890929 | 2492 days ago | IN | 0.41 ETH | 0.0011223 | ||||
Transfer | 4890915 | 2492 days ago | IN | 0.1 ETH | 0.00105 | ||||
Transfer | 4890902 | 2492 days ago | IN | 0.05 ETH | 0.00246906 | ||||
Transfer | 4890889 | 2492 days ago | IN | 0.05 ETH | 0.0011223 | ||||
Transfer | 4890882 | 2492 days ago | IN | 0.41 ETH | 0.0011223 | ||||
Transfer | 4890858 | 2492 days ago | IN | 0.01 ETH | 0.00105 | ||||
Transfer | 4887127 | 2493 days ago | IN | 0.154139 ETH | 0.000861 | ||||
Transfer | 4887013 | 2493 days ago | IN | 0.9709395 ETH | 0.0047602 | ||||
Transfer | 4886721 | 2493 days ago | IN | 0.08591172 ETH | 0.0047602 | ||||
Transfer | 4885670 | 2493 days ago | IN | 1 ETH | 0.00260816 | ||||
Transfer | 4885154 | 2493 days ago | IN | 1.501 ETH | 0.00190408 | ||||
Transfer | 4884809 | 2493 days ago | IN | 0.012 ETH | 0.00199928 | ||||
Transfer | 4884548 | 2493 days ago | IN | 0.01217525 ETH | 0.00756 | ||||
Transfer | 4884480 | 2493 days ago | IN | 0.102 ETH | 0.00380816 | ||||
Transfer | 4884102 | 2494 days ago | IN | 0.10441847 ETH | 0.0047602 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
4887013 | 2493 days ago | 0.9709395 ETH | ||||
4886721 | 2493 days ago | 0.08591172 ETH | ||||
4885670 | 2493 days ago | 1 ETH | ||||
4885154 | 2493 days ago | 1.501 ETH | ||||
4884809 | 2493 days ago | 0.012 ETH | ||||
4884480 | 2493 days ago | 0.102 ETH | ||||
4884102 | 2494 days ago | 0.10441847 ETH | ||||
4884024 | 2494 days ago | 2.55 ETH | ||||
4883709 | 2494 days ago | 0.7 ETH | ||||
4882243 | 2494 days ago | 0.1396 ETH | ||||
4882233 | 2494 days ago | 0.075 ETH | ||||
4880224 | 2494 days ago | 0.1286848 ETH | ||||
4880098 | 2494 days ago | 0.10626 ETH | ||||
4880062 | 2494 days ago | 2 ETH | ||||
4880017 | 2494 days ago | 0.05 ETH | ||||
4879319 | 2494 days ago | 0.02 ETH | ||||
4879189 | 2494 days ago | 0.03 ETH | ||||
4879189 | 2494 days ago | 0.01617354 ETH | ||||
4877706 | 2495 days ago | 0.275 ETH | ||||
4877448 | 2495 days ago | 0.04344439 ETH | ||||
4876348 | 2495 days ago | 0.28154 ETH | ||||
4874095 | 2495 days ago | 0.06351373 ETH | ||||
4870993 | 2496 days ago | 0.14630265 ETH | ||||
4870543 | 2496 days ago | 3.40135398 ETH | ||||
4868937 | 2496 days ago | 0.14530135 ETH |
Loading...
Loading
Contract Name:
BTCxCrowdsale
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-12-11 */ pragma solidity ^0.4.18; // This contract has the burn option interface token { function transfer(address receiver, uint amount); function burn(uint256 _value) returns (bool); function balanceOf(address _address) returns (uint256); } contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } } contract SafeMath { //internals 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; } } contract BTCxCrowdsale is owned, SafeMath { address public beneficiary; uint public fundingGoal; uint public amountRaised; //The amount being raised by the crowdsale /* the end date of the crowdsale*/ uint public deadline; /* the end date of the crowdsale*/ uint public rate; //rate for the crowdsale uint public tokenDecimals; token public tokenReward; // uint public tokensSold = 0; /* the start date of the crowdsale*/ uint public start; /* the start date of the crowdsale*/ mapping(address => uint256) public balanceOf; //Ether deposited by the investor // bool fundingGoalReached = false; bool crowdsaleClosed = false; //It will be true when the crowsale gets closed event GoalReached(address beneficiary, uint capital); event FundTransfer(address backer, uint amount, bool isContribution); /** * Constrctor function * * Setup the owner */ function BTCxCrowdsale( ) { beneficiary = 0x781AC8C2D6dc017c4259A1f06123659A4f6dFeD8; rate = 2; tokenDecimals=8; fundingGoal = 14700000 * (10 ** tokenDecimals); start = 1512831600; // 12/11/2017 @ 2:00pm (UTC) deadline =1515628740; // 01/10/2018 @ 11:59pm (UTC) tokenReward = token(0x5A82De3515fC4A4Db9BA9E869F269A1e85300092); //Token address. Modify by the current token address } /** * Fallback function * * The function without name is the default function that is called whenever anyone sends funds to a contract */ /* */ function () payable { uint amount = msg.value; //amount received by the contract uint numTokens; //number of token which will be send to the investor numTokens = getNumTokens(amount); //It will be true if the soft capital was reached require(numTokens>0 && !crowdsaleClosed && now > start && now < deadline); balanceOf[msg.sender] = safeAdd(balanceOf[msg.sender], amount); amountRaised = safeAdd(amountRaised, amount); //Amount raised increments with the amount received by the investor tokensSold += numTokens; //Tokens sold increased too tokenReward.transfer(msg.sender, numTokens); //The contract sends the corresponding tokens to the investor beneficiary.transfer(amount); //Forward ether to beneficiary FundTransfer(msg.sender, amount, true); } /* It calculates the amount of tokens to send to the investor */ function getNumTokens(uint _value) internal returns(uint numTokens) { numTokens = safeMul(_value,rate)/(10 ** tokenDecimals); //Number of tokens to give is equal to the amount received by the rate return numTokens; } modifier afterDeadline() { if (now >= deadline) _; } /** * Check if goal was reached * * Checks if the goal or time limit has been reached and ends the campaign and burn the tokens */ function checkGoalReached() afterDeadline { require(msg.sender == owner); //Checks if the one who executes the function is the owner of the contract if (tokensSold >=fundingGoal){ GoalReached(beneficiary, amountRaised); } tokenReward.burn(tokenReward.balanceOf(this)); //Burns all the remaining tokens in the contract crowdsaleClosed = true; //The crowdsale gets closed if it has expired } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[],"name":"checkGoalReached","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"deadline","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenDecimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokensSold","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenReward","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"fundingGoal","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"amountRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"beneficiary","type":"address"},{"indexed":false,"name":"capital","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"}],"name":"FundTransfer","type":"event"}]
Contract Creation Code
60606040526000600855600b805460ff19169055341561001e57600080fd5b60008054600160a060020a033316600160a060020a03199182161790915560018054821673781ac8c2d6dc017c4259a1f06123659a4f6dfed8179055600260058190556008600655660538f50bd1e0009055635a2bfa70600955635a56a8c460045560078054909116735a82de3515fc4a4db9ba9e869f269a1e853000921790556105b5806100ae6000396000f3006060604052600436106100a05763ffffffff60e060020a60003504166301cb3b20811461023057806329dcb0cf146102455780632c4e722e1461026a57806338af3eed1461027d5780633b97e856146102ac578063518ab2a8146102bf5780636e66f6e9146102d257806370a08231146102e55780637a3a0e84146103045780637b3e5e7b146103175780638da5cb5b1461032a578063be9a65551461033d575b3460006100ac82610350565b90506000811180156100c15750600b5460ff16155b80156100ce575060095442115b80156100db575060045442105b15156100e657600080fd5b600160a060020a0333166000908152600a60205260409020546101099083610374565b600160a060020a0333166000908152600a602052604090205560035461012f9083610374565b6003556008805482019055600754600160a060020a031663a9059cbb338360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561019057600080fd5b6102c65a03f115156101a157600080fd5b5050600154600160a060020a0316905082156108fc0283604051600060405180830381858888f1935050505015156101d857600080fd5b7fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf633836001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a15050005b341561023b57600080fd5b610243610398565b005b341561025057600080fd5b6102586104ff565b60405190815260200160405180910390f35b341561027557600080fd5b610258610505565b341561028857600080fd5b61029061050b565b604051600160a060020a03909116815260200160405180910390f35b34156102b757600080fd5b61025861051a565b34156102ca57600080fd5b610258610520565b34156102dd57600080fd5b610290610526565b34156102f057600080fd5b610258600160a060020a0360043516610535565b341561030f57600080fd5b610258610547565b341561032257600080fd5b61025861054d565b341561033557600080fd5b610290610553565b341561034857600080fd5b610258610562565b6000600654600a0a61036483600554610568565b81151561036d57fe5b0492915050565b60008282018381108015906103895750828110155b151561039157fe5b9392505050565b60045442106104fd5760005433600160a060020a039081169116146103bc57600080fd5b6002546008541061041b576001546003547fec3f991caf7857d61663fd1bba1739e04abd4781238508cde554bb849d790c8591600160a060020a031690604051600160a060020a03909216825260208201526040908101905180910390a15b600754600160a060020a03166342966c68816370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561047a57600080fd5b6102c65a03f1151561048b57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156104d457600080fd5b6102c65a03f115156104e557600080fd5b50505060405180515050600b805460ff191660011790555b565b60045481565b60055481565b600154600160a060020a031681565b60065481565b60085481565b600754600160a060020a031681565b600a6020526000908152604090205481565b60025481565b60035481565b600054600160a060020a031681565b60095481565b6000828202831580610389575082848281151561058157fe5b041461039157fe00a165627a7a723058204380987d14ee6e3ff17d928ce2a6c7264e500f687cf655191ade5615fa24fc640029
Deployed Bytecode
0x6060604052600436106100a05763ffffffff60e060020a60003504166301cb3b20811461023057806329dcb0cf146102455780632c4e722e1461026a57806338af3eed1461027d5780633b97e856146102ac578063518ab2a8146102bf5780636e66f6e9146102d257806370a08231146102e55780637a3a0e84146103045780637b3e5e7b146103175780638da5cb5b1461032a578063be9a65551461033d575b3460006100ac82610350565b90506000811180156100c15750600b5460ff16155b80156100ce575060095442115b80156100db575060045442105b15156100e657600080fd5b600160a060020a0333166000908152600a60205260409020546101099083610374565b600160a060020a0333166000908152600a602052604090205560035461012f9083610374565b6003556008805482019055600754600160a060020a031663a9059cbb338360405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561019057600080fd5b6102c65a03f115156101a157600080fd5b5050600154600160a060020a0316905082156108fc0283604051600060405180830381858888f1935050505015156101d857600080fd5b7fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf633836001604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a15050005b341561023b57600080fd5b610243610398565b005b341561025057600080fd5b6102586104ff565b60405190815260200160405180910390f35b341561027557600080fd5b610258610505565b341561028857600080fd5b61029061050b565b604051600160a060020a03909116815260200160405180910390f35b34156102b757600080fd5b61025861051a565b34156102ca57600080fd5b610258610520565b34156102dd57600080fd5b610290610526565b34156102f057600080fd5b610258600160a060020a0360043516610535565b341561030f57600080fd5b610258610547565b341561032257600080fd5b61025861054d565b341561033557600080fd5b610290610553565b341561034857600080fd5b610258610562565b6000600654600a0a61036483600554610568565b81151561036d57fe5b0492915050565b60008282018381108015906103895750828110155b151561039157fe5b9392505050565b60045442106104fd5760005433600160a060020a039081169116146103bc57600080fd5b6002546008541061041b576001546003547fec3f991caf7857d61663fd1bba1739e04abd4781238508cde554bb849d790c8591600160a060020a031690604051600160a060020a03909216825260208201526040908101905180910390a15b600754600160a060020a03166342966c68816370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561047a57600080fd5b6102c65a03f1151561048b57600080fd5b5050506040518051905060006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156104d457600080fd5b6102c65a03f115156104e557600080fd5b50505060405180515050600b805460ff191660011790555b565b60045481565b60055481565b600154600160a060020a031681565b60065481565b60085481565b600754600160a060020a031681565b600a6020526000908152604090205481565b60025481565b60035481565b600054600160a060020a031681565b60095481565b6000828202831580610389575082848281151561058157fe5b041461039157fe00a165627a7a723058204380987d14ee6e3ff17d928ce2a6c7264e500f687cf655191ade5615fa24fc640029
Swarm Source
bzzr://4380987d14ee6e3ff17d928ce2a6c7264e500f687cf655191ade5615fa24fc64
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.