Lucene search

K
code423n4Code4renaCODE423N4:2023-05-VENUS-FINDINGS-ISSUES-451
HistoryMay 15, 2023 - 12:00 a.m.

Comptroller.sol#healAccount did not call updateRewardTokenBorrowIndex to update the reward

2023-05-1500:00:00
Code4rena
github.com
6
healaccount
updaterewardtokenborrowindex
reward
debt
mitigation
vulnerability

Lines of code

Vulnerability details

Impact

healAccount should call updateRewardTokenBorrowIndex to calculate the reward before affecting the debt value.

Proof of Concept

Tools Used

manual

Recommended Mitigation Steps

call updateRewardTokenBorrowIndex before heal account.

Assessed type

Other


The text was updated successfully, but these errors were encountered:

All reactions