Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saber-hq/stable-swap
๐ StableSwap by Saber: an automated market maker for mean-reverting trading pairs.
https://github.com/saber-hq/stable-swap
Last synced: 5 days ago
JSON representation
๐ StableSwap by Saber: an automated market maker for mean-reverting trading pairs.
- Host: GitHub
- URL: https://github.com/saber-hq/stable-swap
- Owner: saber-hq
- License: apache-2.0
- Created: 2020-10-06T22:36:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-03T15:55:33.000Z (9 months ago)
- Last Synced: 2024-11-30T04:03:16.739Z (12 days ago)
- Language: Rust
- Homepage: https://saber.so
- Size: 1.2 MB
- Stars: 406
- Watchers: 13
- Forks: 123
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: audit/bramah-systems.pdf
Awesome Lists containing this project
- awesome-solana - Saber Stable Swap - hq/stable-swap.svg?style=social) ๐ StableSwap by Saber: an automated market maker for mean-reverting trading pairs. (Code / Defi)
- best-of-crypto - GitHub - 26% open ยท โฑ๏ธ 01.12.2023): (Others)
README
# stable-swap
[![License](https://img.shields.io/crates/l/stable-swap-anchor)](https://github.com/saber-hq/stable-swap/blob/master/LICENSE)
[![Build Status](https://img.shields.io/github/workflow/status/saber-hq/stable-swap/Program/master)](https://github.com/saber-hq/stable-swap/actions/workflows/program.yml?query=branch%3Amaster)
[![Contributors](https://img.shields.io/github/contributors/saber-hq/stable-swap)](https://github.com/saber-hq/stable-swap/graphs/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](https://docs.saber.so/docs/developing/overview).
Automatically generated documentation for Rust Crates is available below.
## Rust Crates
| Package | Description | Version | Docs |
| :------------------- | :----------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
| `stable-swap` | Saber StableSwap program. | [![crates](https://img.shields.io/crates/v/stable-swap)](https://crates.io/crates/stable-swap) | [![Docs.rs](https://docs.rs/stable-swap/badge.svg)](https://docs.rs/stable-swap) |
| `stable-swap-anchor` | Anchor bindings for the StableSwap Rust client. | [![Crates.io](https://img.shields.io/crates/v/stable-swap-anchor)](https://crates.io/crates/stable-swap-anchor) | [![Docs.rs](https://docs.rs/stable-swap-anchor/badge.svg)](https://docs.rs/stable-swap-anchor) |
| `stable-swap-client` | StableSwap Rust client. | [![crates](https://img.shields.io/crates/v/stable-swap-client)](https://crates.io/crates/stable-swap-client) | [![Docs.rs](https://docs.rs/stable-swap-client/badge.svg)](https://docs.rs/stable-swap-client) |
| `stable-swap-fuzz` | Fuzz tests for the Saber StableSwap program. | [![crates](https://img.shields.io/crates/v/stable-swap-fuzz)](https://crates.io/crates/stable-swap-fuzz) | [![Docs.rs](https://docs.rs/stable-swap-fuzz/badge.svg)](https://docs.rs/stable-swap-fuzz) |
| `stable-swap-math` | Calculations for the StableSwap invariant | [![crates](https://img.shields.io/crates/v/stable-swap-math)](https://crates.io/crates/stable-swap-math) | [![Docs.rs](https://docs.rs/stable-swap-math/badge.svg)](https://docs.rs/stable-swap-math) |
| `stable-swap-sim` | Simulations of the StableSwap invariant compared to Curve's reference implementation | [![crates](https://img.shields.io/crates/v/stable-swap-sim)](https://crates.io/crates/stable-swap-sim) | [![Docs.rs](https://docs.rs/stable-swap-sim/badge.svg)](https://docs.rs/stable-swap-sim) |## JavaScript/Web3.js
To use StableSwap with your frontend or Node.js project, use [the JavaScript SDK.](https://github.com/saber-hq/saber-common/tree/master/packages/stableswap-sdk)
## Audit
Saber's [stable-swap-program](https://github.com/saber-hq/stable-swap/tree/master/stable-swap-program) has been audited by [Bramah Systems](https://www.bramah.systems/). View the audit report [here](https://github.com/saber-hq/stable-swap/blob/master/audit/bramah-systems.pdf).
## 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](https://github.com/saber-hq/stable-swap/tree/archive).
## License
Saber StableSwap is licensed under the Apache License, Version 2.0.