compound-protocol icon indicating copy to clipboard operation
compound-protocol copied to clipboard

use unchecked math in Comp token refresh

Open z0r0z opened this issue 3 years ago • 0 comments

I noticed Comp token got a refresh and uses ^0.8.0 solidity. This will automatically do 'safemath' checks, which cost more gas. Since Comp token was already doing unchecked math in many cases, it makes sense to wrap these statements. For example this cannot underflow.

z0r0z avatar Jun 14 '22 20:06 z0r0z