Crate dex_general
source ·Expand description
Standard AMM Pallet
Based on the Uniswap V2 architecture.
Overview
This pallet provides functionality for:
- Creating pools
- Bootstrapping pools
- Adding / removing liquidity
- Swapping currencies
Re-exports
pub use primitives::PairStatus::Bootstrap;
pub use primitives::PairStatus::Disable;
pub use primitives::PairStatus::Trading;
pub use pallet::*;
Modules
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet.
Structs
- Parameters of pair in Bootstrap status
Enums
- Status for TradingPair
Constants
Traits
- Weight functions needed for dex_general.