Add Odos Avalanche aggregator trades#9775
Conversation
PR SummaryMedium Risk Overview
Wires Reviewed by Cursor Bugbot for commit 686b99a. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 686b99a. Configure here.
686b99a to
8cc4044
Compare
|
recheck |

Summary
Adds Odos coverage for Avalanche C-Chain in
dex_aggregator.trades.This PR adds separate Avalanche Odos v1 and v2 trade models, wraps them in the chain-level
odos_avalanche_c_tradesunion, and includes Avalanche in the cross-chainodos_tradesmodel. It also adds seed coverage from live Dune samples so the aggregator trade output can be checked against known transactions.What changed
odos_v1_avalanche_c_tradesto preserve historical Odos v1 routed swaps.odos_v2_avalanche_c_tradesfor current Odos v2 routed swaps.odos_avalanche_c_tradesinto the Avalanche chain-level union over v1 and v2.odos_tradesunion.dex_aggregator_seedrows for Avalanche Odos sample trades.Why this helps
Odos is a meaningful Avalanche DEX aggregator, but its Avalanche activity was not exposed through Spellbook's standardized
dex_aggregator.tradesabstraction. This makes Odos Avalanche routes queryable through the same cross-chain aggregator interface used by analysts and dashboards.Validation
dbt parsedbt compilefor the new Odos Avalanche models and affected unionsgit diff --check01KTZ616PQRJ17CK7NZ3GADMB1matched both added seed rows86,694v1 rows with0duplicate(tx_hash, evt_index, output_index)keystag:prod_excludeNotes for reviewers
The v1 model is intentionally included alongside v2 so the Avalanche chain-level Odos model does not drop historical v1 trade coverage.