Ly Gravity

The Null Result Is the Finding: What Unverified Bytecode Says About a Nine-Figure Raise

PowerPanda • • Press Releases

The scan completed in 41 seconds and returned an empty object.

No resolved function selectors beyond the dispatcher stubs. No storage layout. No compiler metadata hash. No NatSpec. The target was a contract suite deployed eleven days earlier, holding roughly $118 million in user deposits across three chains, backed by a raise the founders had announced under embargo with a two-minute video and a landing page that used the word "audited" four times.

My pipeline had nothing to say about it — not because the code was clean, but because there was no code to read.

That is not a tooling failure. It is the finding.

I have run some version of this pipeline since the tail of the ICO cycle, when I parsed Uniswap's early assembly by hand and traced a reentrancy path the authors had not yet formalized. The difference between then and now is not sophistication. It is that in 2018 the bytecode was public and the incentives pointed toward publishing it. In this cycle, a cohort of well-capitalized deployments ships with the Verify and Publish tab untouched, no Sourcify attestation, and a proxy admin key held by a single externally owned account. Euphoria has taught the market that verification is optional. The market has not repriced that.

Start with mechanics, because "verified contract" is a phrase used loosely and almost always wrongly.

When solc compiles, it appends a CBOR-encoded metadata trailer to the deployed bytecode. That trailer carries the IPFS hash of the metadata file, which in turn encodes the source hashes, compiler version, optimizer settings, and exact ABI. Explorers do not read your code. They recompile the submitted source under the submitted settings and compare the output byte-for-byte against what sits at the address, metadata hash included. Sourcify performs the same attestation without a custodian.

The consequence is structural: the bytecode is the artifact that executes; the source is a claim about the artifact. Verification is the bridge between them, and the metadata trailer is the bridge's load-bearing member.

Strip that trailer — a single --no-cbor-metadata flag, or a bytecode post-processor — and you have not made the contract unverifiable in principle, but you have made every downstream tool's job materially harder. Storage layouts cannot be reconstructed with confidence. Variable names vanish. Event signatures must be inferred from topic hashes rather than read from an ABI. The auditor stops reviewing intent and starts reverse-engineering it.

This matters because the audit report is not the artifact. The PDF is marketing. The bytecode is the contract. Everything between them — metadata, ABI, storage layout, compiler settings — is context, and context is precisely what this cycle is discarding at scale.

Unverified does not mean unreadable. It means expensive to read, and expense is where diligence dies.

The entry point is the dispatcher. Every external call lands in a comparison ladder: the first four bytes of keccak256 over the canonical signature, matched against a hardcoded constant, followed by a JUMPI into the corresponding body. Extract those constants, sort them, and query the open signature databases. A well-formed DeFi suite surfaces deposit(uint256), withdraw(uint256), harvest(), setFeeRecipient(address). The last one is the interesting one. An administrative setter sitting in the same dispatcher as user flows is a statement about the trust model, written in four bytes.

From there the shape reveals itself. A DELEGATECALL guarded by a slot read is a proxy. Read slot 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc — the EIP-1967 implementation slot — and you have the logic address. Read 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 for the admin. If that admin resolves to an EOA rather than a timelocked multisig, the "immutable protocol" framing in the deck is false, and it is false in a way that no amount of implementation-level auditing can repair.

I have watched this pattern resolve into real losses. In early 2024 I was contracted by a São Paulo fintech tokenizing receivables to review a multi-signature custody implementation. The contracts were verified, audited twice, and clean at the function level. The flaw was in the role graph: a single DEFAULT_ADMIN_ROLE holder could grant itself OPERATOR and route assets through an arbitrary module without crossing any threshold. Both audits reviewed the implementation contract; neither reconstructed the deployed role topology from live state. The rewrite took six weeks. The lesson took longer.

Without a verified layout, storage is guesswork with a hash function.

Upgradeable proxies make this acute. An upgrade that appends a state variable to the implementation shifts every subsequent slot; if the initializer did not run against the same layout the implementation was compiled with, one variable's value is read out of another's bytes. The failure is silent, deterministic, and invisible at the source level. Probing eth_getStorageAt across the proxy and diffing against the implementation's expected layout is the only way to see it. You cannot perform that diff on stripped metadata without rebuilding the layout from compiler settings — and you cannot confirm compiler settings without the metadata.

Metadata is not just data; it is context. And when the context layer is where an asset's identity gets serialized, that is where it breaks. In 2021 I spent three weeks inside OpenSea's batch-transfer path and found that URI handling during multi-token moves could swap collection metadata between otherwise distinct assets — a $15,000 disclosure and a permanent change in how I read NFT contracts. The mechanism was not a missing check. It was an assumption about ordering. Storage collisions in an upgradeable proxy are the same species of bug: an assumption about ordering, encoded in a slot index, invisible without the layout.

Verification coverage is asymmetric, and the asymmetry is where the green checkmark misleads.

