atstake_legion_redeem_vault
Converts a winning legion’s leftover shares into sBTC after market resolution so banked credits can be paid; records zero value if the legion lost.
Instructions
Turn a winning legion's leftover shares into sBTC, so its credits can be paid.
Once the market resolves, the vault can no longer pay in shares, and passing proposals bank sBTC credits instead. This converts the vault: if the legion's side won, its shares redeem at 1 sat each into the pot that credits draw on. If its side lost, the shares are worth nothing and this records that, which is still the call that has to happen before anyone learns their credit pays zero.
Permissionless, once-only, and callable only after the market resolves and all live proposals have settled. Pays the caller nothing. Requires an unlocked wallet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Which legion: "yes"/"bonded" argues the coins entered a PoX-5 bond, "no"/"idle" argues they did not. |