Skip to main content

Module stablecoin_dex

Module stablecoin_dex 

Source
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 StablecoinDEX precompile.
error
order
Limit order type for the stablecoin DEX.
orderbook
Orderbook and tick level management for the stablecoin DEX.
slots

Structs§

StablecoinDEX

Enums§

StablecoinDEXError
Container for all the IStablecoinDEX custom errors.
StablecoinDEXEvents
Container for all the IStablecoinDEX events.

Constants§

MIN_ORDER_AMOUNT
Minimum order size of $100 USD
TICK_SPACING
Allowed tick spacing for order placement