In upgraded contracts it's important to take care of the storage collisions.
The order of the storage variables are different compared to ThunderLoan.sol vs ThunderLoanUpgraded.sol. Following command can be used to check the storage layout
forge inspect src/protocol/ThunderLoan.sol:ThunderLoan storagelayout --pretty
When the upgraded contract is called wrong storage variable will be updated.
Manual code review
Foundry
Correct the order of state variables in the upgraded contract
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.