Skip to content
Fossa

Supply liquidity

Create an AMM, deposit both assets, and redeem LP tokens.

Create a pool

Use Seed to prepare an AMM with two token deposits. Ordinary pools pair with an approved model-market token. USDC pairs require council authorization.

The initial deposit ratio sets the opening price. The program calculates initial LP supply from the geometric mean of net deposits. Transfer taxes can reduce those deposits.

Creation costs 0.025 SOL, plus network fees and account rent. A direct pool has no minimum locked LP share. Graduation creates permanently locked founding liquidity.

Deposit liquidity

Use Deposit to add both assets to an existing AMM. The program calculates both amounts from the current reserve ratio and your requested LP amount.

Set a maximum input for each asset. The transaction fails if either required input exceeds its limit. For an empty direct pool, both inputs are exact deposit amounts.

You receive LP tokens for your added share. You can add liquidity to a graduated pool, but you cannot withdraw its locked founding share.

Withdraw liquidity

Use Withdraw to redeem LP tokens for a proportional share of both reserves. Set a minimum received amount for each asset. The program burns the redeemed LP tokens. It transfers the underlying assets to you.

The final LP holder of a direct pool with no locked share can withdraw all remaining trading reserves. You can then reseed the empty pool with two new deposits. A graduated pool always retains its locked share. Accrued protocol and creator fees remain separate from trading reserves.

asset_output = floor(asset_reserve × redeemed_lp / (circulating_lp + locked_lp))

Burned LP tokens

Burning LP tokens directly through the token program does not withdraw assets. If all circulating LP tokens are burned while reserves remain, those reserves stay locked. Later deposits use the existing reserve ratio and receive only their added share. They cannot claim the locked reserves.

Value and fees

Trades change the reserve ratio. Your withdrawal can contain different token amounts from your deposit. Its value can be lower than the value of holding those tokens outside the pool.

The implemented AMM assigns its 1.25% trade fee to the protocol. LP holders do not receive a share of that trade fee.

Each deposit or withdrawal costs 0.025 SOL, plus network fees and applicable transfer taxes.