const pool = await powfi.cpmm.getPoolState(alph, usdt)
const q = CpmmModule.computeLiquidityAmounts({
poolState: pool,
tokenAId: alph,
tokenBId: usdt,
amountA: 200n * 10n ** 18n,
inputType: 'TokenA'
})
// q.amountB -> USDT needed
// q.shareAmount -> LP tokens you'll receive
// q.sharePercentage -> your % of the pool after deposit
await powfi.cpmm.addLiquidity({
poolState: pool,
tokenAId: alph,
tokenBId: usdt,
amountA: q.amountA,
amountB: q.amountB,
slippageBps: 50n,
sender: address
})