Use of strict equalities with tokens/Ether can accidentally/maliciously cause unexpected behavior. Consider using >=
or <=
instead of ==
for such variables depending on the contract logic. (see here)
- Strict Equalities -> Dangerous
==
vs<= or >=
- ETH/Token Transfers & Balances
- Check Constraints -> Safe Defaults