Liquidswap applies pool-specific liquidity rules to Aptos swaps and liquidity positions

Updated on

Liquidswap is an automated market maker on Aptos where traders exchange tokens against on-chain pools and providers supply the assets those pools use. A quote estimates the expected result. The selected contract version, pool, curve or bin step and fee settings determine execution. Encoded minimum amounts set the lowest result the transaction may accept. Those details matter because a wallet signature authorizes the transaction payload and its contract call, not the screen image. V0.5 pools represent deposits with LP coins and use separate stable and uncorrelated curves. V1 organizes liquidity into price bins and represents positions with LB tokens. This page explains both paths, the checks each requires and how to confirm a swap or liquidity change before continuing.

The short version: Pool version, asset identity and minimum-output settings determine whether an Aptos swap or liquidity change settles as intended.

Swaps and liquidity positions serve different purposes

A swap changes one Aptos asset into another through liquidity already held by a selected pool. The input increases one side of that pool while the contract calculates the available output from its pricing model. The trader pays the applicable pool fee and accepts only an output meeting the transaction’s minimum-output condition.

Liquidity provision creates a different commitment. A provider deposits assets into a curve pool or selected V1 bins and receives an on-chain position record. Trading activity can generate fees for eligible liquidity, yet swaps also change the position’s asset composition. Removing liquidity later returns assets according to the pool state and the position owned at that time, not necessarily the original quantities.

What must align before a Liquidswap transaction can proceed?

The wallet network, asset identifiers, contract family and transaction limits must all match the intended operation.

Before any of that matters, the account needs the input assets and enough balance for the Aptos network fee. A familiar ticker does not prove asset identity because separate assets can display the same symbol. The on-chain type or other asset identifier determines which contract resource the transaction will use.

Pool compatibility comes next. The chosen pair must exist under the selected version and pool design. A V0.5 operation also depends on the stable or uncorrelated curve. A V1 operation depends on a particular bin step and the liquidity available around its active bin. Sparse liquidity can reduce the obtainable output or leave a requested amount unavailable under the chosen limit.

The signed transaction payload sets the commitment boundary. Compare its input amount, route or pool and minimum output with the current quote. The estimated output and pool fee may appear only in the quote rather than as separate payload fields. If any field differs from the intended operation, rejecting the request leaves room to inspect the discrepancy before signing.


Pool versions change the liquidity model

Liquidswap documentation describes two contract families with different pricing mechanics and position records. Treating them as interchangeable can obscure their fee logic, withdrawal mechanics and price exposure.

Two contract families

V0.5 curve pools

V0.5 continues the curve-based design used by earlier contracts. Uncorrelated pools use the constant-product relationship x * y = k, so trades move the reserve ratio and therefore the quoted price. Stable pools use a separate curve intended for assets expected to remain closely correlated. Providers deposit pool assets and receive LP coins representing their proportional share. Burning those LP coins redeems the corresponding reserves and accumulated provider fees under the pool’s state.

V1 liquidity book pools

In V1, each bin holds liquidity at a specific price. The active bin corresponds to the pool’s active price area, and a swap can move across adjacent bins when it exhausts available liquidity. The bin step controls the price interval between them.

Providers choose where to place liquidity rather than holding only one pool-wide share. LB position tokens record ownership within a pool and bin. Fees accrue to liquidity in bins used by swaps, while V1 can combine a base fee with a variable component influenced by pool activity and bins crossed. The displayed pool configuration therefore matters more than a protocol-wide fee assumption.

How does a swap move from quote to settlement?

A swap reaches settlement only after the quoted operation passes its encoded limits and the Aptos transaction completes successfully.

The usable starting state consists of the correct network, identified input and output assets, a selected pool and a current quote. Before signing, compare the transaction request with the current quote, including the intended input, route or pool and minimum output. Signing authorizes that payload; it does not freeze pool reserves or the active bin while the transaction waits for execution.

After submission, the transaction hash identifies the on-chain attempt. A successful status and the resulting asset balance provide the handoff evidence from the swap contract to the account. A pending notification or wallet popup does not establish settlement by itself.

If another trade changes the pool enough to push output below the encoded minimum, the swap aborts rather than settling at the lower amount. Refreshing the pool state produces a new quote for review. The reader can then accept the revised terms, change the input or stop without resubmitting the stale payload.

How does a swap move from quote to settlement?: After submission, the transaction hash identifies the on-chain attempt.; A successful status and the resulting asset balance provide the handoff evidence from the swap contract to the account.; A pending notification or wallet popup does not establish settlement by itself.

Open full-size image


