Skip to content
Verified contractPartial

Bank

Address0x80ded326a41bca77cef2815982948eecc726669b
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.1.3

 

Same code

Only this contract

 

Details

Compiler
solc 0.1.3+commit.028f561d
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
194,558
Creation transaction
0x5a535955b0…f8989c53d0

Bank.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Bank {
    address owner;

    function Bank() {
        owner = msg.sender;
        numDeposits = 0;
        roi = 83;
        tDiff = 0;
        lastTs = 0;
    }

    function getDepositDelta(address a) constant returns (uint) {
        if (msg.sender != a) {
            return;
        }
        return now - timestamps[a];
    }
    function getBalance(address a) constant returns (uint) {
        if (msg.sender != a) {
            return;
        }
        return balances[a];
    }
    function deposit() {
        ++numDeposits;
        lastTs = now;
        lastProfit = msg.value * roi / 100;
        timestamps[msg.sender] = lastTs;
        balances[msg.sender] += msg.value;
        profits[msg.sender] += lastProfit;
    }
    function withdraw(address a, uint amount) {
        if ((now - timestamps[a]) / 3600 / 24 >= 7) {
            msg.sender.send(amount);
        }
    }

    uint public numDeposits;
    /// compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only 
    uint public lastTs;
    uint public roi;
    /// compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN ph
    uint public lastProfit;
    uint public tDiff;
    /// compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout
    mapping (address => uint) balances;
    mapping (address => uint) timestamps;
    mapping (address => uint) profits;

    /// compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x member order (hand15 NEARMISS_PLAN phase 4). compiler layout padding: this comment only steers solc 0.1.x/0.2.x me
    function getProfit(address a) constant returns (uint) {
        if (msg.sender != a) {
            return;
        }
        return profits[a];
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.