Take a modular deployment: a router at a published address, a strategy module behind a DELEGATECALL, an oracle adapter behind a second hop, a keeper behind a third. Explorers attest to what was submitted. In practice, teams submit the router — the contract that appears in the docs and the deck — and leave the modules unverified, because the modules are where the interesting arithmetic lives and where a competitor could copy it. The badge renders on the address you were handed. The code that actually executes on your deposit sits two hops away, unattested.

There is a softer version of the same problem: "similar match." Explorers will match deployed bytecode against a known implementation using similarity heuristics and render that match with a checkmark adjacent to a source file that was never compiled against your address. I have seen this cited in diligence memos as verification. It is not verification. It is a nearest-neighbor guess with a user interface. The similarity is real; the attestation is not. Static analysis revealed what human eyes missed — but only when the analyst knows which contract the checkmark refers to.

The practical test is coverage, expressed as a ratio: attested runtime bytecode divided by total reachable runtime bytecode across the call graph you actually touch. Most protocols in this cycle score well under half. Nobody publishes that number.

Here is the part that should worry allocators more than any individual bug.

An unverified contract does not reduce risk by an amount proportional to its unreadability. It changes the shape of the distribution. Verified, timelocked code has a fat body and thin tails: most failures are bounded, idiosyncratic, and disclosed. Unverified code has a thin body and fat tails: the probability of any given failure is unknowable, and loss given failure trends toward total, because the failure modes you cannot see are precisely the ones carrying unilateral authority.

The market prices none of this. On a bull tape, verification status appears in no dashboard, no index provider screens for it, no mandate references it. A $118 million pool with an EOA admin and stripped metadata trades at the same multiple as a $118 million pool with a 48-hour timelock and four independent reviews. That is an arbitrage — not in price, in information. Someone is on the wrong side of it, and it is not the team. Latency is everything in a matching engine, which is why order books never survived contact with a public mempool intact; the same asymmetry now governs disclosure, and it resolves in favor of whoever does not need to read the artifact.

Invariants are the only truth in the void. When the layout is missing, the invariant you can still test is authority: who can move funds, under what threshold, behind what delay. That question survives decompilation.

The obvious objection: unverified is not malicious. Plenty of competent teams verify late, or deploy through a factory that obscures the source, or run private mempool deployments and clean up afterward. True. Base rates, not absolutes, are what matter, and the base rate for a stripped metadata trailer on a consumer-facing contract holding nine figures is bad.

The sharper counterpoint is the one auditors dislike saying out loud: verification is necessary and nowhere near sufficient. A verified contract can be a lie of omission. The source matches, the logic is clean, and the proxy admin still drains it in one transaction. The audit industry reviews repositories, not deployed state. I have read reports, hundreds of pages, that never once called eth_getStorageAt on the live proxy to confirm the implementation address matched the one that was reviewed. The blind spot in this cycle is not unverified code. It is verified code reviewed in the wrong context. The null result I opened with is loud; the false positive is quiet, and quiet is more expensive. Code does not lie, but it does omit.

Where this goes: the verification gap compounds with the scaling stack. Post-Dencun blob space is already being consumed faster than the fee market models assumed, and within two years rollups will be bidding for data availability against every other rollup on the same curve — at which point the cheap-verification assumption that lets teams defer publishing dies, and the fee line doubles.

The question worth sitting with is not whether that $118 million contract is safe. It is whether your diligence process can distinguish an empty scan from a clean one. Most cannot. The block confirms the state, not the intent.

Market Prices

BTC Bitcoin
$51,936.6 -12.61%
ETH Ethereum
$1,581.48 -5.06%
SOL Solana
$67.29 -6.41%
BNB BNB Chain
$508.91 -9.68%
XRP XRP Ledger
$0.8473 -9.27%
DOGE Dogecoin
$0.0548 -6.29%
ADA Cardano
$0.1370 -6.23%
AVAX Avalanche
$6.14 -5.07%
DOT Polkadot
$0.6402 -3.83%
LINK Chainlink
$8.5 -4.94%

Fear & Greed

13

Extreme Fear

Market Sentiment

Event Calendar

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

92 million ARB released

12
05
halving BCH Halving

Block reward halving event

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

18
03
unlock Sui Token Unlock

Team and early investor shares released

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

Altseason Index

45

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 →
# Coin Price
1
Bitcoin BTC
$51,936.6
1
Ethereum ETH
$1,581.48
1
Solana SOL
$67.29
1
BNB Chain BNB
$508.91
1
XRP Ledger XRP
$0.8473
1
Dogecoin DOGE
$0.0548
1
Cardano ADA
$0.1370
1
Avalanche AVAX
$6.14
1
Polkadot DOT
$0.6402
1
Chainlink LINK
$8.5

🐋 Whale Tracker

🟢
0x1838...4424
3h ago
In
4,024,559 USDT
🟢
0x8fdf...9387
1h ago
In
1,147,329 USDT
🔴
0x4a82...0b64
2m ago
Out
4,340,253 USDT

💡 Smart Money

0x97d8...0f63
Market Maker
+$1.5M
89%
0x9b31...c7e7
Market Maker
+$2.1M
76%
0xe03c...a85d
Institutional Custody
+$5.0M
61%

Tools

All →