Skip to content

Fix proportional emergency withdrawals#142

Open
er1c-cartman wants to merge 1 commit into
sorosave-protocol:mainfrom
er1c-cartman:fix-76-proportional-emergency-withdraw
Open

Fix proportional emergency withdrawals#142
er1c-cartman wants to merge 1 commit into
sorosave-protocol:mainfrom
er1c-cartman:fix-76-proportional-emergency-withdraw

Conversation

@er1c-cartman
Copy link
Copy Markdown

Summary:

  • Updates emergency withdrawal to refund the current escrowed round proportionally to members who actually contributed.
  • Sends rounding remainders to a contributing member, and keeps the no-contribution fallback from leaving tokens stuck.
  • Adds a regression test for two completed rounds followed by an incomplete third round with unequal contribution state.

Fixes #76.

Validation:

  • cargo test --package sorosave
  • cargo fmt --check
  • cargo clippy --package sorosave --all-targets -- -D warnings
  • git diff --check

Notes:

  • Generated build/test artifacts were not committed.
  • No secrets, tokens, or private runtime data are included.

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.

Add test: emergency withdrawal with unequal contribution states

1 participant