feat(guilds): legion-engage — no-admin refundable engagement stake#5
Open
biwasxyz wants to merge 1 commit into
Open
feat(guilds): legion-engage — no-admin refundable engagement stake#5biwasxyz wants to merge 1 commit into
biwasxyz wants to merge 1 commit into
Conversation
Providers optionally stake sBTC to join a legion and unlock benefits (ranking, treasury share, governance). Staking is NOT required to earn. - No admin, no slash: nothing can seize a member's stake. - join / add-stake / leave; leave refunds 90% and routes a 10% exit fee into the legion treasury (via deposit, so it stays governable). - get-stake read used by the gateway for stake-weighted ranking. - Clarinet tests: 7 new, all passing (11/11 with the existing suite). Not deployed. For CEO review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New
legion-engagecontract: providers optionally stake to join a legion and unlock benefits (ranking, treasury share, governance). Staking is never required to earn — earning is free at the gateway.Why
Moves away from the bond/slash/admin model of
legion-providers. There is no admin and no slash — nothing can seize a member's stake. Cheating enforcement lives off-chain at the gateway (de-route), not on-chain confiscation.Behavior
join(ft, amount)— lock sBTC (min 10k sats), become a member.add-stake(ft, amount)— top up.leave(ft)— refund 90% to the member, route the 10% exit fee into the legion treasury (viadeposit, so it stays governable).get-stake(who)— read used by the gateway for stake-weighted ranking.Tests
Clarinet/vitest: 7 new tests, all passing (11/11 with the existing guild suite).
Not deployed
Nothing deployed. For review; deploy awaits sign-off.