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

# Legacy Versions

Documentation for older versions of the STON.fi SDK.

## Available Versions

### [v0.5](https://github.com/ston-fi/docs/tree/main/dex/sdk/legacy/v0.5)

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

### [v0.4](https://github.com/ston-fi/docs/tree/main/dex/sdk/legacy/v0.4)

* 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](/docs/developer-section/dex/sdk/migration.md)
2. Update to [v2 (latest)](/docs/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.
