> For the complete documentation index, see [llms.txt](https://impossible.gitbook.io/impossible-finance-faq/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://impossible.gitbook.io/impossible-finance-faq/impossible-swap/overview.md).

# Swap Overview

**IIF Swap: Enhancing Uniswap V2 with TVL Inflation**

The IF Swap takes Uniswap V2 to the next level by introducing a feature that artificially increases the total value locked (TVL) for pools that involve stablecoins. This inflation of TVL helps reduce trade slippage, which, in simple terms, means users can get better prices when trading.&#x20;

Additionally, this feature allows liquidity providers (LPs) to use their capital more effectively, resulting in increased LP rewards.

**The xybk Invariant: Introducing Artificial TVL Boost**

Impossible Finance accomplishes this through a unique concept called the "xybk invariant."

This concept introduces a variable called the boost variable, denoted as "b." Essentially, the boost variable allows us to set the artificial TVL of a pool at a multiple of the real TVL.&#x20;

For example, if we have a xybk pair pool with 100 of each token and a boost of 10, it would behave exactly like a Uniswap V2 pool with 1000 of both tokens.

**Asymmetrical Tuning: Better Support for Tokens with Varying Risks**

In addition to the xybk invariant, we bring forth a new idea called "asymmetrical tuning" to the AMM swap space.&#x20;

Asymmetrical tuning enables the Impossible Swap ecosystem to support tokens with uneven risks more effectively compared to other swap designs.&#x20;

For instance, let's say there's a new algorithmic stablecoin project that has strong mechanisms to maintain its peg when the price is above $1. In this scenario, we would adjust the capital efficiencies to be higher when the stablecoin is priced above $1, while still maintaining a regular Uniswap curve when the prices go below $1. This approach allows us to optimize the system for different token behaviors and create a more flexible and adaptable environment.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://impossible.gitbook.io/impossible-finance-faq/impossible-swap/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
