FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Securing ERC-4626 Vaults in Production: A Developer's Checklist After the sDOLA Donation Attack
NewsSecurity

Securing ERC-4626 Vaults in Production: A Developer's Checklist After the sDOLA Donation Attack

via Dev.toohmygod6h ago

On March 2, 2026, an attacker drained approximately $239,000 from the sDOLA Llamalend Market on Ethereum. The weapon? A donate() function that let anyone inflate the vault's share price, triggering cascading liquidations. The vulnerability class — ERC-4626 donation/inflation attacks — has been known since 2022, yet protocols keep shipping vulnerable vaults. This isn't another "here's what happened" postmortem. This is the security checklist your ERC-4626 vault needs before it touches mainnet. The Anatomy of a Donation Attack (30-Second Version) ERC-4626 vaults calculate shares using: shares = (depositAmount × totalSupply) / totalAssets Solidity uses integer division (rounds down). If an attacker can inflate totalAssets without minting new shares, the math breaks: Vault is empty. Attacker deposits 1 wei → gets 1 share Attacker donates 10,000 USDC directly to the vault contract Next depositor puts in 9,999 USDC → (9999 × 1) / 10000 = 0 shares Attacker redeems their 1 share → walks away w

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Why Claude Code Gets Worse the Longer You Use It.
News

Why Claude Code Gets Worse the Longer You Use It.

Medium Programming • 45m ago

The Power of Small Steps
News

The Power of Small Steps

Medium Programming • 1h ago

Stop Overpaying for Inference: The 1B Speech Model That Runs Locally and Outperforms 8B…
News

Stop Overpaying for Inference: The 1B Speech Model That Runs Locally and Outperforms 8B…

Medium Programming • 2h ago

An ode to bzip
News

An ode to bzip

Lobsters • 3h ago

What to Do in Vegas If You’re Here for Business (2026)
News

What to Do in Vegas If You’re Here for Business (2026)

Wired • 4h ago

Discover More Articles