Tarun Chitra Profile picture
ヽ(⌐■_■)ノ♪♬ @gauntlet_xyz/@robotventures/@aerafinance/@thelatestindefi/@_choppingblock/@zeroknowledgefm // main: @guilleangeris
Mar 6 20 tweets 7 min read
Three items are behind a wall and a solver is going to get one of them for you

Do you get a goat or a car, anon?

@malleshpai, @ks_kulk, @theo_diamandis and I show you that if solvers have to do more work to deliver the item to you, they're not going to show up to the auction https://arxiv.org/abs/2403.02525 There’s been a lot of talk about `intents’. What are they?

Simply put: they're markets for transaction execution where third parties called solvers compete to satisfy user orders (and any constraints those orders come with)

Question: What are the principal-agent problems here? Image
Jan 16, 2023 27 tweets 12 min read
While @artgobblers isn't exactly my cup of tea, the novel NFT auction mechanism ford is cool from an auction theory perspective— but is it incentive compatible (IC) for both buyers and sellers?

tl;dr: It is *not* IC but can be modified to be IC!

people.eecs.berkeley.edu/~ksk/files/GDA… Quick recap: A gradual dutch auction (GDA) is a sequence of n auctions whose initial prices a_1 < ... < a_n are increasing but where the price of an auction decays as a_i * p(t) where p is non-increasing (e.g. p(t) = exp(-t) in the original paper)

paradigm.xyz/2022/04/gda
Nov 16, 2022 14 tweets 3 min read
As someone way less cynical I’d counter with:

1. Winning mechanisms in DeFi come from where you don’t expect (e.g. Uniswap vs. bad copies of TradFi products badly)
2. MEV-aware designs take advantage of FHE/ZK improve efficiency/costs
3. Treasury management isn’t just a meme Simplified definition of capital efficiency:

max amt of capital used for risk bearing ops / amount of locked capital needed to support those operations

DeFi: denominator is larger than it is in TradFi due to permissionless/censorship resistance

What’s missing to close the gap?
Nov 11, 2022 6 tweets 2 min read
The most amazing thing in the filings is how abysmal centralized lenders (incl. exchanges) were at 2 critical functions:
1. Dynamically setting loan-to-values
2. Liquidating bad loans

It’s embarrassing that @gauntletnetwork’s weekly DeFi governance proposals are faster than CeFi The fact that Voyager never liquidated FTT or SRM and that exchanges were sitting on so much GBTC and *still* didn’t decrease loan-to-values for their largest customers is insanely irresponsible risk management — and it is 100x easier to adjust this as a CeFi lender than in DeFi
Oct 12, 2022 10 tweets 6 min read
One funny thing about DAO governance is that it makes it hard to manage assets held by a collective (why vote to sell the asset you're voting with?) — but for many collectives, asset management is more than pure yield optimization

Can we do better with a return to futarchy? The goal of Aera is to make it possible for decentralized, censorship resistant treasury management to make it possible for DAOs to hedge their portfolios according to their own KPIs, goals, and objectives while also seeding new protocols with liquidity in a positive sum manner Image
Aug 18, 2022 12 tweets 7 min read
🚨New Paper Alert🚨

There have been a number of proposals for sharing MEV revenue between particular block producers and the rest of the (staked) network. But is it safe?

@ks_kulk and I show there can be *positive externalities* from MEV redistribution!

people.eecs.berkeley.edu/~ksk/files/MEV… What is MEV redistribution (also called MEV smoothing)?

💡: MEV profits split w/ x% go to all stakers and 100-x% to the validator themselves

Impossible to do in PoW, possible to do in PoS via Proposer-Builder Separation (see @ObadiaAlex/@taarushv's post) hackmd.io/@flashbots/mev…
Jul 18, 2022 23 tweets 11 min read
⏰⏰⏰ New Paper Alert ⚠️⚠️⚠️
MEV is always bad for users… right?

Not always! @ks_kulk, @theo_diamandis, & I formalize the loss from sandwich attacks and show that sandwichers act as decentralized highway traffic controllers & *improve* network welfare

people.eecs.berkeley.edu/~ksk/files/MEV… Prior work on MEV has focused on:
1. Fair ordering
2. Formal verification to estimate MEV profit
3. Single sandwiches on Uniswap
4. Empirical data
But so far, no one has talked about the theoretical costs to the entire network from MEV

This paper solves this (at least for CFMMs)
Apr 14, 2022 12 tweets 4 min read
🌬️💧How should we think about the implied value of a retroactive airdrop?

In this tiny note, I claim that:
a) They are exotic options
b) You can price them in some cases

