Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 165 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 7334056 | 2010 days ago | IN | 0 ETH | 0.00013569 | ||||
Transfer | 7243224 | 2027 days ago | IN | 0.001 ETH | 0.0000429 | ||||
Transfer | 7210714 | 2035 days ago | IN | 0.01 ETH | 0.0000429 | ||||
Transfer | 7163750 | 2045 days ago | IN | 0 ETH | 0.00008581 | ||||
Withdraw Tokens | 7158437 | 2046 days ago | IN | 0 ETH | 0.00037777 | ||||
Stop Sale | 7158375 | 2046 days ago | IN | 0 ETH | 0.00013584 | ||||
Withdraw Tokens | 7158341 | 2046 days ago | IN | 0 ETH | 0.00037521 | ||||
Transfer | 7148031 | 2048 days ago | IN | 0.1 ETH | 0.0005215 | ||||
Transfer | 7121171 | 2053 days ago | IN | 0.1 ETH | 0.0007301 | ||||
Transfer | 7120964 | 2053 days ago | IN | 1 ETH | 0.0007301 | ||||
Transfer | 7110624 | 2055 days ago | IN | 0.1 ETH | 0.0007301 | ||||
Transfer | 7097811 | 2058 days ago | IN | 0 ETH | 0.00008583 | ||||
Withdraw Tokens | 7086743 | 2060 days ago | IN | 0 ETH | 0.0021691 | ||||
Transfer | 7083373 | 2060 days ago | IN | 0.01 ETH | 0.00016921 | ||||
Transfer | 7082733 | 2061 days ago | IN | 0.1 ETH | 0.0007301 | ||||
Transfer | 7080499 | 2061 days ago | IN | 0.1 ETH | 0.00035983 | ||||
Transfer | 7072007 | 2062 days ago | IN | 0.1 ETH | 0.0007301 | ||||
Transfer | 7068900 | 2063 days ago | IN | 0.1 ETH | 0.00078225 | ||||
Transfer | 7062594 | 2064 days ago | IN | 0.1 ETH | 0.00059972 | ||||
Transfer | 7056618 | 2065 days ago | IN | 0.1 ETH | 0.00012516 | ||||
Transfer | 7056279 | 2065 days ago | IN | 0.01 ETH | 0.00007812 | ||||
Transfer | 7054211 | 2066 days ago | IN | 0.01 ETH | 0.00020145 | ||||
Transfer | 7050979 | 2066 days ago | IN | 0.1 ETH | 0.00012516 | ||||
Transfer | 7050031 | 2066 days ago | IN | 1 ETH | 0.00012516 | ||||
Transfer | 7047942 | 2067 days ago | IN | 1 ETH | 0.00018774 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
7148031 | 2048 days ago | 0.1 ETH | ||||
7121171 | 2053 days ago | 0.1 ETH | ||||
7120964 | 2053 days ago | 1 ETH | ||||
7110624 | 2055 days ago | 0.1 ETH | ||||
7083373 | 2060 days ago | 0.01 ETH | ||||
7082733 | 2061 days ago | 0.1 ETH | ||||
7080499 | 2061 days ago | 0.1 ETH | ||||
7072007 | 2062 days ago | 0.1 ETH | ||||
7068900 | 2063 days ago | 0.1 ETH | ||||
7062594 | 2064 days ago | 0.1 ETH | ||||
7056618 | 2065 days ago | 0.1 ETH | ||||
7054211 | 2066 days ago | 0.01 ETH | ||||
7050979 | 2066 days ago | 0.1 ETH | ||||
7050031 | 2066 days ago | 1 ETH | ||||
7047942 | 2067 days ago | 1 ETH | ||||
7046983 | 2067 days ago | 1 ETH | ||||
7044682 | 2067 days ago | 0.1 ETH | ||||
7041858 | 2068 days ago | 0.01 ETH | ||||
7039232 | 2068 days ago | 0.01 ETH | ||||
7032750 | 2069 days ago | 0.01 ETH | ||||
7029673 | 2070 days ago | 0.01 ETH | ||||
7025775 | 2071 days ago | 0.01 ETH | ||||
7023676 | 2071 days ago | 0.01 ETH | ||||
7021460 | 2071 days ago | 0.01 ETH | ||||
7021125 | 2072 days ago | 0.01 ETH |
Loading...
Loading
Contract Name:
PLAASCrowdsale
Compiler Version
v0.4.25+commit.59dbf8f1
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-12-15 */ pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal constant returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } /** */ contract token { function transfer(address receiver, uint amount){ } } contract PLAASCrowdsale { using SafeMath for uint256; // address where funds are collected address public wallet; // token address address public addressOfTokenUsedAsReward; uint256 public price = 1000; token tokenReward; // mapping (address => uint) public contributions; // amount of raised money in wei uint256 public weiRaised; /** * event for token purchase logging * @param purchaser who paid for the tokens * @param beneficiary who got the tokens * @param value weis paid for purchase * @param amount amount of tokens purchased */ event TokenPurchase(address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount); function PLAASCrowdsale() { //You will change this to your wallet where you need the ETH wallet = 0xA8dd9A671d64DB4380AcA5af8976aE6F863fF169; //Here will come the checksum address we got addressOfTokenUsedAsReward = 0x8d9626315e8025b81c3bdb926db4c51dde237f52; tokenReward = token(addressOfTokenUsedAsReward); } bool public started = true; function startSale(){ if (msg.sender != wallet) throw; started = true; } function stopSale(){ if(msg.sender != wallet) throw; started = false; } function setPrice(uint256 _price){ if(msg.sender != wallet) throw; price = _price; } function changeWallet(address _wallet){ if(msg.sender != wallet) throw; wallet = _wallet; } function changeTokenReward(address _token){ if(msg.sender!=wallet) throw; tokenReward = token(_token); addressOfTokenUsedAsReward = _token; } // fallback function can be used to buy tokens function () payable { buyTokens(msg.sender); } // low level token purchase function function buyTokens(address beneficiary) payable { require(beneficiary != 0x0); require(validPurchase()); uint256 weiAmount = msg.value; // calculate token amount to be sent uint256 tokens = ((weiAmount) * price); weiRaised = weiRaised.add(weiAmount); tokenReward.transfer(beneficiary, tokens); TokenPurchase(msg.sender, beneficiary, weiAmount, tokens); forwardFunds(); } // send ether to the fund collection wallet // override to create custom fund forwarding mechanisms function forwardFunds() internal { // wallet.transfer(msg.value); if (!wallet.send(msg.value)) { throw; } } // @return true if the transaction can buy tokens function validPurchase() internal constant returns (bool) { bool withinPeriod = started; bool nonZeroPurchase = msg.value != 0; return withinPeriod && nonZeroPurchase; } function withdrawTokens(uint256 _amount) { if(msg.sender!=wallet) throw; tokenReward.transfer(wallet,_amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"started","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"changeTokenReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"weiRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"wallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"addressOfTokenUsedAsReward","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_wallet","type":"address"}],"name":"changeWallet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"startSale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"stopSale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"purchaser","type":"address"},{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"TokenPurchase","type":"event"}]
Contract Creation Code
60806040526103e86002556001600560006101000a81548160ff02191690831515021790555034801561003157600080fd5b5073a8dd9a671d64db4380aca5af8976ae6f863ff1696000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550738d9626315e8025b81c3bdb926db4c51dde237f52600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610a698061014d6000396000f3006080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631f2698ab146100c5578063315a095d146100f457806336044ecc146101215780634042b66f14610164578063521eb2731461018f57806388adbf8f146101e657806391b7f5ed1461023d57806398b9a2dc1461026a578063a035b1fe146102ad578063b66a0e5d146102d8578063e36b0b37146102ef578063ec8ac4d814610306575b6100c33361033c565b005b3480156100d157600080fd5b506100da6104f4565b604051808215151515815260200191505060405180910390f35b34801561010057600080fd5b5061011f60048036038101908080359060200190929190505050610507565b005b34801561012d57600080fd5b50610162600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610663565b005b34801561017057600080fd5b50610179610743565b6040518082815260200191505060405180910390f35b34801561019b57600080fd5b506101a4610749565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f257600080fd5b506101fb61076e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024957600080fd5b5061026860048036038101908080359060200190929190505050610794565b005b34801561027657600080fd5b506102ab600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107f9565b005b3480156102b957600080fd5b506102c2610897565b6040518082815260200191505060405180910390f35b3480156102e457600080fd5b506102ed61089d565b005b3480156102fb57600080fd5b50610304610915565b005b61033a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061033c565b005b60008060008373ffffffffffffffffffffffffffffffffffffffff161415151561036557600080fd5b61036d61098d565b151561037857600080fd5b34915060025482029050610397826004546109bc90919063ffffffff16565b600481905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561046257600080fd5b505af1158015610476573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a36104ef6109da565b505050565b600560009054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561056257600080fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561064857600080fd5b505af115801561065c573d6000803e3d6000fd5b5050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156106be57600080fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107ef57600080fd5b8060028190555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085457600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60025481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108f857600080fd5b6001600560006101000a81548160ff021916908315150217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561097057600080fd5b6000600560006101000a81548160ff021916908315150217905550565b6000806000600560009054906101000a900460ff169150600034141590508180156109b55750805b9250505090565b60008082840190508381101515156109d057fe5b8091505092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501515610a3b57600080fd5b5600a165627a7a723058205cbdb593522552dbf145f720a9be740e7031ea963dfc8c840ca8b094433337c80029
Deployed Bytecode
0x6080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631f2698ab146100c5578063315a095d146100f457806336044ecc146101215780634042b66f14610164578063521eb2731461018f57806388adbf8f146101e657806391b7f5ed1461023d57806398b9a2dc1461026a578063a035b1fe146102ad578063b66a0e5d146102d8578063e36b0b37146102ef578063ec8ac4d814610306575b6100c33361033c565b005b3480156100d157600080fd5b506100da6104f4565b604051808215151515815260200191505060405180910390f35b34801561010057600080fd5b5061011f60048036038101908080359060200190929190505050610507565b005b34801561012d57600080fd5b50610162600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610663565b005b34801561017057600080fd5b50610179610743565b6040518082815260200191505060405180910390f35b34801561019b57600080fd5b506101a4610749565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f257600080fd5b506101fb61076e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024957600080fd5b5061026860048036038101908080359060200190929190505050610794565b005b34801561027657600080fd5b506102ab600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107f9565b005b3480156102b957600080fd5b506102c2610897565b6040518082815260200191505060405180910390f35b3480156102e457600080fd5b506102ed61089d565b005b3480156102fb57600080fd5b50610304610915565b005b61033a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061033c565b005b60008060008373ffffffffffffffffffffffffffffffffffffffff161415151561036557600080fd5b61036d61098d565b151561037857600080fd5b34915060025482029050610397826004546109bc90919063ffffffff16565b600481905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561046257600080fd5b505af1158015610476573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f623b3804fa71d67900d064613da8f94b9617215ee90799290593e1745087ad188484604051808381526020018281526020019250505060405180910390a36104ef6109da565b505050565b600560009054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561056257600080fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561064857600080fd5b505af115801561065c573d6000803e3d6000fd5b5050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156106be57600080fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107ef57600080fd5b8060028190555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085457600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60025481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108f857600080fd5b6001600560006101000a81548160ff021916908315150217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561097057600080fd5b6000600560006101000a81548160ff021916908315150217905550565b6000806000600560009054906101000a900460ff169150600034141590508180156109b55750805b9250505090565b60008082840190508381101515156109d057fe5b8091505092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501515610a3b57600080fd5b5600a165627a7a723058205cbdb593522552dbf145f720a9be740e7031ea963dfc8c840ca8b094433337c80029
Swarm Source
bzzr://5cbdb593522552dbf145f720a9be740e7031ea963dfc8c840ca8b094433337c8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.