You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the logic of consuming _cr.correction, it assumed new interest is going to larger than _cr.correction, thus the forced conversion to uint256 and setting _cr.correction to 0. If the borrower made huge principal payment in the middle cycle and accumulated big negative _cr.correction and left a tiny balance, the new interest will be very small positive number, not enough to offset the accumulated big negative number, this would lead to overflow.
The text was updated successfully, but these errors were encountered:
In the logic of consuming _cr.correction, it assumed new interest is going to larger than _cr.correction, thus the forced conversion to uint256 and setting _cr.correction to 0. If the borrower made huge principal payment in the middle cycle and accumulated big negative _cr.correction and left a tiny balance, the new interest will be very small positive number, not enough to offset the accumulated big negative number, this would lead to overflow.
The text was updated successfully, but these errors were encountered: