Skip to content
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

WETH Oracle support #429

Open
wants to merge 1 commit into
base: 10-31-weth_from_assethub_support
Choose a base branch
from

Conversation

JuaniRios
Copy link
Contributor

@JuaniRios JuaniRios commented Nov 29, 2024

What?

  • Add price fetchers for ETH, used for WETH

Why?

  • Needed to support AssetHub WETH as a funding currency

How?

  • Do some changes to each fetcher logic like new serde macros, and adding the new API endpoint to WETH

Testing?

  • Added to the rest of the tests inside the oracle pallet

Copy link
Contributor Author

JuaniRios commented Nov 29, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@JuaniRios JuaniRios force-pushed the 11-29-weth_oracle_support branch 2 times, most recently from 8fa2387 to 8f06f16 Compare December 2, 2024 13:44
@JuaniRios JuaniRios force-pushed the 11-29-weth_oracle_support branch from 8f06f16 to aec984b Compare December 3, 2024 15:06
This was referenced Dec 4, 2024
@JuaniRios JuaniRios self-assigned this Dec 9, 2024
@JuaniRios JuaniRios requested review from lrazovic and vstam1 December 9, 2024 10:24
@JuaniRios JuaniRios marked this pull request as ready for review December 9, 2024 10:26
Copy link
Collaborator

@vstam1 vstam1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main logic for adding Weth looks correct. Only some comments about debug packages and a feature flag

@@ -179,7 +179,7 @@ std = [
"sp-block-builder/std",
"sp-consensus-aura/std",
"sp-core/std",
# "sp-debug-derive/std",
"sp-debug-derive/std",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be included again?

@@ -28,7 +28,7 @@ scale-info = { workspace= true, default-features = false, features = [
lazy_static = "1.5.0"

# Uncomment this and the std feature below to see variables instead of <wasm:stripped> in the console output
#sp-debug-derive = { workspace = true, features = ["force-debug"]}
sp-debug-derive = { workspace = true, features = ["force-debug"]}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be remove this?

frame_metadata_hash_extension::CheckMetadataHash::<Runtime>::new(true),
#[cfg(not(feature = "metadata-hash"))]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How exactly does this work with metadata-hash? Shouldn't we always build the runtime with the new CheckmetadataHash? Was this only for testing purposes?

@JuaniRios JuaniRios mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants