Commit 489bad4
Do not preprocess COW AMMs when not configured (#3925)
# Description
When the driver's COW AMM config is empty, the corresponding task still
tries to search for surplus capturing jit order owners among the AMMs
and fires a redundant warning log in that case. When the driver doesn't
expect any AMMs, this log doesn't make any sense. This PR fixes this.
# Changes
- [ ] Make the COW AMM cache optional based on the COW AMMs config.
- [ ] When None, return fast with no AMMs for every auction with no
redundant logs.
## How to test
Logs on chains where COW AMMs are not configured.
## Related Issues
Fixes #38901 parent 191c401 commit 489bad4
File tree
2 files changed
+14
-6
lines changed- crates/driver/src/domain
- competition
2 files changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
393 | 398 | | |
394 | 399 | | |
395 | 400 | | |
396 | 401 | | |
397 | | - | |
398 | | - | |
| 402 | + | |
399 | 403 | | |
400 | 404 | | |
401 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
41 | | - | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments