Supply
const agile = new Agile(window.ethereum);
// Ethers.js overrides are an optional 3rd parameter for `supply`
// const trxOptions = { gasLimit: 250000, mantissa: false };
(async function() {
console.log('Supplying ETH to the Agile Protocol...');
const trx = await agile.supply(Agile.ETH, 1);
console.log('Ethers.js transaction object', trx);
})().catch(console.error);Last updated