andywan

Posted on Jan 08, 2022Read on Mirror.xyz

On Abracadabra Degenbox Strategies, dwindling Anchor Protocol Yield Reserves, and risk to Curve liquidity providers

https://cryptorisks.substack.com/p/on-abracadabra-degenbox-strategies

https://cryptorisks.substack.com/p/on-abracadabra-degenbox-strategies

https://cryptorisks.substack.com/p/on-abracadabra-degenbox-strategies

Useful links:

  1. Abracadabra Docs
  2. Anchor Protocol Docs
  3. Abracadabra UST Degenbox
  4. Abracadabra.money Bentobox contract
  5. Agora discussion on Abracadabra Degenbox strategies and UST peg
  6. Anchor Yield Reserves
  7. Abracadabra UST strategy
  8. Anchor Protocol Discussion on growing gap between deposits and borrows

For periodic asset reviews and risk assessments, please subscribe! We have no intention of advertising (ever).

Abracadabra is a leveraged yield farming protocol that allows users to farm outsized yields on stables by taking on risk and leverage. Their recent Degenbox launch with its unique cross-chain strategy has been a huge success, bringing lots of fees for UST liquidity providers in Curve. The only catch here is: yield is not risk free. This article examines potential risks that UST liquidity providers on Curve are taking on, following developments around UST. The approach here involves a bit of chain-checkooooring, some imaginative thinking, and a whole lot of parsing through tweets.

To begin, let’s try to understand the magic behind the Degenbox UST strategy.

Abracadabra Degenbox UST Strategy

The strategy allows users to deposit wrapped UST into Abracadabra cauldrons in order to mint MIM, which can then be sold on the MIM-UST pool to increase one’s liquidity position via leverage.

The oracle contracts for UST degenbox (deployed by Abracadabra):

  1. UST: 0x4f51264B07DB8b2910E892eEEF22460DE23268a7
  2. aUST

The strategy is outlined in the following infographic:

The deposit steps are (unrelated example transactions):

  1. Deposit wrapped UST into UST Degenbox contract. The UST strategy contract gets to work from here onwards.
  2. 10% of UST is deposited into Degenbox (this makes withdraws easier).
  3. The rest of the wrapped UST is then bridged onto Terra: example tx.

4、Deposit UST into Anchor in return for aUST. Abracadabra uses EthAnchor for this.

5、Bridge back aUST to Ethereum: example tx. The receiver contract is the Anchor generated Operation contract for Abracadabra.

6、Deposit aUST into Degenbox contract: example tx. The deposit side strategy ends with the finish(address) method.

Harvest steps are:

  1. Withdraw aUST from degenbox and bridge to Terra: example tx.

2、Deposit aUST in Anchor and withdraw UST + interest (from Anchor yield reserves) using EthAnchor.

As interest accrues, the price of aUST increases w.r.t UST.

3、Bridge UST back to Ethereum.

4、Add to user’s collateral.

The interesting aspect of this strategy is that it uses a non-interest-bearing asset wrapped UST and runs a strategy that swaps a portion of it for an interest-bearing strategy, allowing users to earn leveraged yield from Anchor borrowers on Terra.

Market Reception

UST being the stablecoin with some of the most amount of on-chain liquidity, the strategy has attracted a lot of liquidity to Curve MIM-UST pool, as users drove up leverage in their liquidity positions:

MIM-UST Convex TVL:

Particularly interesting is the following leveraged LP position by Wonderland DAO who’s liquidity position as of writing this article gets them liquidated if UST price falls to 0.97 USD:

The nature of this Abracadabra Degenbox has very good synergy with Curve, since the first step after depositing into the collateral is to swap it to UST.

https://etherscan.io/tx/0x37b229554cb4f6a496b804db37cc3a5b298a8db1934afc264565c08d20cef263

Wonderland DAO mega-ape into Abracadabra Degenbox

This has been quite profitable for Curve liquidity providers, who earned an approximate 120k USD from that single ape alone.

The Wonderland DAO mega ape resulted in upwards of 120k USD in Curve swap fees.

Knowing this, it is worthwhile to answer the question: where does the yield come from?

Anchor Protocol Yield Reserves

Useful links

  1. YouTube: How is 20% yield sustainable? Do depositors care about ANC?
  2. Anchor Protocol Dashboard
  3. Wantfi article on Anchor Yield Sustainability

