# Swap Integration

Enable in-app swaps for your users by [integrating our SDK](/docs/technical/sdk.md). Set custom fees and benefit from a 50% revenue share in TON coin.

<figure><img src="/files/Za8sC1Fw9lojA1zqtP1x" alt=""><figcaption><p>Portfel and DAOLama integrations</p></figcaption></figure>

## Responsibilities

**Rainbow\.ag Team**: Develops and maintains the infrastructure to provide a high-quality service for executing profitable spot trades on the TON blockchain.

**Partner**: Integrates the Rainbow\.ag SDK into their application, enabling users to perform swaps on the TON blockchain.

## Revenue Generation

Revenue is generated through swap routing fees.

Partners can set a custom fee percentage (recommended between 0.1% and 1%, though any value is acceptable).

## Fee Collection and Distribution

Fees are collected in TON and stored in a wallet managed by Rainbow\.ag.

All other assets in the wallet (tokens, NFTs, airdrops, etc.) belong to Rainbow\.ag, excluding the TON routing fees.

At the end of each month, upon the Partner's request, the collected fees are divided as follows:

* 50% to the Rainbow\.ag Team
* 50% to the Partner

Payments are processed within one week of the Partner’s request.

## Branding

The Partner must display "Provided by Rainbow\.ag" on their swap screen, with a link to [rainbow.ag](https://rainbow.ag).


---

# 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://rainbow-ag.gitbook.io/docs/earn-with-us/swap-integration.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.
