• Stars
    star
    402
  • Rank 107,380 (Top 3 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created about 4 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔁 StableSwap by Saber: an automated market maker for mean-reverting trading pairs.

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.

More Repositories

1

merkle-distributor

📦 A smart contract that distributes a balance of tokens according to a Merkle root
TypeScript
184
star
2

saber-common

🗡 Saber common utilities and libraries
TypeScript
144
star
3

vipers

🕶 Assorted checks and validations for writing safer Solana programs.
Rust
133
star
4

anchor-gen

Generates an Anchor CPI crate from a JSON IDL.
Rust
101
star
5

sail

⛵️ A React library for Solana account management and transaction processing.
TypeScript
77
star
6

captain

🧑‍✈ Version control and key management for Solana programs.
Rust
35
star
7

saber-periphery

⚔️ Peripheral contracts for interacting with Saber.
TypeScript
19
star
8

snapshots

📸 Voting Escrow Snapshots: Historical snapshots of previous voting escrow balances.
Rust
13
star
9

saber-overlay

Saber Nix overlay.
Nix
13
star
10

u128

🧮 U128 helpers for Solana programs.
Rust
11
star
11

spl-token-icons

TypeScript
10
star
12

saber-dapp

Frontend for the Saber dapp.
TypeScript
10
star
13

pool-manager

Allows anyone to create a new Saber pool.
TypeScript
9
star
14

saber-build-common

Common build tools for Saber projects.
TypeScript
5
star
15

docs

Saber official documentation.
JavaScript
4
star
16

governance

Saber Governance forum and proposals.
Nix
3
star
17

install-solana-action

GitHub Action to install Solana and Anchor using Nix.
3
star
18

saber-lp-token-list

Token list of Saber LP tokens.
3
star
19

saber-lp-token-list-generator

Generates the Saber LP token list.
TypeScript
2
star
20

saber-registry-dist

List of Saber pools, tokens, and environments
HTML
2
star
21

brand

⚔️ Official Saber brand assets.
1
star
22

token-fns

Saber token math utilities, built to minimize bundle size.
TypeScript
1
star
23

registry

Saber Asset Registry, generated from saber-hq/governance
HTML
1
star