Concepts

The terms you need to integrate Aqua0.

Asset vault. One contract per asset per chain (AssetVault). Locked liquidity stays here.

Principal. What a liquidity provider has locked, counted in the asset itself. It is not a token. The free part can be withdrawn at any time.

Strategy. Liquidity for one market on one venue. Its strategyId is the pool id on Uniswap V4, and a hash of the pair, fee and range on 1inch Aqua, where each range is its own strategy.

Backing. An amount and a price range a liquidity provider puts on a strategy. It never moves the liquidity out of the asset vault, so one position can back several strategies at once.

Venue. A DEX a strategy fills on. A route names it by a short venue id, with its name and logo in venueInfo, so a new venue needs no change on your side. Every venue fills just in time (JIT), drawing on the asset vaults only during the swap.

Chain. Every route takes and returns a numeric chainId. Solana's is 1151111081099710.

Settlement. Each fill names the liquidity providers it draws on. Their share of the swap, fee included, lands straight in their principal.

Cross-chain swap. The swap runs on the source chain, a liquidity provider on the destination chain pays the trader at once, and the swap's output is bridged over to repay them plus a fee.

See How it works for the full picture.