delvtech / agent0

Analysis & simulation repo for Delv
https://agent0.readthedocs.io/en/latest/
Apache License 2.0
49 stars 21 forks source link

Fixing a bug with missing event data on initialization #1692

Closed slundqui closed 1 week ago

slundqui commented 1 week ago

Previously, initializing two LocalHyperdrive objects on existing pools will result in missed event data on the second pool. This adds a flag so that the database always gets updated with all events on pool object initialization.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.92%. Comparing base (3ee7d90) to head (c916e89). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1692 +/- ## ========================================== + Coverage 81.30% 81.92% +0.61% ========================================== Files 99 99 Lines 7650 7652 +2 ========================================== + Hits 6220 6269 +49 + Misses 1430 1383 -47 ``` | [Flag](https://app.codecov.io/gh/delvtech/agent0/pull/1692/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/delvtech/agent0/pull/1692/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech) | `81.92% <100.00%> (+0.61%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.