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
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x86F91249...4531A38E5 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
CrowdsaleRC
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-06-16 */ 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; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"createdTimestamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"uaddress","type":"address"}],"name":"removeAddressFromWhitelist","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":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"uaddress","type":"address"}],"name":"whitelistAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxAmount","outputs":[{"name":"","type":"uint256"}],"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":"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":"","type":"address"}],"name":"whitelist","outputs":[{"name":"","type":"bool"}],"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":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]
Deployed Bytecode
0x6080604052600436106100af576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631030978114610349578063286dd3f51461037457806329dcb0cf146103b757806338af3eed146103e257806341566585146104395780635f48f3931461047c57806370a08231146104a75780637b3e5e7b146104fe5780638da5cb5b146105295780639b19251a14610580578063be9a6555146105db575b600067016345785d8a000034101580156100cb57506001544210155b80156100d957506002544211155b80156100e85750600654600554105b801561016c575068056bc75e2d631000003411158061016b575068056bc75e2d631000003411801561016a575060011515600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b5b5b151561017757600080fd5b34905080600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550806005600082825401925050819055507fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf633826001604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182151515158152602001935050505060405180910390a1600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015610346577fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf6600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826000604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182151515158152602001935050505060405180910390a15b50005b34801561035557600080fd5b5061035e610606565b6040518082815260200191505060405180910390f35b34801561038057600080fd5b506103b5600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061060c565b005b3480156103c357600080fd5b506103cc61071b565b6040518082815260200191505060405180910390f35b3480156103ee57600080fd5b506103f7610721565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561044557600080fd5b5061047a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610747565b005b34801561048857600080fd5b50610491610856565b6040518082815260200191505060405180910390f35b3480156104b357600080fd5b506104e8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061085c565b6040518082815260200191505060405180910390f35b34801561050a57600080fd5b50610513610874565b6040518082815260200191505060405180910390f35b34801561053557600080fd5b5061053e61087a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561058c57600080fd5b506105c1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108a0565b604051808215151515815260200191505060405180910390f35b3480156105e757600080fd5b506105f06108c0565b6040518082815260200191505060405180910390f35b60005481565b3373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806106b557503373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b15156106c057600080fd5b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60025481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806107f057503373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b15156107fb57600080fd5b6001600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60065481565b60076020528060005260406000206000915090505481565b60055481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60086020528060005260406000206000915054906101000a900460ff1681565b600154815600a165627a7a72305820fe955db56bcd1619e3648c7acf889969d24551bc88bd4939a20a91596663c7c80029
Swarm Source
bzzr://fe955db56bcd1619e3648c7acf889969d24551bc88bd4939a20a91596663c7c8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.