# QuickSwap V2

#### QuickSwap V2

QuickSwap, a fork of Uniswap V2, originally deployed on the Polygon blockchain, provides efficient and user-friendly liquidity pools.

**Uniswap V2: Pioneering the AMM Landscape**

Uniswap V2 is a cornerstone in the decentralized exchange (DEX) ecosystem, introducing the Constant Product Market Maker model, which revolutionized liquidity pool mechanics.

Technology Overview:

* Model: Uniswap V2 contracts operate on the Constant Product Market Maker formula ( x \* y = k) where ( x ) and ( y ) are the reserve quantities of two tokens, and ( k ) is a constant ensuring liquidity across all price levels.

Liquidity Provision:

* Liquidity providers (LPs) deposit equal value of two ERC20 tokens into the pool.
* The initial provider determines the exchange rate by setting the first pair of token deposits.
* LPs receive liquidity tokens that represent their proportional ownership in the pool.

Fee Mechanism:

* A 0.3% trading fee is charged on every swap, distributed among LPs in proportion to their stake.

Key Innovations:

* Decentralized Liquidity Provision: Any user can add liquidity and earn fees without requiring permission.
* Price Stability and Arbitrage: Prices are adjusted dynamically by trades, promoting efficient market conditions.
* Oracles: Time-weighted average price (TWAP) oracles for secure off-chain integrations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sdao.pro/quickswap-v2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
