Back to Home

Proxy

0x00032da8aef4...8556e48377e2
ByzantiumSource VerifiedEdit this contract
Deployed February 16, 2018 (8 years ago)Block 5,102,741

An 86 byte delegatecall proxy that forwards every call to one hardcoded implementation and passes the return data straight back.

Byzantium EraVerified Source

Historical Significance

A gas study in miniature. Using msize instead of reading the free memory pointer, forwarding gas as a fraction rather than a subtraction, and reusing the switch statement's own copy of the result all shave bytes off a pattern that later became the standard minimal proxy. Three sibling families share this exact code and differ only in the twenty bytes of the implementation address.

This contract is a proxy that delegates all calls to 0x0f32732e4885f0dd61b64eef144329eb809a96e1. See the master contract for the full logic.
Key Facts
Deployment Block
5,102,741
Deployment Date
Feb 16, 2018, 08:56 PM
Code Size
86.0 B

Description

The whole contract is a single payable fallback written in inline assembly. It allocates scratch space with msize, copies the calldata there, delegatecalls a hardcoded implementation address with 63/64ths of the remaining gas, copies the return data out, and then either returns it or reverts with it depending on the result.

The deployed runtime carries no metadata trailer, which is unusual for its era and means the deployer stripped the compiler footer before deployment. That is why the on chain code is 86 bytes rather than 129. The Solidity that produces those 86 bytes exactly is published here; solc 0.4.14 with the optimizer on and runs set to 1 reproduces them byte for byte. The registry record uses a Yul verbatim equivalent, because the stripped trailer makes the Solidity form a length mismatch for automated verifiers.

Source Verified

Solidityeh_crack_source_verified
Compiler: v0.4.14

Bytecode Overview

Opcodes86
Unique Opcodes45
Jump Instructions2
Storage Operations0

External Links