Skip to content

Fix validation and security issues - #702

Merged
nonsobethel0-dev merged 1 commit into
Parashield-Protocol:mainfrom
De-hunterJS:fix/validation-and-security-issues
Oct 19, 2026
Merged

nonsobethel0-dev merged 1 commit into
Parashield-Protocol:mainfrom
De-hunterJS:fix/validation-and-security-issues

Conversation

@De-hunterJS

Copy link
Copy Markdown

close #596
close #597
close #598
close #599

- PolicyEngine.create_product: Validate oracle_data_type matches trigger type
  * Binary triggers require event-based data types (flight, disaster, health)
  * Threshold/Parametric triggers require measurement data types (weather, onchain, defi)

- PolicyEngine.buy_policy: Product status check already exists (ProductNotActive validation)

- ClaimsProcessor.process_claim: Duplicate payout check already exists (claim status validation)

- RiskPool.deposit: Enhanced category-specific capacity validation
  * Enforce max_total_deposited limit per category pool
  * Additional check to prevent deposits when utilization is at/above max
  * Protects against over-leveraging category pools beyond risk tolerance
@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@De-hunterJS 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 6e74ddf into Parashield-Protocol:main Oct 19, 2026
1 of 2 checks passed
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