Price impact, slippage limits and fees are separate constraints

Price impact comes from the trade’s interaction with available liquidity. In V0.5, the reserve curve changes the exchange rate as the trade changes pool balances. In V1, output can span multiple fixed-price bins, with each crossed bin moving execution to another price level. Deeper liquidity near the active price generally leaves more output available before that movement becomes material.

A slippage or minimum-output setting defines the lowest result the transaction may accept; it does not remove price impact. Pool fees form another deduction. V0.5 stores configurable fee settings for each pool, while V1 uses pool parameters for base and variable fees. The Aptos network fee pays for transaction execution separately, so a complete cost review distinguishes the pool charge, the quoted price movement and the network charge.

Which checks belong before adding liquidity?

The necessary checks are contract version, asset identity, pool design, price exposure and the position record the provider will receive.

Curve-pool providers hold a proportional claim on changing reserves. V1 providers choose bins, so the active price can move away from their liquidity. Those bins stop participating in swaps until the price returns or the provider changes the position. In either model, fee income does not guarantee the combined assets will retain their starting value.

Position decision checklist

Removal follows the same version boundary. V0.5 burns LP coins to redeem a proportional share of both reserves. V1 redeems the bins represented by LB position tokens and applies minimum amounts for the returned assets. A position’s displayed value can change between deposit and removal as trades and market prices alter its composition.

State verification closes the transaction loop

Submission, execution and the resulting account state are separate facts. Only the latter two establish whether the requested change occurred.

A successful swap should have a successful Aptos transaction status and a corresponding output-asset balance change. Adding liquidity should create the version-specific position record, while removal should reduce that record and return assets. A failed status calls for reading the failure reason and current balances before any retry because repeating the same payload may repeat the same constraint failure.

Position identity also deserves a final check. A ticker or collection label can resemble another asset, so the pool and on-chain identifier remain decisive. For example, a V1 LB position links ownership to a particular pool and bin ID.

Liquidswap - common questions

Is Liquidswap a custodial exchange?

No. Liquidswap uses Aptos smart contracts to execute swaps and manage liquidity positions from a connected account. The wallet signs the transaction, and successful settlement changes the assets or position records held by that account. The interface can prepare a request, but it does not turn the transaction into a custodial exchange balance. The signed payload determines the network, contract call, assets and amounts the wallet authorizes.

Does a Liquidswap swap require an Aptos network fee?

Yes. A submitted Liquidswap transaction consumes Aptos network resources, so the account needs enough of the network’s gas asset unless a separate sponsorship mechanism applies. The pool’s swap fee is a different cost: it belongs to the pool logic, while the network fee pays for execution. Both can affect one transaction, but they have different recipients and can change for different reasons.

Can identical token tickers identify different Aptos assets?

Yes. A ticker is display metadata and does not uniquely identify an on-chain asset. Separate tokens can use the same symbol while pointing to different coin types or asset metadata. The transaction’s asset identifier determines which balance and pool the contract will use. Checking that identifier is especially important before swapping or depositing liquidity because a familiar ticker alone cannot establish the asset’s origin or pool compatibility.

How does the curve-based emergency brake affect withdrawals?

The documented emergency brake for the curve-based contract family can stop swaps and new liquidity minting while leaving LP-coin burns available. That design preserves a withdrawal path when active pool operations are paused. It does not promise a particular redemption value or remove Aptos execution requirements. The account still needs the correct LP coin, matching pool parameters and a valid transaction to redeem its proportional share.

Can developers call Liquidswap pool contracts without a router?

Yes, although direct pool calls require the caller to supply protections the pool function may not provide. The router layers price, amount and slippage checks over core pool operations, and V1 documentation recommends it for swaps, minting and burning. A custom integration calling the pool directly must understand token ordering, pool parameters and minimum-result enforcement instead of assuming the core call validates an acceptable economic outcome.

Does swapping on Liquidswap move assets between blockchains?

No. A Liquidswap swap exchanges assets already represented on Aptos through an Aptos liquidity pool. Moving value from another blockchain is a separate bridge operation with its own transaction states, fees and asset representation. Completing a bridge does not automatically perform a swap, and executing a swap does not return assets to their source chain. Each operation needs its own completion evidence before the next one begins.

Is a liquidity position guaranteed to earn fees?

No. Fee earnings require trading activity to use the relevant liquidity. V0.5 providers participate through their pool share, while V1 providers earn from bins involved in swaps. A V1 position outside the active trading area may receive no fees until trading reaches those bins again. Price movement can also change the quantities held by a position, so earned fees do not guarantee a positive result after withdrawal.