In _withdraw, balance is called in L811 and in L815 token.balanceOf(address(this)) is called and cached. Since balance just returns token.balanceOf(address(this)), its output can be cached in L811 and reused in L815. Consider caching balance initially and saving a SLOAD.
StakedCitadel
_withdraw
,balance
is called in L811 and in L815token.balanceOf(address(this))
is called and cached. Sincebalance
just returnstoken.balanceOf(address(this))
, its output can be cached in L811 and reused in L815. Consider caching balance initially and saving a SLOAD.