Integrating Bush Liquidity For Swap Aggregators

This section is the central hub for aggregators, solvers and routers integrating Bush liquidity. It covers everything needed to index pools, price them off-chain and execute swaps against them. Should you require additional assistance or find any gaps in the provided information, our team is readily available to support you on Discordopen in new window.

The short version:

  1. Discover pools from the pool factories and read their state onchain (Fetching Pools And Data).
  2. Keep state fresh by tracking Vault events (Events).
  3. Quote off-chain with the exact reference maths in @bush.fi/mathsopen in new window, available in TypeScript, Python and Rust, which returns the same wei the Vault does (Pool Maths And Details).
  4. Execute through the prepaid Aggregator Router / Aggregator Batch Router, with no token approvals (Making And Querying Swaps).

Contents