0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Why a Pool’s First Deposit Sets Its Price

0
Posted at

A first deposit into a two-token automated market maker pool sets the pool’s opening exchange rate. The key condition is the ratio of the two tokens deposited, which should reflect a reasonable market price if one is available. For a first base swap, understanding that ratio helps explain why an early liquidity provider has an unusual amount of influence. The base swap is a way to trade against pools on Base; here, the important point is how their starting price comes about.

BaseSwap’s official app at baseswap.io provides an automated market maker on Base for token swaps and liquidity provision. The Uniswap Developers’ documentation explains the common constant-product model used by many AMMs; the example below shows how that model turns a deposit ratio into a price.

The first deposit sets the opening price

In a common constant-product pool, the reserves are the quantities of each token held by the pool, and their product follows the formula x × y = k. The opening spot price of token X in token Y is roughly the amount of Y divided by the amount of X. That means the first provider chooses the initial price by choosing how many of each token to deposit.

For example, suppose a new ETH–USDC pool starts with 10 ETH and 20,000 USDC. Its opening ratio is 2,000 USDC per ETH. The numbers are illustrative: the pool does not check whether 2,000 matches a price elsewhere, and the token names alone do not make the ratio fair.

If the provider deposits at a ratio far from the price on other markets, traders may buy the cheaper side from the pool and sell it elsewhere. Those trades change the reserves and move the pool’s price. This is arbitrage: trading across markets to capture a price difference. It can move the pool toward an external price, but only when there is a reliable outside market and enough liquidity to trade against.

Later deposits must fit the pool’s ratio

After trading begins, later liquidity providers generally need to add both tokens in proportion to the current reserves. If the ETH–USDC pool holds 10 ETH and 20,000 USDC, a deposit at its current ratio pairs 1 ETH with 2,000 USDC. Adding too much of one token changes the pool balance and can expose the depositor to an unfavorable trade or receive fewer pool shares than expected.

Those shares, often called LP tokens in pools that issue them, represent a provider’s portion of the pool. Fees from swaps may accrue to liquidity providers, and some protocols also offer liquidity farming rewards. Neither is guaranteed income: token prices can move, and the pool may end up holding a different mix of assets than the provider would have held outside it.

Check the ratio before supplying liquidity

Before adding to a new pool, calculate the implied price by dividing the token amounts, then compare it with a trustworthy market price if one exists. Also check that the token contracts are the intended assets; a convincing symbol or name does not prove that a token is genuine. A new or thinly traded token may have no dependable reference price, so the first ratio can remain speculative.

The first provider sets the pool’s starting exchange rate through the deposit ratio; later trades and deposits respond to that starting point. Match the opening ratio to a credible outside price where possible, and remember that LP shares, swap fees, and farming rewards all depend on how the pool performs after launch.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?