Why Are Storage Layout Changes Dangerous in the Context of Upgradeable Smart Contracts?
Upgradeable contracts rely on the proxy contract's storage being read correctly by the new implementation contract. If the storage layout (the order and type of state variables) is changed in the new implementation, the new logic will read the wrong data from the proxy's storage slots.
This can lead to catastrophic data corruption, security vulnerabilities, or incorrect execution of financial logic.