Skip to content

Commit 5a27f7d

Browse files
authored
fix: reconciliation escrow looks ups must use subgraph service address (#891)
1 parent 401c276 commit 5a27f7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/tap-agent/src/agent/sender_account.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,10 @@ impl Actor for SenderAccount {
989989
.collect();
990990

991991
if !collection_ids.is_empty() {
992-
// For V2, use the indexer address as the data service since the indexer
993-
// is providing the data service for the queries
994-
let data_service = config.indexer_address;
992+
// For V2/Horizon: data_service must be the SubgraphService address to match
993+
// on-chain RAV lookups (service_provider is the indexer address)
994+
let data_service =
995+
config.tap_mode.require_subgraph_service_address();
995996

996997
match escrow_subgraph
997998
.query::<LatestRavs, _>(latest_ravs_v2::Variables {

0 commit comments

Comments
 (0)