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.
2 parents 823d5d0 + 656183a commit ed63cfeCopy full SHA for ed63cfe
tycho-integration-test/src/main.rs
@@ -665,6 +665,11 @@ async fn process_state(
665
);
666
metrics::record_get_amount_out_duration(&component.protocol_system, duration_seconds);
667
668
+ // Sometimes the expected amount out might be zero (e.g. pool is depleted in one direction)
669
+ // Then execution will fail with TychoRouter__UndefinedMinAmountOut
670
+ if expected_amount_out == BigUint::ZERO {
671
+ continue
672
+ }
673
// Simulate execution amount out against the RPC
674
let (solution, transaction) = match encode_swap(
675
&component,
0 commit comments