ETH Price: $2,059.98 (+3.12%)

Contract

0x459F90b6e8dc23bBF1fF4c2F22aa2149b4bd4CFf
 

Overview

ETH Balance

0.012 ETH

Eth Value

$24.72 (@ $2,059.98/ETH)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Funds50564352018-02-09 2:13:432971 days ago1518142423IN
0x459F90b6...9b4bd4CFf
0 ETH0.000033031
Withdraw Funds50564312018-02-09 2:12:542971 days ago1518142374IN
0x459F90b6...9b4bd4CFf
0 ETH0.000019861
Deposit Funds50544152018-02-08 18:21:472971 days ago1518114107IN
0x459F90b6...9b4bd4CFf
0.003 ETH0.000027611
Deposit Funds50543792018-02-08 18:10:542971 days ago1518113454IN
0x459F90b6...9b4bd4CFf
0.003 ETH0.000021871
Deposit Funds50543452018-02-08 18:01:082971 days ago1518112868IN
0x459F90b6...9b4bd4CFf
0.0032 ETH0.000021871
Deposit Funds50541672018-02-08 17:19:082971 days ago1518110348IN
0x459F90b6...9b4bd4CFf
0.00898931 ETH0.000062721
Withdraw Funds48829222018-01-10 2:08:333001 days ago1515550113IN
0x459F90b6...9b4bd4CFf
0 ETH0.0005960430
Withdraw Funds48438902018-01-02 22:00:563008 days ago1514930456IN
0x459F90b6...9b4bd4CFf
0 ETH0.000079474
Deposit Funds48438232018-01-02 21:41:403008 days ago1514929300IN
0x459F90b6...9b4bd4CFf
0.002 ETH0.00025094
Withdraw Funds47856602017-12-24 1:10:113018 days ago1514077811IN
0x459F90b6...9b4bd4CFf
0 ETH0.000660720
Deposit Funds47856482017-12-24 1:07:173018 days ago1514077637IN
0x459F90b6...9b4bd4CFf
0.075 ETH0.0018817530
Withdraw Funds47536192017-12-18 9:31:193023 days ago1513589479IN
0x459F90b6...9b4bd4CFf
0 ETH0.000099345
Deposit Funds47441852017-12-16 18:52:383025 days ago1513450358IN
0x459F90b6...9b4bd4CFf
0.01 ETH0.0015681225
Withdraw Funds40871242017-07-28 20:37:013166 days ago1501274221IN
0x459F90b6...9b4bd4CFf
0 ETH0.0001986810
Deposit Funds40871122017-07-28 20:33:563166 days ago1501274036IN
0x459F90b6...9b4bd4CFf
0.005 ETH0.0006272510
Withdraw Funds40049062017-07-10 22:21:393184 days ago1499725299IN
0x459F90b6...9b4bd4CFf
0 ETH0.0003973620
Withdraw Funds40046472017-07-10 21:00:543184 days ago1499720454IN
0x459F90b6...9b4bd4CFf
0 ETH0.000660720
Deposit Funds39859162017-07-07 2:35:443188 days ago1499394944IN
0x459F90b6...9b4bd4CFf
0.43 ETH0.00050188
Deposit Funds39179252017-06-23 12:28:033201 days ago1498220883IN
0x459F90b6...9b4bd4CFf
0.1 ETH0.0047043550
Deposit Funds39147122017-06-22 20:46:203202 days ago1498164380IN
0x459F90b6...9b4bd4CFf
0.012 ETH0.0019055830.41100371
Withdraw Funds38977782017-06-19 11:02:053205 days ago1497870125IN
0x459F90b6...9b4bd4CFf
0 ETH0.0003973620
Deposit Funds38977682017-06-19 10:59:413205 days ago1497869981IN
0x459F90b6...9b4bd4CFf
0.01 ETH0.001254520