But there are a lot of open problems that I'll leave for the end of the thread

gauntlet.network/reports/retroa… Image Think of retroactive airdrops in terms of capital optionality:

1. Provide capital (TVL, fees, volume) to a protocol
2. Increases a topline metric h that the snapshot uses
3. At an unknown time in the future you get an airdrop proportional to how much you increased the metric
Feb 21, 2022 20 tweets 9 min read
⚠️ Paper Alert ⚠️
a. (3,3) is a meme, not game theory (sorry @TheStalwart)
b. Ohm isn't a stablecoin

BUT

@OlympusDAO’s protocol is a vol reducing liquidity mgmt strategy

👀 new work from me, @ks_kulk, @GuilleAngeris, @alexhevans, and Victor Xu

people.eecs.berkeley.edu/~ksk/files/Ohm… It is clear that algo ‘stablecoins’ involve control theory — but prior to Ohm, most failed attempts (e.g. Basis, ESD) relied on PIDish controllers

Mechanisms had ‘control variables’ (e.g. bonds/locked assets) which couldn't reduce price variance/drift

Dec 20, 2021 13 tweets 6 min read
🧙🏾‍♀️New Paper Alert 🧙🏾‍♀️

Our [Stephen Boyd, @GuilleAngeris, @alexhevans] Christmas Gift to you is a look at routing in CFMMs like Uniswap, Balancer, and Curve

People have talked about *heuristics* for routing, but what about an *optimal* form of routing? 🔮

web.stanford.edu/~boyd/papers/c… The growth of the CFMM markets in 2020 and 2021 was driven in large part by routing services such as @1inch, @SlingshotCrypto, and @matchaxyz, which allowed users to get better prices when going trading assets A to B by
a) allocating A/B trade to diff. CFMMs
b) paths: A -> C -> B
Nov 1, 2021 14 tweets 6 min read
⚠️ October Paper Alert 🚨

Conventional wisdom: Order Books should beat AMMs on-chain

Is this *always* true? 🤔

In light of the @solana liveness issue last month, we decided to try to analyze this theoretically and... the results might shock you! 🌩️

stanford.edu/~guillean/pape… This tweet led us down this 🐇🕳️ to answer the following question:

Is it better for DeFi, when liveness is lost, to have the majority of on-chain liquidity in an order book or an AMM for liquidations?

Two ways to study this: LP losses, # of transactions

Aug 26, 2021 19 tweets 9 min read
⚠️ 📰💧🚨
Tired but true: Private Uniswap can’t exist
Wired: *Differentially Private* Uniswap does exist

This month’s paper (9th in a row!): can’t get the mechanism we want, but there exists one that we need

eprint.iacr.org/2021/1101

(Storytime! 📓)

On 3/1 @GuilleAngeris, @alexhevans & I wrote a paper showing that you can infer trade sizes in CFMMs like Uniswap strictly from price — convexity: blessing for arbitrage, curse for privacy (even w/ ZKPs)

But we left two opportunities for partial privacy (arxiv.org/abs/2103.01193)
Jul 22, 2021 13 tweets 7 min read
⚠️ It’s 📰💧 time of the month again 🚨

Don’t want to read 100s of pages of CFMM literature? 

You’re in luck! We review the known theory of CFMMs (plus some new goodies!) for an upcoming *textbook* chapter on crypto + DeFi w/ two new authors:

(Paper: stanford.edu/~guillean/pape…) First: Who are they?

Stephen Boyd is a renowned @Stanford researcher known for his oft cited textbook, multitude of INFORMS/IEEE awards, and advising BlackRock on convex analysis for manage trillions of dollars

He’s also @guilleangeris’s PhD advisor!

en.wikipedia.org/wiki/Stephen_P…
May 2, 2021 14 tweets 6 min read
Wow, y'all really aped into this paper, thanks for all the memes (@0xtuba) & thoughtful comments

