How to provide liquidity on Flex DEX
TON FactoryProviding liquidity
You can provide liquidity for any pair on tonflex.fi and get 0.25% of every transaction in the pool. Having staked your assets, you receive liquidity provider's (LP's) jettons that are used to track individual contributions to the overall liquidity pool, as LP jettons held correspond proportionally to the share of liquidity in the overall pool.
A step-by-step guide
💎 Connect wallet
First thing you should do to interact with Flex is to connect your wallet. Press the "Connect wallet" button and select a familiar wallet application.
You can always connect another wallet. Open account pop-up by clicking on the wallet address in the right upper corner. Then press a disconnect button.


Note: you can find your previous transactions in your account's transactions list.
💎 Add liquidity
1) Go to the “Earn” tab.

2) Press "Add liquidity" button.

3) Select two jettons.

3.1) If you want to add a new jetton, paste its address to the "Select a jetton" form and press "Add minter" button.

You can find this address in your jettons list in any scanner. For example, go to the tonscan.org "JETTONS" tab and find required jetton. Copy its address.

4) If pool has not been created yet by other people, you will see the "Create new pool" button. Press it to be able to deposit your assets.

5) When pool exists you are able to deposit your jettons to your personal pool wallet.
Note: When you are the first liquidity provider, you specify the currency rate. Enter the amounts and the rate will appear on the help bar. Otherwise the rate is constant and when you enter one asset another one is recalculated automatically.

Deposit both amounts by pressing "Deposit" button.

6) Once both jettons are deposited, go to "Stake" tab and enter amount you want to stake. The rate is shown in the help bar. When this is done press "Stake" button at the bottom of the form.

7) After that, go back to the "Earn" tab. Here you see all your liquidity positions. If you reconnect the wallet, press "Scan" button to find all of your LP jettons.
Pool share shows the approximate percentage of your contribution to the pool;
Pool tokens is the amount of your liquidity;
Pooled show the amounts you can get if you unstake your assets back;
Deposited show the amounts in your pool wallet. These amounts do not participate in a pool transactions and can be withdrawn at any moment.

💎 Remove liquidity
1) Go to the “Earn” tab.

2) Go to a required pair and press "Remove" button.

3) Specify percentage of your pool share that you want to unstake. The amounts you will receive are displayed in the help bar. Press "Unstake" button.

4) Then go to the next tab and specify the amounts you want to withdraw from the pool wallet to your personal wallets and press "Withdraw" button.

💎 Swap
1) Go to the "Swap" tab.
2) Select both jettons: the first one you want to swap, the second one you want to receive.
3) Enter an amount and press "Swap" button.

Note: In the settings you can find three parameters
- Slippage - this number specifies the percentage of the price fluctuation that you are OK with. For example, the Swap form shows you that you will receive 100 TON and you slippage equals 1%, if you send the transaction you will receive at least 99 TON.
- Use approved only - when this parameter is ON, routing swap will try to find a path only between approved/whitelisted jettons.
- Reverse routing swap - when this parameter is ON and routing swap fails, you receive the same jetton back as you sent. If this parameter is OFF, you receive a jetton from the last step in the path where swap failed. See example bellow.
Example:
Routing swap yourX -> X -> Y -> K -> L -> yourL
Suppose K output amount is less than required, swap fails and jettons must be returned back.
Case 1: reverse routing swap is ON.
yourX -> X -> Y -> K -> Y -> X -> yourX
Case 2: reverse routing swap is OFF.
yourX -> X -> Y -> K -> yourK
Note: when reverse routing swap is ON, your transaction can be frontrun.
💎 Communicate
- If you have any questions, feel free to ask them in our Telegram group.
- Subscribe to our Telegram channel to receive news about our products.