diff --git a/crates/shared/src/price_estimation/trade_verifier.rs b/crates/shared/src/price_estimation/trade_verifier.rs index b00b9dfc3e..ca9352e8b3 100644 --- a/crates/shared/src/price_estimation/trade_verifier.rs +++ b/crates/shared/src/price_estimation/trade_verifier.rs @@ -612,8 +612,8 @@ fn add_balance_queries( let query_balance = solver.methods().store_balance(token, owner, true); let query_balance = Bytes(query_balance.tx.data.unwrap().0); let interaction = (solver.address(), 0.into(), query_balance); - // query balance query at the end of pre-interactions - settlement.interactions[0].push(interaction.clone()); + // query balance right after we receive all `sell_token` + settlement.interactions[1].insert(0, interaction.clone()); // query balance right after we payed out all `buy_token` settlement.interactions[2].insert(0, interaction); settlement