Liquidswap

Liquidswap uses pool curves and V1 price bins for Aptos swaps and liquidity provision

· updated

Liquidswap is an Aptos decentralized exchange that prices token swaps through original pool curves or V1 liquidity bins, although current Aptos availability is uncertain. Its original pools use separate curves for correlated and uncorrelated assets. Liquidity providers contribute tokens and receive a claim on their pool share. V1 concentrates liquidity at selected prices and changes how participating providers earn trading fees.

Pontem developed the protocol in Move, the smart contract language used on Aptos. V0 and V0.5 are the original pool generations. Swapping exchanges tokens; supplying liquidity creates a position whose asset composition changes as trades pass through the pool.

The short version: A pool's curve determines how reserves shape prices, while its liquidity design determines how providers earn trading fees.

Trade size and pool reserves determine swap output

For a given token pair, the trade's size relative to available reserves shapes the amount returned. An automated market maker, or AMM, calculates exchange output from pool reserves and a pricing rule. The original uncorrelated pools use the constant-product relationship x × y = k. Here, x and y represent the token reserves. Before accounting for fees, a swap adds to one reserve and removes from the other along that curve. A larger trade changes the reserve ratio more sharply, worsening its average rate when other conditions remain equal.

Price impact describes the change caused by the trade itself. Slippage describes a difference between the quoted exchange and execution, including changes while the transaction awaits processing. Thin reserves can increase price impact even when the transaction executes exactly as quoted.

Consider a hypothetical original uncorrelated pool with positive reserves x and y and positive effective input a after the swap fee. Ignore integer rounding. The output is y × a / (x + a). Holding those reserves fixed, doubling the effective input produces y × 2a / (x + 2a).

The second output is less than twice the first output, because its denominator also increases. The larger trade therefore receives fewer output units per input unit. This calculation applies to the uncorrelated curve. A stable pool or a V1 bin requires its own pricing calculation.

Stable pools apply a curve for correlated assets

Original stable pools use a different curve for assets whose prices are expected to move together. Their relationship is x³y + xy³ = k, with reserves normalized for token decimals. Around balanced reserves, this curve produces less price movement than the uncorrelated curve. It therefore suits correlated exchanges. It does not enforce an asset's external market price or preserve a peg when its backing fails. Changing reserves or losing the expected correlation can still worsen execution.

Liquidity providers hold a changing share of pool assets

Deposits into original pools create LP tokens, meaning liquidity provider tokens, that represent a share of reserves. The relevant pool includes both coin types and its curve. The router calculates a deposit against the pool's existing proportions and can return unused amounts. The claim reflects the liquidity accepted by the pool; unused tokens remain outside the position. Creating a pool establishes a trading venue; supplying an existing pool expands the reserves available for exchanges.

Removing liquidity burns LP tokens and returns a proportional amount of the pool's current assets. It also redeems the provider's accumulated fee share. Withdrawal amounts can differ from the original deposit because trades change the composition of reserves. Ownership follows the LP-token balance, so keeping those tokens matters for redemption.

A liquidity position can underperform holding the same tokens separately when their relative prices change. This difference is called impermanent loss. Trading activity determines fee income, while price movement affects how the position compares with holding. The comparison includes both earned fees and the assets' value at withdrawal.

Illustration: Liquidswap: Liquidity providers hold a changing share of pool assets

View full-size image

Providing liquidity creates exposure to both the deposited assets and the pool's smart contracts. Liquidswap's documented Harvest program lets users stake LP coins or other Aptos coins for rewards funded by a staking pool. These incentives are separate from swap fees. Harvest pools can be created permissionlessly through contracts, while the app lists only whitelisted staking pools. Staked coins normally unlock after one week, or earlier when the harvest period ends or a Harvest emergency stops the pool. Harvest rewards use a separate claim operation. Pontem's product overview also lists APT staking and token creation.

V1 places concentrated liquidity in price bins

In V1, liquidity occupies bins with specific prices instead of following the original constant-product or stable curve. The bin step determines the spacing between those prices. A swap can exchange assets at one bin's fixed price while sufficient liquidity remains there. When it needs liquidity from additional bins, execution crosses different prices. Concentrated liquidity therefore does not imply one unchanged exchange rate for every trade size.

Providers allocate funds to selected bins and receive liquidity book position tokens, or LB tokens, using the Aptos Token v1 standard. These positions represent bin-level liquidity rather than an ordinary LP-coin share across an original pool. Removing liquidity burns the supplied LB tokens and returns the corresponding liquidity and accumulated fees. V1 allocates liquidity-provider trading fees to the bins used by each swap. Capital outside the prices reached by trades does not earn those trades' fees. Concentration changes how much capital participates and how closely a provider must follow the position.

