Back to Home

Delegator

0x000b49544111...aff3606a34a0
ByzantiumSource VerifiedEdit this contract
Deployed September 28, 2018 (7 years ago)Block 6,414,055

Augur's Delegator, which looks its implementation up by name in the Augur controller on every call.

Byzantium EraVerified Source

Historical Significance

Augur put every deployed component behind one of these and addressed them by name rather than by address. A registry keyed on names meant the system could be reasoned about as a set of roles, and an upgrade meant pointing a name somewhere new. The early return on an unset key is the detail that shows this was expected to be deployed before it was configured.

Key Facts
Deployment Block
6,414,055
Deployment Date
Sep 28, 2018, 08:14 AM
Code Size
663.0 B

Description

The contract stores a controller and a lookup key. Its fallback returns immediately if the key is unset, which is how a delegator that has not been wired up stays inert rather than delegating to the zero address. Otherwise it calls lookup on the controller with the stored key, delegatecalls whatever address comes back with the original calldata, and passes the return data through.

getController and setController come from Augur's Controlled base, with setController restricted to the current controller. controllerLookupName exposes the key, so anyone can see which Augur component a given delegator stands in for.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.20

Bytecode Overview

Opcodes663
Unique Opcodes103
Jump Instructions30
Storage Operations10

External Links