There are countless ways to address state growth if the first/second order effects would actually be understood
Who is responsible for much of the ongoing state growth?
Maybe it is PropAMMs, dozens of them doing hundreds of writes per block
Solution
- Global storage contract or opcodes, maybe a good place to introduce state expiry there. Make SSTORE expensive the first times, and cheaper as it warms and remains in use (SLOAD’ed). More state would end up shared too.
What drives sstore cost? (at exec)
Book keeping r/w and reverts. Or uncertainty of completion.
Solution
- Allow, bulk read / writes. And charge less for that. See what monad is doing
Why do devs seem to “waste” storage?
- (un)packing state grinds on code size / gas, so devs use more storage
- devs with demanding use-cases fall back to diamond pattern galore. Effectively causing more state growth as more contracts are needed + cross contract call codec overhead
Solution
- 64kb max contract size. Charge more here, it’s ok. Jumpdest still fit into two bytes, absolute no brainer change
5x SSTORE is the laziest and least informed way to do it
one of the most underrated asymmetries right now is that slop is totally fine for the backend and basically fatal in the frontend.
if you’re backend is slop, the app still works. if your front end and overall experience is slop, the *product* does not.
We’ve reduced router gas costs by 10%—and are closing in on making onchain routing cheaper than the cost of calldata of the same route solved offchain.
okay public speaking is hard, apologies for the folks who showed up to watch me overheat and bomb, so here’s all the stuff i meant to explain
right now you are being asked for a near 100% prepayment because neither you nor the cloud is considered credit worthy, and so nobody can get debt. As ai scales, we are asking the credit markets to take on a massive single sector deployment of capital. More money deployed, more scared everyone gets.
this problem will flow down into the token layer. Every inference provider or model lab struggles to be credit worthy enough to get compute, and their lever to improve their situation is to lock in big prepayments from their customers or long term contracts from credit worthy customers.
So this problem doesn’t just effect compute buyers, it effects token buyers. We’re entering a world where fortune 500s can very quickly deploy huge token spend ON CREDIT where the startup will need to raise capital.
Startups got to exist because human capital could leave a firm and get ahead of the big firm by exploiting a combination of incentive misalignment, speed, and taste.
You probably have the hidden assumption that the fortune 500 is slow and incapable of competing with your ultra fast startup. This belief does not necessarily hold in the case where the agent does the thing.
the “market” is working on solving it. We know, because we are the market, and we’re working on it. sfcompute is working on ways of firming up the collateral of the loans, which makes it safer to lend to a startup.
this is basically the whole reason we exist, the problem everyone is experiencing now is the problem junelark, our little ai lab years ago, hit
however, we won’t succeed in time. so, in the short term, startups and venture firms should learn to protect themselves.
we are mostly watching startups and investors make unforced error after unforced error, because this is not a simple subject.
first, venture firms need to understand that they are in the compute business now and deploying capital to pay for a 100% prepayment for 10 startups where 6 of them die and 4 of them make 50% margins on that capital is basically locking in non-venture returns. many funds, via low understanding of the space, are wrecking their funds.
there’s an economic solution for vc’s and it is owning the compute and trading equity for gpu/hrs. If the company dies, you keep the residual value. Each of you are looking to capture the next anthropic or openai, but the only way these companies scaled was by trading compute for equity.
meanwhile, startups have three options in a credit crunch.
The first is to raise a wild amount of capital, enough to pay for your deployments with far larger prepayment or to survive until things chill out. theres a reason we’re seeing a number of multi-billion dollar rounds simultaneously.
The second is to design your business model to support variable priced tokens and compute. As the financial ecosystem builds around compute, you will be able to trade “lower up front payments” for “variably priced compute or tokens”. Your business will get tailwinds from the infra under you if you setup your business model such that YOUR customers have variable prices and you’re just adding a % take rate on top of the underlying floating price. Every year, you will become more and more capital efficient. The economic winners in ai & inference are firms that make lower and lower margin every year, but become more capital efficient & scale faster every year, making their gross profit increase.
The third option is asynchronous or interrupted products. If you have a variable cogs, but a fixed rate card for your customers, it can’t have 100% availability or you’ll go bankrupt. But it is totally possible to design your product such that customers like this.
Even with missing rebates and outstanding propAMMs integrations you should see a 1 to 10bps gap at 10-200 eth.
We've added 13 new @aeroxyz pools to the router today.
Widening the bps lead, at the cost of a higher gas footprint.
try 10 to 200 eth.
----
btw: side-by-side by hand is really not the best way to compare
1. You get surplus in any tx and block going forward. usually is not passed on to the user; except over at @CoWSwap (and still not to the full extent). The most accurate bench is a realistic 4 to 14 sec delayed sim, mid block. That is where it shines most with wide gaps.
2. off-chain aggregation is always a delayed view:
-> Sequencer
-> Node / Indexer / ETL
-> Receiving request from UI
-> Solving then simulating
-> Sending back to UI
with an on-chain router you fire the simulation right away and get a fresher view / quote
hence, it will always look outperforming when market goes up, and the opposite if the market is going down.
that aside, if some propAMMs would be kind enough to match whitelist / fees aggregators get, for an arguably less toxic flow--amortized risk over all liquidity sources when routing BBO; that would help to close the gap (in a fair way)
What makes routes go stale—an interactive (and gentle) intro to how Frok’s JIT-router turns volatility risk into positive surplus.
https://t.co/COA4QPqEFX
Tokenized equities are so fragmented by issuers and liquidity.
One company (E.g., NVDA) can have 5+ wrappers , each with different underlying structure , trading hours and live on different chains.
If I traded stock and wanted to buy a tokenized stock onchain, I would find it confusing too.
We still have a lot of room to improve.
I don't have a horse in this race but there is exactly 0 (zero) point in comparing whatever the UI quotes and judging execution quality based on that without knowing the backend infra / state lag of the providers etc.
Anyways... you guys should probably take a look https://t.co/I7NNThTu44
Today we unveil our first JIT router for ETH/USDC, available on https://t.co/YsUAS4IHZb — setting a new bar for optimal aggregation — operating exclusively on-chain, at execution time.
The pre-release router executes BBO against a ~300m TVL hub on @base , spanning over 100 liquidity sources including propAMMs.
We went top-down with ETH/USDC as the first and most traded pair with the highest routing complexity. More pairs and chains to follow in due time.
Integrations and feedback is welcome. We would love to hear your thoughts as we stabilize the interface. Bls dm.
1/4
Would you? (as a user)
Bad support. Broken simulators and parsing. User gets accustomed to obscure payload sign, rekt by sig . Imo something wallets should abstract and tuck far away.
But, 7702 as the superior upgrade pattern (dev pov) is a major unlock.
Just 100 gas for to forward callframe and no 63/64 rule
say you observe cex feed, model cex/dex ev but not compete on it. just enough to tail it
assume its taken and act on whatever could appear further down the liquidity graph
pons/eth pons/usdc
stock/eth stock/usdc
fugazi/stock fugazi/eth
..
take/attempt what’s unlikely to be attempted
the less certain you are about being able to land first +1 the more you need to predict to compensate for it
broke: chasing ev in +1
woke: anticipating same block ev
bespoke: anticipating +1 chasers, and doing the opposite, assuming its impact and going for same block ev in +1
@_kanarazu_ or well guessed blind backruns solving at execution + spray and pray at volatility?
3-figs on wasted gas > 4-figs to compete on the ms and waste gas
Hard to fathom the climb it took to build this.
Solving for same pair N-pool, then multi-path, then trying to win the latency race, eventually realizing off-chain is a dire path, with no end.
“fuck it just do it all on-chain”
then turning into a superoptimizer and a yul fork to get around compiler limits, enabling probably the most cursed golfs one can do in the EVM
The last on-chain router you'll ever need
And the first on the EVM to execute at scale, solving splits entirely on-chain
Delivering perfect execution across up to 120 liquidity sources—in any block, at any position
Landing soon on @base, covering major pairs and stocks
The last on-chain router you'll ever need
And the first on the EVM to execute at scale, solving splits entirely on-chain
Delivering perfect execution across up to 120 liquidity sources—in any block, at any position
Landing soon on @base, covering major pairs and stocks