Contract 0xb05fABA79aC993DC1ff7e3A0A764C3d0478cdC1F

 
Txn Hash Method
Block
From
To
Value
0x410cb9f4c685e86fbbc52740a09e23433e42c7f1c7ff8b9b52edc7f895b7cd83Transfer52566522018-03-15 0:19:501292 days 1 hr ago0x8b37acf4614fd89381492f5905d666c3e3068577 IN  BlockbitsDirectFunding0.1 Ether0.00266834041.1
0x5eb5cb5d7e7c281e8d5224f29af33b3ced79535c3cb648871717123034406ebfTransfer52277632018-03-10 2:17:351296 days 23 hrs ago0x4e4f65b99718f7df5b7c4b2c61bfe590648c7cc1 IN  BlockbitsDirectFunding0.27 Ether0.10007132441
0x975b145f48a8ae431b55bbd139bdba9ae39f1714d3f4b0f7498176baa1f0fe16Transfer51503112018-02-24 22:30:111310 days 3 hrs ago0xb1664b9e6531fa60e929e70a33d007264e7bed3f IN  BlockbitsDirectFunding0.01 Ether0.0048515282
0xe63c3806d0bc00b515ba23759146639b2cf1e7ef938c9a1f79ceb59d30dd3e1aTransfer50550292018-02-08 20:49:461326 days 4 hrs ago0x24eff7c77253a7e32789591a97c594cff91080b1 IN  BlockbitsDirectFunding2 Ether0.0024257641
0xed94657a4549775f33059c4e4a558d2dae4c2ce8a5f3d2e03b569345032edca9Transfer50425192018-02-06 18:16:111328 days 7 hrs ago0x91417ed54ea79ae0d0801d7282a85722eeff2d44 IN  BlockbitsDirectFunding0.2 Ether0.17708077273
0x1ad1bb26024daea5fe7638679e688c26508fe5a90d7bb25f3e9ee1df86c0927fSet Funding Asse...50205202018-02-03 1:51:111331 days 23 hrs agoBlockbits: Deployer IN  BlockbitsDirectFunding0 Ether0.0002885710
0x41213de43ecc5f6b94b7008aef4683a55a8435ee62e062b773b2b87626a2fd3d0x6060604050155002018-02-02 5:24:191332 days 20 hrs agoBlockbits: Deployer IN  Create: FundingInputDirect0 Ether0.0032274610
[ Download CSV Export 
Latest 5 internal transactions
Parent Txn Hash Block From To Value
0x410cb9f4c685e86fbbc52740a09e23433e42c7f1c7ff8b9b52edc7f895b7cd8352566522018-03-15 0:19:501292 days 1 hr ago BlockbitsDirectFunding 0x58534c480ef96b6478940f9bbf6748da8f2ec9350.1 Ether
0x5eb5cb5d7e7c281e8d5224f29af33b3ced79535c3cb648871717123034406ebf52277632018-03-10 2:17:351296 days 23 hrs ago BlockbitsDirectFunding 0x58534c480ef96b6478940f9bbf6748da8f2ec9350.27 Ether
0x975b145f48a8ae431b55bbd139bdba9ae39f1714d3f4b0f7498176baa1f0fe1651503112018-02-24 22:30:111310 days 3 hrs ago BlockbitsDirectFunding 0x58534c480ef96b6478940f9bbf6748da8f2ec9350.01 Ether
0xe63c3806d0bc00b515ba23759146639b2cf1e7ef938c9a1f79ceb59d30dd3e1a50550292018-02-08 20:49:461326 days 4 hrs ago BlockbitsDirectFunding 0x58534c480ef96b6478940f9bbf6748da8f2ec9352 Ether
0xed94657a4549775f33059c4e4a558d2dae4c2ce8a5f3d2e03b569345032edca950425192018-02-06 18:16:111328 days 7 hrs ago BlockbitsDirectFunding 0x58534c480ef96b6478940f9bbf6748da8f2ec9350.2 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FundingInputDirect

Compiler Version
v0.4.17+commit.bdeb9e52

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-02-02
*/

pragma solidity ^0.4.17;

/*

 * source       https://github.com/blockbitsio/

 * @name        General Funding Input Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

*/



contract FundingInputGeneral {

    bool public initialized = false;
    uint8 public typeId = 0;
    address public FundingAssetAddress;
    address public deployer;

    event EventInputPaymentReceived(address sender, uint amount, uint8 _type);

    function FundingInputGeneral() public {
        deployer = msg.sender;
    }

    function setFundingAssetAddress(address _addr) public {
        require(initialized == false && msg.sender == deployer);
        FundingAssetAddress = _addr;
        initialized = true;
    }

    function () public payable {
        buy();
    }

    function buy() public payable returns(bool) {
        if(msg.value > 0) {
            if(isContract(FundingAssetAddress)) {
                if(FundingAssetAddress.call.value(msg.value)(bytes4(bytes32(keccak256("receivePayment(address,uint8)"))), msg.sender, typeId)) {
                    EventInputPaymentReceived(msg.sender, msg.value, typeId);
                    return true;
                } else {
                    revert();
                }
            }
            else {
                revert();
            }
        } else {
            revert();
        }
    }

    // this call adds 704 gas, good enough to keep
    function isContract(address addr) internal view returns (bool) {
        uint size;
        assembly { size := extcodesize(addr) }
        return size > 0;
    }
}

/*

 * source       https://github.com/blockbitsio/

 * @name        Direct Funding Input Contract
 * @package     BlockBitsIO
 * @author      Micky Socaci <[email protected]>

*/





contract FundingInputDirect is FundingInputGeneral {
    function FundingInputDirect() FundingInputGeneral() public {
        typeId = 1;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"initialized","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"setFundingAssetAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"FundingAssetAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"typeId","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"deployer","outputs":[{"name":"","type":"address"}],"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":"sender","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"_type","type":"uint8"}],"name":"EventInputPaymentReceived","type":"event"}]

60606040526000805461ffff19169055341561001a57600080fd5b60018054600160a060020a033316600160a060020a03199091161790556000805461ff00191661010017905561033d806100556000396000f3006060604052361561005c5763ffffffff60e060020a600035041663158ef93e81146100675780634307998a1461008e5780636cef5ff4146100af5780638f940f63146100de578063a6f2ae3a14610107578063d5f394881461010f575b610064610122565b50005b341561007257600080fd5b61007a610264565b604051901515815260200160405180910390f35b341561009957600080fd5b6100ad600160a060020a036004351661026d565b005b34156100ba57600080fd5b6100c26102d7565b604051600160a060020a03909116815260200160405180910390f35b34156100e957600080fd5b6100f16102ec565b60405160ff909116815260200160405180910390f35b61007a610122565b341561011a57600080fd5b6100c26102fa565b60008034111561025c5760005461014790620100009004600160a060020a0316610309565b1561025c57600054620100009004600160a060020a0316346040517f726563656976655061796d656e7428616464726573732c75696e7438290000008152601d01604051809103902060e060020a90049033600060019054906101000a900460ff1660405160e060020a63ffffffff8616028152600160a060020a03909216600483015260ff16602482015260440160006040518083038185886187965a03f193505050501561025c577f2b0289b9abb0ad9650d2791dc732a4247dcfe4b42b73deefba6fa9d3d80714813334600060019054906101000a900460ff16604051600160a060020a039093168352602083019190915260ff166040808301919091526060909101905180910390a1506001610261565b600080fd5b90565b60005460ff1681565b60005460ff1615801561028e575060015433600160a060020a039081169116145b151561029957600080fd5b6000805460ff19600160a060020a03909316620100000275ffffffffffffffffffffffffffffffffffffffff00001990911617919091166001179055565b600054620100009004600160a060020a031681565b600054610100900460ff1681565b600154600160a060020a031681565b6000903b11905600a165627a7a72305820ea49cbbd3149c3c775675f9a32638445adf0041be061927c491ba981a9adefce0029

Swarm Source

bzzr://ea49cbbd3149c3c775675f9a32638445adf0041be061927c491ba981a9adefce
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.