> For the complete documentation index, see [llms.txt](https://ringprotocol.gitbook.io/ring/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ringprotocol.gitbook.io/ring/docs/integrating.md).

# Integrating with Ring Protocol

We made every effort to maintain compatibility between [`Uniswap V2`](https://docs.uniswap.org/contracts/v2/overview) and Ring Swap/Launchpad interfaces. This ensures that developers can seamlessly integrate Ring Protocol without unnecessary obstacles.

To integrate Ring Swap for swapping and adding liquidity, simply replace your existing code with our `Ring Swap Factory`, `Ring Swap Pair Init Code`, `Ring Swap Router`, Universal `Router`, etc., as documented in the [Ring Protocol Contracts](/ring/docs/deployments.md) on the next page.

There is one small exception, though. We've introduced a layer called Few Protocol on top of Ring Protocol. Few Protocol is a token wrapping protocol that wraps any token into its respective wrapped token contract. Instead of adding the original token directly into Ring Swap, we wrap each token and add the respective wrapped token instead. This means that when quoting a token price, you'll need to quote its respective wrapped token address instead of the original token address. To find the respective wrapped token address, query through `Few Factory`.

Similarly, when swapping between tokenA and tokenB, since all tokens in Ring Swap are wrapped tokens, you need to pass the path as a series of wrapped tokens. For example, if you want to swap through the path `[tokenA-USDC-tokenB]`, pass `[fwTokenA-fwUSDC-fwTokenB]` as the path, where token `fwXXX` refers to the wrapped token corresponding to token `XXX`.

This is a high-level overview of how Ring Protocol works for our early Blast Developers to quickly integrate Ring Swap. We'll be adding more detailed documents over time. If you have any questions, feel free to join our [Community](/ring/about-us.md). We look forward to working closely with you.


---

# 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://ringprotocol.gitbook.io/ring/docs/integrating.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.
