Skip to content
Verified contractPartial

Bank

Address0xac4c8d63f596aabe5e6b9916246a598cf2412ec0
Balance

0 ETH

 

Transactions

2

 

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
193,620
Creation transaction
0x395af0fb70…d2132a795e

Bank.sol

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

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

    /// 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
    uint public numDeposits;
    uint public lastTs;
    uint public 
        /// 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 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 
         roi;
    uint public lastProfit;
    uint public tDiff;
    mapping (address => uint) balances;
    mapping (address => uint) timestamps;
    mapping (address => uint) profits;

    function getBalance(address a) constant returns (uint) {
        if (msg.sender != a) {
            return;
        }
        return balances[a];
    }
    function getProfit(address a) constant returns (uint) {
        if (msg.sender != a) {
            return;
        }
        return profits[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) {
        if (msg.sender != a) {
            return;
        }
        tDiff = 1;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.