I figured I'd go a little deeper into the connection between lending protocols and options selling but first, don't forget to follow @htkao, @GuilleAngeris, and @alexhevans ☺️ As @cuckqueeen points out, numerical methods for simulating barrier options are hard to execute correctly (one of the reasons we run all such simulations @gauntletnetwork against the contract execution state in EVM, otherwise you will mess up liq barrier)
Apr 30, 2021 13 tweets 6 min read
One mechanism for improving capital efficiency in CFMM trading is borrowing against LP shares (e.g. @AaveAave, @AlphaFinanceLab, @MakerDAO, @SushiSwap)

How safe is it compared to normal lending?

New 📝💧 from @htkao, @GuilleAngeris, @alexhevans y moi

stanford.edu/~guillean/pape… We first show how to compare Loan-to-Value (LTV) / collateral factors between borrowing A with B as a collateral vs. borrowing A against an A/B LP pool share

Turns out, with dynamically adjusted LTVs you can make LP share lending *more* safe than lending of the underlying Image
Apr 9, 2021 12 tweets 4 min read
This is a good thread about the MEV War of 2021™️

One thing I will say is that most of the fair methodologies have a downsides themselves:
1. Added latency
2. Lack of guarantees about economic price ordering
3. Extremely unproven in production (similar to ZKPs in 2012) Why added latency?

Theoretical (@vegaprotocol’s Wendy) and practical protocols (@valardragon) add a >= 1 block commit-reveal from validators OR added rounds of BFT-style message passing. Griefing vectors (DDoS-esque) are abundant + provable models have weak synchrony guarantees
Jan 18, 2021 11 tweets 6 min read
⚠️ Paper Alert ⚠️

Remember the Twitter argument between @danrobinson and @SBF_Alameda?

Recall how it hinged on logarithmic vs. linear utility functions?

Using optimal control, we show utilities are a red herring

joint w/ @alexhevans @GuilleAngeris

stanford.edu/~guillean/pape… Flip the problem upside down: LP returns are a function of how close the weights w (@BalancerLabs portfolio weights) are to the 'optimum' weight w*

Arbitrageurs can be viewed as a stochastic control mechanism that moves w around w*

Can you control |w-w*| as a function of fees?
Nov 30, 2020 12 tweets 6 min read
⚠️ Γ Alert ⚠️

What does part of Paul Milgrom's 2020 Nobel Memorial Prize have to do with 🦍-ing into pool 2?

2nd part of our series on CFMM shape looks at:

💹 How do you compare LP return from different pools?
🤼 Quantifying adverse selection in CFMMs

medium.com/gauntlet-netwo… Post 1 tl;dr: Curvature controls pool price stability

Post 2: Curvature *directly* controls:
- LP profits when asset pairs are mean reverting
- ∃ a magic formula relating LP profit to adverse selection (probability α of LP realizing IL), curvature, and fees for *any* CFMM!
Nov 24, 2020 7 tweets 3 min read
What does Gauss's Theorema Egregium (1827) have to do with getting rug pulled in Uniswap?

This post (1 out of 3) introduces (only w/ pictures!) new work on understanding constant function MMs (CFMMs) as the primary market for an asset

Part I: Curvature

link.medium.com/RVPG7R85Fbb Why curvature?

@CurveFinance made it clear that some assets perform better on 'flatter' CFMMs and others on 'sharper' CFMMs

But what does it mean to be 'better'?

Our paper studies what happens when traders arbitrage btw. two CFMMs and look at the max their prices differ by
Nov 2, 2020 5 tweets 1 min read
As much as I love the Penrose tiling and long-range order (I used to do glass research!), this seems like a terrible idea

1. Diverge correlation times/lengths means time to verify of a single transaction’s validity could take way longer than block propagation

😬😬😬 2. If you want to anonymize a transaction graph by using a lattice with dense spectra (like the Penrose tiling) to define a DAG, note that you aren’t guaranteed that there isn’t *any* local structure that an adversary can find — only that no tx ordering will be unique
Nov 2, 2020 4 tweets 2 min read
Alpha leak: Adverse selection in Uniswap

This beautifully simple paper proves what @theyisun and I called the “noise trader conjecture”:

Strategic LP strategies only profitable if fees are high enough, ∃ many noise traders, and low signal information

papers.ssrn.com/sol3/papers.cf… This effectively looks at a mean-field, agent-based model of:
1. Noise traders
2. Informed traders
3. Strategic LPs

It shows that as the # of LPs goes to ♾, ∃ a sharp phase transition in LP profits as a function of the number of informed traders (defined via simple signals)