julien/lovepublic Fork
⑂ main
Commits
⬇ Clone ▾
git clone https://git.rickub.com/julien/love.git
git clone ssh://git@rickub.com/julien/love.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

Fix WETH allowlist accepting unreviewed chains #9

Merged@julien wants to merge 10-fix-weth-chain-allowlist into main
Merged as bb4dfe378f1f.
  • @julien opened this merge request · Sep 18, 2026

    closes #10

    WETHRegistry.isKnownImplementation accepted a codehash on any chain that
    reproduces it. Canonical WETH9's bytecode has no chain-specific logic, so
    it's byte-identical everywhere — it could be registered on a chain whose
    native gas token isn't ETH, wrapping that native currency flawlessly while
    wrapping the wrong asset entirely. Named and described in
    docs/notes/native-currency-substitution.md.

    isKnownImplementation now pairs each hash with the exact chain IDs it was
    reviewed on. This moved WETHRegistry's creation code and CREATE2 address,
    so Love.REGISTRY and docs/MULTICHAIN.md are updated to match.

Sign in to comment.