The LevelOne
contract is designed to be upgradable, where graduateAndUpgrade()
points to a new contract (LevelTwo
) using UUPS (Universal Upgradeable Proxy Standard).
However, there is a storage layout mismatch between LevelOne
and LevelTwo
. Specifically
LevelOne includes:
uint256 public immutable reviewTime;
mapping(address => uint256) public reviewCount;
mapping(address => uint256) private lastReviewTime;
These fields are missing in LevelTwo
.
1) Upgraded contract will read/write from incorrect storage slots.
2) Loss of data integrity
1) Vs code
2) Manual review
Always ensure that the storage layout in the upgraded contract matches exactly with the original one.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.