Skip to content
Verified contractPartial

Crowdsale

Address0x18a574f218c28b0a78e0462ecb98efd7fc3f8d02
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.4.21

 

Same code

Only this contract

 

Details

Compiler
solc 0.4.21+commit.dfe3193c
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
5,419,968
Creation transaction
0x3d49dd4c4d…abdc462577

Crowdsale.sol

pragma solidity ^0.4.16;

/*

  _____  ______ _____  ______       
 |  __ \|  ____|  __ \|  ____|      
 | |__) | |__  | |__) | |__         
 |  ___/|  __| |  ___/|  __|        
 | |    | |____| |    | |____       
 |_|___ |______|_|  _ |______|    _ 
 |  __ \| |   | |  | |/ ____| |  | |
 | |__) | |   | |  | | (___ | |__| |
 |  ___/| |   | |  | |\___ \|  __  |
 | |    | |___| |__| |____) | |  | |
 |_|    |______\____/|_____/|_|  |_|
        
Tokenized asset solution to the Pepe Plush shortage.
Strictly limited supply (300) and indivisible.
##For the discerning collector##

                                    

*/

interface token {
    function transfer(address receiver, uint amount);
}

contract Crowdsale {
    uint public price;
    token public tokenReward;
    mapping(address => uint256) public balanceOf;
    bool crowdsaleClosed = false;

    event FundTransfer(address backer, uint amount, bool isContribution);

// Set price and token

        function Crowdsale()
    {
        price = 10;
        tokenReward = token(0x27E45EBe436034250E1269A6b85074c91CD87fd0);
    }
// Set crowdsaleClosed

    function set_crowdsaleClosed(bool newVal) public{
        require(msg.sender == 0x0b3F4B2e8E91cb8Ac9C394B4Fc693f0fbd27E3dB);
        crowdsaleClosed = newVal;
    
    }

// Set price

    function set_price(uint newVal) public{
        require(msg.sender == 0x0b3F4B2e8E91cb8Ac9C394B4Fc693f0fbd27E3dB);
        price = newVal;
    
    }

// fallback

    function () payable {
        require(!crowdsaleClosed);
        uint amount = msg.value;
        balanceOf[msg.sender] += amount;
        tokenReward.transfer(msg.sender, amount * price);
        FundTransfer(msg.sender, amount, true);
        0xb993cbf2e0A57d7423C8B3b74A4E9f29C2989160.transfer(msg.value / 2);
        0x0b3F4B2e8E91cb8Ac9C394B4Fc693f0fbd27E3dB.transfer(msg.value / 2);
        
    }

               

    



}
Compiler settingsShow
{
  "optimizer": {
    "runs": 0,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.