Urgent.News

What's breaking now, across thousands of outlets.

Tech

Gas Optimization Audit: Venus Core Pool

Gas Optimization Audit: Venus Core Pool Target Protocol : Venus Core Pool (TVL: $1351.3M) Gas‑Optimization Audit Report Protocol: Venus Core Pool (Ethereum & L2) TVL: ≈ $1.351 B (as of 26 Sep 2026) Audit Type: Gas‑Efficiency & Execution‑Cost Review (with security‑impact considerations) Prepared by: Senior DeFi Security Researcher – Smart‑Contract Auditor Date: 26 September 2026 1. Executive…

The Venus Core Pool is a high-value lending/borrowing market that aggregates liquidity across multiple assets and distributes rewards. Despite being functionally sound, the current implementation has several gas-intensive patterns that inflate transaction costs for users. The audit identified six key gas inefficiencies that increase overall gas consumption by 12-18% compared to an optimally-engineered version.

The most significant issues are redundant storage reads/writes, unbounded loops over markets, excessive require statements with static strings, inefficient ERC-20 transferFrom pattern, missing calldata for external view parameters, and repeated block.timestamp reads. These inefficiencies collectively cause approximately $2-4 million in excess fees per year for a $1 billion TVL protocol, assuming 10 million transactions with an average gas price of 30 gwei.

The audit also uncovered two indirect attack vectors stemming from gas inefficiencies: denial-of-service via unbounded market loops and front-running incentives from high-cost transactions. Both issues can be mitigated by implementing the recommended gas optimizations.

The audit prioritized technical recommendations based on gas-saving potential and risk mitigation. The top priority is to cap market-entry arrays and use bounds checks to prevent unbounded loops. Other high-impact recommendations include using "unchecked" blocks for non-critical loops, removing redundant require statements, optimizing ERC-20 transferFrom patterns, and reducing unnecessary block.timestamp reads.

Implementing these changes could reduce gas consumption by up to 12-18%, potentially saving $2-4 million in fees annually for the Venus Core Pool.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Why GA4 DebugView is not showing events and how to fix it

Google Analytics™ 4 DebugView is the built-in tool to inspect events as they arrive. When events do not show up, the issue can be in the browser, in the network, or in the GA4 settings.

  • Inspect browser using DevTools to identify network issues
  • Verify measurement ID aligns with intended GA4 web data stream
  • Enable debug mode or set debugmode: true in configuration

More from Saturday 26 September →