Report: Impermanent loss on Uniswap and other AMMs is always permanent

Published at: Sept. 29, 2020

Alexis Direr, a researcher at the University of Orleans in France, has released a paper summarizing the mathematical underpinnings of Uniswap and other exchanges based on Automated Market Makers.

Automated Market Maker is the term for a class of decentralized exchange that reached significant popularity in 2020, spearheaded by Uniswap.

In a nutshell, these exchanges do away with traditional order books and instead rely on liquidity pools governed by a mathematical formula. Traders are always able to make a transaction with the pool for even the most illiquid tokens, but each order will impact the price of the asset they are trading — a phenomenon called slippage.

The mathematical formula defines how the price changes in response to the size of a particular order. For example, the formula may say that exchanging 10 Ether (ETH) into Dai (DAI) yields $3,500, but exchanging 100 ETH only yields $3,400. This means that the price of 1 ETH is $350 in the former case, but only $340 in the latter. The formula is often called the “bonding curve,” as the various possible combinations describe a particular price curve. In the case of Uniswap the curve is a hyperbola, though other AMMs may have more complex shapes to optimize for different scenarios.

AMMs rely on liquidity providers — people and entities committing their capital into liquidity pools to facilitate trades and lower slippage. In return, LPs obtain trading fees paid by users.

While this may sound like a sweet deal, liquidity providers need to deal with “impermanent” loss. LPs may end up with less money than they put in initially when the price swings significantly in one direction. Compared to an equivalent 50:50 portfolio of the assets in question, the pool underperforms significantly with large price deviations.

The researcher explains that this phenomenon occurs due to the presence of arbitrage traders. Outside market prices do not obey the bonding curve, so constant action is necessary to keep Uniswap’s price in balance with the rest of the market. But when arbitrageurs rebalance the pool to the correct value, they do so at a “suboptimal exchange rate” defined by the bonding curve. This action extracts value from liquidity providers in favor of the arbitrageurs.

The loss is generally named “impermanent” because if the price were to return to its initial value, liquidity providers are completely even compared to the benchmark 50:50 portfolio. Discounting the case where the price permanently moves to a new equilibrium, Direr posits the question:

“The fact that the two strategies yield the same result seems at first disturbing. In the pooling strategy, the pool incurs arbitrage costs twice [...] In the holding strategy, the investors avoids arbitrage costs altogether, yet ends up with the same final wealth. How is it possible?”

The researcher’s answer is that the way benchmarking is commonly done is misleading. Uniswap constantly rebalances the pool as it moves higher or lower, so that liquidity providers have fewer units of the asset that went up in price, and more units of the asset that went down in relative terms.

LPs effectively conduct a profit and cost averaging technique in both ways of the trip. They lock in some of the profit as one asset’s price moves higher, and progressively buy more as it goes back down.

Similarly to how such an averaging technique would work, a 50:50 portfolio that constantly rebalances will turn a profit, despite the price returning to the initial number. In comparison, the liquidity pool’s value simply remains where it was.

Hence, “impermanent loss” appears to be a misleading term. The loss is always permanent, but in the optimistic scenario it merely cuts into the gains that an equivalent strategy would have netted.

Bancor V2 and Mooniswap have adopted techniques to mitigate this type of loss. The former uses oracles to read true market prices and balance the pool accordingly, while the latter introduces a gradual time delay to minimize the profits of arbitrage traders.

Tags
Related Posts
Finance Redefined: Uniswap V3 is here, but was it worth the wait? March 17–24
Finance Redefined is Cointelegraph's weekly DeFi-centric newsletter, delivered to subscribers every Wednesday. Uniswap V3 was publicly announced yesterday and I didn’t really get a chance to write about it, so I wanted to dedicate this newsletter to a review of V3 and the AMM space in general. My initial reaction to Uniswap V3 in one, brutally honest word, was “meh.” But it got better when I read further into it, so let’s unpack what’s happening here. Uniswap V3 is a solid upgrade and it’s clear that a lot of work went into it. But it under-delivers compared to the hyped …
Technology / March 25, 2021
Arbitrage traders make 10x returns on new DeFi platform for wrapped assets
A recently launched decentralized finance platform, Saddle Finance, has netted one particular trader a more than 10x return on an arbitrage trade between different permutations of synthetic Bitcoin (BTC). According to transaction data from Etherscan, a user swapped 0.34 sBTC, Synthetix’s Bitcoin-based token, in exchange for 4.36 Wrapped Bitcoin, a custodial wrapper offered by BitGo. The trade offered an almost 13x return on investment, netting $150,000 to the trader. Two other similar transactions were registered on the platform, as noted by the analyst Igor Igamberdiev. One transaction swapped 0.09 tBTC for 3.2 WBTC, an even higher return of 35x. The …
Technology / Jan. 20, 2021
Finance Redefined: Is DeFi really a threat to centralized finance? Oct. 14-21
No major euphoria-worthy moments happened this week — the ecosystem is still cooling off. I think the biggest sign of that is Uniswap’s trading volume. After hitting a peak of slightly less than $1 billion in daily volume in early September, those numbers steadily deflated. But despite the downtrend, I think even the current level is still well beyond the wildest imagination of a DeFi fan in 2019. For reference, those figures are roughly on par with Bitstamp or Bitfinex (even though as I write this, their volume seems to have skyrocketed with the PayPal news). This analysis of a …
Technology / Oct. 22, 2020
DeFi aggregator 1inch stages new ‘vampire airdrop’ to Uniswap users
The 1inch.exchange protocol, a platform that aggregates decentralized exchanges and provides its own automated market maker, is airdropping a new stash of its 1INCH tokens. The airdrop follows the initial generation of the new tokens on Christmas, which were distributed to past users of the aggregator. A common point of contention for the initial airdrop was the exclusion of Mooniswap users and liquidity providers, as the project's AMM platform was superseded by an integrated 1inch Liquidity Protocol. The new airdrop, which was already delivered at 5 PM UTC, retroactively distributes tokens to anyone who interacted with Mooniswap before Dec. 24. …
Technology / Feb. 12, 2021
Investors are back into Bitcoin but DEXs are still the future of crypto
Bitcoin’s long-waited bull run and the recent wave of corporate and institutional investors allocating significant portions of their reserves to Bitcoin (BTC) are all signs that the pace of crypto’s mainstreaming is rapidly accelerating: But has the path to mass adoption come at the cost of privacy and decentralization? Know Your Customer and Anti-Money Laundering laws have forced the majority of cryptocurrency exchanges to become more transparent about who their users are, and those who refused have had to limit the jurisdictions in which they can offer services. In order to operate legally in many countries, many exchanges have had …
Technology / Nov. 9, 2020