Solver Flow Summary Example

Example of a solver processing an intent

Detect Intent

The Event Poller sees a user’s limit Intent for BTCUSDT at price X. This event is queued into the Position Manager.

Decision & Lock

The Position Manager checks risk policy: “Is the price acceptable? Do we have enough allocated balance with the user? Are we whitelisted?” If yes, requests Web3 Agent to call allocateAndLockQuote().

Broker Hedge

Simultaneously, the Position Manager instructs the Broker-Order Maker: “Place a limit order on Binance at price X for the same quantity.” The Broker-Order Monitoring module watches for partial fills or a fill event from the exchange.

Open Position On-Chain

Once the broker fill is confirmed (full or partial), the Position Manager calls openPosition().

User Closing

At some point, PartyA requests a limit close. The Position Manager again places a corresponding close order on Binance. When the broker fill is confirmed, the Hedger calls fillCloseRequest() on-chain. The position is fully closed on both the broker and SYMMIO sides.

Auditor (Optional)

A Position Validator confirms the final state matches: “Broker: no open position, Hedger DB: position closed, On-chain: position closed.” Monitoring & Developer Alerts remain watchful in case any mismatch arises (e.g., on-chain position open but broker order canceled, etc.).

Last updated