Repay Borrow
const Belugas = new Belugas(window.ethereum);
(async function() {
console.log('Repaying Usdc borrow...');
const address = null; // set this to any address to repayBorrowBehalf
const trx = await Belugas.repayBorrow(Belugas.USDC, 32, address);
console.log('Ethers.js transaction object', trx);
})().catch(console.error);Last updated