Personal annoyance: in the spring EF ESP had an open call for Glamsterdam related projects, I wanted to apply in June and already wrote a proposal about studying how EIP-8037/EIP-8038 will affect DeFi, but you closed the call before I was ready to submit.
"Well that's just me being too slow" I thought, "they're clearly going for a Q3 release" ...
Here's a concrete example of how Glamsterdam repricing breaks existing assumptions around Uniswap v4 smart contracts. (Not an exploit: nothing is live yet + the problem was already known to security researchers in the summer.)
v4 PositionManager allows contracts to subscribe to LP positions and get notified when the position is changed or transferred. This is useful for staking and rewards distribution, but it means calling untrusted 3rd party code from a protocol contract. The protocol wants to ensure that such a subscriber is not able to (1) DoS the operations around the position; (2) consume unlimited gas. Conversely, as long as (1) and (2) hold, an honest subscriber should keep getting notified when something happens to the position.
To enforce 1-2 around the `unsubscribe` operation specifically, v4 deployments limit the gas that can be consumed by it. On mainnet, the limit is 150k - a protocol config setting. (It used to be 1% of the block's gaslimit, which is a more futureproof design, but was changed to a per-deployment constant before launch.)
Before Glamsterdam, creating new state used to cost around 22k gas per slot - so the 150k limit was plenty for that. Afterwards, it costs around 110k for a single slot, so the subscriber may well run out of gas if it's writing any new slots. The saving grace is that around 90% of that gas is paid from a separate pool - the "state gas reservoir". So if the reservoir is present, it's used until it gets empty; then the tx starts consuming regular gas.
The reservoir is only present when the initial tx gas is set above 16M (the max gas limit for normal gas - yes it's confusing!). If the user fails to do that AND the 150k limit is insufficient, they will leave the subscriber in a broken state after an `unsubscribe` call.
The mirror reflection of this problem is that when the subscriber wants to go wild, it can. If the user sets the gas limit to 16M + X, the subscriber can spend most of that X - it will not be capped by the 150k gas limit configured in the Uniswap contract. This is a griefing attack, not a DoS.
The good news is that the breakage is due to new state creation, it can be prevented if the user sending the tx sets a large enough gas limit. (At the expense of becoming more vulnerable to gas griefing.)
But regular gas *also* gets repriced in Glamsterdam. Existing storage writes also get more expensive - and they are not funded from the reservoir - so the user cannot fully prevent breakage in some edge cases. Whether and how these affect some real contracts is something EF must be checking now.
Folks are piling on the Glamsterdam state growth repricing design.
Yet, gas repricing has always been part of Ethereum. That's why Solidity's send and transfer were deprecated.
The choice is between:
1) Limiting L1 execution scaling - leaves L1 too expensive for many use cases
2) State expiry - violates CROPS, L1's core promises
3) Repricing state growth - a compromise
That said, the current design is flawed in some nasty ways. Here's an example of a pattern in Uni v4-periphery that would break: https://t.co/5LplDbGWnC
Let's fix those problems, but let's not throw the baby out with the bathwater.
https://t.co/FQy9yiTf4o
I am really tired of people not reading a 20 line blog post before running their mouths on twitter.
WE ARE INVESTIGATING INTERNALLY, WITH AUDITORS, AND GIVING PEOPLE THE ABILITY TO CONTACT US, SO WE CAN DECIDE HOW TO PROCEED WITH THIS.
Permissionless propAMMs (anyone can provide liquidity) seem to be the logical next step.
Fynd, Metric, and now Yield Basis are all experimenting with this idea.
Potentially a big unlock for all of DeFi. DEX will take over CEX, just a matter of time.
@charliemktplace FWIW, I believe numbers around that magnitude - Toby Ord had 1/6 estimate in century - and I haven't even been to SF or have are connection with the IPOs.
CT can't be "good vibes only", but it should be more like "AMMs are great, we love AMMs, BUT..." not "AMMs will never work BECAUSE..."
https://t.co/krkbpq13ya
I am actually grateful that the Researchers who blackpilled CT against AMMs by larping about LVR, markouts, and “stale orders getting picked off” are gone from my timeline.
@duelinggalois I looked in to this 2.5 years ago and the answer was... better orderflow I think? Not sure if that's still true.
https://t.co/7wQcWyL8cW
Uniswap {Labs, Fnd}:
- kills community analytics program
- does not fund analytics grants despite $100M grant budget
- kills suggestions from DAO to run DAO-owned dashboards
Also Uniswap Labs:
- gets angry when CT gets their analytics from unfriendly 3rd party guys
@getty_hill Uniswap Labs already had a better model - take fees from the interface.
Much better for LPs. Taxes the part that cannot be commodized. No sleigh of hand tokenomics (unlike now where more UNI are sent to Labs from the treasury than being burned).
I've been an LP since Uniswap v1, and I still LP every day. My UniswapDAO mandate was always to be a voice for LPs.
I just voted NO on the Uniswap v4 fee switch proposal.
Put simply: turning on the fee switch makes LPing structurally unprofitable. See my temp check post for more details.
So while it saddens me that plain "vanilla" Uniswap might be going away, AMMs as a primitive are simply too powerful to disappear.
---
Disclosure: I'm the founder of Panoptic, and our protocol can benefit from this vote if LPs choose to migrate to it.
I am voting NO anyway because the survival of Uniswap, and every protocol/hook/product built on top of it, still depends on LPs powering the ecosystem.
---
I sincerely want to thank 0x6c3A...E62e for delegating their UNI voting power to me over the past 3 years. But this vote will be my last vote as a UniswapDAO delegate.
@llamaonthebrink I think the problem with offering the same liquidity in multiple pools generally is that arbitragers will pick the pool that exploits the LP most at tge given time
@kaereste@donnoh_eth@bfresh@unichain Interesting, I've always seen that the DAO should work with the labs/foundation teams to get their proposals to an acceptable shape, not just approve all or nothing.