Skip to content

saber-hq/stable-swap

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 3, 2021 17:53
January 19, 2022 12:35
April 2, 2023 22:26
April 2, 2023 22:26
April 2, 2023 22:26
April 2, 2023 22:26
April 2, 2023 22:26
December 27, 2021 23:15
April 2, 2023 22:26
December 28, 2021 08:54
September 2, 2021 16:09
March 1, 2022 15:34

stable-swap

License Build Status Contributors

An automated market maker for mean-reverting trading pairs.

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. crates Docs.rs
stable-swap-anchor Anchor bindings for the StableSwap Rust client. Crates.io Docs.rs
stable-swap-client StableSwap Rust client. crates Docs.rs
stable-swap-fuzz Fuzz tests for the Saber StableSwap program. crates Docs.rs
stable-swap-math Calculations for the StableSwap invariant crates Docs.rs
stable-swap-sim Simulations of the StableSwap invariant compared to Curve's reference implementation crates Docs.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.