Back to Home

Forwarder

0x7e9677e1fca5...0fe8330431b9
ByzantiumSource VerifiedEdit this contract
Deployed November 20, 2018 (7 years ago)Block 6,738,538

Deposit forwarder on OpenZeppelin Ownable v2 that reads its payout address from a registry and carries a revert reason for failed token moves.

Byzantium EraVerified Source

Historical Significance

Indexing both parties in the deposit event, rather than only the sender, means an operator can query by payout target across every forwarder they run. The unguarded token sweep is the same reasoning as its cousins: the funds can only ever move to one place, so there is nothing to protect and a stranger paying the gas is a gift.

Key Facts
Deployment Block
6,738,538
Deployment Date
Nov 20, 2018, 08:31 AM
Code Size
2.2 KB

Description

The payable fallback asks a registry contract for getTargetAddress, transfers the incoming value there, and emits EthForwarded with the sender and the target both indexed so either side can be filtered in a log query.

transferETH is owner gated and moves a chosen amount to a chosen address. transferTokens is deliberately not owner gated, so anyone may push a stranded token balance to the registry target, and it reverts with Token transfer has failed when the ERC20 refuses. Ownership uses the later OpenZeppelin shape with a private owner field, an isOwner helper and a renounceOwnership path.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.24

Bytecode Overview

Opcodes2,204
Unique Opcodes166
Jump Instructions80
Storage Operations12

External Links