Supply
const strike = new Strike(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 Strike Protocol...');
const trx = await strike.supply(Strike.ETH, 1);
console.log('Ethers.js transaction object', trx);
})().catch(console.error);Last updated
Was this helpful?