Open code423n4 opened 2 years ago
Utilise cached local variables to save gas
totalSupply() is already stored in supply so make use of the stored value in the mentioned calculation:
https://github.com/code-423n4/2022-06-notional-coop/blob/6f8c325f604e2576e2fe257b6b57892ca181509a/notional-wrapped-fcash/contracts/wfCashERC4626.sol#L60
Utilise cached local variables to save gas
totalSupply() is already stored in supply so make use of the stored value in the mentioned calculation:
https://github.com/code-423n4/2022-06-notional-coop/blob/6f8c325f604e2576e2fe257b6b57892ca181509a/notional-wrapped-fcash/contracts/wfCashERC4626.sol#L60