Sponsored:   Ubex.com: Top ratings from all agencies. Big partnerships. 70% hard cap reached. Join us!
Contract Overview
Balance: 0.002 Ether
Ether Value: $0.93 (@ $462.99/ETH)
Transactions: 3 txns
 Latest 3 txns

TxHash Age From To Value [TxFee]
0xd26f722c0a651facb2335a5249e182e70c0006cc48e94e8f3ca843436d87622f200 days 17 hrs ago0x00a302722ba9c7f3fb3682360bdae1b7c1f894e7  IN   0xfeb154db9dbc962d3bf9887f489bc6a792eebeed0.001 Ether0.000837984
0x32f65485538b57277a196b6950a298369efe8b2f79ed4a5743236307fe337b7a200 days 18 hrs ago0x00a302722ba9c7f3fb3682360bdae1b7c1f894e7  IN   0xfeb154db9dbc962d3bf9887f489bc6a792eebeed0.001 Ether0.001152984
0xc8db11c42beba112f260c108d1b872ccd51300c630aea309e3e69aaef3a229b6200 days 20 hrs ago0xd378b87b0ee9f58a155077cfe4c7d11bcd96fde9  IN    Contract Creation0 Ether0.01215424
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Contract Source Code Verified (Exact match)
Contract Name: Crowdsale
Compiler Version: v0.4.19+commit.c4cbbb05
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.19;

interface token {
    function transfer(address receiver, uint amount) public;
    function balanceOf(address _owner) public constant returns (uint balance);
}

contract Crowdsale {
    address public beneficiary = msg.sender;
    uint public price;
    token public tokenReward;
    bool crowdsaleClosed = false;

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

    modifier onlyBy(address _account) { require(msg.sender == _account); _; }


    function Crowdsale(
        uint szaboCostOfEachToken,
        address addressOfTokenUsedAsReward
    ) public {
        price = szaboCostOfEachToken * 1 szabo;
        tokenReward = token(addressOfTokenUsedAsReward);
    }

    /**
     * Fallback function
     *
     * The function without name is the default function that is called whenever anyone sends funds to a contract
     */
    function () payable public{
        require(!crowdsaleClosed);
        uint amount = msg.value;
        uint tokenAmount = 1 ether * amount / price;
        tokenReward.transfer(msg.sender, tokenAmount);
        FundTransfer(msg.sender, amount, true);
    }

    function endCrowdsale() onlyBy(beneficiary) public{
        crowdsaleClosed = true;
    }

    function withdrawEther() onlyBy(beneficiary) public {
        beneficiary.transfer(this.balance);
    }

    function withdrawTokens() onlyBy(beneficiary) public {
        uint tokenBalance = tokenReward.balanceOf(this);

        tokenReward.transfer(beneficiary, tokenBalance);
    }
}

    Contract ABI  
[{"constant":false,"inputs":[],"name":"endCrowdsale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenReward","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"szaboCostOfEachToken","type":"uint256"},{"name":"addressOfTokenUsedAsReward","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260146101000a81548160ff021916908315150217905550341561006a57600080fd5b6040516040806107f78339810160405280805190602001909190805190602001909190505064e8d4a51000820260018190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050610708806100ef6000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680632095f2d4146101eb57806338af3eed146102005780636e66f6e9146102555780637362377b146102aa5780638d8f2adb146102bf578063a035b1fe146102d4575b600080600260149054906101000a900460ff1615151561009757600080fd5b34915060015482670de0b6b3a7640000028115156100b157fe5b049050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b151561017857600080fd5b6102c65a03f1151561018957600080fd5b5050503373ffffffffffffffffffffffffffffffffffffffff167fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf683600160405180838152602001821515151581526020019250505060405180910390a25050005b34156101f657600080fd5b6101fe6102fd565b005b341561020b57600080fd5b610213610377565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561026057600080fd5b61026861039c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156102b557600080fd5b6102bd6103c2565b005b34156102ca57600080fd5b6102d2610499565b005b34156102df57600080fd5b6102e76106d6565b6040518082815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561035957600080fd5b6001600260146101000a81548160ff02191690831515021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561041e57600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050151561049657600080fd5b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156104f757600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15156105bc57600080fd5b6102c65a03f115156105cd57600080fd5b505050604051805190509150600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15156106be57600080fd5b6102c65a03f115156106cf57600080fd5b5050505050565b600154815600a165627a7a7230582035ddb1cd52ec7e55637c36c30579acccce1f2e63e76af2c2f9296bbe4c8138da002900000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000b7fe7b2b723020cf668db4f78992d10f81990fc4

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000b7fe7b2b723020cf668db4f78992d10f81990fc4

-----Decoded View---------------
Found 2 constructor arguments :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [1] : 000000000000000000000000b7fe7b2b723020cf668db4f78992d10f81990fc4


   Swarm Source:
bzzr://35ddb1cd52ec7e55637c36c30579acccce1f2e63e76af2c2f9296bbe4c8138da

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.