One of the attractive features of Anchor is its high APY for depositors, is currently offering an APY of 19.49%: this is the target rate (called Anchor rate) set by governance consensus. The yield comes from two sources:

  1. Borrowers paying interest to lenders
  2. Deposited collateral (such as LUNA and ETH) earning staking rewards for participating in PoS consensus.

Yield deficit

Useful links:

  1. Anchor governance proposal for bETH Lido integration
  2. Lido smart contracts for Anchor
  3. Anchor bETH custody address on Terra

The two collateral assets currently being staked by Anchor in PoS consensus protocols to harvest yield are LUNA and ETH, with ETH being staked via Lido. The stETH oracle used by Anchor takes ETH price and a ratio of ETH vs stETH.

As of writing this report, total bAsset collateral are $ 5.6 billion for bLUNA and $ 396 million for bETH.

The staked ETH collateral earns approximately 4.8% APY, which amounts to $ 19 million in Ethereum 2.0 staking yield annualised.

All in all the expense/earning breakdown is provided in the following. The various percentages for lending and borrowing were taken from: anchor protocol dashboard.

  1. $5.27 billion UST deposited earning 19.5%: $1.027 billion to be paid out to lenders.
  2. $5.56 billion bLUNA earning 6.63% in staking yields: $0.35 billion of yields.
  3. $0.387 billion bETH earning 4.8% in stETH staking yields on Lido: $0.0187 billion in yields.
  4. $2.064 billion borrowed UST at 17.51% interest rate: $0.36 billion in yields. (it is cheaper to borrow than lend currently: which has implications of its own).

Total yield earned: $0.73 billion in yields earned.

Deficit: $0.298 billion in yield deficit to hit the golden 19.5% earned interest rate.

From Anchor Protocol Docs:

  1. If real yield > Anchor Rate, the excess yield is stored in a UST denominated “yield reserve”. ANC incentives to borrowers drop by 15% every week.
  2. 2.If real yield < Anchor Rate, the yield shortfall is drawn down from the yield reserve until it is depleted. Additionally, ANC incentives to borrowers increase by 50% every week until the real yield converges to the Anchor Rate.

What is interesting is, the protocol incentivises borrowing (at the time or writing this article) over lending, there still exists a lend and borrow deficit: there are too many lenders and too few borrowers.

This brings us to Anchor Protocol yield reserves, which have observed a precipitous decline over time:

https://twitter.com/0xHamz/status/1479261217298468865?s=20

This begs the question: how does Anchor’s precipitous drop in its yield reserves impact the UST peg? And how does this affect Curve liquidity pools with UST synths?

Impact of declining Anchor yield reserves on UST/USD peg

Impact on UST peg

If an asset offers high yield, it’s most likely because it is a riskier asset. Lower risk yield attracts liquidity, causing the APR to decline.

A hypothetical scenario of the evolution of yields over time for a higher and a lower risk asset. This is an example of how the market can price risk.

Armed with this hypothesis, there are three scenarios with varying levels of optimism around dropping Anchor yields. Bear in mind that these scenarios can only occur if the Anchor protocol yield reserves are completely depleted: until they aren’t depleted, the market has no incentive to price risk.

The (hyper)optimistic scenario

The market considers UST low risk: even if yields drop as low as 1-3% APR and sustain those levels, it is still acceptable. No liquidity flees from Anchor.

The realistic scenario

The market prices UST risk at about x% to y% APR (say 8-12%). If yield drops to (say) 8% APR, large accounts will close their lending positions. The fleeing liquidity would result in the total deposited collateral to reduce, thereby increasing borrow yield. The APR would climb to (say) 12%, and more liquidity would come back in, dropping the yield to 8%. There would be an oscillation around an equilibrium APR N%.

In hindsight this is actually optimistic.

The pessimistic scenario

The market considers UST risky: if yield drops below some APR threshold N, the risk-reward is too skewed towards risk. Liquidity flees Anchor.

Fleeing UST liquidity has few places to go:

  1. Hold UST: but why would pessimistic market participants hold a risky asset that they’ve taken steps to de-risk away from?
  2. Sell UST for USD on the open market: affects UST peg,
    1. threatening liquidations of Abracadabra Degenbox users, which has other cascading effects, or
    2. threatening LUNA sell pressure, as cheaper UST can be bought off the market, burnt into LUNA at parity (excluding spread) and the LUNA sold for USD.
  3. De-risk: Burn UST, mint LUNA and sell LUNA in the open market. Assuming that the volume of UST being de-risked is maximally 20% over a few weeks:
    1. If the market is not volatile, centralised exchanges can absorb de-risking. But this may lead to cascading liquidation events, as LUNA supply increases and its price falls.
    2. If the market is volatile, de-risking can get turbo charged and result in strong liquidation cascades.

