Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 704 Bytes

Dangerous strict equalities.md

File metadata and controls

17 lines (16 loc) · 704 Bytes

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)


Slide Screenshot

028.jpg


Slide Text

  • Strict Equalities -> Dangerous
  • == vs <= or >=
  • ETH/Token Transfers & Balances
  • Check Constraints -> Safe Defaults

References


Tags