import { LiquidityPoolFactory } from '@mcdex/mai3.js'
const liquidityPool = LiquidityPoolFactory.connect(liquidityPoolAddress, provider)
// withdraw 1 amount of collateral to account (withdraw amount is 18 decimal)
liquidityPool.withdraw(0, trader.address, toWei("1")) // please check permission of sender
// withdraw 100 amount of collateral to account (withdraw amount is 18 decimal)
liquidityPool.withdraw(0, trader.address, toWei("100")) // please check permission of sender