We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe22d1 commit 265cc6bCopy full SHA for 265cc6b
crates/shared/src/price_estimation/trade_verifier/mod.rs
@@ -867,7 +867,9 @@ fn ensure_quote_accuracy(
867
.get(&query.buy_token)
868
.context("summary buy token is missing")?;
869
870
- if (!sell_token_lost.is_zero() && *sell_token_lost >= sell_token_lost_limit) || (!buy_token_lost.is_zero() && *buy_token_lost >= buy_token_lost_limit) {
+ if (!sell_token_lost.is_zero() && *sell_token_lost >= sell_token_lost_limit)
871
+ || (!buy_token_lost.is_zero() && *buy_token_lost >= buy_token_lost_limit)
872
+ {
873
return Err(Error::TooInaccurate);
874
}
875
0 commit comments