The Rekt of Uncollateralized Lending: How a $40M Exploit Exposed the Arithmetic Gap Between Code and Capital

CryptoBen
Gaming

Two transactions. That’s all it took. On block 18,442,311, a flash loan of 50,000 ETH was split across seven addresses, each one minting shares in Float Protocol’s new cross-chain lending pool. The ninth decimal place in the share calculation — a rounding error of 0.000000001 — turned a $200,000 deposit into $12 million in borrowable liquidity. Total loss: $40 million in under 90 seconds. And the market yawned. Because this was not a hack. It was arithmetic. And arithmetic is law.

Let me be clear: I cut my teeth auditing ERC-20 contracts during 2017’s ICO circus. I found integer overflows in CryptoGem’s token before the rug pull. So when I see a precision loss exploit, I smell something deeper than a misplaced decimal. Float Protocol was the darling of Q3 2024 — $200 million TVL, a $120 million governance token market cap, and a team that swore they had audited every line. They had. Three audits from Tier-1 firms. Yet the bug was hiding in plain sight: a division by 10^18 before multiplication, causing truncation in the share minting formula.

Greeks don’t care about your audits. The Greeks — delta, gamma, theta — they measure risk. But in DeFi, the real Greek is rounding error. The attacker understood that a $50,000 deposit would round down to zero shares if the total supply was large enough. So he manipulated the supply first. A simple flash loan to inflate the pool, then his minimal deposits minted millions of shares. Code is law, but bugs are justice. The justice here is that the protocol’s own token holders paid for the arrogance of assuming integer math is safe.

The Context: Float’s Promise vs. Float’s Mechanism

Float launched in late 2024 as a "non-custodial, uncollateralized lending layer" — a fancy way of saying you could borrow without overcollateralization if you staked their governance token, FLOAT. The thesis was simple: trust the community, not collateral. In practice, it meant that FLOAT holders could vote on credit limits and interest models. The system used a unique "share-based" accounting, where each deposit into a lending pool minted shares proportional to the pool’s total value. The formula was:

Market Prices

BTC Bitcoin
$64,867.1 -0.04%
ETH Ethereum
$1,921.98 +1.97%
SOL Solana
$77.5 -0.21%
BNB BNB Chain
$581 -0.15%
XRP XRP Ledger
$1.11 +0.39%
DOGE Dogecoin
$0.0741 -0.20%
ADA Cardano
$0.1657 +0.67%
AVAX Avalanche
$6.71 +0.81%
DOT Polkadot
$0.8485 -0.12%
LINK Chainlink
$8.55 +2.88%

Fear & Greed

25

Extreme Fear

Market Sentiment

7x24h Flash News

More >
{{快讯列表(10)}} {{loop}}
{{快讯时间}}

{{快讯内容}}

{{快讯标签}}
{{/loop}} {{/快讯列表}}

Event Calendar

{{年份}}
28
03
unlock Arbitrum Token Unlock

92 million ARB released

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

12
05
halving BCH Halving

Block reward halving event

08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

18
03
unlock Sui Token Unlock

Team and early investor shares released

Tools

All →

Altseason Index

44

Bitcoin Season

BTC Dominance Altseason

Gas Tracker

Ethereum 28 Gwei
BNB Chain 3 Gwei
Polygon 42 Gwei
Arbitrum 0.5 Gwei
Optimism 0.3 Gwei

Market Cap

All →
1
Bitcoin
BTC
$64,867.1
1
Ethereum
ETH
$1,921.98
1
Solana
SOL
$77.5
1
BNB Chain
BNB
$581
1
XRP Ledger
XRP
$1.11
1
Dogecoin
DOGE
$0.0741
1
Cardano
ADA
$0.1657
1
Avalanche
AVAX
$6.71
1
Polkadot
DOT
$0.8485
1
Chainlink
LINK
$8.55

🐋 Whale Tracker

🔵
0xd828...159d
30m ago
Stake
4,292.19 BTC
🔴
0x97d0...0e29
1h ago
Out
27,305 SOL
🔵
0x61c2...1240
1d ago
Stake
1,345.33 BTC

💡 Smart Money

0x6583...21b5
Early Investor
-$2.9M
87%
0xb3c4...e089
Institutional Custody
+$3.1M
80%
0xa12f...5bfa
Top DeFi Miner
+$3.8M
86%