Skip to content

feat: weighted median oracle aggregation - #856

Merged
greatest0fallt1me merged 4 commits into
Predictify-org:masterfrom
Peaostrel:feature/weighted-median
Jul 24, 2026
Merged

feat: weighted median oracle aggregation#856
greatest0fallt1me merged 4 commits into
Predictify-org:masterfrom
Peaostrel:feature/weighted-median

Conversation

@Peaostrel

Copy link
Copy Markdown

Fixes #704

Implemented weighted median oracle aggregation for the GrantFox campaign per the requirements.

  • Added OracleWeight(Address) to OracleIntegrationKey enum.
  • Implemented set_oracle_weight and get_oracle_weight in OracleIntegrationManager.
  • Added calculate_weighted_median logic to safely find the weighted median price.
  • Updated fetch_and_verify_oracle_result to use the new weighted median mechanism.
  • Added test coverage in test_calculate_weighted_median to handle different edge cases.

@drips-wave

drips-wave Bot commented Jul 23, 2026

Copy link
Copy Markdown

@Peaostrel Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Peaostrel
Peaostrel force-pushed the feature/weighted-median branch from 2a28a7d to bb7fccf Compare July 23, 2026 17:35
@Peaostrel
Peaostrel force-pushed the feature/weighted-median branch from b31f44f to fe10d65 Compare July 23, 2026 19:29
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Merged into master via admin resolver (-X theirs).

@greatest0fallt1me
greatest0fallt1me merged commit 687d15d into Predictify-org:master Jul 24, 2026
1 check failed
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Well-scoped PR — merging. Thanks for the contribution!

@Peaostrel
Peaostrel deleted the feature/weighted-median branch July 24, 2026 14:47
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.

Add per-oracle weighted median aggregation

2 participants