Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Check for fee distribution when total number of tokens is changed #448
This PR requests that the fee cache amount be evaluated against the distribution threshold when there has been a change in the number of tokens.
Currently it is considered that the only path during which the amount of fees cached for a property would cross the distribution threshold would be when the amount in the cache is being increased. As such the evaluation of the amount of fees against the distribution threshold only occurs during
However given the distribution threshold is a function of the total number of tokens and
There is thus a path outside of
I believe this scenario is unlikely but felt I should still attempt to cover it.