set lastFee in initialize() function #94
Labels
bug
Warden finding
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
itsmeSTYJ
Vulnerability details
Impact
Gas optimisation
Recommended Mitigation Steps
The if branch in the handleFee() function is only there to handle the very first time handleFees are called. Thereafter, this condition will always fail so it makes more sense to initialize it with the initialize() function.
The text was updated successfully, but these errors were encountered: