Liquidity Pools
Last updated
Last updated
Liquidity Pools are a place to pool tokens (otherwise known as liquidity) so that users can use them to make trades in a decentralized and permissionless way. These pools are created by users and decentralized apps (or Dapps, for short) who want to profit from their usage. To pool liquidity, the amounts a user supplies must be equally divided between two coins: the primary token (sometimes called the quote token) and the base token (usually ETH or a stable coin).
LFGSwap's liquidity pools allow anyone to provide liquidity to them; when they do so, they will receive LLP tokens (LFGSwap Liquidity Provider tokens). If a user deposited $LFG and $ETH into a pool, they would receive LFG-ETH LLP tokens. These tokens represent a proportional share of the pooled assets, allowing a user to reclaim their funds at any point. Every time another user uses the pool to trade between $LFG and $ETH, a 0.3% fee is taken on the trade. 0.25% of that trade goes back to the LP pool.
The value of the LLP tokens, which represent the shares of the total liquidity each pool, is updated with each trade to add their value relative to the tokens the pool uses to trade. If previously there were 100 LLP tokens representing 100 $ETH and 100 $LFG, each token would be worth 1 $ETH & 1 $LFG (note in this example, $ETH and $LFG are the same relative value). If a user were then to trade 10 $ETH for 10 $LFG in that pool, and another user were to trade 10 $LFG for 10 $ETH, then there would now be 100.025 $ETH and 100.025 $LFG. This means each LP token would be worth 1.0025 $ETH and 1.00025 $LFG now when it is withdrawn.