galacticcouncil / galacticcouncil/hydration-node
Split Oracle accumulators by Source
Open
- 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
Assessment
This issue has not been assessed yet.