Gas Optimizations #164
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Gas Optimization
remove usage of .add, .sub, .mul and .div
Since the contract is written with solidity 0.8, there's no need to use SafeMath library for basic operation + - * /.
don't read user balance in
AuraClaimZap
ifOption.UseAllWalletFunds
is false.In contract
AuraClaimZap
, it currently readcrvBalance
andcvxBalance
first and pass it into_claimExtras
. But it's not really used ifOption.UseAllWalletFund
is false.That being said, it would be better if the function don't read the balance if it won't be used in
_claimExtras
The text was updated successfully, but these errors were encountered: