Submitted by cmichel
The LendingPair.liquidateAccount function does not accrue and update the cumulativeInterestRate first, it only calls _accrueAccountInterest which does not update and instead uses the old cumulativeInterestRate.
The liquidatee (borrower)s state will not be up-to-date.
I could skip some interest payments by liquidating myself instead of repaying if Im under-water.
As the market interest index is not accrued, the borrower does not need to pay any interest accrued from the time of the last accrual until now.
Recommend calling accrueAccount instead of _accrueAccountInterest
talegift (Wild Credit) confirmed but disagreed with severity:
ghoul-sol (Judge) commented:
