Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : CrowdsaleRC
pragma solidity ^0.4.16; contract CrowdsaleRC { uint public createdTimestamp; uint public start; uint public deadline; address public owner; address public beneficiary; uint public amountRaised; uint public maxAmount; mapping(address => uint256) public balanceOf; mapping (address => bool) public whitelist; event FundTransfer(address backer, uint amount, bool isContribution); function CrowdsaleRC () public { createdTimestamp = block.timestamp; start = 1529316000; deadline = 1532080800; amountRaised = 0; beneficiary = 0xD27eAD21C9564f122c8f84cD98a505efDf547665; owner = msg.sender; maxAmount = 2000 ether; } function () payable public { require( (msg.value >= 0.1 ether) && block.timestamp >= start && block.timestamp <= deadline && amountRaised < maxAmount && ( (msg.value <= 100 ether) || (msg.value > 100 ether && whitelist[msg.sender]==true) ) ); uint amount = msg.value; balanceOf[msg.sender] += amount; amountRaised += amount; FundTransfer(msg.sender, amount, true); if (beneficiary.send(amount)) { FundTransfer(beneficiary, amount, false); } } function whitelistAddress (address uaddress) public { require (owner == msg.sender || beneficiary == msg.sender); whitelist[uaddress] = true; } function removeAddressFromWhitelist (address uaddress) public { require (owner == msg.sender || beneficiary == msg.sender); whitelist[uaddress] = false; } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.