twicek security
UserManager.updateFrozenInfo
cannot be called from UToken
UserManager.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: