Back to Home

Deposit

Unclassified
0xd6feb089a718...6f89d875db96
ByzantiumSource VerifiedEdit this contract
Deployed September 3, 2018 (8 years ago)Block 6,262,639

Deposit address that forwards its whole balance to a vault on every payment and logs the payer, with an owner-only escape hatch for stranded tokens.

Byzantium EraVerified Source

Historical Significance

Sweeping the full balance rather than the received amount is the detail that makes this self-correcting: a deposit that lands while the vault is unreachable is not lost, it is simply collected by the next one. Indexing both the payer and the vault in a single event is the other practical touch, and it is what lets one operator run the same contract for many vaults and still reconcile by destination.

Key Facts
Deployment Block
6,262,639
Deployment Date
Sep 3, 2018, 05:30 AM
Code Size
994.0 B
Gas at Deploy
362,200

Description

Two addresses are held: an owner who can change nothing but configuration, and the vault that receives the money. The payable fallback sends the contract's entire balance to the vault, not just the amount received, so any dust left behind by an earlier failed forward goes out with the next payment. It then emits TransferEther with both the payer and the vault indexed, which lets an operator query by either side.

drainTokens is the token counterpart and is owner-only. It takes an amount, a token and a destination, and treats the zero address as a shorthand for the vault, so the common case of sweeping a stray token to where the ether goes needs no extra argument. changeOwnership and changeVaultAddress are the only other functions, both owner-only, both returning a boolean rather than reverting on success.

The forward uses transfer, so the 2300 gas stipend applies and a vault that is itself a contract with any real fallback logic will reject the payment and revert the whole deposit.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.24
Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Unclassified

Bytecode Overview

Opcodes994
Unique Opcodes141
Jump Instructions46
Storage Operations12

External Links

Related contracts