code-423n4 / 2022-03-lifinance-findings

6 stars 4 forks source link

Gas Optimizations #206

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

(https://github.com/code-423n4/2022-03-lifinance/blob/699c2305fcfb6fe8862b75b26d1d8a2f46a551e6/src/Facets/AnyswapFacet.sol#L103)

can use unchecked block since the prior ‘require ‘statement ensures that there is no underflow.

H3xept commented 2 years ago

We internally decided to avoid unchecked statements for now.