Back to Home

Collector

Unclassified
0xc87af16cc3c2...1f58efb1dec5
ByzantiumSource VerifiedEdit this contract

Bytecode verified via sibling

This contract shares identical runtime bytecode with a verified contract (0x03a56552...) which has been verified through compiler archaeology.

Deployed October 5, 2018 (7 years ago)Block 6,459,007

Token collection point: anyone may push any ERC-20 balance it holds to a beneficiary the owner controls, and nobody can redirect it in the same call.

Byzantium Era

Historical Significance

Separating who may trigger a transfer from who decides where it goes is the small idea worth taking from this. Most collection contracts of the period gated the sweep behind the owner, which meant the owner's key had to be online to do routine work. Here the key is needed only to change the destination, and the routine work is open to anyone, which is both cheaper to operate and a smaller target.

Key Facts
Deployment Block
6,459,007
Deployment Date
Oct 5, 2018, 04:32 PM
Code Size
1.1 KB
Gas at Deploy
408,912
Transactions by Year
20191
20211

Description

Two addresses in storage, an owner and a beneficiary. collect takes a token, reads this contract's balance of it, refuses if the balance is zero, sends the whole amount to the beneficiary and emits the amount released.

collect has no access control, and that is deliberate rather than an oversight: the destination is not a parameter, so the only thing an outside caller can do is move funds to where the owner already decided they should go. Sweeping becomes a chore anyone can pay the gas for, including a bot with no keys.

balanceOf is a convenience view that rejects the zero address and otherwise reports the contract's balance of the given token, so an operator can check before paying for a sweep. changeBeneficiary and transferOwnership are owner-only, and the latter refuses the zero address and logs the change.

Heuristic Analysis

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

Detected Type: Unclassified

Bytecode Overview

Opcodes1,147
Unique Opcodes154
Jump Instructions63
Storage Operations12

External Links

Related contracts