Skip to content

Add 100-token juror stake requirement - #35

Closed
vku2018 wants to merge 2 commits into
trustflow-protocol:mainfrom
vku2018:grantfox-22-juror-staking
Closed

vku2018 wants to merge 2 commits into
trustflow-protocol:mainfrom
vku2018:grantfox-22-juror-staking

Conversation

@vku2018

@vku2018 vku2018 commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • add a MIN_JUROR_STAKE threshold of 100 locked tokens for dispute voting eligibility
  • expose get_min_juror_stake and is_juror_eligible helpers for callers/tests
  • emit stake, unstake, and vote events around juror staking/voting state transitions
  • add tests covering 99-token ineligibility, 100-token eligibility, and blocked voting below the threshold

Closes #22.

Validation

Run from contracts/:

  • cargo fmt --all
  • cargo test -p trustflow - 15 passed
  • cargo clippy -p trustflow --all-targets - passed, with existing Soroban macro unexpected cfg(testutils) warnings under Rust 1.96
  • cargo build -p trustflow --target wasm32-unknown-unknown --release - passed, with the same existing Soroban macro warnings

@meshackyaro

Copy link
Copy Markdown
Contributor

Closing this PR: the linked issue #22 was not assigned to you. Per our contribution process, please have an issue assigned to you before opening a PR against it. Thanks for your interest — feel free to comment on an open "good first issue" to get it assigned.

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 Juror Staking requirement

4 participants