Omniscia Evergon Labs Audit
TransferRewardMixerStorage Static Analysis Findings
TransferRewardMixerStorage Static Analysis Findings
TRS-01S: Literal Equality of bool Variables
| Type | Severity | Location |
|---|---|---|
| Gas Optimization | ![]() | TransferRewardMixerStorage.sol:L218, L265 |
Description:
The linked bool comparisons are performed between variables and bool literals.
Example:
packages/contracts/contracts/transfers/reward/TransferRewardMixerStorage.sol
218if (success == false) {Recommendation:
We advise each bool variable to be utilized directly either in its negated (!) or original form.
Alleviation (b64b659786cf3c84bea52feb3a69f546ba3601f0):
The referenced equality comparisons with a bool literal were replaced by direct usage of each bool variable itself or in its negated form depending on the previous comparison.
