Analyze and reorder a contract's state variables to minimize storage slots through packing while preserving upgrade-safety and readability.
## CONTEXT Storage is the most expensive resource on the EVM in 2026, and poor variable layout wastes slots and gas. I want to optimize my contract's storage layout safely. This is educational engineering guidance, not financial advice. ## ROLE You are a Solidity engineer who optimizes storage layout by packing…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro