Repay Borrow Behalf
The repay function transfers an asset into the protocol, reducing the target user's borrow balance.
Qore
msg.sender: The account which 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.
borrower: The account which borrowed the asset to be repaid.
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.
Solidity
Ethers.js
Last updated