Проверенный контрактЧастичное
Forwarder
Адрес0xac549070ded4e4380d368e4fe7fbf98e75b3492e
- Баланс
0 ETH
- Транзакций
60
- Компилятор
solc 0.4.11
- Тот же код
ещё 89 133 контракта
Подробности
- Компилятор
- solc 0.4.11+commit.68ef5810
- Язык
- solidity
- Оптимизация
- Да, 200 прогонов
- Лицензия
- Не указана
- Совпадение
- Частичноекод создания: да, код в сети: да
- Проверен на Sourcify
- Создан в блоке
- 3 917 561
- Транзакция создания
- 0x914ef66f3f…240f995e3c
- Основная копия (больше всего транзакций)
- 0x92c6f92e…69c1cf13
Forwarder.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.8;
contract Token {
function transfer(address to, uint256 value);
}
// Deposit address: logs incoming ETH (with a fixed id, 88); only the owner (the creator) can move ETH or tokens
// out or destroy it. Calls from anyone else do nothing (no throw).
contract Forwarder {
address owner;
event Deposit(address indexed from, uint256 indexed id, uint256 value);
function Forwarder() {
owner = msg.sender;
}
function() payable {
if (msg.value > 0) Deposit(msg.sender, 88, msg.value);
}
function collectToken(address token, address to, uint256 amount) {
if (msg.sender == owner) {
Token t = Token(token);
t.transfer(to, amount);
}
}
function kill() {
if (msg.sender == owner) selfdestruct(owner);
}
function collect() {
if (msg.sender == owner) owner.send(this.balance);
}
}
Настройки компилятораПоказать
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Исходный код и метаданные: Sourcify.
Исходный код принадлежит авторам контракта.