Skip to content

feat: weighted median oracle aggregation#856

Open
Peaostrel wants to merge 4 commits into
Predictify-org:masterfrom
Peaostrel:feature/weighted-median
Open

feat: weighted median oracle aggregation#856
Peaostrel wants to merge 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
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

1 participant