Back to Home

UserWallet

0x9693d253d60a...5e1d0b0a9d7d
ByzantiumSource VerifiedEdit this contract
Deployed November 30, 2017 (8 years ago)Block 4,648,633

Deposit wallet that accepts ether through a payable fallback and routes token sweeps through a central sweeper list by delegatecall.

Byzantium EraVerified Source

Historical Significance

A later build of the same deposit-wallet design, compiled with the optimizer off. The delegatecall indirection is what makes this scale: an exchange can deploy addresses continuously and still change how sweeps work, because none of the logic lives in the addresses it handed out.

Token Information
Decimals
0
Key Facts
Deployment Block
4,648,633
Deployment Date
Nov 30, 2017, 07:08 AM
Code Size
496.0 B

Description

One storage slot holds the sweeper list, set at construction. The payable fallback is empty, which is the point: the address can receive ether from an ordinary transfer with no further logic.

sweep asks the list which sweeper is registered for the given token, then delegatecalls it with the calldata it received. The sweeper's code executes against this wallet's storage and balance, so a single deployed sweeper serves every wallet, and swapping it out changes behaviour everywhere at once.

The amount parameter is read and discarded in the body with a bare expression statement. The sweeper needs it, and it is already in the calldata being forwarded, so the wallet has no use for it beyond keeping the signature honest.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.18

Bytecode Overview

Opcodes496
Unique Opcodes87
Jump Instructions16
Storage Operations1

External Links