Minimal Proxies

Write operations on Ethereum are costly, while read operations are practically free. So to save money we structure contracts with as much reusable logic as possible.

A minimal proxy creates a new contract address, which executes using the bytecode of a different existing contract but with a fresh memory page.

In practice, this involves getting rid of the constructor function and moving configuration data to its own initialize function.

A factory contract is convenient for handling permissions and transferring ownership.

We'll demonstrate all these things in code. At the time, this idea seemed to open a lot of possibilities, leading to our most popular protocols and innovative demonstrations.

Last updated