Skip to content

[feature] RUNEPool Implementation

Ursa (9R) requested to merge ursa/rune-pool into develop

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 the pol field.
  • Adds runepool invariant that asserts pool units and pending pool units equal the sum of provider units.
Edited by Ursa (9R)

Merge request reports