Skip to content
Verified contractPartial

Deposit

Address0x073a39f18775ea6a2d6b3016265ffe5dc427bfbc
Balance

0 ETH

 

Transactions

11

 

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,186,595
Creation transaction
0xd453155190…4d4ca56413
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.