updateState must be called before calculating user debt in stability pool liquidateBorrower function which leads to incorrect debt calcualtion
Following is liquidate borrower function
It calls update state after the calculation of user debt which uses stale usage index.
Stale uasage index would be used.
call update state at the start of the function.
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.