New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Integrate EMA Oracle (deprecated) #557
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportBase: 43.89% // Head: 43.83% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #557 +/- ##
==========================================
- Coverage 43.89% 43.83% -0.06%
==========================================
Files 61 61
Lines 4406 4428 +22
==========================================
+ Hits 1934 1941 +7
- Misses 2472 2487 +15
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 at Codecov. |
…o apopiak/next-gen-oracle
…k-node into apopiak/next-gen-oracle
…o apopiak/next-gen-oracle
…o apopiak/next-gen-oracle
@@ -0,0 +1,63 @@ | |||
[package] | |||
name = "pallet-exchange" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confused that this is showing up here 🤔
garbled merge (pull)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exchange have been deleted from pallets.
I noticed also some inconsistencies in math.
Perhaps, it would be worth considering to take the latest master, integrate just this and do the same in warehouse and math ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
math and warehouse seem fine, no? would prefer not to lose the history there
I can do this here, yeah
The upgrade error doesn't seem related to this PR? |
…o apopiak/next-gen-oracle # Conflicts: # Cargo.lock # integration-tests/Cargo.toml # integration-tests/parachain-runtime-mock/Cargo.toml # pallets/duster/Cargo.toml # pallets/lbp/Cargo.toml # pallets/marketplace/Cargo.toml # pallets/xyk-liquidity-mining/Cargo.toml # pallets/xyk-liquidity-mining/benchmarking/Cargo.toml # pallets/xyk/Cargo.toml # primitives/Cargo.toml # runtime/basilisk/Cargo.toml # runtime/common/Cargo.toml # runtime/testing-basilisk/Cargo.toml
|
||
parameter_types! { | ||
pub SupportedPeriods: BoundedVec<OraclePeriod, ConstU32<MAX_PERIODS>> = BoundedVec::truncate_from( | ||
vec![OraclePeriod::LastBlock, OraclePeriod::TenMinutes, OraclePeriod::Day, OraclePeriod::Week] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea why code coverage is failing here, any ideas? |
superseded by #599 |
Integrate the EMA oracle from galacticcouncil/warehouse#76 into the Basilisk runtime.
Description
This PR adds the EMA oracle pallet and configures the runtime to ingest xyk trades and liquidity changes into it.
Supported periods are configured to
LastBlock
,TenMinutes
,Day
andWeek
.The oracle values are not used, yet, to allow for observation.
Related Issue
https://app.clickup.com/t/2v0w820
How Has This Been Tested?
Checklist: