Blasterswap swaps, liquidity pools and native yield on Blast
Blasterswap is a decentralized exchange designed for token swaps and liquidity pools on the Blast Layer 2 network. Its V2 design combines Uniswap V2-style automated market making with yield handling for Blast's USDB and WETH. Traders exchange assets against pool reserves, while liquidity providers hold shares in the pool's changing balances. Native yield enters the pair's accounting through specific claim routines. Separate V3 components introduce a different contract family for trading and position management. These mechanisms explain what a swap or liquidity position represents; pool depth, token prices and the availability of a working trading interface determine whether a particular use remains practical.
Last updated ยทSwaps draw liquidity from token pairs
Trading and liquidity provision meet in a pair contract that holds the assets available for exchange. Deposits supply those assets, and swaps alter their proportions. That relationship connects a trader's available output with a provider's changing token exposure.
Factory and router
The V2 architecture identifies a factory, a router and individual pairs. Each pair records its factory and accepts initialization from that factory. The router belongs to the integration layer around the pair. Pair functions are low-level operations that expect a calling contract to perform additional safety checks. A pair's existence therefore does not establish every safeguard that a particular trading interface supplies.
Pair reserves
A pair tracks two underlying tokens and their recorded reserves. The reserve ratio describes the pool's starting price relationship, while its available balances constrain what it can transfer. Adding liquidity and swapping have different consequences: liquidity minting creates ownership shares, whereas a swap exchanges underlying assets. Receiving output tokens from a trade does not itself create an ownership share in the pool.
How do V2 reserves shape a swap quote?
A V2 swap quote depends on the two pool reserves and the input amount that enters the pool. Automated market making uses a reserve-product relationship, with the input fee included in the swap check. A larger input relative to available liquidity changes the reserve ratio more sharply. Price impact is the effect of the trade itself on its execution price. The reserve ratio alone therefore cannot describe the execution price of an arbitrarily large trade, because the trade changes the quantities that determine that price.
The requested output must stay strictly below the corresponding recorded reserve. Even a request below that boundary must satisfy the input and reserve-product checks. Quotes can also change between calculation and execution as pool state changes. Slippage is the difference between the quoted and actual execution price; it should be distinguished from the price impact that the proposed trade already introduces.
Liquidity shares change with the pool
Liquidity-provider tokens, usually called LP tokens, represent a proportional claim on a V2 pair's underlying balances. The number of shares and the assets behind them are different quantities.
Adding liquidity
For an existing pool, minted shares reflect the deposited amounts relative to the reserves and existing LP supply. The smaller proportional contribution limits the mint, so increasing one deposit amount cannot raise the minted share count once the other token's proportional contribution becomes the limiting value for that deposit. This makes the balance between the deposit amounts relevant to the ownership received, particularly when the pool ratio has changed since an earlier calculation. A first deposit uses a separate initial-liquidity calculation.
Redeeming liquidity
Burning LP tokens releases a proportional amount of each underlying asset to the selected recipient. The calculation uses the pair's balances and the LP supply at that liquidity event. Redemption consequently follows the pool's current composition, including changes that swaps and applicable yield claims have introduced. It does not restore a fixed quantity of each asset from the original deposit. The pair also requires both calculated redemption amounts to be positive.
Relative token-price changes can leave a liquidity position worth less than holding the same starting assets separately. Trading fees and native yield affect that comparison, but neither determines the final value alone.
What does native yield add to V2 liquidity?
Eligible V2 pools incorporate claimed USDB or WETH yield into their reserve accounting before liquidity minting or burning. Here, native yield means yield handled through Blast's rebasing-token mechanisms. The pair configures claimable mode when either of those specific tokens is one of its underlying assets. A pool's presence on Blast does not extend the same yield treatment to every token that it holds.
V2 liquidity minting and burning call the pair's yield-claim routine before calculating the liquidity change. Claimed amounts return to the pair and increase the corresponding recorded reserves. This keeps the claimed yield inside pool accounting rather than treating it as a separate payment to every trader. The amount available to claim varies, so this mechanism supplies no fixed annual return for a liquidity position.
Trade fees, protocol fees and gas
The V2 pair's swap invariant applies a fee of 0.3% to the detected input amount. This is a pool-level input charge. Network gas is a separate transaction cost, while price impact arises from changing the reserves. Those costs and effects should remain distinct when interpreting the difference between an input value and the output that a swap offers.
A protocol-fee mechanism also reads the factory's fee-recipient setting. When enabled and the relevant reserve-product growth produces a positive fee calculation, it mints LP tokens to that recipient during liquidity events. That changes the LP supply used in ownership calculations. It should not be described as a second flat charge taken from every trader's wallet.
V3 components have separate responsibilities
The V3 contract family distinguishes its SwapRouter from its NonfungiblePositionManager and QuoterV2. These components concern swap execution, position management and quotation respectively. They belong to a separate factory and contract system from V2 pairs. A quotation and a delivered token balance describe different states, even when both concern the same proposed exchange.
The V3 position manager represents liquidity positions as ERC-721 NFTs with defined price ranges. A position contributes trading liquidity while the pool price is within its range. V2 pools use fungible LP tokens. The V2 fee constant and yield-claim sequence apply to that pair design. V3 pools use their own fee parameter. In V3 pools containing USDB or WETH, position updates claim the relevant yield. The pool adds claimed yield to fee-growth accounting when active liquidity is positive. The pool's contract version therefore matters when interpreting a quote, its costs or the holding that a liquidity action creates.
Pair safeguards address specific execution failures
The V2 pair uses a lock during swaps, minting and burning to reject re-entry into those protected functions. Its token-transfer helper requires the call to succeed and rejects a returned false result. Swap checks require positive output, sufficient reserves and a detected input that satisfies the fee-adjusted reserve-product constraint.
These checks govern what the pair accepts during execution. Token prices and pool depth remain economic conditions outside those protections. A successful transfer check does not establish the value or resale liquidity of the received asset. Likewise, a low-level pair check cannot describe every authorization or output protection that an integrating interface implements.
Matching a displayed amount to the pool operation
A trade quote and a liquidity balance describe different entitlements, even when they concern the same V2 pair. Use the operation behind a displayed amount to decide what that amount means:
- For a swap, compare the proposed input with the reserve-based output; total pool value does not establish the amount that the trade delivers.
- For a liquidity deposit, relate both token amounts to the reserves; the smaller proportional contribution limits the shares minted.
- For a liquidity withdrawal, read the LP balance as a claim on current underlying balances, with redemption calculated against the LP supply.
- For native yield, distinguish an amount still claimable by the pair from yield already incorporated into its reserves.
- For a V3 position, use its price range and liquidity data; a V2 LP-share formula does not describe that holding.
The next choice is whether the intended exposure is a single swap output or a share of changing pool assets.
Practical questions about Blasterswap
Which token pairs are identified for Blasterswap V2?
The documented V2 pair list includes USDB/WETH, PAC/WETH, PAC/USDB and ORBIT/USDB. Each pair has its own token identities and reserves. A balance or quote for one pair therefore does not establish the liquidity available in another. A listed pair also has no fixed trading depth; its usable reserves determine the output available at a particular pool state.
Why does V2 pair initialization reject a zero-address governor?
V2 pair initialization requires a nonzero governor before configuring the pair's Blast governor. A zero-address value triggers a revert. This requirement concerns the pair's Blast configuration. It does not appoint a trader as governor merely because that trader swaps tokens or provides liquidity.
Does the first V2 liquidity deposit permanently lock some LP shares?
The first V2 liquidity mint permanently locks 1000 raw LP-token units at the zero address. The initial mint subtracts those units from the square root of the deposited amounts' product, calculated using each underlying token's base units. This is an LP-supply accounting constant, not a requirement to deposit 1000 units of either underlying asset. Later deposits use the proportional minting calculation.
Can the V2 pair invoke a contract callback during a swap?
The V2 pair invokes a callback when the swap's data argument is nonempty. It sends the requested output before that callback, then checks the received input and the fee-adjusted reserve-product constraint. This path concerns an integrating contract. Its presence in the pair does not establish that a trading interface exposes a matching callback option.
Is transferring tokens directly to a V2 pair enough to receive LP tokens?
A token transfer alone does not mint V2 liquidity shares. The mint function creates shares after calculating deposited amounts against the recorded reserves. Direct transfers can leave balances above those reserves. The pair's public skim function can transfer that surplus to a caller-selected recipient, so an unaccounted transfer is not a protected deposit awaiting its owner's withdrawal.
Are V2 cumulative price fields the latest price for a trade?
V2 cumulative price fields accumulate reserve-ratio prices over elapsed time when both previous reserves are nonzero. They differ from a spot quote for a proposed input amount. An integration needs observations from different times to calculate an average from those accumulators. Reading one cumulative value does not provide a standalone execution price for a swap.
Will a V2 points-operator setting automatically deliver airdrop tokens?
A V2 points-operator setting selects an operator for the pair's Blast points configuration. That operation does not itself transfer airdrop tokens to a trader or liquidity provider. Point administration, yield claims and swap proceeds are separate mechanisms.
Which recipient addresses does the V2 pair reject during a swap?
The V2 pair rejects a swap recipient that equals either underlying token's contract address. This restriction applies to the recipient parameter that receives the swap output. It does not prevent those assets from forming the pair. Other swap conditions, including reserve availability and the fee-adjusted input check, continue to apply to the transaction.