Liquidity
Last updated
Last updated
In addition to swapping tokens, NeuraSwap users can also add liquidity to the DEX itself by contributing equal amounts of two tokens (a token pair) to create liquidity provider (LP) tokens.
Liquidity pools are created by pairing together two different crypto tokens and depositing them into a smart contract. NeuraSwap currently uses the constant product formula for our automated market market (AMM) and liquidity pools, ensuring that assets are always deposited in an equal 50/50 split based on the current value of those assets, and that all liquidity pools only ever have two tokens in them.
Liquidity pools are often referred to as "trading pairs," because you are combining two tokens to create a liquidity provider token. A liquidity pool of two assets allows you to swap (trade) between those two tokens.
Additionally, if you want to dig deeper on the math behind our AMM (the constant product formula) check out Binance's walkthrough here.
Creating Liquidity Provider Tokens
A liquidity provider token (aka "LP token") is essentially a receipt that a protocol provides to a user who adds liquidity to a decentralized exchange. NeuraSwap allows you to provide liquidity by adding your token pairs to liquidity pools, using equal amounts for each token.
When you add your tokens to a liquidity pool, you will receive AI-LPs - NeuraSwap's native liquidity provider tokens.
For example: if you deposited NEU and GPT into a liquidity pool, you would receive NEU-GPT AI-LP tokens.
The number of AI-LP tokens you receive represents your portion of the NEU-GPT liquidity pool. You can also redeem your funds at any time by removing your liquidity, but please be conscious of impermanent loss.
Liquidity Provider Benefits
There are two main ways that you can earn rewards after adding liquidity. As soon as a user creates an AI-LP token and holds it in their wallet, they begin collecting trading fees (aka Liquidity Mining). When transactions occur on the DEX that involve the tokens represented by a particular AI-LP token, fees collected on those transactions are distributed proportionally among the holders of the applicable LP tokens.
Liquidity Mining
Any time someone swaps between a token pair on NeuraSwap’s DEX that is routed through AI LPs, a 0.20% trading fee is collected.
For trades on GPT Chain: Of the 0.20% trading fee, 0.05% goes to the NeuraSwap Treasury, and the remaining 0.15% is distributed proportionally to all holders of the applicable AI-LP token.
Keep in mind that theses trading fees are only distributed to V3 token holders when the relative token price is within the price range that they set when setting up the position.
Impermanent Loss
Providing liquidity is not without risk, as you may be exposed to impermanent loss. “Simply put, impermanent loss is the difference between holding tokens in an AMM and holding them in your wallet.” - Nate Hindman
Check out Binance Academy's detailed walkthrough on impermanent loss to learn more:
Continue to the How to Add Liquidity page for a detailed walkthrough.