You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removable Variable (miniscule gas cost reduction at deploy time)
Variable is only written to in the constructor but never used anywhere https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/USDMPegRecovery.sol#L24
Variables that should be immutable (safe costly sloads)
Remove variable
Should save the cost of one SSTORE which is 20k gas
Make variable immutable
The warden could have made a killing here had they spent the extra time linking all the instances
Because they just linked the variables, so will give each of the findings one SLOAD value.
2100 * 3
Total Gas saved: 26300
Due to the simplicity, the report doesn't require formatting
Removable Variable (miniscule gas cost reduction at deploy time)
https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/USDMPegRecovery.sol#L24
Variables that should be immutable (safe costly sloads)
https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/USDMPegRecovery.sol#L22
https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/StakingRewards.sol#L19
https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/StakingRewards.sol#L20
The text was updated successfully, but these errors were encountered: