Resolve "[ADD] Ragnarok a pool per mimir setting"
Related to #1341 (closed)
Once RAGNAROK-TERRA-LUNA
, RAGNAROK-TERRA-UST
mimir reach 2/3 majority consensus , or set by admin mimir, then the ragnarok pool will kick off.
- As soon as ragnarok pool started , set the pool status to Stage , which will stop it from funding yggdrasil
- every 300 blocks , it check whether there are pools need to be ragnarok
- Once ragnarok kicked off , the first round , it will redeem synth , and send it all to reserve , and also recall yggdrasil fund back to one of the asgard
- Every 300 blocks , it will process 500 LPs until all LPs have been processed
- During withdraw, it is best efforts, it it failed to process a specific LP for whatever reason , then the LP will be removed
- Once all LPs get processed , no more LP left , if the pool is non-gas asset, it will be removed, for gas asset, the pool get set to Suspended
Edited by Heimdall