1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! Pure solving logic for the [Fynd](https://fynd.xyz) DEX router.
//!
//! This crate contains the route-finding algorithms, market-data pipeline, and encoder that
//! powers Fynd. It has **no HTTP dependencies** and can be embedded directly in any application.
//!
//! For documentation, guides, and API reference see **<https://docs.fynd.xyz/>**.
//!
//! # Use cases
//!
//! - **Standalone routing** — embed Fynd's algorithms directly without running an HTTP server.
//! - **Custom algorithms** — implement the [`Algorithm`] trait and plug in via
//! [`FyndBuilder::with_algorithm`](solver::FyndBuilder).
//! - **HTTP server** — use the [`fynd-rpc`](https://crates.io/crates/fynd-rpc) crate, which wraps
//! this crate with Actix Web.
//!
//! # Quick start
//!
//! See the [Fynd quickstart](https://docs.fynd.xyz/get-started/quickstart) to run a local
//! instance, or the [custom algorithm guide](https://docs.fynd.xyz/guides/custom-algorithm)
//! to implement your own routing strategy.
/// Route-finding algorithms. Includes [`MostLiquidAlgorithm`] and the
/// pluggable [`Algorithm`] trait.
/// Derived data computations: spot prices, pool depths, and gas prices.
/// Encodes solved routes into ABI-encoded on-chain calldata via Tycho's router contracts.
/// Market data feed: Tycho WebSocket integration, gas price fetching, and protocol registry.
/// Graph management for algorithms. Provides [`GraphManager`](graph::GraphManager)
/// trait and the reusable [`PetgraphStableDiGraphManager`](graph::PetgraphStableDiGraphManager).
/// External price validation for quotes.
/// [`FyndBuilder`](solver::FyndBuilder) assembles the full pipeline and returns a
/// [`Solver`](solver::Solver).
/// Core domain types: [`Order`](types::Order), [`Route`](types::Route), [`Quote`](types::Quote),
/// etc.
/// Multi-threaded solver pool management with pluggable algorithm registry.
/// Request orchestration: fans out orders to all solver pools and selects the best result.
// Re-export commonly used types for convenience
pub use ;
// Required for implementing the Algorithm trait externally
pub use ComputationRequirements;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;