Repository navigation
Fix oracle freshness, partial liquidity, proposal pagination, and expired exits - #714
Merged
nonsobethel0-dev merged 1 commit intoOct 20, 2026
Conversation
…-Protocol#675, Parashield-Protocol#676: oracle freshness, partial liquidity, proposal pagination, expired exits - OracleVerifier: Enforce MaxTimestampAge + TimestampFutureBuffer in verify_trigger (Parashield-Protocol#673) - ClaimsProcessor: Handle partial pool liquidity gracefully instead of panicking (Parashield-Protocol#674) - GovernanceDAO: Add paginated list_proposals to prevent instruction limit exceeded (Parashield-Protocol#675) - RiskPool: Auto-expire stale exit requests via TTL cleanup in sweep_expired_exits (Parashield-Protocol#676) Closes Parashield-Protocol#673 Closes Parashield-Protocol#674 Closes Parashield-Protocol#675 Closes Parashield-Protocol#676
|
@SirAlketa 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! 🚀 |
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
Fixes four bugs and one performance issue in the core Parashield contracts.
Changes
OracleVerifier (
contracts/oracle-verifier/src/lib.rs):verify_triggernow enforces bothMaxTimestampAgeandTimestampFutureBufferwhen filtering eligible data points, preventing stale or future-dated oracle readings from influencing claim payouts.ClaimsProcessor (
contracts/claims-processor/src/lib.rs): Payout path now handles the case where pool liquidity is below the claim amount — falls back to a partial payout rather than panicking, with helpercheck_pool_liquidity.GovernanceDAO (
contracts/governance-dao/src/lib.rs): Newlist_proposals(offset, limit)function (max 50 per call) provides paginated access to proposals, avoiding instruction limit exceeded errors as the proposal count grows.RiskPool (
contracts/risk-pool/src/lib.rs):sweep_expired_exitsnow auto-expires stale exit requests whose age exceedsExitRequestTtl(default 90 days), clearing the queue entry and unblocking future withdrawals.Closes #673
Closes #674
Closes #675
Closes #676