fynd-core 0.43.0

Core solving logic for Fynd DEX router
Documentation

Fynd Core - Pure solving logic for DEX routing

This crate provides the core solving algorithms and types for finding optimal swap routes across multiple DEX protocols. It contains no HTTP or UI dependencies, making it suitable for standalone use in any application.

Use Cases

  • Standalone routing: Integrate Fynd's routing algorithms into your own application
  • Custom solvers: Build specialized routing solutions without HTTP overhead
  • Research & testing: Experiment with routing algorithms in isolation

Main Components

  • algorithm: Route-finding algorithms (e.g., MostLiquidAlgorithm)
  • graph: Graph management and pathfinding utilities
  • derived: Derived data computations (spot prices, pool depths, gas prices)
  • types: Core type definitions (Order, Route, Swap, OrderQuote)
  • feed: Market data structures and event handling
  • encoding: Encodes solved routes into on-chain transactions via Tycho's router contracts
  • worker_pool: Multi-threaded solver pool management with algorithm registry
  • worker_pool_router: Request orchestration across multiple solver pools