Ambient is a DEX for Concentrated and Always-On Liquidity
Ambient is a decentralized exchange where traders swap tokens against one curve combining targeted price bands with always-active liquidity. Formerly called CrocSwap, the protocol supports concentrated, full-range, and knockout positions inside one CrocSwapDex smart contract. Every swap pays the displayed pool fee and its network execution cost.
Ambient and Uniswap V3 Organize Concentrated Liquidity Differently
On the same footing, Ambient combines liquidity styles inside one shared pool, while Uniswap V3 separates a token pair across fee-tier-specific pool contracts.
Both protocols use constant-product mathematics and price ticks for concentrated positions, yet their storage and fee structures differ. Uniswap V3 keeps each pool's chosen fee tier and tick spacing in a dedicated contract. Ambient holds lightweight pool state inside CrocSwapDex, so a two-token pair draws from ambient, concentrated, and knockout liquidity on the same curve. The standard pool type uses index 420, a 256-bit identifier fixed for that pool's lifetime. Traders therefore interact with combined depth rather than choosing among several Ambient fee-tier pools for the same pair.
Uniswap V2 supplies the familiar full-range comparison: one pair contract, fungible LP shares, and liquidity active at every price.
Ambient preserves that always-active mode while adding user-selected ranges and one-direction knockout positions. Concentrated fees reinvest as ambient liquidity instead of accumulating solely as a separate claim. That design reduces position housekeeping, but it also ties several liquidity behaviors to shared contract state. Uniswap V3 remains the clearer alternative when a trader wants a specific, independently deployed fee-tier pool.
Pool Fees, Gas, and Price Impact Form the Swap Cost
An Ambient trade costs the displayed liquidity fee, curve price impact, and the chain's transaction gas.
The liquidity fee scales with input notional and flows to active LPs. Each stored fee unit equals 0.0001%, and an unsigned 16-bit field records the pool's rate. Governance or a policy oracle adjusts that rate, so the interface carries the actionable number. One documented dynamic-fee design samples in-range Uniswap V3 returns every 60 minutes before selecting a setting. Price impact is separate: it grows when trade size is large relative to active reserves, especially when the swap crosses concentrated-liquidity ticks. Network gas pays validators or sequencers and changes with chain demand.
A worked example uses four changing inputs, all hypothetical: a 1,000 USDC exact-input swap, a displayed 0.30% fee, a post-impact quote of 0.497 ETH, and a 4 USDC gas equivalent. The liquidity fee is 3 USDC, leaving 997 USDC to move through the curve. The wallet receives 0.497 ETH if the signed slippage bound still holds. Counting fee and gas, the explicit cost equals 7 USDC; the quote already incorporates curve impact.
That arithmetic separates three costs cleanly. It does not treat the pool fee, price movement, and network execution as one opaque percentage.
A single-hop route touches one pool and avoids intermediate-token work. A multihop route crosses two or more pools when direct depth is weaker. Ambient nets intermediate flows inside the exchange contract, so temporary route tokens do not require separate ERC-20 transfers. An aggregator such as 1inch may still find a better cross-venue route for the same trade.
One Curve Produces Two Token Flows
The related steps are listed in Ambient security. Every Ambient swap resolves into a base-token flow and a quote-token flow against a deterministic constant-product curve.
The user chooses exact input or exact output, then sets the opposite-side slippage limit. Internally, token amounts use signed or unsigned 128-bit integers; negative flow means the pool credits the user, and positive flow means the user pays. The base and quote assets use 160-bit EVM addresses, with the lower address assigned as base. Native ETH takes the zero address rather than WETH. Pool square-root prices use 128-bit Q64.64 encoding, with 64 fractional bits, while signed 24-bit ticks map price through a base-1.0001 logarithm. These conventions keep routing deterministic.
The frontend hides most of that encoding. It previews output, lets the user choose a slippage bound, and sends a signed transaction. Settlement flags occupy one 8-bit field: 0x1 uses surplus collateral for the base side, and 0x2 uses it for the quote side. Surplus collateral is an idle balance inside CrocSwapDex, useful for netting repeated trades. CrocImpact simulates token flows, while CrocQuery reads pool prices, liquidity, and positions.
The Entry Path Starts With Network, Pair, Quote, and Approval
The shortest Ambient entry path is to select a supported EVM network, connect a wallet, and review one live quote. Deployments include Ethereum, Scroll, Blast, and Swellchain; available pairs and depth differ on each chain. A MetaMask wallet or a connection through WalletConnect supplies the account. Choose the input and output assets, enter the amount, compare minimum received with expected output, and set a slippage limit. Selling an ERC-20 token requires allowance or a compatible EIP-2612 permit. Native gas funds the transaction unless an EIP-712 relayer submits it for a token-denominated tip.
Three Liquidity Modes Divide Yield and Management Work
Liquidity providers on Ambient choose three position types, each trading broader coverage against capital concentration or directional execution.
Full-range ambient liquidity remains active from a price approaching zero to an unbounded upper price, so it never leaves range. Fees compound into the position through the protocol's seed-liquidity accounting. The position can live as a lightweight native record or an ERC-20 LP token when transferability matters. This mode suits passive market making, though the two deposited assets still rebalance as swaps move the price. Its value can trail the same unmixed assets after a large relative price move, the standard impermanent-loss trade-off of constant-product pools, which is examined in practice.
Concentrated liquidity uses two boundaries and earns fees only while the curve price stays between them. A narrower band supplies more active depth per unit of capital, yet exits range sooner. Ambient reinvests the position's earned fees as full-range liquidity. Repositioning combines a burn, swap, and mint in one transaction, which simplifies adjustment without removing the underlying market exposure.
Knockout liquidity also occupies a bounded range, but crossing its chosen edge permanently removes the position from the active curve. A bid converts in one direction below the current price; an ask converts in the opposite direction above it. Once knocked out, a later price reversal does not trade the acquired asset back. The mechanism resembles a limit order spread across a narrow range rather than one exact price.
Shared architecture concentrates contract and governance dependencies. CrocSwapDex accepts upgradeable sidecar logic across 65,000 proxy slots, and policy controls revise pool parameters. Token behavior, oracle-controlled settings, range selection, and chain execution all shape outcomes. A position outside its two boundaries earns no liquidity fees, surplus collateral earns no yield, and a knockout fill requires a later claim action. Full-range liquidity reduces monitoring, concentrated liquidity demands active range management, and knockout liquidity serves directional execution closer to a limit order.
Ambient Fits Unified-Curve Trading and Active Liquidity Strategies
The Ambient exchange suits direct EVM token swaps and liquidity strategies that benefit from one shared curve.
Traders gain the most when the selected pair has enough active depth for a short route. LPs gain flexibility from full-range compounding, chosen price bands, and knockout execution, but none of those modes removes inventory rebalancing or smart-contract dependence. Alternatives divide along mechanism. Uniswap V2 hard-codes a 0.30% trader fee and keeps full-range LP shares simple; Uniswap V3 emphasizes fee-tier-specific concentrated ranges; Curve StableSwap focuses liquidity around closely matched asset prices; CoW Protocol uses batch auctions and trade intents; and 1inch searches across venues. The right venue is the one producing the best executable quote for the intended pair and chain.
Practical questions about Ambient
Is Ambient Finance the same project as Ambient AI?
Ambient Finance and Ambient AI are separate projects. The subject here is the decentralized exchange formerly called CrocSwap, built around token swaps, automated market makers, and liquidity positions on EVM networks. Ambient AI uses the same ordinary word in a different product category. Sound-data applications and other similarly named services are also unrelated. A wallet interface showing CrocSwapDex, liquidity ranges, or pool index 420 identifies the exchange discussed on this page.
Does Ambient require WETH for an ETH trade?
Ambient does not require WETH for a native ETH trade. CrocSwapDex represents a chain's native currency with the zero address and collects incoming ETH through the transaction's attached value. Excess attached ETH from an ETH-related transaction is returned after settlement. WETH remains a separate ERC-20 asset if a user deliberately selects it. Selling WETH follows the token allowance path, while selling native ETH uses the chain's normal value-transfer mechanism.
Can an ERC-20 approval be skipped on Ambient?
An ERC-20 approval is not always required before an Ambient action. A token supporting EIP-2612 permits lets the user authorize collection with a signature, while an existing sufficient allowance remains usable until changed. Assets already held as surplus collateral settle through an internal balance update. A direct wallet-funded sale using transferFrom still needs enough allowance for the required amount. Receiving an ERC-20 token from CrocSwapDex does not require the recipient to grant approval.
Are surplus collateral balances transferable between Ambient accounts?
Surplus collateral can move directly between owner addresses inside CrocSwapDex. The transfer updates internal balances rather than sending an ERC-20 token between two external wallets, reducing repeated settlement work for active accounts. Surplus remains idle working capital: it does not join a pool, rebalance between two assets, or earn liquidity fees. A user can also withdraw the balance to a wallet or spend it as the input for a later swap or liquidity position.
Must every Ambient liquidity position be held as an NFT?
Ambient does not require every liquidity position to be represented by an NFT. Full-range positions can exist as lightweight native records inside CrocSwapDex or as fungible ERC-20 LP tokens when transferability or integration requires them. Concentrated positions are identified by the owner, token pair, pool type, and lower and upper ticks. This differs from the common Uniswap V3 interface, where the NonfungiblePositionManager packages range positions as ERC-721 tokens for wallet display and transfer.
Will an EIP-712 relayer remove the need to hold native gas?
An EIP-712 relayer lets an Ambient action settle without the user holding the native gas token. The user signs typed transaction data off-chain, and the relayer submits the on-chain transaction. Compensation can be paid as a token tip from the user's surplus collateral. Execution still requires an available relayer, a valid signature, sufficient tip balance, and unexpired conditions. The relayer changes who initially pays gas; it does not remove the underlying network execution cost.
Why can an Ambient swap revert after the quote appears?
An Ambient swap reverts when execution violates a signed limit or lacks a required balance or allowance. Pool state can change between quote generation and block inclusion, pushing output below the minimum received or input above the maximum paid. An expired deadline, insufficient ERC-20 allowance, missing native gas, or the wrong network also prevents settlement. Raising slippage changes the accepted price range, so it should reflect the intended trade rather than serve as a universal retry setting.
Who can initialize a new Ambient pool for a token pair?
Any caller can initialize a permissionless Ambient pool type when the pair does not already have that pool. The caller supplies correctly ordered base and quote addresses, the pool index, and an initial price encoded as a Q64.64 square root. Initialization also requires a small permanent liquidity commitment set by the pool configuration. Funding comes from surplus collateral first, then an approved ERC-20 balance or attached native value when the pair contains the chain's native asset.