Latest 7 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer50564312018-02-09 2:12:542971 days ago1518142374
0x459F90b6...9b4bd4CFf
0.01198931 ETH
Transfer48829222018-01-10 2:08:333001 days ago1515550113
0x459F90b6...9b4bd4CFf
0.075 ETH
Transfer48438902018-01-02 22:00:563008 days ago1514930456
0x459F90b6...9b4bd4CFf
0.002 ETH
Transfer47536192017-12-18 9:31:193023 days ago1513589479
0x459F90b6...9b4bd4CFf
0.01 ETH
Transfer40871242017-07-28 20:37:013166 days ago1501274221
0x459F90b6...9b4bd4CFf
0.005 ETH
Transfer40049062017-07-10 22:21:393184 days ago1499725299
0x459F90b6...9b4bd4CFf
0.43 ETH
Transfer38977782017-06-19 11:02:053205 days ago1497870125
0x459F90b6...9b4bd4CFf
0.01 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TimeBank

Compiler Version
v0.4.11+commit.68ef5810

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-06-19
*/

pragma solidity ^0.4.11;

contract TimeBank {

    struct Holder {
    uint fundsDeposited;
    uint withdrawTime;
    }
    mapping (address => Holder) holders;

    function getInfo() constant returns(uint,uint,uint){
        return(holders[msg.sender].fundsDeposited,holders[msg.sender].withdrawTime,block.timestamp);
    }

    function depositFunds(uint _withdrawTime) payable returns (uint _fundsDeposited){
        //requires Ether to be sent, and _withdrawTime to be in future but no more than 5 years

        require(msg.value > 0 && _withdrawTime > block.timestamp && _withdrawTime < block.timestamp + 157680000);
        //increments value in case holder deposits more than once, but won't update the original withdrawTime in case caller wants to change the 'future withdrawTime' to a much closer time but still future time
        if (!(holders[msg.sender].withdrawTime > 0)) holders[msg.sender].withdrawTime = _withdrawTime;
        holders[msg.sender].fundsDeposited += msg.value;
        return msg.value;
    }

    function withdrawFunds() {
        require(holders[msg.sender].withdrawTime < block.timestamp); //throws error if current time is before the designated withdrawTime

        uint funds = holders[msg.sender].fundsDeposited; // separates the funds into a separate variable, so user can still withdraw after the struct is updated

        holders[msg.sender].fundsDeposited = 0; // adjusts recorded eth deposit before funds are returned
        holders[msg.sender].withdrawTime = 0; // clears withdrawTime to allow future deposits
        msg.sender.transfer(funds); //sends ether to msg.sender if they have funds held
    }
}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[],"name":"withdrawFunds","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_withdrawTime","type":"uint256"}],"name":"depositFunds","outputs":[{"name":"_fundsDeposited","type":"uint256"}],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"getInfo","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"type":"function"}]

6060604052341561000c57fe5b5b61040f8061001c6000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806324600fc3146100515780633b76594d146100635780635a9b0b891461008f575bfe5b341561005957fe5b6100616100c3565b005b610079600480803590602001909190505061022f565b6040518082815260200191505060405180910390f35b341561009757fe5b61009f61034a565b60405180848152602001838152602001828152602001935050505060405180910390f35b600042600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541015156101165760006000fd5b600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051809050600060405180830381858888f19350505050151561022b57fe5b5b50565b600060003411801561024057504282115b801561025157506309660180420182105b151561025d5760006000fd5b6000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541115156102f15781600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505b34600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600082825401925050819055503490505b919050565b600060006000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154429250925092505b9091925600a165627a7a72305820b74e74f920632c739bcec843b144e6e9706ffb69261bfdee76f15b1d45e800950029

Deployed Bytecode

0x60606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806324600fc3146100515780633b76594d146100635780635a9b0b891461008f575bfe5b341561005957fe5b6100616100c3565b005b610079600480803590602001909190505061022f565b6040518082815260200191505060405180910390f35b341561009757fe5b61009f61034a565b60405180848152602001838152602001828152602001935050505060405180910390f35b600042600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541015156101165760006000fd5b600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015490506000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001819055506000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051809050600060405180830381858888f19350505050151561022b57fe5b5b50565b600060003411801561024057504282115b801561025157506309660180420182105b151561025d5760006000fd5b6000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541115156102f15781600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505b34600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600082825401925050819055503490505b919050565b600060006000600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154429250925092505b9091925600a165627a7a72305820b74e74f920632c739bcec843b144e6e9706ffb69261bfdee76f15b1d45e800950029

Swarm Source

bzzr://b74e74f920632c739bcec843b144e6e9706ffb69261bfdee76f15b1d45e80095

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.