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