Skip to content

Validate share minting arithmetic and input bounds in risk pool, clai… - #667

Merged
nonsobethel0-dev merged 2 commits into
Parashield-Protocol:mainfrom
Alaka-ibr:fix/validation-issues-641-644
Sep 29, 2026
Merged

nonsobethel0-dev merged 2 commits into
Parashield-Protocol:mainfrom
Alaka-ibr:fix/validation-issues-641-644

Conversation

@Alaka-ibr

@Alaka-ibr Alaka-ibr commented Sep 28, 2026 •

Copy link
Copy Markdown

Summary of Changes

This PR fixes validation and arithmetic overflow issues across RiskPool, ClaimsProcessor, PolicyEngine, and OracleVerifier contracts.

Issues Fixed

Testing

Unit tests were added and run across the affected contracts:

  • test_dispute_claim_empty_reason_fails in claims-processor
  • test_submit_data_empty_key_fails in oracle-verifier

Closes #641
Closes #642
Closes #643
Closes #644

…ms, and oracle contracts

- RiskPool: add checked arithmetic overflow guards for deposit share minting and totals (Parashield-Protocol#641)
- ClaimsProcessor: validate maximum dispute reason length in dispute_claim (Parashield-Protocol#642)
- PolicyEngine: verify minimum coverage bounds validation (Parashield-Protocol#643)
- OracleVerifier: verify and test data_key validation in submit_data (Parashield-Protocol#644)
@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@Alaka-ibr 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

@nonsobethel0-dev
nonsobethel0-dev merged commit 6650165 into Parashield-Protocol:main Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants