repayAmount is not allowed to exceed accountBorrowsPrev, which leads to the fact that if the UnderlyingToken has transaction fees, some debts will never be repaid. Cause the user to never be able to call exitMarket
Proof of Concept
Tools Used
manual
Recommended Mitigation Steps
It is recommended to allow repayAmount to exceed accountBorrowsPrev to cover transaction fees
Lines of code
https://github.com/code-423n4/2023-05-venus/blob/main/contracts/VToken.sol#L946
Vulnerability details
Impact
repayAmount is not allowed to exceed accountBorrowsPrev, which leads to the fact that if the UnderlyingToken has transaction fees, some debts will never be repaid. Cause the user to never be able to call exitMarket
Proof of Concept
Tools Used
manual
Recommended Mitigation Steps
It is recommended to allow repayAmount to exceed accountBorrowsPrev to cover transaction fees
Assessed type
DoS