Borrow
const strike = new Strike(window.ethereum);
(async function() {
const usdtScaledUp = '32000000000000000000';
const trxOptions = { mantissa: true };
console.log('Borrowing 32 Usdt...');
const trx = await strike.borrow(Strike.USDT, usdtScaledUp, trxOptions);
console.log('Ethers.js transaction object', trx);
})().catch(console.error);Last updated
Was this helpful?