Pool Token

Whenever liquidity is added to a pool on CatSwap, liquidity providers receive unique tokens called liquidity tokens. These tokens represent the specific liquidity provider's contribution to the pool. The number of liquidity tokens issued to a provider is determined based on the proportion of liquidity they provide in the pool. If a provider is creating a new pool, the number of liquidity tokens they receive will be equal to sqrt(x * y), where x and y are the amounts of each token they provided.

When a trade occurs in the pool, a 0.2% fee is charged to the sender of the transaction. 50% of this fee is then distributed proportionally to all liquidity providers in the pool once the trade is completed. The remaining 50% is distributed for the eco-system.

To retrieve their share of the underlying liquidity, along with any accrued fees, liquidity providers must "burn" their liquidity tokens. This process effectively involves exchanging the liquidity tokens for their corresponding portion of the liquidity pool, including the proportional fee allocation.

Since liquidity tokens themselves are tradable assets, liquidity providers have the flexibility to sell, transfer, or utilize them in any way they wish, providing them with additional options for managing their investment.

Catswap distinguishes itself from traditional exchanges by embracing a unique approach that eliminates the need for order books. Instead, Catswap employs Liquidity Pools as a core element for enabling seamless token swaps.

Unlike conventional finance, where liquidity relies on centralized order books and requires active management by market participants, Catswap's decentralized environment offers a fresh perspective. The use of order books necessitates intermediary infrastructure to host and match orders, which can introduce points of control and complexity. Moreover, the active involvement of sophisticated market makers may limit accessibility for many traders. Order books were initially designed for a world with limited assets, making them less ideal for the diversity of tokens within decentralized ecosystems, each with varying liquidity.

In Catswap, a Pool is represented by a smart contract, interacted with through function calls made by users. Token swapping is achieved by calling the swap function on a Pool contract instance, while liquidity providers add funds by calling the deposit function.

Just like end-users can seamlessly interact with the Catswap protocol through its user-friendly Interface, developers also have the flexibility to directly interact with the smart contracts. This empowers developers to integrate Catswap's functionality into their applications without the need for intermediaries or permissions. The decentralized and inclusive nature of Xchange ensures a vibrant ecosystem where all participants can actively engage in the Catswap protocol.

Last updated