Closed sampocs closed 1 year ago
oh-oh, this was merged into your global cap branch @sampocs -- hope that is okay... my review order will be poor on this one
@sampocs that's fine! I'll let you know when the others are ready for merge. Would be nice to hold off until we get some reviews
Context
In the upgrade handler that onboards LSM, we'll have to bootstrap the total liquid staked tokens and shares. This PR introduces a function
RefreshTotalLiquidStakedTokensAndShares
that can be called from the upgrade handler, or any time the global cap is re-enabled.Changelog
RefreshTotalLiquidStakedTokensAndShares
that:TotalLiquidShares
to 0TotalLiquidShares
as well as the globalTotalLiquidStakedTokens