Skip to main content

Add liquidity

This document explains how to create a new liquidity pool or add liquidity to an existing one.

Prerequisites

Set up or connect your wallet to Veax.

Before you start, review the reference information or look up attribute descriptions at each step.

Add liquidity

  1. Choose the pool you want to deposit your liquidity to. You can do this in one of the following ways:

    • Through the //LIQUIDITY window:

      1. Go to LIQUIDITY.

      2. In the //LIQUIDITY window that opens, click + ADD LIQUIDITY.

        liquidity-window

      3. In the //ADD LIQUIDITY TO POOL window that opens, in the SELECT EXCHANGE POOL section, choose two tokens to select a pool. If the pool for the chosen token pair doesn't exist, the notification message is displayed.

      4. If you create a new pool, for SPOT PRICE, enter a spot price for the token pair that you consider fair. Otherwise, the displayed spot price can't be adjusted.

        select-exchange-pool-section

      Storage fee

      When you add liquidity to a pool, the storage fee is charged. After closing the position, the fee is returned back.

    • Through the //ANALYTICS window:

      1. Go to ANALYTICS.

      2. In the //ANALYTICS window that opens, choose and click a pool that you want to add your liquidity to.

        analytics-window-exchange-pools

      3. In the //EXCHANGE POOL DETAILS window that opens, click ADD LIQUIDITY.

        exchange-pool-details-window

  2. In //LIQUIDITY POSITION TYPE, select a liquidity position type.

    position-type-window

  3. Optional: Set min and max token prices for your position:

    1. For MIN PRICE, enter a minimum price. If turned off, the value is a very small number, almost 0.

    2. For MAX PRICE, enter a maximum price. If turned off, the value is a very large number. We show it as infinity in the interface.

      min-max-price

  4. In the SELECT FEE LEVEL section, select a fee level you want to add your liquidity to.

    select-fee-level

  5. In the DEPOSIT AMOUNT section, enter the number of tokens you want to deposit to the pool. When you enter an amount for one token, it automatically adjusts for the other based on the spot price and the price range.

  6. Optional: To set slippage tolerance, click the SLIPPAGE TOLERANCE setting. Note that the setting is not available for single-sided liquidity positions.

deposit-amount

  1. Click CONFIRM ADDING LIQUIDITY. You are redirected to your wallet to approve the transaction.
  2. Approve the transaction. Your position is added to the pool, and you are redirected back to the //LIQUIDITY window, where you can view and manage your opened positions.

liquidity-window-created-position

Check infomration about your transaction

To check all the necessary information about your transaction, in TRANSACTION DETAILS, click VIEW ON EXPLORER.

References

ATTRIBUTEDESCRIPTION
LIQUIDITY POSITION TYPELets you choose a liquidity position type:
  • CONCENTRATED LIQUIDITY—set a specific price range.
  • FULL RANGE—provide liquidity across the entire price range.
  • SINGLE-SIDED—provide liquidity to only one side of a trading pair.
The liquidity position type is directly linked to the MIN PRICE and MAX PRICE fields. Changing the type of liquidity position automatically adjusts the default values of the fields.
SPOT PRICEDisplays the current spot price for a chosen fee level, if available. If a liquidity pool doesn't exist, or it doesn't have liquidity, you need to enter a spot price manually. The entered value can be any number from 0 to infinity and is allowed to deviate from the current market price. When adding liquidity to an empty pool, you must enter the spot price, which remains the same for all fee levels until the first swap occurs in that pool.
SELECT FEE LEVELLets you choose a fee level to supply liquidity on. The chart illustrates the spread of spot liquidity across all fee levels. The chart logic: there are eight fee levels, each represented by a bar. The spot liquidity is calculated at each fee level, the fee level with the greatest liquidity is found, and its percentage of the total spot liquidity is determined. This fee level's bar is the tallest (100% of the chart's height), and the other fee levels are proportionate to it based on their respective percentages.
MIN PRICEDefines the minimum price for the position. The minimum price must always be less than the maximum price. The price range is divided into price ticks; if the entered value doesn't match any price tick, it is adjusted to the closest one. If you turn off the field, the default value is 0.
MAX PRICEDefines the maximum price for the position. The maximum price must always be higher than the minimum price. The price range is divided into price ticks; if the entered value doesn't match any tick, it is adjusted to the closest one. If you turn off the field, the default value is infinity.
DEPOSIT AMOUNTThe section where you set the number of tokens you want to deposit to the pool.
TRANSACTION DETAILS: Added TOKEN_1A range calculated based on the entered number of TOKEN_1 and slippage. TOKEN_1 stands for the first token you select in the SELECT EXCHANGE POOL section.
TRANSACTION DETAILS: Added TOKEN_2A range calculated based on the entered number of TOKEN_2 and slippage. TOKEN_2 stands for the second token you select in the SELECT EXCHANGE POOL section.
Admissible spot priceRefers to the range of spot prices within which a desired position can be created, while still maintaining an acceptable level of deviation considering slippage tolerance. In the case of a single-sided liquidity position, there is no slippage tolerance, and the admissible spot price represents the range of spot prices within which the single-sided liquidity position can be created. If the spot price moves outside of this range, the single-sided liquidity position isn't created because it requires more than one token.
Storage fee/Gass feeThe amount of NEAR to be paid for storage and gas to create the position.