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