Question
What state model should represent pool status, reserves, existing-position balances, deposit inputs, and LP preview for Issue 30?
Answer should cover:
- active pool vs missing pool vs invalid/inactive/unreadable pool
- current-main active definition (
PoolDefinition.liquidity_pool_supply, reserves, account existence)
AddLiquidity ratio-lock math and min LP from slippage
NewDefinition independent amount entry, initial LP calculation, MINIMUM_LIQUIDITY, and invalid low-liquidity cases
- fee-tier selection and unsupported fee rejection
- account preview rows for created/updated accounts
Question
What state model should represent pool status, reserves, existing-position balances, deposit inputs, and LP preview for Issue 30?
Answer should cover:
PoolDefinition.liquidity_pool_supply, reserves, account existence)AddLiquidityratio-lock math and min LP from slippageNewDefinitionindependent amount entry, initial LP calculation,MINIMUM_LIQUIDITY, and invalid low-liquidity cases