Skip to main content

Saber Stable Swap SDK

License Build Status Contributors

GitHub: saber-hq/stable-swap

The Saber Stable Swap repository holds the Rust code for Saber, in addition to several libraries.

Rust Crates

PackageDescriptionVersionDocs
stable-swapSaber StableSwap program.cratesDocs.rs
stable-swap-anchorAnchor bindings for the StableSwap Rust client.Crates.ioDocs.rs
stable-swap-clientStableSwap Rust client.cratesDocs.rs
stable-swap-fuzzFuzz tests for the Saber StableSwap program.cratesDocs.rs
stable-swap-mathCalculations for the StableSwap invariantcratesDocs.rs
stable-swap-simSimulations of the StableSwap invariant compared to Curve's reference implementationcratesDocs.rs

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.