The app and contract integrations expose different controls

The Aptos app documentation describes swaps, original-pool creation and liquidity deposits or withdrawals. The V1 interface documentation describes swaps, deposits into existing concentrated-liquidity pools and liquidity withdrawals. The V1 pool documentation describes new-pool creation as permissioned. The documentation also explains how to interact through contract entry functions or integrate the TypeScript SDK. In the documented design, these access paths reach protocol operations, while the surrounding interface or router determines which additional protections accompany a call. Aptos Explorer's mainnet registry classifies Liquidswap's V0, V0.5, V1, V1 Farms and router deployments as defunct and reports that the DEX app is unavailable. It does not establish which operations remain available.

Connecting a wallet identifies an account; signing authorizes the transaction that the wallet presents.

The V1 router can reject a swap that returns less than the selected minimum output. Its core pool functions do not supply that router-level slippage check. An integration that bypasses the router must implement appropriate price protection itself. Original-pool routers also expose minimum-output controls. Increasing an allowed deviation broadens the execution that a transaction accepts; it does not add liquidity or improve the pool's price.

A LayerZero-maintained bridge integration provides a separate path for bringing supported assets into Aptos. Bridging changes the network on which an asset representation is available; swapping exchanges assets within a pool. The bridge's supported networks and token representations determine whether a cross-chain deposit can supply the intended balance.

Flashloans let contract integrations borrow pool liquidity and satisfy repayment conditions within the same transaction. Move enforces this boundary through a loan object that cannot be stored, copied or discarded. Flashloan fees follow their version's rules; V1 does not apply its volatility-based swap fee to these loans.

Pool configuration and network choice change costs and access

Original-pool trading fees can differ between pools, and an authorized administrator can change them within contract limits. The configured treasury share goes to the treasury; any remainder accrues to liquidity providers. V1 combines a base swap fee with a variable component linked to volatility. A quoted fee therefore belongs to a particular pool and version. LSD is the ecosystem's governance token. The original contracts also contain administrative fee and emergency controls.

Aptos network fees are separate from the fee that the pool charges. The transaction's gas payer pays network fees in APT, even when the exchanged tokens are different assets. Execution and storage requirements affect that charge. A pool's trading-fee percentage alone cannot describe the complete cost of an on-chain swap.

A separate Liquidswap deployment serves Movement, and Pontem's January 2024 tutorial documented a separate Lumio Move VM testnet interface. These environments have their own contracts and balances. An Aptos pool's curve or fee settings do not establish the configuration on another network. Choosing a deployment therefore determines which assets, liquidity and transaction rules are relevant.

Total V1 pool reserves include liquidity at prices that a particular swap may never reach. For execution, the relevant depth lies in the bins available along that swap's direction. V1 aborts a swap when the requested amount exceeds the liquidity that the pool can supply.

Your questions, answered

Can the original pools swap for an exact output amount?

V0 Router v2 supports swaps that target an exact output amount within a maximum input limit. This differs from supplying an exact input and requiring a minimum output. The contract-level capability does not establish that every interface exposes both choices. A quote must correspond to the selected swap mode.

Why can identical token tickers lead to different pools?

A ticker does not uniquely identify a Move coin or its pool. Original pools identify coins by their full types and distinguish the curve that the pair uses. V1 also distinguishes pools by bin step. Matching labels therefore do not establish identical assets, pool configuration or liquidity.

How can I distinguish a pending swap from a successful one?

A successful Aptos swap has a committed transaction record that reports successful execution. A transaction hash can also identify a pending submission, so the hash alone does not confirm completion. The final execution status, swap event and resulting balance changes establish what the transaction actually exchanged.

What happens to original-pool withdrawals during an emergency pause?

The original emergency mechanism stops swaps and new liquidity minting while allowing LP-token burns. Redemption still has to satisfy the burn function's usual checks for the pool, liquidity amount and lock state.

Which router version should a V0 integration avoid?

V0 Router v1 has documented overflow problems in its input and output calculation functions. V0 Router v2 fixes those problems; V0.5 has a single router with those fixes included. Router numbering is separate from the V1 concentrated-liquidity generation. An integration needs the router and pool contracts that correspond to its operation.

Does buying LSD give me a claim on pool reserves?

Buying LSD does not create a liquidity-provider position. Claims on original-pool reserves come from LP tokens, while V1 uses LB position tokens. LSD is a governance token. Holding it alone does not create the redemption rights or trading-fee share that belong to a liquidity position.