Skip to content

Commit

Permalink
Fix BalancerSOR empty response classification
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold committed Sep 17, 2024
1 parent 381437e commit 446942d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infra/dex/balancer/dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl Quote {
/// enough liquidity, no trading path, etc.). We don't consider this an
/// error case.
pub fn is_empty(&self) -> bool {
*self == Quote::default()
self.return_amount_raw.is_zero() && self.swap_amount_raw.is_zero() && self.swaps.is_empty()
}
}

Expand Down

0 comments on commit 446942d

Please sign in to comment.