Repay Borrow
Last updated
Last updated
The repay function transfers an asset into the protocol, reducing the user's borrow balance.
msg.sender: The account which borrowed the asset, and shall repay the borrow.
msg.value: (BNB only) The amount of BNB to be repaid, in wei.
qToken: The address of the qToken market to repay.
amount: The amount of the underlying borrowed asset to be repaid. A value of -1 (i.e ) can be used to repay the full amount only if not BNB.