Contract 0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f53638

 

TxHash Block Age From To Value [TxFee]
0x0811b076c3783db5a4da31752ae544328cffda288a47d18bb08ebdd82b043ac46132085221 days 6 hrs ago0x109c1a93948f3eacb4f78104bbc48e0ff654c81d IN  0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f536380 Ether0.00013366
0xedabdd5ee0d4e45730c416b4dc055925778f157b08d0af7e6e3b2490ac0e218e4702173466 days 23 hrs ago0x87f1179a8101818b4925998cadc53bb44e58665f IN  0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f536380 Ether0.002042937
0xf2d86947e29a522c65ff946ccf5e88351e18f96f3791d9a8913fcee32ac5d0bd4702159466 days 23 hrs ago0x87f1179a8101818b4925998cadc53bb44e58665f IN  0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f536380 Ether0.001544472
0x879bd8dfd5086930eebe022d435a362a0d64fc848ebfd7be55ddf6c1240b445a4702100466 days 23 hrs ago0x87f1179a8101818b4925998cadc53bb44e58665f IN  0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f536380 Ether0.00162025
0xb9dad5852d778d420c9973c4acc6f04f0bda5fc4ce40d04352f8e5e939afcc0b4701504467 days 1 hr agoBinance 1 IN  0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f536380.5 Ether0.00943812
0x08a2676f7a8e235f862fa015decd41223475ac01995188fd2c906175e9f09a054695523468 days 2 hrs ago0x87f1179a8101818b4925998cadc53bb44e58665f IN  Contract Creation0 Ether0.03247629
[ Download CSV Export 

Latest 2 internal transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x0811b076c3783db5a4da31752ae544328cffda288a47d18bb08ebdd82b043ac46132085221 days 6 hrs ago0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f536380xfac1d48e61353d49d8e234c27943a7b58cd94fd60 Ether
0xedabdd5ee0d4e45730c416b4dc055925778f157b08d0af7e6e3b2490ac0e218e4702173466 days 23 hrs ago0x2d6cb85e108326a8bbb72ca6f3c9f0f3c7f536380x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be0.5 Ether
[ Download CSV Export 
Contract Self Destruct called at TxHash 0x0811b076c3783db5a4da31752ae544328cffda288a47d18bb08ebdd82b043ac4

Contract Source Code Verified (Exact Match)

Contract Name:
Private_Fund

Compiler Version
v0.4.18+commit.9cf6e910

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

contract Private_Fund{
    
    address public beneficiary;
    uint public amountRaised;
    uint256 public start;
    uint256 public deadline;
    address public creator;
    bool public deadline_status = false;
    
    Funder[] public funders;
    event FundTransfer(address backer, uint amount, bool isContribution);
    
    /* data structure to hold information about campaign contributors */
    struct Funder {
        address addr;
        uint amount;
    }
    
    modifier onlyCreator() {
        if (creator != msg.sender) {
            throw;
        }
        _;
     }
     
    modifier afterDeadline() { if (now >= deadline) _;}
    
    function check_deadline() {
      if (now >= deadline) deadline_status = true;
      else                 deadline_status = false;
    }
    
    function deadline_modify(uint256 _start ,uint256 _duration) onlyCreator {
       start = _start;
       deadline = _start + _duration * 1 days; 
    }
    
    function beneficiary_modify  (address _beneficiary) onlyCreator{
        beneficiary = _beneficiary;
    }
    
    /*  at initialization, setup the owner */
    function Private_Fund(address _creator, uint256 _duration) {
        creator = _creator;
        beneficiary = 0xfaC1D48E61353D49D8E234C27943A7b58cd94FD6;
        start = now;
        deadline = start + _duration * 1 days;
        //deadline = start + _duration * 1 minutes;
    }   
    
    /* The function without name is the default function that is called whenever anyone sends funds to a contract */
    function () payable {
        if(now < start) throw;
        if(now >= deadline) throw;
        
        uint amount = msg.value;
        funders[funders.length++] = Funder({addr: msg.sender, amount: amount});
        amountRaised += amount;
        FundTransfer(msg.sender, amount, true);
    }
        

    /* checks if the goal or time limit has been reached and ends the campaign */
    function withdraw_privatefund(bool _withdraw_en) afterDeadline onlyCreator{
        if (_withdraw_en){
            beneficiary.send(amountRaised);
            FundTransfer(beneficiary, amountRaised, false);
        } else {
            FundTransfer(0, 11, false);
            for (uint i = 0; i < funders.length; ++i) {
              funders[i].addr.send(funders[i].amount);  
              FundTransfer(funders[i].addr, funders[i].amount, false);
            }               
        }
    }
    
    function kill() {
      suicide(beneficiary);
    }
}

Contract ABI

[{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_start","type":"uint256"},{"name":"_duration","type":"uint256"}],"name":"deadline_modify","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"amountRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_withdraw_en","type":"bool"}],"name":"withdraw_privatefund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"beneficiary_modify","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"funders","outputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"deadline_status","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"check_deadline","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_creator","type":"address"},{"name":"_duration","type":"uint256"}],"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"}]

