The programs collectively enable mutl-LST AMM—the "Curve of LSTs" idea—by holding hundreds of LSTs, thus allowing a capital efficient LST-LST swaps.
The development procedure of this repository follows "IDL-first" approach, the idea laid out in Ideally manifesto.
Sanctum S comprises three main on-chain component programs:
See the overview here.
To ensure that the build is as close to the reproducible build as possible, match:
ellipsislabs/solana:1.17.6
solana-labs/solana/rust-toolchain.toml
sh -c "$(curl -sSfL https://release.solana.com/v1.17.6/install)"
cargo-build-sbf --version && rustc --version
solana-cargo-build-sbf 1.17.6
platform-tools v1.37
rustc 1.68.0 # rust version used by cargo-build-sbf to build the bpf programs .so. solana currently has it locked to 1.68
rustc 1.73.0 (cc66ad468 2023-10-03) # rust version dictated by rust-toolchain.toml, used for building everything else
The authorities defined by the programs:
name | count (1 / N) | description |
---|---|---|
admin | 1 | The pool's admin |
rebalancing authority | 1 | The authority that can rebalance the pool's token reserves |
disable authorities | N | The authority that can disable the pool's operation |
pricing manager | 1 | The authority that can manage pricing program's state |
protocol fee beneficiary | 1 | The authority that can receive protocol fee |
user | N | The normal users (e.g. LPer, swappers) |
Program intended to be used by the authorities to manage the pool.
cargo-test-sbf --features testing
solana-verify build
9bbcaada4b4aa3099023cf551749ddf4c956afa46ceade4ddf772709673b0496
b09e282d68af7534a46006c8e995f55c2766b4bf7d1d3e08c88abf0b449f72a6
5acac02e196d9c6130bdd0e8b3b063e9beba22765c02b748b83b648b5ab99c7f
facb55e2af9bcc88a71a2c9d3a661ed29fb15ddd698e3a8ccdc034554416efe8
06ea2c8f019866754ab349c2695a6abf483c3200c9e81fa51ada2375524b6096
ab2844122c5abd7eeda53693556e02cff81c5d8afaafeb85e4e7c71919d2fb2e
1bd4c83cea83719e25aef6ef12ecaec8c055c8d2b17bf45e918b8e8adc5aea87
a166b6d886bb7bd8960fb40aa2efc3f923d9db96d83bfcfdb68b398aca6539dc