Initially, we didn't update the throttle before changing the total supply in the mint, dissolve, and melt functions.
Since the throttle is based on the current total supply, this could result in incorrect throttle behavior.
Now, the throttle is updated in both the mint and dissolve functions.
We kept the behavior unchanged in the melt function, as it's called frequently and the supply changes are minimal.
Lines of code
Vulnerability details
All the mitigations in this report are correct.
Initially, we didn't update the
throttle
before changing thetotal supply
in themint
,dissolve
, andmelt
functions. Since thethrottle
is based on the currenttotal supply
, this could result in incorrectthrottle
behavior.Now, the
throttle
is updated in both themint
anddissolve
functions. We kept the behavior unchanged in themelt
function, as it's called frequently and the supply changes are minimal.