UserManager.updateFrozenInfo cannot be called from UTokenUserManager.updateFrozenInfo to be called from UToken. Hence, if a borrower is overdue he will not be able to call UToken._repayBorrowFresh to repay his principal.UToken._repayBorrowFresh is called with an overdue borrower as borrower, the call to UToken._repayBorrowFresh will always revert if repayAmount >= interest because updateFrozenInfo is called on the UserManager contract:UserManager.updateFrozenInfo cannot be called from the UToken contract. Only the Comptroller contract can call this function:UToken._repayBorrowFresh with repayAmount >= interest will revert.UToken contract to UserManager.updateFrozenInfo by using this modifier:Posted Jul 12, 2023
Union Finance V2 Sherlock's contest: UserManager.updateFrozenInfo cannot be called from UToken
0
11