Maverick combines token swaps with liquidity that can follow pool prices
Maverick combines token swaps with an automated market maker that can reposition liquidity supplied to its pools. An automated market maker, or AMM, executes trades against deposited tokens using rules encoded in smart contracts. Liquidity providers choose where those tokens support trading and whether their positions remain fixed or follow price movement. This design reduces manual repositioning for selected strategies. Trading, providing liquidity and staking MAV serve different purposes: swaps exchange assets, positions supply trading reserves and staking creates voting power. Maverick V2 also supports shared Boosted Positions, configurable pool fees and contracts for developers building specialized liquidity tools.
- last updated
Token Selection and Swap Settlement
A swap through the V2 router requires a compatible wallet, available input tokens and enough network currency for gas, with the pool on the same network.
Tokens and Network Selection
The wallet network determines which contracts and balances a transaction can use. Token addresses identify the assets in the selected pool. A familiar ticker alone does not establish that identity. Connecting a wallet lets the application request interactions; any required spending authorization grants a contract permission to use specified tokens.
Quotes and Amount Protection
A swap quote estimates the trade against a particular pool state. The V2 router supports single-pool trades and routes through several pools. Its standard exact-input methods accept a minimum output amount, while standard exact-output methods accept a maximum input amount.
Slippage describes the difference between the quoted execution and the actual execution. Pool state can change before a transaction reaches the chain. A protective amount limit constrains execution even when the earlier quote changes.
Execution and Recipient Balances
A transaction hash identifies a transaction, while a successful chain receipt establishes execution. The swap recipient and token transfers identify where the output went. A quote, spending authorization or pending wallet notification does not establish receipt of the purchased tokens.
Does Moving Liquidity Prevent Losses?
Moving liquidity does not prevent losses because swaps change a position’s token composition while market prices change the value of those tokens. Liquidity providers supply assets traders can exchange against. Their token balances can therefore differ from the amounts they originally deposited, and trading fees may not offset the difference.
Impermanent loss measures a position’s value against holding the original assets outside the pool. The name does not promise recovery. A position can underperform that holding comparison even while earning fees, and closing it fixes the withdrawal amounts at the available pool state.
Mode Both introduces an additional risk when repeated price reversals move liquidity through changing token balances. Buying an asset at a higher relative price and selling it at a lower one can reduce reserves. This permanent loss can persist even after the price returns to an earlier level.
Thin static liquidity can also expose moving positions to unwanted movement through price manipulation. Arbitrage and sufficient static liquidity help resist that behavior.
Bins and Capital Placement
Liquidity bins record a provider’s share of reserves at particular price locations, allowing different positions to concentrate capital differently within the same token pair. In V2, ticks describe price locations, while bins track liquidity under the supported movement modes. The active tick identifies the price region swaps currently use. Pool tick spacing determines the width of those regions, so the same distribution shape can cover different price ranges in different pools.
Static distributions include Flat for an even spread, Single Bin for one price region and Exponential for heavier concentration near the pool price. Providers can customize individual bin allocations.
Liquidity providers earn trading fees when swaps use the liquidity they own. Ownership outside the traded price region does not earn fees merely because the pool has trading volume. Concentrating capital changes its availability near the trading price and the position’s exposure.
Liquidity Modes and Price Tracking
Maverick has four liquidity modes: Mode Static leaves bins in place, Mode Right follows upward price movement, Mode Left follows downward movement and Mode Both follows either direction. The pool’s time-weighted average price, or TWAP, governs movement; it smooths price information across time and can differ from the instantaneous price. Direction refers to the pool’s defined price orientation. V2 pool configuration determines which modes it supports, and a one-direction mode does not follow a reversal.
Trading Fees and Price Impact
A swap’s economics combine the selected pool’s trading charge, the price movement caused by consuming liquidity and the network fee for executing the transaction.
Pool Charges
Maverick V2 pools can charge different swap fees for the two trading directions. The applicable fee therefore belongs to the selected pool and input direction. A displayed fee tier does not establish a universal protocol charge. The pool configuration also determines any protocol share of swap fees, so the entire charge does not necessarily accrue to liquidity providers.
Automatic bin movement occurs within the AMM’s operations. Liquidity providers do not submit a separate repositioning transaction for each movement, although deposits, withdrawals and other contract interactions still require gas.
Trading Depth
Price impact arises when a trade consumes reserves and moves execution through the pool’s price range. Available liquidity near that range matters more directly than the total tokens deposited across distant bins. A route with a lower trading fee can still produce less output if its liquidity distribution creates greater price impact.
A Fixed Spending Amount With a Minimum Receipt
With the standard V2 router, an exact-input swap fixes the tokens spent, while an exact-output swap targets the tokens received subject to an input cap. Both require acceptable amount limits. A fixed input suits a task where the spending amount must remain predictable and the received amount may vary above a floor.
For this hypothetical case, the input amount is 137.4 input-token units, the quoted output is 83.76 output-token units and the minimum receipt is 83.24 output-token units. Every amount is illustrative; assume the wallet has the required authorization and separate funds for network gas.
The selected standard V2 exact-input router operation spends 137.4 input-token units and applies the 83.24-unit output floor. After successful execution, the transaction’s output transfers show the recipient received 83.54 output-token units. That receipt exceeds the floor by 0.30 output-token units, completing the exchange within the chosen limits.
The quote and receipt differ by 0.22 output-token units. An execution below the floor would cause this protected operation to revert. Choosing exact output would instead fix the requested receipt and allow spending to vary within its cap.
Position Ownership and Token Forms
V2 records liquidity ownership through different mechanisms, and the representation determines who can remove the reserves and whether the ownership can transfer.
Raw Pool Positions
A raw position records ownership directly in the pool under an address and subaccount. Its balance is non-transferable, and the credited recipient controls removal. This accounting lets a contract hold a position without issuing a separate transferable token representing that ownership.
Position NFTs
The V2 Position contract uses ERC-721 non-fungible tokens, or NFTs, to represent liquidity ownership. The NFT’s token identifier corresponds to a pool subaccount holding the associated liquidity. The NFT owner controls removal, so transferring it also transfers control over that liquidity. The identifier is an ownership reference, not an amount of either pool token.
Boosted Position Shares
A Boosted Position pools contributions into a defined liquidity distribution and issues transferable ERC-20 LP tokens. LP means liquidity provider; these tokens represent a proportional share of the position. The share balance measures ownership, while the pool’s reserves determine how much of each underlying token that ownership represents.
Boosted Positions and Reward Eligibility
Boosted Positions let contributors share a liquidity configuration and let incentive providers direct additional rewards to that specific configuration. Trading fees arise from the underlying pool activity. Incentive tokens come from a separate reward arrangement, with its own funding and distribution rules. Deprecated pre-epoch-3 reward contracts are ineligible for new incentives and veFlywheel matches. LPs can still withdraw liquidity from positions using those contracts.
In Maverick V2, LP tokens must be staked in a Boosted Position’s reward contract to qualify for its incentives. A single Boosted Position can have multiple reward contracts, but the same LP tokens can occupy only one reward contract at a time. Alternative reward streams can consequently share the underlying liquidity configuration without duplicating the position.
What Does MAV Staking Represent?
MAV staking commits the protocol’s governance token to a voting-escrow contract and creates non-transferable veMAV voting power. Vote escrow links that power to the committed stake. The amount staked and the selected staking end date affect the balance. Users cannot redeem the staked MAV until the staking period ends. Redeeming it burns the associated veMAV.
Governance staking and staking Boosted Position LP tokens involve different assets and contracts. Holding veMAV can also boost matched MAV emissions for eligible Boosted Position LPs. Staking Boosted Position LP tokens qualifies a liquidity share for incentives. V2’s veFlywheel connects incentive matching with votes directing additional emissions to Boosted Positions. Its reward allocations depend on the applicable incentive rules and funding.
Pool Creation and Developer Tools
A V2 factory creates pools with specified tokens, directional fees, tick spacing, a TWAP lookback and supported liquidity modes. Those settings let multiple pools serve the same token pair with different behavior. Programmable pools add an accessor, an authorized address or contract controlling the relevant write functions. An implementation can use that control for custom fee logic or liquidity management, with access and compatibility governed by the implementation.
Quoter contracts simulate swaps and liquidity additions, while pool lens contracts expose price, reserves and liquidity information. V2 liquidity management supports price-conditioned deposit parameters, which adjust the requested position to execution conditions. Multicall support can combine compatible operations in one transaction. V2 also includes a voting-escrow factory for other underlying tokens.
Networks, Versions and Position Management
Maverick V2 has contract deployments on Ethereum, Arbitrum, Base, BNB Smart Chain, Scroll and zkSync Era. A deployment establishes contracts on that network; individual pools still require liquidity for the requested trade. Wallet balances, position ownership and reward balances belong to their respective chain and contract. Switching the wallet’s selected network does not transfer those assets.
Position management includes adding reserves, changing a distribution through supported operations and removing liquidity. Withdrawal returns the position’s available underlying tokens, whose composition may have changed through trading. Contract-level partial removal and application controls can differ. The exit route changes when LP tokens are staked, ownership transfers or a different contract version holds the position.
Maverick - your questions answered
Can a Failed Swap Still Cost Gas?
A Maverick swap on Ethereum can incur gas fees if it executes and then reverts. The network charges for computation even when the transaction’s state changes do not persist. A failed simulation or a wallet signature rejection does not itself execute an onchain transaction. A failed chain receipt records an executed failure.
Why Did Adding Liquidity Fail After the Quote Succeeded?
A deposit can fail when the pool price moves beyond the transaction’s configured protection bounds. V2 also supports price-conditioned deposit parameters, so requested token amounts can vary with the execution price. A successful offchain calculation does not reserve that pool state. The transaction must still satisfy its own price and amount conditions when it executes.
Is single-sided Liquidity Possible on Maverick?
Single-sided liquidity is possible when the chosen distribution requires only one of the pool’s tokens. Bins outside the active price region generally hold one asset, while active liquidity can require both. The pool price and selected bins determine the deposit’s token composition.
What Happens to Trading Fees Left Inside a Position?
Trading fees accumulate in liquidity bins as additional reserves backing a provider’s share. The LP balance tracks ownership units, which do not represent a fixed amount of either underlying token. A withdrawal redeems the share from current reserves, including those fees. Separate incentive rewards follow their reward contract’s rules.
Does a Custom V2 Pool Swap Always Fill the Requested Amount?
A direct V2 pool swap can stop before filling its requested amount when it reaches a tick limit. An integration must enforce its own required amounts. Callback funding supplies only the input the swap needs. Pushing the full input to the pool beforehand can leave unrecoverable excess payment if the limit stops execution early. This low-level behavior differs from the standard router methods with amount guards.
How Can Burning a V2 Position NFT Affect Its Liquidity?
The V2 Position contract’s unSafeBurn function destroys the NFT without withdrawing its liquidity. After that burn, the contract can no longer remove the associated liquidity. Closing a position uses its liquidity-removal operation. Transferring the NFT gives its new owner control of the position.