0xHamZ

https://twitter.com/0xHamz/status/1479261236248391683?s=20

Historically, liquidation cascades in LUNA have led to UST de-pegs, which has implications for Degenbox positions. This is discussed further ahead.

Impact of declining Anchor yield reserves on Curve LP positions

CCTV footage of Abracadabra Degenbox pillaging Anchor’s yield reserves. Image derived from here.

Considering strategies like Abracadabra Degenbox’s Viking Attack and potentially other products will eventually deplete Anchor yields, it is likely that risk-reward will be skewed more towards the risk side. In the case of a de-risking event, the MIM-UST pool has very high chances of de-pegging:

  1. Cheaper UST bought on the open market, bridged to Ethereum, swapped into MIM or 3CRV at 1:1 parity is one example of an arbitrage.
  2. Degenbox liquidation events resulting in large UST swaps into MIM.

Historically, the MIM-UST pool has seen a lopsided token distribution, due to the great Wonderland DAO ape event:

In a liquidation event, the MIM-UST and UST-3CRV pools have very good chances of getting de-pegged, as large quantity swap will make these pools UST-overweight. To quote Naga king:

The MIM-UST pool has ~1B in it, and there is about 950m MIM collateralised by UST. If that 950m is withdrawn as UST and then exchanged for MIM in the MIM-UST pool, the pool would become >90% UST regardless of A. For A = 1 (lowest possible), that trade would lead to 93% UST.

This would result in discounted UST swaps, which could result in the following arbitrage.

  1. Get discounted UST from Curve pools.
  2. Bridge to Terra via the shuttle bridge.
  3. Burnt UST and mint LUNA at 1:1 parity.
  4. Sell LUNA in the open market to complete the arbitrage.

This arbitrage adds sell pressure to LUNA price, but re-pegs the pool as more MIM (now backed by less UST) or 3CRV gets swapped into the pools for UST. An interesting note here: with a high amplification factor of 1000, large de-pegs get re-pegged slower: there’s just more liquidity at each step of the re-pegging process. The general rule here is:

Lower pool amplification factor (A) increases the velocity of the de-peg and re-peg. Higher values decreases it (unless the balances are closer to the shoulder of the invariant curve: the de-peg is definitely non-linear.

Abracadabra Degenbox introduces a cauldron withdraw cap, which may delay/limit liquidity exodus. This has a direct impact on the peg: it suggests that the depeg may actually never happen, and at worst the pool may suffer a short-lived imbalance.

Taken from Abracadabra Medium article on their UST cauldron. It says ‘do not panic’ in the end of the article.

Apart from not-so-obvious market risks of holding or interacting with UST, it looks like there exist several arbitrage mechanisms that can help balance the pool after de-peg events (but not prevent it) due to Degenbox strategies depleting Anchor yield reserves.

Summary - for wUST LPs in Curve.

The article hypothesises several scenarios following the impact of Abracadabra Degenbox strategy on depleting Anchor yields and its implications for Curve liquidity providers for pools containing UST synths. There are a few expectations:

  1. Due to Degenbox, LPs in MIM-UST can expect moments of large liquidity events that can imbalance the pool. This pool imbalance may be slowed down by the large A parameter of the MIM-UST pool (1000).
  2. De-peg events are likely, owing to the high risk nature of UST. Currently, the market is pressuring Anchor UST lending yields at a downwards trajectory. Considering yields have some correlation with risk, this is likely to result in risk-discovery, akin to price-discovery.
  3. If UST pools de-peg, there exist certain arbitrage routes that incentivise re-pegging of the pool (if the pool is UST-heavy). This suggests that while LPs can expect moments of pool imbalance, the likelihood of the pool re-pegging over time is also high. The time it takes to re-peg depends on the pool’s amplification as well as re-pegging volumes (generally takes lower UST to MIM swap volumes to re-peg if A is low in comparison to high A values).

Thank you for reading this deep dive into Abracadabra Degenbox + Anchor protocol yield reserve depletion and its impact on Curve LPs. If you think you find it useful, please do share the article! It helps us get visibility.

Share