code-423n4 / 2022-05-cudos-findings

1 stars 0 forks source link

Gas Optimizations #94

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago
  1. Title : Change 2**256 - 1 to type(uint).max

in this condition MAX_UINT, its cheaper to using type(uint).max instead of using 2**256-1calculation for unlimited approval. So it could be changed as it can be.

Tool Used

Manual Review