Stable Swap
🔁 StableSwap by Saber: an automated market maker for mean-reverting trading pairs.
Install / Use
npx skills add saber-hq/stable-swapInstalls into whichever agent you are using.
README
stable-swap
<div align="center"> <img src="/assets/banner.png" /> </div> <div align="center"> An automated market maker for mean-reverting trading pairs. </div>Documentation
Detailed information on how to build on Saber can be found on the Saber developer documentation website.
Automatically generated documentation for Rust Crates is available below.
Rust Crates
| Package | Description | Version | Docs |
| :------------------- | :----------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
| stable-swap | Saber StableSwap program. | |
|
|
stable-swap-anchor | Anchor bindings for the StableSwap Rust client. | |
|
|
stable-swap-client | StableSwap Rust client. | |
|
|
stable-swap-fuzz | Fuzz tests for the Saber StableSwap program. | |
|
|
stable-swap-math | Calculations for the StableSwap invariant | |
|
|
stable-swap-sim | Simulations of the StableSwap invariant compared to Curve's reference implementation | |
|
JavaScript/Web3.js
To use StableSwap with your frontend or Node.js project, use the JavaScript SDK.
Audit
Saber's stable-swap-program has been audited by Bramah Systems. View the audit report here.
Developing
Tests
To run the tests, run:
./stable-swap-program/do.sh e2e-test
Archive
The original Saber StableSwap program can be found on the archive branch.
License
Saber StableSwap is licensed under the Apache License, Version 2.0.
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.7kCommit, push, and open a PR
