Commit f08a52a
authored
fix: remove unnecessary fresh price filtering (#103)
This change removes a check in the code that does not allow multiple
updates within the same timestamp to passthrough. `last_info.timestamp`
is always less than or equal to `info.timestamp`. So, this condition
`last_info.timestamp < info.timestamp` filters newer updates in the same
timestamp and essentially caps our publishing frequency to 1s. It was
intended to work for Solana but the publishing frequency itself takes
care of it. This change might result in increased Sol burn but the
actions to reduce it should be reducing the frequency. Please note that
in some filterings after, the same update prices are ignored so most of
the fee savings should remain there.1 parent 04391be commit f08a52a
3 files changed
+3
-11
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | 439 | | |
448 | 440 | | |
449 | 441 | | |
| |||
452 | 444 | | |
453 | 445 | | |
454 | 446 | | |
455 | | - | |
| 447 | + | |
456 | 448 | | |
457 | 449 | | |
458 | 450 | | |
| |||
0 commit comments