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 Discord.
The short version:
- Discover pools from the pool factories and read their state onchain (Fetching Pools And Data).
- Keep state fresh by tracking Vault events (Events).
- Quote off-chain with the exact reference maths in
@bush.fi/maths, available in TypeScript, Python and Rust, which returns the same wei the Vault does (Pool Maths And Details). - Execute through the prepaid Aggregator Router / Aggregator Batch Router, with no token approvals (Making And Querying Swaps).