Expand description
Stablecoin DEX types and utilities.
Re-exports§
pub use order::Order;pub use orderbook::MAX_TICK;pub use orderbook::MIN_TICK;pub use orderbook::Orderbook;pub use orderbook::PRICE_SCALE;pub use orderbook::TickLevel;pub use orderbook::tick_to_price;
Modules§
- IStablecoin
Exchange - StablecoinExchange interface for managing orderbook based trading of stablecoins.
- dispatch
- Stablecoin DEX precompile
- error
- order
- Limit order type for the stablecoin DEX.
- orderbook
- Orderbook and tick level management for the stablecoin DEX.
- slots
Structs§
Enums§
- Stablecoin
Exchange Error - Container for all the
IStablecoinExchangecustom errors. - Stablecoin
Exchange Events - Container for all the
IStablecoinExchangeevents.
Constants§
- MIN_
ORDER_ AMOUNT - Minimum order size of $10 USD
- TICK_
SPACING - Allowed tick spacing for order placement
Functions§
- calculate_
quote_ 🔒amount_ ceil - Calculate quote amount using ceiling division (rounds up) Post-Moderato behavior
- calculate_
quote_ 🔒amount_ floor - Calculate quote amount using floor division (rounds down) Pre-Moderato behavior
Type Aliases§
- Book
Keys 🔒 - Helper type to easily interact with the
stream_ending_atarray