/money-on-the-internet:money-ethereumfrom money-on-the-internet
Covers Ethereum's account model, EVM, proof-of-stake consensus, gas semantics, Solidity/Foundry, contract security (access-control losses), DeFi primitives, L2s, and MEV. Companion to the money-on-the-internet skill pack.
Ships in money-on-the-internet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 3 of 7 of the Money on the Internet reference (plugin
money-on-the-internet), covering §1–§5. Sibling skills:money-start-here-and-the-five-systems(how to read the pack, the five systems positioned side by side, learning paths),money-bitcoin(§1–§7 — UTXOs, policy vs consensus, wallets, Lightning, mining economics, Core development, the v30 fight),money-monero(§1–§7 — the privacy stack, FCMP++, the Qubic affair, access and delistings, daemon/wallet development),money-paypal(§1–§6 — what it is, using it, the Sept 2026 US fee schedule, PYUSD, the APIs, PayPal vs Stripe),money-stripe(§1–§7 — the PaymentIntent model, integration patterns, compliance, pricing, the Bridge/Privy/Tempo stack),money-choosing-a-rail-and-shared-patterns(§1–§5 — the side-by-side, decision heuristics, the four transferable patterns, a study roadmap, the docs shelf), Section numbers are per skill here, not shared across the set: each chapter is a self-contained system. A reference written as §N →skillpoints at that skill's own §N.Currency: compiled 16 September 2026. The EVM model, storage layout, gas semantics and the security canon are [DURABLE]. §3 (upgrades) is heavily dated and should be re-verified before it is relied on.
Not investment, legal, tax, or compliance advice. The regulatory sections tell you what to ask your counsel, not what your obligations are.
⚠️ Bitcoin's ledger idea generalized into a replicated state machine whose state includes executable code.
⚠️ GOTCHA boxes and the pack's [DURABLE] / [as of …] / [CONTESTED] tags mark what is safe to learn once and what must be re-verified.
The three ideas that organize this document:
- ⚠️ EVERY FULL NODE RE-EXECUTES EVERY TRANSACTION That single constraint explains gas, the storage layout, why computation is expensive and data is worse, and why L2s exist at all.
- ⚠️ ACCESS CONTROL IS WHERE THE MONEY IS ACTUALLY LOST Not reentrancy, not exotic math — the 2026 loss data says privileged functions with wrong or missing guards. Audit the modifiers before the arithmetic.
- ⚠️ A CONTRACT IS PUBLIC, IMMUTABLE, AND ADVERSARIALLY EXERCISED FROM BLOCK ONE Upgradeability is a design decision with its own attack surface, not a safety net, and checks-effects-interactions is a habit rather than a rule you remember under pressure.
Ethereum is Bitcoin's ledger idea generalized into a world computer: a replicated state machine where the state includes accounts with executable code. Where Bitcoin stores UTXOs, Ethereum stores an account tree — externally owned accounts (EOAs, controlled by keys) and contract accounts (controlled by their own code). A transaction is either a value transfer or a function call into a contract; every full node re-executes every transaction and must reach the same resulting state.
Three consequences:
As of 16 Sep 2026, ETH trades near $2,400–2,500, vs an ATH of $4,953 (24 Aug 2025); the Sept 15–16 drawdown tracked Bitcoin's on the failed CLARITY cloture vote (Economic Times). Spot ETH ETFs exist (they saw ~$141M outflows on Sept 15).
Since The Merge (Sept 2022), Ethereum runs Gasper: the LMD-GHOST fork choice + Casper FFG finality. Blocks arrive every 12 seconds (slots); 32 slots make an epoch; a checkpoint finalizes after two epochs (~13 min) once 2/3 of staked ETH attests. Slashing destroys stake for provable equivocation; inactivity leaks bleed offline validators during non-finality. Validators stake 32 ETH; EIP-7251 (Pectra, May 2025) raised the effective max to 2,048 ETH to allow consolidation.
Running a node = running two processes: a consensus client (Lighthouse, Prysm, Teku, Nimbus, Lodestar, Grandine) and an execution client (Geth, Nethermind, Reth, Besu, Erigon, ethrex), joined by the Engine API. ⚠️ Client diversity is a systemic risk: >1/3 of stake on one client can halt finality; >2/3 could finalize an invalid chain. This is not theoretical — Reth suffered a network-wide outage on 2 Sept 2025 processing a specific block; multi-client operators stayed up. As of Aug 2026 verification, EL diversity had genuinely improved (Geth ~36–41% by various measures, Nethermind ~23–32%, Reth ~14–15%) — ⚠️ sources disagree substantially because they measure different populations; one 2026 staking survey put Nethermind ~45% among stakers. If you stake, run a minority client.
| Fork | Date | Headline |
|---|---|---|
| Merge | Sep 2022 | PoW→PoS; ~99.95% energy cut |
| Shapella | Apr 2023 | staking withdrawals |
| Dencun | Mar 2024 | EIP-4844 blobs — L2 data costs fell ~90% |
| Pectra | May 2025 | EIP-7702 (EOAs can execute as smart accounts), EIP-7251 |
| Fusaka | 3 Dec 2025 | PeerDAS — validators sample blob data instead of downloading it all; gas limit ~60M |
| Glamsterdam | targeted Q4 2026 — not confirmed | ePBS (EIP-7732), Block-Level Access Lists (EIP-7928) for parallel execution, state gas repricing (EIP-8037/8038), faster validator exits (EIP-8061), cheaper basic transfers (EIP-2780) |
| Hegotá | 2027 | FOCIL headlining; Verkle discussed |
Glamsterdam status as of 16 Sep 2026 (ethereum.org roadmap, crypto.news):
Why Glamsterdam matters to builders ([DURABLE-ish]): BALs declare a block's state reads before execution → parallel transaction execution; ePBS brings proposer-builder separation in-protocol (today it runs through out-of-protocol MEV-Boost relays — a live centralization dependency) and propagating payloads get ~9s instead of ~2s.
If "ETH mainnet is too expensive" was formed in 2021–2023, it's stale. Mid-September 2026: daily average gas 0.68–0.97 gwei, utilization ~45–56%, average tx fee 0.0001 ETH ($0.25); simple transfers at snapshot time cost $0.003–0.006 (YCharts gas series, Etherscan gas tracker). Do the math for your workload — but do it against current numbers, not folklore.
msg.sender ⇒ plain EOA" is no longer a safe assumption in contract logic.x·y=k constant product; concentrated liquidity; LPs bear impermanent loss), over-collateralized lending with liquidation incentives, fiat-backed vs crypto-backed vs algorithmic stablecoins (the last has a long failure history), liquid staking. Oracles: never read a DEX spot price on-chain as "the price" — a flash loan moves it in one transaction; use Chainlink/Pyth/RedStone feeds or meaningful TWAPs, and check feed staleness and L2 sequencer uptime.Stack machine, 256-bit words, 1024-deep stack. Four data locations: stack (transient), memory (per-call, quadratically-priced expansion), storage (permanent, the expensive one: cold SLOAD ≈ 2,100 gas; zero→nonzero SSTORE ≈ 20,000), calldata (read-only input), plus transient storage (EIP-1153: TSTORE/TLOAD, cleared at tx end — modern reentrancy guards). Almost all gas optimization is storage-access optimization.
Calls: CALL (fresh context), DELEGATECALL (executes target code in your storage context — the basis of proxies and of some of the worst bugs in history), STATICCALL, CREATE/CREATE2 (deterministic addresses/counterfactual deployment). Reverts unwind everything in the frame — transaction atomicity is your strongest safety tool; design around it.
Fees: gas_used × (base_fee + priority_fee), EIP‑1559 — base fee is burned. ⚠️ Gas is a security parameter: unbounded loops over user-controlled arrays are permanent DoS (function becomes uncallable past the block gas limit; funds can be stuck forever). The 63/64 rule (EIP-150) enables gas griefing by callees.
"EVM-compatible" ≠ "EVM-equivalent": opcode semantics, gas schedules, precompiles and block.timestamp behavior differ per chain. Never assume a contract safe on mainnet is safe on another EVM chain.
delete on a memory byte array cleared 32 bytes instead of one (all ≤0.8.36, evmasm pipeline); spill-slot collision in mutual recursion under --via-ir (0.7.2–0.8.36); Amsterdam EVM support (block.slotnum, EIP-7843) (release announcement).pragma solidity 0.8.37;), never floating; record optimizer settings; prefer custom errors over revert strings; know receive() vs fallback(); never authorize on tx.origin; use viaIR deliberately and re-test (it changes codegen).// SPDX-License-Identifier: MIT
pragma solidity 0.8.37;
contract Vault {
error Unauthorized();
event Deposit(address indexed from, uint256 amount);
mapping(address => uint256) public balanceOf;
function withdraw(uint256 amount) external {
uint256 bal = balanceOf[msg.sender];
if (bal < amount) revert Unauthorized();
balanceOf[msg.sender] = bal - amount; // effects BEFORE interaction (CEI)
(bool ok, ) = msg.sender.call{value: amount}("");
if (!ok) revert Unauthorized();
}
}
Foundry (Rust; tests in Solidity; fuzzing, invariant testing, mainnet forking, cheatcodes) is the default for protocol/security work. Hardhat 3 (rewrite: EDR engine, native Solidity tests, multichain sim) closed the old 10–20× speed gap to ~2×. They coexist: many teams run Foundry for unit/fuzz/invariant and Hardhat for TS integration/deployment (Hardhat even parses foundry.toml). Choosing one because a 2022 tutorial said so is the failure mode.
The testing ladder, in escalating value:
forge test native).// Foundry invariant example: the fuzzer tries to break solvency with any call sequence
function invariant_vaultSolvent() public view {
assertGe(address(vault).balance, vault.totalOwed());
}
_disableInitializers()), constructors not running in proxy context, and immutable state living in code, not proxy storage. Minimum standard for anything holding value: multisig (Safe) + timelock on the upgrade path.Ownable2Step or AccessControl; audit every privileged path including initializers and upgrades.nonReentrant or transient-storage guards; watch cross-function and read-only reentrancy (view functions returning stale mid-tx state to an oracle consumer). Pull over push for payouts.SafeERC20; fee-on-transfer → measure balance delta, never trust the argument; rebasing tokens; non-18 decimals (USDC=6); blocklists can freeze transfers; approval race (set 0 first); letting users list arbitrary tokens = letting them run code in your callstack. ERC-4626 vaults: the first-depositor share-inflation attack — mitigate with virtual shares/dead shares. EIP-712 signed messages: always include domain separator with chainId + verifying contract, else your signature replays elsewhere.Hardened contracts pushed exploit losses down ~89% YoY in Q1 2026 (DefiLlama) — and total losses didn't drop, because attackers moved to the humans: ~$306M of ~$450M lost in Q1 2026 across 145 incidents was phishing/social engineering; one January attack drained $282M without touching code; six audited protocols were breached, one after 18 prior audits. Chainalysis attributes ~76% of 2026 hack value to state-backed actors (Lazarus-style): months-long social engineering, operatives embedded as IT staff. Operational consequence: audits are necessary and radically insufficient; key management, opsec, insider risk, and signing hygiene (no blind signing; human-readable prompts) now deserve first-class budget. Verify contract source on the explorer — Chainalysis documented ~$36.7M lost across five protocols via their own unverified contracts in six months.
Audited + findings resolved · testnet-exercised · exact compiler+optimizer pinned · reproducible build · source verified on explorer · ownership to multisig/timelock (never an EOA) · initializers locked · pause mechanism tested · monitoring live (Forta/Defender) · incident runbook written. For indexers: events are your API (emit generously), handle reorgs (indexed data can un-happen), prefer The Graph/Ponder/Subsquid or a careful eth_getLogs pipeline. Frontend: viem + wagmi standard, RainbowKit/ConnectKit, WalletConnect; JSON-RPC essentials: eth_call, eth_estimateGas, eth_sendRawTransaction, eth_getLogs (rate-limited — the usual indexer bottleneck), debug_traceTransaction (archive/debug nodes; your best debugging tool). Own node vs provider (Alchemy/Infura/QuickNode) is a real architectural decision: providers trade away censorship-resistance and rate-limit freedom for operational simplicity. NVMe is non-negotiable for self-hosting; archive nodes are very large.
ethereum.org Glamsterdam roadmap · crypto.news: Sepolia target · Solidity 0.8.37 announcement · YCharts avg gas price · Etherscan gas tracker · ETH price: Economic Times, 16 Sep 2026. Durable mechanics, client-diversity figures, fork history through Fusaka, and the 2026 security-loss data per the cryptocurrency-development reference set, verified Aug 2026.
Canonical study docs: the Ethereum execution/consensus specs, EIPs (eips.ethereum.org), the Foundry book, the Solidity docs + security considerations page, OpenZeppelin Contracts docs, the Smart Contract Weakness Classification registry (SWC), L2Beat, and the RareSkills blog for deep mechanics.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub the-vibey-project/vibey --plugin money-on-the-internet7 skills in this plugin
/money-bitcoinUse when working with Bitcoin — the UTXO model, policy versus consensus rules, fee estimation and RBF, wallet and key management, multisig and PSBT and miniscript, the Lightning Network, 2026 mining economics, Bitcoin Core and BDK development, or the governance lesson of the v30 OP_RETURN fight. Companion to the other money-on-the-internet skills./money-choosing-a-rail-and-shared-patternsUse when choosing between Bitcoin, Ethereum, Monero, PayPal and Stripe for a concrete job, when you need the decision heuristics and the merchant-of-record question, the four engineering patterns that transfer across every rail, a sequenced study roadmap, or the canonical documentation shelf. Companion to the other money-on-the-internet skills.Other plugins' skills for the same job
/money-moneroUse when working with Monero — ring signatures, stealth addresses and RingCT, view keys, the FCMP++ upgrade and its real status, the 2025 Qubic hashrate episode, exchange delistings and how access actually works in 2026, and daemon/wallet RPC development. Companion to the other money-on-the-internet skills.