Verified contractPartial
Deposit
Address0x2e1ad2faad13480b4d316aaf99d3c60cde3da2ca
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.4.16
- Same code
163,763 more contracts
Details
- Compiler
- solc 0.4.16+commit.d7661dd9
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,429,667
- Creation transaction
- 0x5e91b3ff92…7c2ead8f15
- Main copy (most transactions)
- 0x933a32d1…e816e2c4
Deposit.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.11;
contract Token {
function transfer(address to, uint256 value) returns (bool);
}
// Exchange deposit address: accepts ETH and tokens; only the owner (a fixed address, the deployer) can move them on.
// Calls from anyone else do nothing (no revert).
contract Deposit {
address owner = 0x9862D074e33003726fA05c74F0142995f33A3250;
modifier onlyOwner {
if (msg.sender == owner) _;
}
function() payable {
}
function collect(address to, address token, uint256 amount) onlyOwner {
Token t = Token(token);
t.transfer(to, amount);
}
// note: compares the caller's balance, not this contract's
function collectEth(address to, uint256 amount) payable onlyOwner {
if (msg.sender.balance >= amount) {
to.transfer(amount);
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.