[ADD] Ragnarok a pool per mimir setting
Implementation
When mimir votes to ragnarok a pool (67%) follow this process:
- Recall yggdrasil funds, then wait 100 blocks, to give time to get back funds
- Synth holders? Redeem to RUNE and place in Asgard, record synth supply and let people claim back later?
- Withdraw all asset-sided LPs at 10000 BP each, then wait 100 blocks
- Withdraw all rune-sided LPs at 10000 BP each, then wait 100 blocks
- Withdraw all dual-sided LPs at 10000 BP each
Then pool (and vaults) should be emptied and go into staging.
Edge cases
- Synth holders?
- If pool is gas asset, it should still be able to be emptied and the network can churn since it won't do any transactions on it
- If there are any insolvencies (less in wallet than vault), these should be fixed prior to ragnarok end.
- If there is more in the vault than the pools, then this should be abandoned, because we don't want to churn funds when there are none to pay for gas
Edited by THORChain