Concepts
Non-Custodial Settlement
HyperDex is non-custodial: the protocol never holds taker funds at any point. The sequence is atomic:
- →Before the transaction: taker holds
token_inin their own wallet - →During the transaction: Soroban atomically moves
token_infrom taker → maker_pool, andtoken_outfrom the pool → taker - →After the transaction: taker holds
token_out; the pool holdstoken_in(minus fees)
If any step fails (bad signature, expired quote, insufficient pool balance), the entire transaction reverts. The taker's original tokens are never at risk.
Maker funds in the pool: Maker inventory held in the maker_pool is at the maker's own risk. Makers should monitor their pool balance and manage exposure accordingly.