Skip to content

Feat: Add insurance pool governance, sustainability tracking, cooperative profit sharing and education lockups /888 889 890 891 - #982

Open
soma-enyi wants to merge 5 commits into
Stellar-split:mainfrom
soma-enyi:feat/888-889-890-891-insurance-sustainability-coop-education
Open

soma-enyi wants to merge 5 commits into
Stellar-split:mainfrom
soma-enyi:feat/888-889-890-891-insurance-sustainability-coop-education

Conversation

@soma-enyi

Copy link
Copy Markdown

Summary

Adds four self-contained feature modules to the split contract. Each has its own storage keys, events and unit tests.

Recipient insurance pool governance (#888)

  • insurance_pool.rs: members fund a per-token pool, and recipients file claims against it.
  • Members vote with weight equal to their contribution.
  • A claim pays out once approving weight is more than half of total contributions. It is rejected when rejecting weight reaches half or the voting period expires.
  • Events: ins_fund, ins_claim, ins_vote, ins_paid, ins_rej.

Invoice sustainability impact tracking (#889) - sustainability.rs: the i values by category.

  • Per-invoice and global totals accumulate, with a per-invoice report getter. Categories per invoice are c
  • Event: sust_rec.

Creator cooperative profit sharing (#890)

  • cooperative.rs: a coopershares that sum to 10,000 bps.
  • Deposits are credited to members pro rata, with rounding dust going to the last
    member, and members claim th
  • Events: coop_new, coop_dep, coop_clm.

Recipient education funding lockup (#891)

  • education_lockup.rs: a fpient, payable only to a named institution.
  • The recipient releases funpiry ledgers.
  • The funder can reclaim after expiry.
  • Events: edu_lock, `edu_r

Other changes

Notes

  • No existing contract logic is modified.
  • The new code uses `env.evef the contract does.

Closes #888
Closes #889
Closes #890
Closes #891

@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@soma-enyi 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant