Skip to content

Add round deadline extension#146

Open
er1c-cartman wants to merge 1 commit into
sorosave-protocol:mainfrom
er1c-cartman:fix-77-round-deadline-extension
Open

Add round deadline extension#146
er1c-cartman wants to merge 1 commit into
sorosave-protocol:mainfrom
er1c-cartman:fix-77-round-deadline-extension

Conversation

@er1c-cartman
Copy link
Copy Markdown

Summary

  • add admin-only extend_deadline(admin, group_id, extra_seconds) for the active round
  • track deadline_extensions on each RoundInfo, resetting to zero for each new round
  • reject zero/oversized extensions, non-active groups, non-admin callers, and more than two extensions per round
  • emit a dl_ext event with the group, round, new deadline, and extension count

Fixes #77.

Tests

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

Notes

This follows the issue acceptance criteria as a direct group-admin deadline extension flow: at most one cycle_length per call and at most two extensions per round.

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 round deadline extension by admin vote

1 participant