How to Match a Two-Token Deposit Ratio on Blackhole Swap
A two-token liquidity deposit must match the pool’s value ratio; Blackhole Swap can convert surplus assets before you add both sides and receive pool shares.
Merkle Street Newsroom#a29c252 min read
To match a two-token deposit ratio on Blackhole Swap, compare the value of each token the pool requires, then swap part of the surplus token until your amounts fit. A liquidity pool accepts two assets in a ratio set by its price and design. Equal token counts are rarely the goal: if one token costs more, you need fewer units of it.
How does a pool set the deposit ratio?
The pool’s current price tells you how much one token is worth in terms of the other, and that price determines the value mix your deposit needs. In a simple pool, the token reserves imply a ratio: if the pool holds twice as much of token A as token B, its reserve ratio is 2:1 by quantity. The market price can still make their values equal.
Some pools use concentrated liquidity, where the provider chooses a price range. In that case, the amounts required can change with both the current price and the selected range; the ratio may not be a simple half-and-half by value. Check the pool’s deposit preview, since it should show how much of each token the position will use.
For a walkthrough of the trade interface and Avalanche token swaps, see how Blackhole Swap handles Avalanche trades. The deposit step still depends on the target pool’s displayed price and requirements.
How do you calculate what to swap?
Start with the pool’s required ratio and the amounts you already hold. Convert the pool ratio into a value comparison using its quoted price. If the preview needs more value in token B than you have, swap some of token A for B. Then refresh the preview and adjust until the two amounts fit.
For example, if the pool needs twice as much value in B as A, and your wallet holds equal values of both, you need to convert some A into B. The swap quote will not match your estimate exactly: fees, price impact, and movement in the pool price affect how much B arrives. Use the quoted output and deposit preview, not a fixed calculation made before the trade.
What steps should you follow before depositing?
Use the same network and exact token pair as the pool. Then work through the trade and deposit in order:
- Open the intended pool and note its token pair, current price, and deposit preview.
- Enter the amounts you can supply and identify which token is short by value.
- Swap only enough of the surplus token to bring the preview close to the pool’s required ratio.
- Review the trade output, fees, minimum received, and final deposit amounts before approving transactions.
A swap changes your holdings; it does not itself add liquidity. The deposit contract takes both tokens and, if accepted, issues a position or pool shares that represent your contribution. Depending on the pool, part of one token may remain unused. Recheck the preview after swapping, because the trade can move the price—especially in a pool with limited liquidity.
The practical rule is simple: match value at the pool’s quoted price, not token counts. Make the smallest adjustment that satisfies the deposit preview, then review the transactions before signing. A deposit ratio is a snapshot of the pool’s requirements; it can shift as trades change the price.