Deposit wallet that pushes its balance to a manager and reports the amount.
Historical Significance
The push-and-notify shape, forward the ether and tell the manager who it came from, is how deposit systems attributed funds before event indexing was dependable.
Key Facts
Description
A deposit wallet with a payable fallback and a single cashin() entry point guarded by a modifier that silently does nothing unless the caller is the owner. When the owner calls it, the wallet requires a non-zero balance and then calls cashin(address,uint256) on a manager contract held in its second storage slot, sending the full balance as value and passing its own address and the amount so the manager can credit the right account. A failed call reverts. The runtime code matches the deployed bytecode byte for byte; only the trailing swarm metadata hash differs, because the EthereumHistory attribution comment changes the source text. Sourcify records this as a partial match and Etherscan shows it as verified.
Source Verified
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
// Submitted by EthereumHistory (ethereumhistory.com)
pragma solidity ^0.4.10;
contract Manager {
function cashin(address from, uint256 amount) payable returns (bool);
}
contract Wallet {
address owner;
Manager manager;
modifier onlyOwner() {
if (msg.sender == owner) {
_;
}
}
function () payable { }
function cashin() onlyOwner {
Manager m;
if (this.balance <= 0) revert();
m = manager;
if (!m.cashin.value(this.balance)(this, this.balance)) revert();
}
}