# Smart Contracts

- [Soroswap AMM (DEX)](https://docs.soroswap.finance/smart-contracts/01-protocol-overview.md): This is the DeFi primitive for liquidity pools. It allows swaps to happen
- [How Soroswap AMM works](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/01-how-soroswap-works.md)
- [Ecosystem Participants](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/02-ecosystem-participants.md)
- [Technical Reference](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference.md)
- [Smart contracts](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/03-smart-contracts.md)
- [SoroswapPair](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/03-smart-contracts/01-soroswappair.md)
- [SoroswapFactory](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/03-smart-contracts/02-soroswapfactory.md)
- [SoroswapRouter](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/03-smart-contracts/04-soroswaprouter.md)
- [SoroswapLibrary](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/03-smart-contracts/03-soroswaplibrary.md)
- [Deployed Addresses](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/deployed-addresses.md)
- [Error Codes](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/error-codes.md)
- [Soroswap vs UniswapV2](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/06-soroswap-vs-uniswapv2.md)
- [SoroswapPair Comparison](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/06-soroswap-vs-uniswapv2/01-soroswappair-comparison.md)
- [SoroswapRouter Comparison](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/06-soroswap-vs-uniswapv2/02-soroswaprouter-comparison.md)
- [SoroswapLibrary Comparison](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/06-soroswap-vs-uniswapv2/03-soroswaplibrary-comparison.md)
- [Using Soroswap with TypeScript](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/09-using-soroswap-with-typescript.md)
- [Smart Contract Integration](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/smart-contract-integration.md)
- [Design Decisions](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/02-design-decisions.md)
- [Deploy Soroswap Yourself](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/deploy-soroswap-yourself.md)
- [Setup your environment.](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/deploy-soroswap-yourself/01-setup.md)
- [Experiment the Pair contract](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/deploy-soroswap-yourself/02-pair.md)
- [Experiment the Factory Contract.](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/deploy-soroswap-yourself/03-factory.md)
- [Deployments.](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/deploy-soroswap-yourself/04-deployments.md)
- [Using the Soroswap Testnet](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/03-technical-reference/deploy-soroswap-yourself/using-the-soroswap-testnet.md)
- [Audits](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/audits.md)
- [Glossary](https://docs.soroswap.finance/smart-contracts/01-protocol-overview/04-glossary.md)
- [Soroswap Aggregator](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator.md): An aggregator aggregates several Soroban-based AMMs (AMM based on Smart Contracts on the Stellar Blockchain)
- [Supported AMMs](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/supported-amms.md)
- [Audits](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/audits.md): The Soroswap Aggregator Smart Contracts are being audited by Runtime Verification
- [Technical Reference](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference.md)
- [How Soroswap Aggregator works](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/how-soroswap-aggregator-works.md)
- [Design](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/04-soroswapaggregator-design.md)
- [Technical Overview](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/05-soroswapaggregator-technical-overview.md)
- [Aggregator Operation](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/aggregator-operation.md)
- [Smart Contracts](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/smart-contracts.md)
- [SoroswapAggregator](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/smart-contracts/soroswapaggregator.md)
- [Adapter Trait](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/smart-contracts/adapter-trait.md)
- [SoroswapAdapter](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/smart-contracts/soroswapadapter.md)
- [Inspirations](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/inspirations.md)
- [1inch](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/inspirations/01-1inch.md)
- [Other AMMs in Soroban](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/other-amms-in-soroban.md)
- [Phoenix](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/other-amms-in-soroban/02-phoenix.md)
- [Cross-Contract Integration](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/technical-reference/cross-contract-integration.md)
- [Disclaimer](https://docs.soroswap.finance/smart-contracts/soroswap-aggregator/06-soroswapaggregatordisclaimer.md)


---

# 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.soroswap.finance/smart-contracts.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.
