ethdev
🚀 A hub for Ethereum developers. Explore smart contracts, dApps, Ethereum 2.0, and more. Learn, share, and innovate together
Mikko pfp

@moo

Base transitions to an independent stack, was previously on Optimism. This will be a transition from optimistic rollup to zero-knowledge proving. https://blog.base.dev/next-chapter-for-base-chain-1
1 reply
1 recast
6 reactions

Mikko pfp

@moo

IS $300T ENOUGH TO RETIRE? Yesterday, PayPal and its stablecoin partner, Paxos, minted $300T in PYUSD stablecoin. The US dollar M1 and M2 money supply are $40T, and this amount of dollars is enough to pay all the debts in the world, so obviously, the figure is incorrect. Paypal burned the tokens and apologised for the error. A lot of jokes were ensured. And more jokes will ensue when the mainstream media catches this today. The incident will further erode the credibility of public blockchains for those who decide to hate them. But what caused this error? A very fat finger and a very small keyboard? Programming error? The root cause is more nuanced. Paypal PYUSD stablecoin is an ERC-20 token. The ERC-20 token standard is known to have many flaws, many of which have been exploited historically. One of them is that the fixed decimal point count in math has never been standardised. Most of the 4M+ ERC-20 tokens in existence use 18 decimals. PYUSD and USDC use six decimals. The difference is in the trillions in magnitude. In this case, the bad decimal math did not cause any issues, but there are notable historical DeFi hacks where the non-standard decimal count has been the root cause. What can be done to fix this? The Ethereum development and security community are aware of the acute issues with the ERC-20 token standard and other developer tooling and user experience issues. Despite billions of dollars in losses, these have never been properly addressed and are being ignored. 1. First, admit that we have a problem that needs fixing (the community is not yet in this stage, and many still defend and advocate obviously broken standards, for whatever reasons) 2. Analyse what the most critical developer experience issues are causing loss of funds (approve(), lack of good fixed point math primitives like rounding, gaps in standards, access rights) 3. Bring together software and tooling experts to discuss which part of the software stack must be changed to prevent these from happening in the future, and who will fund this effort. 4. Educate new developers about new standards and fill in the old tools with a lot of warnings that developers and users need to disable in order to use unsafe legacy code paths. More on the topic here: https://x.com/moo9000/status/1593400084313546764
0 reply
0 recast
1 reaction

Mikko pfp

@moo

Gotta love Ethereum
0 reply
0 recast
4 reactions

Mikko pfp

@moo

0 reply
0 recast
5 reactions

Mikko pfp

@moo

New Vyper release out
0 reply
0 recast
1 reaction

Mikko pfp

@moo

The JSON-RPC providers are desperate to sell you additional services. Like MEV protection on Base, where MEV does not even exist. JSON-RPC is a commodity, like gasoline. Just buy it where it is cheapest. There is no meaningful difference in products. Also never buy any additional services, because then as a customer you won't be vendor locked in, and you can switch to other, cheaper, providers.
0 reply
1 recast
6 reactions

Mikko pfp

@moo

Does anyone know how to spoof Gnosis Safe transctions with Anvil and mainnet fork? https://ethereum.stackexchange.com/questions/170044/spoofing-gnosis-safe-multisig-transactions-with-anvil
0 reply
0 recast
0 reaction

Mikko pfp

@moo

Low-hanging fruits that make the Ethereum developer experience much better: Add timestamps to eth_getLogs RPC https://github.com/ethereum/execution-apis/pull/639
0 reply
0 recast
4 reactions

Mikko pfp

@moo

Mocking ecrecover precompile (0x1 contract) in mainnet fork tests. Has anyone done this successfully? This feels quite a common issue when integrating third party protocols. https://ethereum.stackexchange.com/questions/168779/mocking-ecrecover-precompile-0x1-in-mainnet-fork-tests
0 reply
0 recast
2 reactions

Mikko pfp

@moo

Ethereum development Daily WTF. Optimism has pre-compiled Multicall3 contract. However it does not seem to work with Alchemy, dRPC nodes, but works with Quicknode. WTF.
2 replies
0 recast
5 reactions

Mikko pfp

@moo

There has not been new Ethereum software development question for seven days now. At this point, the AI took over for noobs. Time to retire.
0 reply
0 recast
0 reaction

Boris Mann pfp

@boris

Ok we’re confirmed for @ipfs mainnet event on Wed Feb 28th 4-6pm https://lu.ma/6suk3oa5 This is going to be an intro of the newly independent Shipyard team by Kubo lead engineer Adin & how to support the public goods gateway Join us if you are an ecosystem leader who wants to know how to connect to mainnet
0 reply
1 recast
4 reactions