Проверенный контрактЧастичное
Bank
Адрес0xac4c8d63f596aabe5e6b9916246a598cf2412ec0
- Баланс
0 ETH
- Транзакций
2
- Компилятор
solc 0.1.3
- Тот же код
Только этот контракт
Подробности
- Компилятор
- solc 0.1.3+commit.028f561d
- Язык
- solidity
- Оптимизация
- Нет
- Лицензия
- Не указана
- Совпадение
- Частичноекод создания: нет, код в сети: да
- Проверен на Sourcify
- Создан в блоке
- 193 620
- Транзакция создания
- 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;
}
}
Настройки компилятораПоказать
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Исходный код и метаданные: Sourcify.
Исходный код принадлежит авторам контракта.