Skip to content

feat(sdk): implement SDK methods for governance and document insurance pool threats - #568

Merged
Levi-Ojukwu merged 3 commits into
Invoice-Liquidity-Network:mainfrom
gotethry:implement-sdk-methods
Jul 25, 2026
Merged

feat(sdk): implement SDK methods for governance and document insurance pool threats#568
Levi-Ojukwu merged 3 commits into
Invoice-Liquidity-Network:mainfrom
gotethry:implement-sdk-methods

Conversation

@gotethry

Copy link
Copy Markdown
Contributor

What

Implemented three issues to enhance governance SDK methods and security documentation.

Issues Resolved

Closes #560
Closes #561
Closes #562

Changes

#560 - Implement SDK method for getProposal and listProposals with filtering

Updated listProposals to pass server-side pagination parameters (status, page, pageSize)
to the contract instead of only doing client-side filtering. This enables efficient
retrieval of proposals with proper pagination.

#561 - Implement SDK method for hasVoted

Added hasVoted method to check if an address has voted on a proposal. This enables
voting UIs to display vote status feedback to users, improving user experience.

#562 - Update threat-model.md with insurance pool risks

Added comprehensive threat model section covering insurance pool-specific risks:

  • Premium Manipulation: Risk of admin-controlled premium rates
  • Claim Fraud & Moral Hazard: Potential for collusion attacks
  • Pool Drainage / Insolvency: Risk of insufficient reserves

Each threat includes attack scenarios, current mitigations, residual risk assessment,
and detailed recommendations.

gotethry added 3 commits July 25, 2026 12:33
Resolves Invoice-Liquidity-Network#560

The listProposals contract function accepts status, page, and pageSize parameters
for server-side pagination and filtering. Updated the SDK method to pass these
parameters to the contract instead of only doing client-side filtering.
Resolves Invoice-Liquidity-Network#561

Added hasVoted method to check if an address has voted on a proposal.
Exposes the existing contract function through the SDK for UI use cases
where vote status feedback is needed.
Resolves Invoice-Liquidity-Network#562

Added comprehensive threat model section covering insurance pool-specific risks:
- Premium Manipulation: Risk of admin-controlled premium rates without bounds
- Claim Fraud & Moral Hazard: Potential for collusion between members and payers
- Pool Drainage / Insolvency: Risk of insufficient reserves for claims

Includes attack scenarios, current mitigations, residual risk assessment, and
detailed recommendations for each threat (dynamic premium adjustment, claim
prioritization, reserve requirements, stop-loss mechanisms, reinsurance options).
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@gotethry 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

@Levi-Ojukwu
Levi-Ojukwu merged commit 6c76673 into Invoice-Liquidity-Network:main Jul 25, 2026
4 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