ConvertFacet.convert() uses a wrong BDV when decreaseBDV = true.
In convert(), it always uses newBdv as a deposit BDV if cp.decreaseBDV = true.
But, according to the Improvements Summary, any user can decrease a deposit's BDV if the recorded BDV(fromBdv in the codebase) is greater than the current BDV(newBdv in the codebase).
From my understanding of the summary, newBdv should be used only when fromBdv > newBdv if decreaseBDV = true but the current implementation always uses newBdv whick looks incorrect.
ConvertFacet.convert() might use a wrong deposit BDV when decreaseBDV = true.
Manual Review
convert() should use mininum value of newBdv and fromBdv if decreaseBDV = true.
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.