Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

fix: oracle price calculation #187

Merged
merged 6 commits into from
Mar 17, 2023

Conversation

apopiak
Copy link
Collaborator

@apopiak apopiak commented Mar 17, 2023

When ingesting data via on_liquidity_changed the oracle should calculate the price based on the liquidity, not the amounts.

based on #186 and #182

@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Patch coverage: 96.29% and no project coverage change.

Comparison is base (12e4be6) 73.38% compared to head (7794c7f) 73.38%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #187   +/-   ##
=======================================
  Coverage   73.38%   73.38%           
=======================================
  Files          41       41           
  Lines        3438     3442    +4     
=======================================
+ Hits         2523     2526    +3     
- Misses        915      916    +1     
Impacted Files Coverage Δ
ema-oracle/src/lib.rs 86.57% <90.90%> (-0.59%) ⬇️
ema-oracle/src/benchmarking.rs 98.75% <100.00%> (+0.01%) ⬆️
ema-oracle/src/types.rs 81.94% <100.00%> (+0.25%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants