Full release notes
This release fixes a misconfiguration in which the HubAssetImbalance becomes more negative from non-LRNA trades instead of becoming less negative (moving towards 0). It will also reset the HubAssetImbalance to 0.
0.05% of every trade is paid in LRNA as a Protocol Fee - in the design, when the HubAssetImbalance is <0, this fee is burned in order to slowly bring the HubAssetImbalance back to 0.
In the current implementation, the Protocol Fee is actually moving the HubAssetImbalance further from 0 - as a result, the HubAssetImbalance would never move towards 0 and the protocol would eventually burn too much LRNA.
As with Referendum #20; please note that adjusting the parameters of the LRNA imbalance mechanism and resetting the HubAssetImbalance will not have any negative impact on past trades or provided liquidity.
We found this issue thanks to the help of community member amphibiousParakeet, whose relentless pursuit to understand the mechanisms behind the Omnipool first brought this to light. I will be proposing to the rest of the HydraDX Council that we pay a bug bounty under the previously agreed spending framework and would encourage all other curious developers (whether professional or hobbyist) to join us on a bug hunt!
@Mississippi-Goddam did you mean to vote no? Did you catch something wrong with this proposal that the rest of us missed?
Edited