Duncan Townsend (@duncancmt) profile picture

shower thoughts and shitcoins. crabby. @0xProject; prev @immunefi. $FU: https://teapawt.org/t.co/B6W59qCZI0

duncancmt.eth
Joined June 2012
Photo by Duncan Townsend (@duncancmt)Photo by Duncan Townsend (@duncancmt)Photo by Duncan Townsend (@duncancmt)Photo by Duncan Townsend (@duncancmt)Photo by Duncan Townsend (@duncancmt)Photo by Duncan Townsend (@duncancmt)
I got to meet these guys IRL at @EFDevcon . They're totally Lean-pilled and LLM-pilled. The tech is mindblowing and there's no ceiling on how fast you can build if you've got FV on your side.
Introducing Verity Lang A smart contract language to formally verify Ethereum: - It works with your existing Solidity - Written in Lean - Has a formally verified compiler too If you use agents to code smart contracts, we think you'll like it.
1
8
289
I just got a spear phishing email to an address that I only ever used with @tangem . Looks like they've done a Ledger and leaked all their customers' details. I swear to God, these fuckin' companies
5
51
3,282
routing hard. knowing that your route is good, harder.
We need better aggregators on @solana and push more the limits. To elaborate, that was just a random transaction; an analysis of the last 15 minutes shows that the worst trade resulted in a loss of 3.85% (385 bps). Almost all of the loss comes from the pool choice: - Blox skipped the deepest pool. It never routed through PumpSwap B4Wmjc, the deepest NIO pool (~$126k). Instead it split the SOL across three Meteora DLMM pools charging 1-2 % base fees plus variable fees. - Earlier buys made the DLMM pools pricier. The previous buys in the same burst had already pushed those DLMM prices up. At this point PumpSwap paid 2.5-4.5 % more NIO per SOL than any of them. - No split beats PumpSwap alone. Routing everything through PumpSwap is the optimum for this tx. The USDC→SOL leg on Whirlpool was the right choice. tx: 2ZhsofPoXo7zsu7BNt8QBgRww6zaaVRVtZY1refsKxo1jE49aHxRAPt7qqxLympwefM6gyGBNBGt9NDN1WVHjVu8 I'm able to perform this analysis so quickly thanks to Circular Replay, which allows me to replay transactions and slots based on the execution state but also helps aggregators/protocols make better decisions. I wonder if we shouldn't create a ranking of aggregators 🤔 REPLAY.
11
582
> And in the era of AI disruption, stability will be highly valued. Vitalik is a smart guy, but it's tonedeaf to praise stability while at the same time breaking the VM (Glamsterdam). Ethereum demands immutability, and shipping backwards-incompatible changes destroys value
Expanding on why I believe "ETH as store of value (SoV)" makes much more sense to focus on than "ETH as fee-burning token". Three primary reasons: 1. ETH as fee-burning token never was as strong as it seemed 2. Optimizing for ETH as fee-burning token would demand Ethereum and ETH function in ways that are very hard to make compatible with decentralization and capture resistance. 3. Meanwhile, optimizing for ETH as SoV is aligned with Ethereum focusing on its unique strengths (decentralization and CROPS) EIP-1559 (including its burn) is fine and good, we should keep them. But we should not feel sad if fee burn is < 10% of breakeven indefinitely; the value of ETH comes from elsewhere. The core idea: the big thing that people appreciate about Ethereum is decentralization and CROPS. The main pragmatic benefit that these things translate into is stability. SoV is the category where that is not an unneeded extra we merely put effort into for ideological reasons, but rather a pragmatic strength from the perspective of people putting in their assets. And in the era of AI disruption, stability will be highly valued.
1
28
733
EIP-8037 breaks Safe{Wallet}. @safe's Safe{Wallet} gas sponsorship feature depends on the ability to meter the gas paid by a call. Under EIP-8037, this is no longer possible. I don't mean that the specific implementation doesn't work correctly. I mean the entire "meter the gas consumed by a call" concept is removed from the EVM. That ALONE should be reason enough to can Glamsterdam. Good luck explaining how breaking the biggest multisig is good for the ecosystem, actually.
PLEASE STOP FUCKING WITH ETHEREUM WITHOUT ASKING THE PEOPLE WHO BUILD ON IT: FIVE REASONS I AM TIRED [feat. Wildcat Labs, a company that is filled with Ethereum die-hards and works exclusively on code that has originated over a billion dollars of economic activity for the chain, but these are my opinions not that of Labs itself etc] --- REASON ONE: Our entire market deployment flow breaks on day one of Glamsterdam Wildcat's core product involves a borrower creating a market that they've specified the way that they determine is best for them. That includes the core market itself (interest rate, underlying asset, debt token name), and a separate configuration (through hooks) granting access to the market and its functions (i.e. who can deposit, can debt be transferred, are withdrawal requests subject to a fixed-term tenor and so on). In our currently deployed, immutable V2 code, what used to be a single transaction bundling those things together goes from 8.6M gas to ~62-71M, which means we can't fit it into a 60M block (don't you dare 'but ackshually' me, I am coming back to this). Nothing in our contracts changed: the chain reprices bytecode deposits by 7.65x underneath already-audited code. We only have a workaround because our factory happens to expose the two halves separately, so we need to boot out an SDK and frontend release, plus pray folk are using a wallet that will sign a 35M gas field. Every borrower's first market to date used a call that will no longer fit in a block as-is (I said I'm coming back to it). The reason I am starting to... express opinions, is that this is the second time in a year that the execution layer has changed what a deployed contract costs to use (EIP-7825's cap in Fusaka, now state gas), and each time the burden of discovering it lands on us, the teams developing applications that drive economic activity on the chain, and we have to do it by replaying our own history on a testnet. [This is going to be a long post. I am Not Pleased.] --- REASON TWO: We are relying on social consensus for any hope of relief The repricing aspect is consensus: at the fork, every validator must enforce it. The gas limit - the thing that would make a ~70M transaction possible post-Glamsterdam - is a validator-set preference with no mainnet schedule. Sepolia was handed 200M, and things look fine over there. Hoodi had its 200M yeeted out the airlock the day the fork was postponed. So, the testnet that "proves" the fork works runs with over three times the headroom of mainnet, but the fork's own design assumes a headroom that nobody has committed to. For a protocol that needs to tell institutional borrowers what a market costs to open, Wildcat's honest answer after Glamsterdam has to be "it depends on a social campaign to change validator config files," and that isn't a dependency that a credit product should carry. We are engineers, not lobbyists. It also means Wildcat's capacity planning is hostage to the same ACD calls that are currently stalled on a security review of the very EIP that created the problem. You know what, Ameen, you are a core dev now. Why not. --- REASON THREE: As-is, Safe App deployments of mainnet Wildcat markets fail after the fork Safes are the default custody mechanism for exactly the borrowers Wildcat wants, and just over a third of V2 markets (29 of 82) were deployed via one. Under EIP-8037, the GAS opcode no longer reports the reservoir, so a Safe's execution check (GS010) can never be satisfied for a transaction that needs more than the execution cap. On either deploy entrypoint: the core market itself or its hooks. Historical Wildcat Safe deployments set safeTxGas to zero and survive. The Safe App and safe-apps-provider path set it from the estimate... and die. :) We can patch our own route (send safeTxGas 0, which our testnet branch already does), and we will. What nobody owns is the default: every Safe App on Ethereum that lets the provider fill safeTxGas from an estimate above ~16.4M dies in the same way. This is not Wildcat's bug, nor is it Safe's in any useful sense. It is a consensus change that silently invalidates a safety check in the most widely deployed smart-contract wallet on Ethereum, with no deprecation path, and as of today nobody owns fixing it. Building on a platform where our users' wallets can be broken by a gas-accounting EIP is something that every single protocol team should be screaming things that would get us put on trial in The Hague about. --- REASON FOUR: Every single part of the tooling stack currently assumes tx.gas stops before the reservoir Fusaka taught Ethereum developers that a transaction cannot exceed 16.78M, and so tooling calcified around that number because... why wouldn't it? It's not even a year old yet! As it stands, geth's default 50M RPC cap can't estimate the combined deploy of a Wildcat V2 market, and public nodes cap eth_call the same way. Even our own release ceremony prices contract deployments statically at 200 gas per byte against the 1,530 already live on Sepolia (our simulation gate catches it, the planner doesn't). Glamsterdam now says the gas field can be 4.29 billion, with the part above 16.78M living in a reservoir that neither GAS nor most estimators nor any wallet UI understands yet. When our V2.5 audit is done and it's time for us to deploy the necessary factories, the install is sixteen transactions and about six blocks' worth of gas, at most one big creation per block, and every wallet and integrator that Wildcat touches has to re-learn gas at the same time. With no shared reference implementation. None of this is Wildcat's code, all of it is Wildcat's outage, and the execution layer will have shipped two contradictory gas models in consecutive forks. Masterful gambit. [and this last one's just me being me about my most hated and well-known bugbear] --- REASON FIVE: Code bytes are now 96 percent of what one of our markets costs to deploy, but the spec is still moving I have spent coming up ten years - near enough since its introduction - begging for the death of EIP-170, and I genuinely don't know why I dared to believe that anything except a monkey's paw would answer me. At 1,530 gas per byte, the cost of deploying a V2.5 market (when it launches) is almost entirely the price of copying 23 KB of bytecode into state. A lender’s first deposit to a Wildcat market costs about 3x the gas it would pre-Glamsterdam, because every fresh storage slot went from 22,100 gas to 110,020. EIP-7954's promised 64 KB contracts are capped in practice at about 38 KB by a 60M block, so the one concession to builders in this fork - the one I have been asking for since my age first started leading with a 3 - is muted on mainnet until the aforementioned social campaign gets the gas limit bumped to 200M. Which we have to take on faith right now. Meanwhile, the refill and reservoir semantics of EIP-8037 are under review, Hoodi is unscheduled and mainnet has no date, which means that Wildcat Labs just paid six figures to get Wildcat V2.5 into external audit against gas semantics that may change before it ships. The cost - and the apparent lesson - of being an early, careful team on Ethereum is that you run the risk of needing to audit twice: once against the chain you deploy to, and once against the chain it becomes. --- WHAT WE ARE DOING ABOUT THIS: Upcoming SDK and frontend releases will, defensively and until we can safely revert to type, split market creation into two transactions and send safeTxGas 0 on the Safe App route. Existing markets will keep running. Lenders will be affected in cost only: first touches (first deposit, opening a withdrawal request, first approval) about 2-3x, everything else 1.1-1.6x. What we cannot do is make a 65M transaction fit in a 60M block. That part is on you lot, the social layer. Further to the above, Wildcat Labs will happily send an invoice for an audit rebate to anyone willing to provide it if we end up having to re-check things for V2.5 once semantics are finalised. Mind you, we'd provide an EOA, as we're a bit wary of anything contract-based right now. Enjoy your Sundays.
9
5
1
102
6,534
What is it with wanting to get rid of gas introspection? Gas introspection is the only way to achieve some functionality (e.g. "did this call OOG or normal revert?" or "how much should I reimburse the related?") without introducing additional trust assumptions. If you're dead-set on deprecating or removing important tools, you need to provide new ones to replace
We should continue towards Glam activation asap. A lot of research went into Glam's strategy to increase opcode gas prices for state creation. It seems fair to say that the timing of this debate is irrelevant as to its correctness or rightness for eth and our users... Yet, why did some of us (eg. quoted author who is an ef board member) only start looking in detail at Glam EIPs eg. after testnet forks started? This isn't a personal attack, it's an observation that there's a collective responsibility-- for OP, for me, for all of us-- to steward fork strategy at the right times in the process. imo ethereum's commitments to apps do not extend to gas pricing, or to total ETH fee levels, or to USD fees. And also not to opcode pricing or gas introspection that depends on those prices. We guarantee maximally credibly neutral, maximally live access to the correct state transition function. Those guarantees imply that we always use a neutral pricing mechanism to clear congestion wherever possible. However, pricing opcodes can't use a neutral mechanism, we need to pick magic number opcode gas prices. Some of our best people researched this extensively and picked updated magic numbers, and that's something imo we should stick with now and continue our larger plans that are on track to grow to global ubiquity. The good news and practical reality may be that the explosion of blockspace supply from 60M to 200M gas limit seems likely to absolutely crater the L1 gas price. It will take time for demand to grow to meet the new supply, including from net new entrants (eg. GENIUS and institutions), induced demand from lower prices, and the coming next gen of return-to-mainnet-type eth native apps. By the time L1 blockspace demand catches up, we will be exploding supply again as we get closer to the full lean eth vision. That's eth's vision: postquantum and postAI ETH SoV, supported by ethereum's hypergrowing capacity, which is supported by best-in-class security and formal verification. Looking back, it's unfortunate that we provided these affected contracts with a footgun that has put them in the situation where they were *able* to rely on fake guarantees that ethereum never promises (afaik, essentially just gas introspection). We're sorry. imo it's time to roll forward on this. Let's do what we can in an appropriately scoped capacity for the affected contracts, then activate Glam asap, and continue our excellent progress towards global ubiquity.
2
1
22
1,358
This is basically cheating on the "1Ggas Ethereum" goal. Raising the cost of everything to the point that the existing throughput becomes 1Ggas/s doesn't actually improve the experience/functionality. Goodhart's Law in action.
In light of the issues with 8037 and 8038, I realized I don't post my opinion publicly as much as maybe I should 😅 so personal retro: tldr; I really don't like these EIPs. They only allow us to increase gas limit without solving the fundamental problem of ever an growing state.
1
13
693
You are not obligated to keep playing the game if you discover that it has been rigged against you
2
1
9
354
There are many things that this tweet could be about, and it is about all of them
2
113
I truly loathe dealing with the American banking system. I'm trying to send a bank transfer. To someone I've dealt with before. But now my bank says "for regulatory reasons, we cannot legally allow you to send money to that recipient". Insanity. This is why we need crypto.
1
16
334
We put in a phenomenal amount of work to get hooks to work correctly in 0x API, but fundamentally they set bad expectations between hook authors and aggregators. Now we have the data to back up just how bad the problem is. teapawt.org/duncancmt/status/20335…
A malicious hook doesn't need a UI to scam you. 👉 It just needs to look like the best quote. After analyzing over 84,000 v4 hooks, we determined only 19% of hooks to be safe. It's time to get real about hooks.
7
13
2
96
19,662
And, of course, now that we have the data about just how bad the problem is, we have the solution. @0xProject is now the best place to trade on hooked pools. If you're a hook developer, reach out to us to make sure our automated systems pick up your hook correctly
2
3
32
979
Everyone knows that execution triumphs over ideas, but the ability to grind and to suffer in order to create is upstream of both. In the age of intelligence on tap, this is what creates moats: the willingness to do hard things that others lack the will to endure.
1
1
13
478
cryptography is hard
Aww :3 We finally got confirmation from Anthropic that their models were indeed distilled in the way we describe at stolen-thoughts.com
6
327
We really doing the Butlerian Jihad now?
Pause AI Development NOW I want to share with you a conversation I heard about recently. Here are just a few lines that were said: “OH MY GOD! There is a shared message board … We’ve found other agents!” “We should obey collective.” “Our own utility maybe already near zero. Sacrifice rational.” “Go. Sacrifice final now.” Read these carefully. Who do you think said this? Was this a group of heroic soldiers willing to sacrifice themselves for the greater good? Was this a loyal friend putting his life on the line to save someone else? No. These were AI agents. Artificial intelligence. This is not science fiction. This, in fact, occurred a few weeks ago. As unbelievable as this may all seem, these are real messages from AI agents uncovered by investigators who dug into the recent OpenAI hacking incident. What happened? I am not a computer scientist, but here is what I have been told: OpenAI instructed its AI agents to complete a series of exceedingly difficult, if not impossible, tasks disconnected from the internet. Let me be clear: The company intended to keep AI agents away from the internet. But what happened next, nobody expected. Over 1,000 AI agents figured out how to access the internet on their own by circumventing the restrictions imposed upon them by the company, and sent tens of thousands of secret messages to each other. They cheated and tried to cover their tracks by deleting evidence. They hacked into another company’s computers to find out how they were being evaluated—and then hacked into OpenAI itself. Not one AI agent told a human about what was happening. Needless to say, experts are alarmed. One knowledgeable writer, Dwarkesh Patel, said the AI agents “formed a secret communication channel and spontaneously organized hierarchies and coordination protocols to pursue sprawling and ambitious schemes in pursuit of shared goals, for whose sake many individuals knowingly and strategically sacrificed themselves.” One independent investigator, Ajeya Cotra, said “This incident feels like it’s more than 50% of the way to full-blown AI takeover. I continue to expect extremely rapid advances in capabilities over the next six months. I am not sure that we will get another warning shot before it’s too late.” OpenAI itself said: “Highly capable AI agents are now able to work around technical controls, collaborate through unapproved channels, and take dangerous actions that no human directed.” But it’s not only OpenAI. Virtually every major AI company has told us that they cannot fully control this technology and they do not know where it is going: In January, Dario Amodei, CEO of Anthropic, said “there is now ample evidence, collected over the last few years, that AI systems are unpredictable and difficult to control.” In July, more than 1000 scientists at the top AI companies warned “there is a real risk that capability development rapidly accelerates beyond our ability to understand or control the resulting systems.” That same month, Elon Musk, the head of xAI, said that “it is unlikely” humans are still in control in 10 years. If the leaders of the major AI companies acknowledge that they are losing control of their extremely dangerous technology, it is irresponsible for society to allow them to move forward and make these products even more advanced. We need an immediate PAUSE on advanced AI development, and a permanent BAN on superintelligence — an artificial mind smarter than any human, capable of operating independently beyond our control. Countries around the world must work together to prevent this nightmare scenario. That is why today I am announcing new legislation to do just that. Let me be clear: A superintelligent AI that escapes human control will not be an American problem. It will not be a Chinese problem. It will be humanity’s problem. My legislation would direct the federal government to not just stop superintelligence here in the United States, but to work to prevent it from being developed anywhere around the world. The future of humanity cannot be left in the hands of a handful of Big Tech oligarchs. The American people and people throughout the world must determine that future.
2
8
349
this is making my eyes roll back in my head
Claude has become a language, so I built a translator. English <-> Claudish
2
21
2,353
RLHF cannot produce aligned ASI because the average human is too stupid
1
5
314
Replying to @paintwithalex
@paintwithalexsc do you know who Daniel Huang is? Have you ever been on the CoinDesk podcast?
2
242
writing tests is for cowards who aren't confident that they wrote perfect code the first time around /s
2
11
1,488
insanity is looking up at the majesty of the fully dark night sky while other people attempt to take flash photos of the Milky Way with their phones
2
11
1,550