Skip to content

feat: add multi-token group contributions#155

Open
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/multi-token-groups-4
Open

feat: add multi-token group contributions#155
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/multi-token-groups-4

Conversation

@TUPM96
Copy link
Copy Markdown

@TUPM96 TUPM96 commented May 25, 2026

Closes #4

/claim #4

Summary

  • Add multi-token group creation with an accepted-token allowlist while keeping the existing single-token create_group path backward-compatible.
  • Add contribute_with_token(member, group_id, token) with allowlist validation and per-token round accounting.
  • Distribute each token pot to the round recipient when a multi-token round completes.
  • Add regression tests for default single-token storage, empty allowlist rejection, accepted multi-token contribution/payout flow, and unaccepted token rejection.

Validation

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

Payout details can be provided privately on acceptance.

Copilot AI review requested due to automatic review settings May 25, 2026 10:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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 multi-token support for groups

2 participants