Architecture & Concepts
Last updated
Last updated
RemusDEX matches buy and sell orders through an on-chain orderbook. Every interaction—from placing orders to confirming executions—happens within the Starknet framework. As trading activity rises, Starknet’s high throughput can handle the surge. This not only benefits RemusDEX users but also highlights Starknet’s ability to support elevated transactions per second (TPS), potentially enhancing its valuation and ecosystem traction.
Key Points
Precision and Control: Limit orders let you specify exact prices, appealing to traders used to centralized exchanges.
Full Transparency: On-chain execution ensures that all trades remain auditable.
Ecosystem Growth: RemusDEX activity boosts Starknet’s composability and total transaction volume.
A MarketConfig is defined by base token, quote token, tick size, lot size, trading status, and fee settings.
Only the contract owner can add or update market configurations.
Maker Orders: Placed into the orderbook if not immediately filled.
Taker Behavior: If a new order crosses the spread, it executes as a taker.
IOC: Immediate fill or partial fill, then cancel leftover.
Post: Reverts if the order would match on submission.
Basic: Partial fill if crossing, then rest is posted as a maker.
A user can hold up to 200 active orders across all markets. Once fully or partially filled and closed, the slot is freed.
Proceeds for matched orders are tracked in the DEX contract.
Users must explicitly call claim(token, amount)
to withdraw.