Add a "recover bond" manager operation
The initial issue
(was Do not slash stakes because staked commitment is too old )
Initially, we thought that a staker having its bond on the latest LCC, and who doesn't withdraw its stake before a new commitment is cemented (of top of that LCC) will lose the stake forever.
After some stack discussions
(see https://tezos-dev.slack.com/archives/C02HSTL4D7H/p1652283653464869)
It seems that the current implementation doesn't allow cementing a new LCC until all stakes on the current LCC are refined or withdrawn
New raised questions
How stakers' bonds will be withdrawn (when staked on an LCC)? We can imagine one or several options:
- provide a command-line facility to allow stakers to explicitly withdraw their bonds
- automatically withdraw bonds for stakers who are still on (old) LCC when someone is about to cement a new commitment.
- The first option is what is implemented for TORUs (we could imagine having a similar command & code sharing for SCORUs are well, if possible).
- We should make sure that the second solution would not block commitment cementing in case of too many stakes sitting on LCC (What's the limit in practice?).
Edited by Mohamed IGUERNLALA