Submitted by deadrxsezzz
Within the TapToken contract, the to-be-distributed balance is tracked by the dso_supply. Every week a percentage of is distributed to the users via oTAP emissions.
If we look at the code, well see that theres a check if theres extra tokens within the contract and distribute them if thats the case. The problem is that if such funds are distributed, theyll still be deducted from the dso_supply which will mean that these tokens will not be treated as an extra.
What theyll do is actually speed up the regular distribution and break the linearly decaying curve of weekly emissions.
Note: From the same core of the problem, there could be an underflow in dso_supply (if theres enough Boost Tap sent when the weekly emissions have become low enough). This would block rolling over a week, within the TapToken and TapiocaOptionBroker contracts, though no funds will be locked.
Fix accounting for extra tap tokens sent.
Context
0xRektora (Tapioca) confirmed and commented:
