Continuing from yesterday’s thread on Impermanent Loss, and in particular IL for leveraged AMMs

as a recap, the Uniswap v3 style levered AMM is using the regular k=x*y curve, but it restricts it to a particular range
restricting it to a specific range a priori significantly reduces IL, eg to about 2pc for a 60…140 range.

However, this effect is undone by removing collateral that can’t be traded out of the AMM and IL is percentage of levered liquidity is high.
One hallmark of a traditional AMM is that the dollar value of the two constituent assets is always equal.

For the levered AMM this no longer holds: the more prices go towards one of the boundaries, the more it is invested in the falling asset.

At the boundary it is 100pc.
This introduces a complication when we are outside the band. Shall we include this in the definition of IL?

Pro. Those further losses can be substantial when the asset falls further

Con. The position no longer earns fees, so any fee / IL ratio is weird
Ultimately we decided to only count the IL WITHIN the band because

a/ this is consistent with the fee-earning scenario, and

b/ ultimately LPs could just withdraw so maybe they like the position
But it is worth pointing out that providing levered liquidity does catapult LPs into a position where they go full in on the (relatively) falling asset; if they don’t like this they need to actively do something, so they need to pay attention
more generally LPing on Uniswap v3 requires even more confidence in BOTH assets of the underlying pool; if they diverge, the portfolio always tracks the UNDERPERFORMING of the two assets
that’s like a worst-of-2 basket option which again shows how closely related AMMs are to options and other financial derivatives.

I wrote about it here drive.google.com/file/d/1en044m…
the second problem when looking specifically at Uniswap IL is that positions can be amended (add or remove liquidity); that’s a mess because

a/ it happens at different ratios (what is HODL reference for IL?)

b/ what do you assume what happens with the withdrawals
we decided (and a big ht to @MBRichardson87 here) that we split positions every time someone adds or removes liquidity.

In other words: an position that did

open
add
withdraw some
add
withdraw all

would be considered 4 different positions
I should probably point out that this still does not solve all problems — there is no way to aggregate those 4 IL figures into a single one without reference to a specific numeraire such as USD — but that’s a bit hard to discuss on Twitter. It’ll be in the paper though.
nice analysis from @guil_lambert showing again the similarity between AMMs and derivatives lambert-guillaume.medium.com/understanding-…
no idea why I put the charts twice there. anyway, so I’ve got my ipad & pen I had left in the office on Friday so stay put for some markups
here we see the three areas: in-range, out left, out right. I used ETHUSD as example with USD as numeraire to make it more concrete
on the left (ETH downside) the position is 100% ETH, and the formula shown is normalised to 1 unit of the risk asset, ie 1 ETH
on the right, ETH upside, the portfolio is 100% USD. The exchange ratio used is the (geometric) middle of the range.
that geometric middle thing is easy to understand by the way: within the range, Uniswap v3 operates like any traditional AMM. And as discussed eg in our paper, AMMs always transact at the geomtric average before/after (and therefore miss out on Gamma). drive.google.com/file/d/1en044m…
so now the grand finale of this thread: a comparison between the most important AMM protocols

- traditional AMM (Uniswap v2, Bancor v1 etc)
- Uniswap v3
- Curve
- Bancor v2
so here we go: Uniswap and Curve are in red. I am slightly simplifying here because a/ the curves are slightly different, and b/ the Curve curve is shifted, but close emough
the green one on the left is Bancor which allows single asset staking, so f(x) = x (technically there is also f(x)=const but that one is boring
Finally the blue one in the middle is Uni v2 and other traditional AMMs which is in between Uni v3 and Bancor on the upside:

- Uniswap v3 has no upside participation
- Uniswap v2 has some upside participation
- Bancor has full upside participation
On the downside the picture is slightly different

- Both Uniswap v3 and Bancor have full downside participation
- Uniswap v2 and other traditional AMMs ultimately have full downside participation, but behave nicer on the way there

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Oscar D Þorson

Oscar D Þorson Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @odtorson

1 Oct
I am working on paper on Impermanent Loss, and I want to put a few thoughts out here to get them sorted before the paper proper is published
quick reminder: Impermanent Loss is what happens to you when you provide liquidity in an AMM, and it usually is everything but impermanent
IL is generated because an AMM sells the outperforming asset and buys the underperforming asset, so you miss out on the moon shots, but you are fully invested all the way down...
Read 31 tweets
30 Sep
Alright, how wants some fun analysis on Santander bikes? Image
@TfL has a great API and I have been polling it for almost two weeks now to get the detailed status.

Firstly, there are almost 21,000 docks but only 8,000 bikes, so max dock occupation is 38% Image
What surprised me that peak usage of the bikes is actually not that massive. Even at the lowest level of availability there were only 2,000 of the 8,000 bikes in use Image
Read 24 tweets
30 Sep
that’s an interesting ask — allow us to bring staff over for up to 6 months a year without requiring a visa. sensible at first sight, but….
in the new age of Zoom working, 6 months a year is essentially local staff. the obvious benefit here is nearshoring: employ staff in low cost locations but bring them over regularly
here I think the point is different though: keep your local coverage staff local to comply with regulations, and bring them over to London every other week to catch up with the wider team
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(