Contract Creation Code

60606040526004805460a060020a60ff0219169055341561001f57600080fd5b6040516040806107d5833981016040528080519190602001805160048054600160a060020a03909516600160a060020a03199586161790556000805490941673fac1d48e61353d49d8e234c27943a7b58cd94fd6179093555050426002819055620151809091020160035561073c806100996000396000f3006060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f81146101a557806329dcb0cf146101d457806338af3eed146101f957806341c0e1b51461020c57806379ce37e1146102215780637b3e5e7b1461023a578063a401e5851461024d578063be9a655514610265578063d8b5cf4314610278578063dc0d3dff14610297578063dfb4b2f0146102cf578063e6bf6ca2146102f6575b60006002544210156100ca57600080fd5b60035442106100d857600080fd5b503460408051908101604052600160a060020a033316815260208101829052600580546101088260018301610680565b8154811061011257fe5b90600052602060002090600202016000820151815473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a039190911617815560208201516001918201558054830181556000805160206106f1833981519152915033908390604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a150005b34156101b057600080fd5b6101b8610309565b604051600160a060020a03909116815260200160405180910390f35b34156101df57600080fd5b6101e7610318565b60405190815260200160405180910390f35b341561020457600080fd5b6101b861031e565b341561021757600080fd5b61021f61032d565b005b341561022c57600080fd5b61021f60043560243561033b565b341561024557600080fd5b6101e7610366565b341561025857600080fd5b61021f600435151561036c565b341561027057600080fd5b6101e7610575565b341561028357600080fd5b61021f600160a060020a036004351661057b565b34156102a257600080fd5b6102ad6004356105c5565b604051600160a060020a03909216825260208201526040908101905180910390f35b34156102da57600080fd5b6102e26105fb565b604051901515815260200160405180910390f35b341561030157600080fd5b61021f61061c565b600454600160a060020a031681565b60035481565b600054600160a060020a031681565b600054600160a060020a0316ff5b60045433600160a060020a0390811691161461035657600080fd5b6002829055620151800201600355565b60015481565b60035460009042106105715760045433600160a060020a0390811691161461039357600080fd5b811561041f57600054600154600160a060020a039091169080156108fc0290604051600060405180830381858888f15050600080546001546000805160206106f18339815191529550600160a060020a0390911693509150604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a1610571565b6000805160206106f18339815191526000600b60006040518084600160a060020a0316815260200183815260200182151515158152602001935050505060405180910390a15060005b60055481101561057157600580548290811061048057fe5b600091825260209091206002909102015460058054600160a060020a03909216916108fc9190849081106104b057fe5b9060005260206000209060020201600101549081150290604051600060405180830381858888f19350505050506000805160206106f18339815191526005828154811015156104fb57fe5b600091825260209091206002909102015460058054600160a060020a03909216918490811061052657fe5b9060005260206000209060020201600101546000604051600160a060020a039093168352602083019190915215156040808301919091526060909101905180910390a1600101610468565b5050565b60025481565b60045433600160a060020a0390811691161461059657600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60058054829081106105d357fe5b600091825260209091206002909102018054600190910154600160a060020a03909116915082565b60045474010000000000000000000000000000000000000000900460ff1681565b600354421061065f576004805474ff000000000000000000000000000000000000000019167401000000000000000000000000000000000000000017905561067e565b6004805474ff0000000000000000000000000000000000000000191690555b565b8154818355818115116106ac576002028160020283600052602060002091820191016106ac91906106b1565b505050565b6106ed91905b808211156106e957805473ffffffffffffffffffffffffffffffffffffffff19168155600060018201556002016106b7565b5090565b905600e842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf6a165627a7a723058206e31706e1bc7d8f2af8cb73f0efd7b1094a6ba465b08eb2396c8b661649140b4002900000000000000000000000087f1179a8101818b4925998cadc53bb44e58665f000000000000000000000000000000000000000000000000000000000000000a

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

00000000000000000000000087f1179a8101818b4925998cadc53bb44e58665f000000000000000000000000000000000000000000000000000000000000000a

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000087f1179a8101818b4925998cadc53bb44e58665f
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000a

Swarm Source

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