lendingPool.updateState should be updated before userDebt calculation in the function liquidateBorrower. as lendingPool.updateState is updated after userDebt calculation in the function liquidateBorrower,so userDebt calculation will be incorrect.
lendingPool.updateState should be updated before userDebt calculation in the function liquidateBorrower. as lendingPool.updateState is updated after userDebt calculation in the function liquidateBorrower,so userDebt calculation will be incorrect.
** userDebt calculation will be incorrect in the liquidateBorrower(StabilityPool.sol).**
manual review
update lendingPool.updateState before userDebt calculation in the function liquidateBorrower.
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.