Skip to content

Add early payout requests#136

Open
SlaVKsVolks wants to merge 1 commit into
sorosave-protocol:mainfrom
SlaVKsVolks:codex/early-payout
Open

Add early payout requests#136
SlaVKsVolks wants to merge 1 commit into
sorosave-protocol:mainfrom
SlaVKsVolks:codex/early-payout

Conversation

@SlaVKsVolks
Copy link
Copy Markdown

Summary

Implements early payout requests for #8.

  • Adds early_payout_threshold_bps to group state.
  • Adds admin set_early_payout_threshold configuration.
  • Adds recipient-only request_early_payout.
  • Transfers the currently contributed partial pot when the threshold is met.
  • Advances the group to the next round after early payout.
  • Adds a test covering threshold rejection, successful partial payout, and round advancement.

Verification

  • cargo fmt --all
  • cargo test
  • cargo clippy --all-targets -- -D warnings
  • cargo build

Closes #8

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.

Implement early payout request mechanism

1 participant