Crate dex_stable
source ·Expand description
Stable AMM Pallet
Based on the Curve V1 StableSwap architecture.
There are two categories of pool:
- Basic: pairs two or more stablecoins
- Meta: pairs stablecoins with the LP token of another base pool
Overview
This pallet provides functionality for:
- Creating pools
- Adding / removing liquidity
- Swapping currencies
- Ramping of A
Terminology
-
Amplification Coefficient: This determines a pool’s tolerance for imbalance.
-
Swap Fee: The fee taken from the output currency.
-
Admin Fee: The percentage of the fee taken from the swap fee, claimable by the pool owner.
Re-exports
pub use pallet::*;
Modules
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Traits
- Weight functions needed for dex_stable.