The finalizeliquidation function in the provided Solidity code records incorrect state values because of errors in the naming of the returned values. Specifically, the amountScaled and amountBurned variables have been misnamed, This can lead to certain errors in future
The returned values amountScaled and amountBurned are incorrectly named. amountScaled should be amountBurned and amountBurned should be amountScaled.
below is the DebtToken.burn function with the returned variables;
in the returned variables the amounscaled is the third parameter while amout burned the first parameter, which was interchanged in the finalizeLiquidation function
impact is low
manual review
To mitigate this issue, correct the naming of the returned values in the finalizeliquidation function
This is confusing naming but functionally correct. The variable names are misleading, but that's not a vulnerability.
This is confusing naming but functionally correct. The variable names are misleading, but that's not a vulnerability.
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.