galacticcouncil / galacticcouncil/hydration-node

Split Oracle accumulators by Source

Open
#671 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
208
Forks
109
Avg merge
6d 3h
Merged PRs (30d)
3

Description

### Detailed Description
Currently `pallet-ema-oracle` accumulates all entries into one BTreeMap. This allows for predictable weight of `on_finalize`, but limits the number of unique combinations of `(Source, (AssetId, AssetId))` that can be placed within one block (and thus the number of parallel trades in independent pools).
It would be possible and probably desirable to associate each Source with its own accumulator and ensure predictable `on_finalize` weight by limiting the number of sources.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.