Compound V3 Gas Audit Reveals 15% Savings on L2s

Compound (COMP) Editor: Eugene Serbin

dev.to published a gas optimization audit for Compound V3 on 5 October 2026, targeting the protocol deployed on Ethereum L1 and L2s including Optimism, Arbitrum, and Base. The report notes that Compound V3 holds approximately $1.52 billion in TVL and processes over $30 billion in monthly transaction volume. Auditors identified opportunities to reduce gas usage by roughly 15% on common user flows such as supply, withdraw, borrow, and repay.

These efficiency gains translate to an estimated $1.2 million in saved user fees per quarter at current activity levels. The audit also highlighted several medium-severity vectors that could degrade usability or cause partial denial of service if left unaddressed. Key recommendations include capping reward distribution batches at 500 users and replacing low-level calls with SafeERC20 wrappers.

Other fixes involve reordering state updates to follow checks-effects-interactions patterns and bounding proof-element loops to 256 elements. The team also suggested caching calldata decoding, exposing batch-supply APIs, and using immutable storage for constant addresses. Additional optimizations focus on EIP-2929 warm-storage benefits and compressing event logs to reduce indexer costs.

How the market reacted

Whalio's own Binance spot order flow for COMP, measured when this story was written up on 5 October 2026. Not the outlet's figures.

Price
$25.06
Buy Ratio (1h)
42.9%
Buy Ratio (4h)
57.2%
Buy Ratio (24h)
41.9%
Volume Delta (1h)
-$2,879
Volume Delta (4h)
+$14,363
Volume Delta (24h)
-$72,269
CVD (24h close)
-$36,344
Hours of net buying
8 of 24
Spot Volume (24h)
$445,619
Trades (24h)
3,860

Whalio spot data for COMP shows a price of $25.06 with a 1-hour buy ratio of 42.9% and a 4-hour buy ratio of 57.2%. The 24-hour buy ratio sits at 41.9%, indicating that buying pressure has weakened over the longer timeframe compared to the immediate 4-hour window. Volume delta turned negative in the 1-hour window at -$2,879 and significantly negative over 24 hours at -$72,269, suggesting net selling pressure. The 24-hour cumulative volume delta closed at -$36,344, confirming that sellers dominated the day's activity. Spot volume reached $445,619 with 3,860 trades recorded in the last day.

The latest daily buy ratio of 49.4% sits at the 35th percentile of the last 322 days, against a median of 51.1% - ordinary for this coin.

Was that an ordinary day?

The same Binance spot measurements for COMP, averaged over the days leading up to the story.

Buy Ratio (7d average)
51.0%
Latest day vs average
-9.1 pts
Volume vs average
0.24x
Days of net buying
5 of 7
Price change (8d)
+2.4%
Volume Delta (8d total)
+$251,640

Over the preceding week, the average buy ratio was 51.0%, making today's 24-hour ratio of 41.9% notably lower by 9.1 percentage points. Weekly volume was only 0.24 times the average, indicating a quiet trading period compared to typical activity. While the 8-day price change was positive at 2.4%, the current day shows a distinct shift toward net selling relative to the weekly norm. Net buying occurred on 5 of the last 7 days, but today's negative volume delta marks a deviation from that recent trend.

More on COMP