feat(contract): Oracle freshness, multi-oracle medianization, VRF commit-reveal, keeper bonding (#1040-#1043) - #1111
Open
devdianax wants to merge 1 commit into
Conversation
… freshness, multi-oracle medianization, VRF commit-reveal, keeper bonding - Issue SoroLabs#1040: Oracle Heartbeat Freshness Verification & Staleness Circuit Breaker - Added MAX_ORACLE_DELAY_SECONDS (300s) constant - Added validate_oracle_freshness() and require_fresh_oracle_response() helpers - Integrated staleness check in execute_internal pipeline - Issue SoroLabs#1041: Multi-Source Oracle Medianization & Flash Deviation Thresholds - Added OracleFeed type for per-provider price feeds - Added MAX_ORACLE_DEVIATION_BPS (250) threshold - Implemented compute_median_price() with insertion-sort median - Implemented check_oracle_deviation() to halt on >2.5% deviation - Added set_oracle_feed(), get_oracle_feed(), get_medianized_oracle_price() - Issue SoroLabs#1042: Cryptographic VRF Commit-Reveal Scheme & Fulfillment Window Enforcement - Added VrfCommit type and commit_vrf_seed() method - Added configurable VRF delay/expiration via set_vrf_timing_config() - Enforces fulfillment window in fulfill_vrf_request() - Added cancel_vrf_request() for expired requests - Issue SoroLabs#1043: Keeper Economic Bonding & On-Chain Stake Slashing Protocol - Added KeeperBond type and MIN_KEEPER_STAKE (500) constant - Implemented bond_keeper_stake() and unbond_keeper_stake() - Enhanced slash_keeper() with 50/50 treasury/whistleblower split - Added set_task_requires_bond() for per-task opt-in - Added bonding check in execute_internal for restricted tasks Closes SoroLabs#1040 Closes SoroLabs#1041 Closes SoroLabs#1042 Closes SoroLabs#1043
|
@devdianax 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! 🚀 |
|
@Smartdevs17 is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements four contract-level security improvements as specified in Issues #1040-#1043.
Issue #1040 - Oracle Heartbeat Freshness Verification & Staleness Circuit Breaker
Issue #1041 - Multi-Source Oracle Medianization & Flash Deviation Thresholds
Issue #1042 - Cryptographic VRF Commit-Reveal Scheme & Fulfillment Window Enforcement
Issue #1043 - Keeper Economic Bonding & On-Chain Stake Slashing Protocol
Acceptance Criteria
Closes #1040
Closes #1041
Closes #1042
Closes #1043