When underlyingAmount is deposited to mint hTokens:
If resulting hTokenAmount is less than the amount of user debt; use the entire amount of minted hTokens to repay the borrow.
If resulting hTokenAmount is greater than the amount of user debt; use the debt amount to repay the borrow, and relay any remaining hTokens to the end user.
When
underlyingAmount
is deposited to mint hTokens:hTokenAmount
is less than the amount of user debt; use the entire amount of minted hTokens to repay the borrow.hTokenAmount
is greater than the amount of user debt; use the debt amount to repay the borrow, and relay any remaining hTokens to the end user.