Compound Gas Optimizations Audit

Off-Chain (Private)
Audited on 2020/03/06
No active critical issues

Summary

The Compound team engaged us to audit part of their latest gas optimizations in the protocol. The audited patch is 1cf040412fc8a0cfd1187bb0d8a525c3ae2f78aa, and the scope was limited to the modifications applied in files: CDaiDelegate.sol CErc20.sol CEther.sol Comptroller.sol ComptrollerG1.sol... in terms of gas costs. High-level overview of the changes The audited patch consists of a series of gas optimizations to reduce operation costs, without significantly modifying the system’s behavior. Some of the most relevant changes are the removal of unused verification hooks in the CToken... Security Audits Solidity Lending...

Issue (1)

Low
Medium
High
Critical
Total
Not fixed
1---1
Fixed
----0
Total10001
[L01] Function redeemFresh may not fail early
not_fixed/low

None

Contracts (16)

#File Name
1

DAIInterestRateModel.sol

2

CEther.sol

3

SimplePriceOracle.sol

4

PriceOracle.sol

5

ComptrollerG1.sol

6

WhitepaperInterestRateModel.sol

7

Maximillion.sol

8

Comptroller.sol

9

JumpRateModel.sol

10

CErc20.sol