-
Notifications
You must be signed in to change notification settings - Fork 374
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
dapp staking v3 - Oracle solution #1197
Conversation
…3-oracle-solution
/bench shibuya-dev oracle_benchmark,pallet_price_aggregator |
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/8326919809. |
Benchmarks have been finished. |
/bench shibuya-dev oracle_benchmarks |
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/8328412557. |
Benchmarks have been finished. |
Minimum allowed line rate is |
@ashutoshvarma @PierreOssun can you please re-check/approve? |
Pull Request Summary
Introduces oracle and
price-aggregation
support for Shibuya runtime.The overall solution consists of 3 runtime parts:
Fourth on-chain step can be considered the existing functionality in dApp staking v3 which re-calculates tier config based on the price.
Changes Overview
FixedU64
toFixedU128
for compatibilitydapp-staking-v3
andstatic-price
provider pallets, as well as in runtimesoracle-benchmarks
has been added to address the missing benchmarks functionality inorml-benchmarks
palletprice-aggregator
pallet provides support for price aggregation and calculating moving averageAstar
andShiden
migration logic forstatic-price-provider
has been addedShibuya
has been doneCheck list
OnNewData
observer call