Skip to content

feat: implement remove_member with membership protection - #15

Open
JHON12091986 wants to merge 3 commits into
coopfinance:mainfrom
JHON12091986:feat/issue-5-remove-member
Open

feat: implement remove_member with membership protection#15
JHON12091986 wants to merge 3 commits into
coopfinance:mainfrom
JHON12091986:feat/issue-5-remove-member

Conversation

@JHON12091986

Copy link
Copy Markdown

Closes #5
/claim #5

Changes

  • Added remove_member function with membership protection
  • Includes force flag to bypass loan balance check
  • Preserves contribution history for audit
  • Emits member_removed event
  • Added comprehensive tests

Testing

  • ✅ Happy path: member removed successfully
  • ✅ Error: member not found
  • ✅ Error: unauthorized (non-admin)
  • ✅ Success: member removed with force flag
  • ✅ Preserves contribution history

All 25 tests passed.

Payment wallet (USDC on Ethereum): 0x46243c949f30280771c0675Bc8A16155A9B96e51

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Contracts] Add remove_member function to TreasuryContract with membership guard

1 participant