Take a look at LiquidationPoolManager.sol#L59-L82
Snippet is from LiquidationPooolManger#runLiquidation()
Issue with snippet is that some tokens can not re-approve an address if it' had a previously positive approval, i.e USDT for example requires setting the approval to 0 before setting it to any other value, now since code does not reset approval to 0 this leads to a DOS.
DOS to liquidations, since the approval is being set for these tokens per attemopt to liquidate, this wouldn't work when the token in the assets include this logic of not allowing alrterady set approvals to a different positive value, essentially causing protocol to hold on to bad debts
First set approval of thist token to zero before setting the new value.
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.