The upgraded contract ThunderLoanUpgraded
has different storage slots for s_flashLoanFee
and s_feePrecision
(renamed to FEE_PRECISION
in upgraded contract). This causes ThunderLoanUpgraded::FEE_PRECISION
to have an incorrect value and will cause incorrect fee calculations.
Different storage layouts between implementation versions.
Incorrect fee calculation
VS code diff tool
Storage layouts should be the same between implementation versions
If new storage variables needs to be added in new implementation versions, append the new storage variables to existing hierarchy.
Modify ThunderLoanUpgraded
storage variables
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.