The finalizeLiquidation
function contains multiple vulnerabilities that can result in incorrect calculations, inconsistent state updates. These issues could impact the stability and security of the liquidation process, potentially unfair liquidations.
The function allows liquidations after a grace period, but there is no enforcement of a min/max bound for the liquidationGracePeriod
. This lack of restriction could lead to unexpected delays or overly aggressive liquidations. Also the function updates the state after external call.
Missing grace period protection means liquidations might happen too soon or too late, impacting users unfairly.
If safeTransferFrom
or transferFrom
fails, the contract will be left in an inconsistent state, potentially leading to debt mismatches and asset mismanagement.
Potential Loss of NFTs
Manual review
Implement min and max grace period protection, and update the state before external calls.
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.