Expand description
On-chain CLOB (Central Limit Order Book) for stablecoin trading.
Supports limit orders, market swaps, and flip orders across TIP-20 token pairs with tick-based pricing and price-time priority.
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::RoundingDirection;pub use orderbook::TickLevel;pub use orderbook::base_to_quote;pub use orderbook::quote_to_base;pub use orderbook::tick_to_price;pub use orderbook::validate_tick_spacing;
Modules§
- IStablecoinDEX
- StablecoinDEX interface for managing orderbook based trading of stablecoins.
- dispatch
- ABI dispatch for the
StablecoinDEXprecompile. - error
- order
- Limit order type for the stablecoin DEX.
- orderbook
- Orderbook and tick level management for the stablecoin DEX.
- slots
Structs§
Enums§
- StablecoinDEX
Error - Container for all the
IStablecoinDEXcustom errors. - StablecoinDEX
Events - Container for all the
IStablecoinDEXevents.
Constants§
- MIN_
ORDER_ AMOUNT - Minimum order size of $100 USD
- TICK_
SPACING - Allowed tick spacing for order placement