Repay Borrow
Qore
function repayBorrow(address qToken, uint amount) external payable;Solidity
// BNB
Qore qore = Qore(<qoreAddress>);
qore.repayBorrow{ value: <underlyingAmount> }(<qBNBAddress>, <underlyingAmount>);
// Others
Qore qore = Qore(<qoreAddress>);
qore.repayBorrow(<qTokenAddress>, <underlyingAmount>);Ethers.js
// BNB
const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
await qore.repayBorrow(<qBNBAddress>, <underlyingAmount>, { value: <underlyingAmount> });
// Others
const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
await qore.repayBorrow(<qTokenAddress>, <underlyingAmount>);Last updated
Was this helpful?