![Contributors](https://camo.githubusercontent.com/c6522f76bba58dad9822bb37bdb0d8bde86de516ae8c566921b58c522bc6a51b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f73616265722d68712f737461626c652d73776170)
An automated market maker for mean-reverting trading pairs.
Package |
Description |
Version |
Docs |
stable-swap |
Saber StableSwap program. |
![crates](https://camo.githubusercontent.com/7b613bcb3958c7ea90ed2427eee2d9d91f59cafa716aa787ccfb91215234591e/68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f737461626c652d73776170) |
![Docs.rs](https://camo.githubusercontent.com/885f465178314d530b6e48891196b97a80f929bc719b73f43324d7f6e81ff391/68747470733a2f2f646f63732e72732f737461626c652d737761702f62616467652e737667) |
stable-swap-anchor |
Anchor bindings for the StableSwap Rust client. |
![Crates.io](https://camo.githubusercontent.com/24789113e3dcc90313a93373d6d8285fd04c2d751113ed8cf63547ed73ca1869/68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f737461626c652d737761702d616e63686f72) |
![Docs.rs](https://camo.githubusercontent.com/f56fdca225ba3d0e06b22d036a610131fda536636cca244899dfe19bfb8f7165/68747470733a2f2f646f63732e72732f737461626c652d737761702d616e63686f722f62616467652e737667) |
stable-swap-client |
StableSwap Rust client. |
![crates](https://camo.githubusercontent.com/ebd1cc7de850c5c60b059e1cb987494077b84fe74085ecf25306026db21284a3/68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f737461626c652d737761702d636c69656e74) |
![Docs.rs](https://camo.githubusercontent.com/ccd5fefc267122656602ffbfcfbde617f5052c0efd47f891ce1cb59132b04466/68747470733a2f2f646f63732e72732f737461626c652d737761702d636c69656e742f62616467652e737667) |
stable-swap-fuzz |
Fuzz tests for the Saber StableSwap program. |
![crates](https://camo.githubusercontent.com/860413dc26fba007ebf916e55290f671e79f84115e888f9ee5501084b792bc50/68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f737461626c652d737761702d66757a7a) |
![Docs.rs](https://camo.githubusercontent.com/4a9bad8ef771e03d3a05411c7d176c7e60f994c2a014ba3c9921aade73872c3e/68747470733a2f2f646f63732e72732f737461626c652d737761702d66757a7a2f62616467652e737667) |
stable-swap-math |
Calculations for the StableSwap invariant |
![crates](https://camo.githubusercontent.com/3b16b8a4fa3f1dc2c51c252bd91942fe37ef314a2333d965bbb62b7da05406ed/68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f737461626c652d737761702d6d617468) |
![Docs.rs](https://camo.githubusercontent.com/8360dd7995d59d44eacc55382e2fbdc4d3c5fd77caa51274807501a50194ab7f/68747470733a2f2f646f63732e72732f737461626c652d737761702d6d6174682f62616467652e737667) |
stable-swap-sim |
Simulations of the StableSwap invariant compared to Curve's reference implementation |
![crates](https://camo.githubusercontent.com/3e6f3856d97d2415d655d996a5de6189ab8da304e4a871b0c2be24c7f5f97bcc/68747470733a2f2f696d672e736869656c64732e696f2f6372617465732f762f737461626c652d737761702d73696d) |
![Docs.rs](https://camo.githubusercontent.com/9862ad0ec67dd9204d8e9d8816d31b7705d532fc461a43b80e54491f449aac5b/68747470733a2f2f646f63732e72732f737461626c652d737761702d73696d2f62616467652e737667) |
To use StableSwap with your frontend or Node.js project, use the JavaScript SDK.
Saber's stable-swap-program has been audited by Bramah Systems. View the audit report here.
To run the tests, run:
./stable-swap-program/do.sh e2e-test
The original Saber StableSwap program can be found on the archive branch.
Saber StableSwap is licensed under the Apache License, Version 2.0.