[feature] RUNEPool Implementation
This implements the RUNEPool logic to manage ownership units of POL per #1841. In order to fit cleanly within the existing implementation, the accounting does not follow the outlined pseudo code verbatim. This is taken out of draft to commence review, however some polish remains to further extend tests and ensure there is no potential for bleed in the calculations.
Other Notes:
- The initial change is separated into 2 commits, with less relevant generated changes in the second.
-
/thorchain/pol
endpoint was removed in favor of/thorchain/runepool
which contains the former embeded in thepol
field. - Adds
runepool
invariant that asserts pool units and pending pool units equal the sum of provider units.
Edited by Ursa (9R)