-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: aggregate in the same slot (#394)
* update aggregation logic to aggregate in the same slot * Add features.h to .gitignore * Refactor test_upd_aggregate.rs: Clean up imports and formatting, update test cases * add prev_twap_, prev_twac_ and prev_price_cumulative * remove twap and twac from test_up_aggregate * fix test_sizes * fix borrow reference bug * fix build * fix logic * fix test_publish * format * fix test_publish_batch * fix test_upd_price_no_fail_on_error * fix test_upd_price_v2 * fix logic * refactor * update function desc * fix logic * add comments * fix tests * add ema test * reduce PC_NUM_COMP_PYTHNET to 64 * fix tests * add comments * revert to use PriceComponentArrayWrapper * refactor * update c format * revert format * revert format * gitignore .clang-format * remove clang-format * revert format * revert format * format * revert format * revert format * fix comment * remove comment * add comment * refactor * add guard for first price update after deployment * add back deleted test in test_publish * add tests for prev values to test_upd_price * update comment * add test * use last_slot_ instead of agg_.pub_slot_ * add more asserts * remove crank again asserts * fix * address comments * address comments * remove print statement * add test to simulate program upgrade * refactor * address comments * address comments * address comments * address comments * merge test_upd_price with test_upd_price_v2 * add asserts
- Loading branch information
Showing
16 changed files
with
701 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.