Open code423n4 opened 2 years ago
slurp
Severity: Gas Optimization Likelihood: High Status: {Not Submitted} Scope: slurp()
slurp()
There are two sloads of getTotalFeiBoostedForVault[vault] that can be gas golfed using an mload to reduce gas by 100 - 3.
getTotalFeiBoostedForVault[vault]
100 - 3
save
Severity: Gas Optimization Likelihood: Medium Status: {Not Submitted} Scope: save()
save()
There are two calls of pool.oracle() that can be gas golfed using an mload to reduce gas by 100 - 3.
pool.oracle()
good finds, ty
L-00 Agree with finding, each time we're reading from memory we're saving 97 gas at the cost of 3 for the initial cache. - 191
L-03 Same idea - 94
285 gas saved
[L-00]
slurp
SLOAD Gas OptimizationSeverity: Gas Optimization Likelihood: High Status: {Not Submitted} Scope:
slurp()
There are two sloads of
getTotalFeiBoostedForVault[vault]
that can be gas golfed using an mload to reduce gas by100 - 3
.[L-03]
save
SLOAD Gas OptimizationSeverity: Gas Optimization Likelihood: Medium Status: {Not Submitted} Scope:
save()
There are two calls of
pool.oracle()
that can be gas golfed using an mload to reduce gas by100 - 3
.