Skip to content

Commit 2a0e8c9

Browse files
committed
Update eip_draft.md
1 parent f87edeb commit 2a0e8c9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

eip_draft.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ requires: 7, 211, 1167, 3855
1313

1414
## Abstract
1515

16-
With the `PUSH0` opcode ([EIP-3855](./eip-3855.md)), introduced with the Shanghai upgrade, we optimized the previous Minimal Proxy Contract ([ERC-1167](./eip-1167.md)) by 200 gas at deployment and 5 gas at runtime, while retaining the same functionality.
16+
With the `PUSH0` opcode ([EIP-3855](./eip-3855.md)) introduced with the Shanghai upgrade, the previous Minimal Proxy Contract ([ERC-1167](./eip-1167.md)) cen be further optimized. We provides two starndard optimized Minimal Proxy Contract with `PUSH0`: `Clone044` optimized for deployment cost, saving 200 gas at deployment and 5 gas at runtime; `Clone045` optimized for runtime cost, saving 8 gas at runtime.
1717

1818
## Motivation
1919

20-
21-
1. Reduce the contract bytecode size by `1` byte by removing a redundant `SWAP` opcode.
22-
2. Reduce the runtime gas by replacing two `DUP` (cost `3` gas each) with two `PUSH0` (cost `2` gas each).
20+
1. Reduce the contract bytecode size.
21+
2. Reduce the runtime gas by replacing `DUP` (cost `3` gas each) with `PUSH0` (cost `2` gas each).
2322
3. Increase the readability of the proxy contract by redesigning it from first principles with `PUSH0`.
2423

2524
## Specification

0 commit comments

Comments
 (0)