> For the complete documentation index, see [llms.txt](https://docs.dysonswap.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dysonswap.xyz/protocol-design/internal-arbitrage.md).

# Internal Arbitrage

Standard swaps with this protocol are arbitrage-resistant. There is a separate Solana program function to capture arbitrage opportunities, where users may transact at the internal mark price. With a single Solana instruction, a user can make a multi-hop swap and generate significant arbitrage profits. Nearly all of these profits are sent to liquidity providers, though the arbitrageur gets a small percentage for having identified an internal mispricing, as does the protocol.

As the protocol liquidity grows, so too will the percentage of internal-to-internal vs. internal-to-external arbitrage opportunities. This will cause the protocol efficiency to dramatically increase as it gains market share.


---

# 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:

```
GET https://docs.dysonswap.xyz/protocol-design/internal-arbitrage.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.
