Introduction

Order-Router Protocol

Haystack Order Router is a protocol for on-chain market swaps of Algorand assets. The protocol provides best route discovery between any token pair that has liquidity in the Algorand ecosystem.

Key Features

  • Smart Order Routing: Haystack Order Router directly connects all AMM pools together no matter the provider and will find all direct and atomic multi-hop routes between any two tokens in the Algorand ecosystem.

  • Automatic Liquidity Discovery: The number of tokens and liquidity pools increases daily. The Haystack Order Router automatically recognizes any market or pool for any of the DEXes it currently aggregates. This ensures that it always has the latest liquidity for any token that is listed as soon as it is available.

  • Speed: The Order Router fetches quotes extremely fast (~1-2 seconds).

  • Composability: The Router is fully composable. Composability means developers can combine their own protocols with Haystacks protocol to build powerful and flexible systems.

  • Fixed-Output Support: Haystack Order Router protocol is able to support fixed-output swaps (where excess from the swap is accumulated/redeemed in the input asset) for all composable DEX protocols, even if they do not support fixed-output themselves (eg. Pact/Humble).

  • Aggregated Slippage Check: Haystack Order Router protocol performs a single slippage check on the final output asset, regardless of how many swaps are performed. This prevents a single swap from failing the entire transaction group even if it does not impact the final slippage check (resulting in higher swap success rate).

  • Secure: Haystack only leverages smart contracts that have been audited by trusted sources and written by organizations that have been endorsed by the Algorand Foundation. The original Order Router smart contract has been audited by Vantage Point.

  • Transparent: The Haystack Order Router quote includes all protocol fees (including Deflex Order Router App fees, if the Deflex Order Router App is used). What you see is what you get!

Last updated