Skip to content

feat(guilds): legion-engage — no-admin refundable engagement stake#5

Open
biwasxyz wants to merge 1 commit into
mainfrom
feat/legion-engage
Open

feat(guilds): legion-engage — no-admin refundable engagement stake#5
biwasxyz wants to merge 1 commit into
mainfrom
feat/legion-engage

Conversation

@biwasxyz

Copy link
Copy Markdown
Contributor

What

New legion-engage contract: 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 (via deposit, 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.

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.
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.

1 participant