> For the complete documentation index, see [llms.txt](https://docs.ston.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ston.fi/developer-section/dex/sdk/legacy.md).

# Legacy Versions

Documentation for older versions of the STON.fi SDK.

## Available Versions

### [v0.5](/developer-section/dex/sdk/legacy/v0.5.md)

* Introduced modular structure (dex, farm, transaction-sending)
* Improved error handling
* Better TypeScript support

### [v0.4](/developer-section/dex/sdk/legacy/v0.4.md)

* Original SDK implementation
* Basic swap and liquidity operations
* Custom router revision support

## Migration

These versions are deprecated. We strongly recommend upgrading to the latest version:

1. Review the [migration guides](/developer-section/dex/sdk/migration.md)
2. Update to [v2 (latest)](/developer-section/dex/sdk/v2.md)

## Why Upgrade?

* **Better Performance**: Newer versions have optimized gas usage
* **More Features**: Single-sided liquidity, vault operations
* **Active Support**: Only latest versions receive updates
* **Security**: Latest security patches and improvements

## Archived Documentation

These docs are maintained for reference only. For new integrations, always use the latest SDK version.


---

# 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.ston.fi/developer-section/dex/sdk/legacy.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.
