# Emergency measures for restoring Terra peg

**URL:** <https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784>\
**Category:** Mechanism\
**Created:** [May 11, 2022, 9:42am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784 "2022-05-11T09:42:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![unifiedh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.anchorprotocol.com/unifiedh/32/1092_2.png) [@unifiedh](https://forum.anchorprotocol.com/u/unifiedh)\
**Post date:** [May 11, 2022, 9:42am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/1 "2022-05-11T09:42:51Z")

</div>

Author: Daniel Hong (@unifiedh) | [Peter Pan Crunch LLC](https://peterpancrun.ch), ex-Terraform Labs & Anchor

[On-chain vote](https://app.anchorprotocol.com/#/poll/28)

**Summary**  
Proposed changes to **Terra Core** :

Increase `base_pool` from 50M SDT to 1B SDT, and decrease `pool_recovery_period` from 36 blocks to 1 block.

This is an amendment of a [previous proposal](https://agora.terra.money/t/proposal-help-ust-pegging-increase-estimated-minting-capacity-to-1200m/6287) that also implements a similar change, but at a smaller scale.

As this change is fairly aggressive (increasing total minting capacity by ~720x), minting parameters should be rolled back to less aggressive levels **immediately** as market conditions stabilize.

Proposed changes to **Anchor Protocol** :

Decrease minimum interest rates to 3.5%, and maximum deposit rates to 5.5%, with a targeted interest rate of 4%.

Based on the current block time assumption of **4,656,810** blocks per year, this translates to:  
`target_deposit_rate` = 0.000000008589570972  
`threshold_deposit_rate` = 0.000000008589570972  
`dyn_rate_min` = 0.000000007515874600  
`dyn_rate_max` = 0.000000011810660087

This should temporarily stop the Anchor reserve from depleting such that TFL will not have to deploy additional UST, which should contribute to stopping the depeg death spiral.

Again, as this change is fairly aggressive, those parameters should also be rolled back when deemed necessary.

**Motivation**  
For `market` module parameter changes on **Terra Core** :

Current market parameters cannot properly contract UST to levels required to restore its peg.

Anchor alone saw a $8B decrease in TVL, let alone all other TeFi applications. Counting in discounts due to UST depegging, this loss in TVL is massive.

Emergency measures should be made to temporarily increase virtual liquidity for Terra \<\> Luna swaps ~1000x, otherwise UST depeg would be prolonged, worsening the situation.

Another reason for the 1-block `pool_recovery_period` is Tendermint’s FIFO mempool.

The Cosmos SDK and Tendermint (of which Terra is based on) uses a fixed gas price system with transactions being accepted with a first-in-first-out basis, which may easily get congested during high traffic. This means Terra \<\> Luna swap transactions may not properly go through during a time when arbitrage is of utmost importance.

Resetting the virtual swap pool every block should help with this, as there would be no competition for better exchange rates and lower slippage immediately after the `base_pool` is reset.

For `Overseer` contract parameter changes on **Anchor Protocol** :

A depegged UST cannot sustain 18% APY any longer.

While some may argue higher interest rates help with less UST circulating supply, when the stablecoin have already lost trust from the public due to a 2-day depeg people would try to exit anyways.

One significant factor for today’s depeg was the release of Terra’s stability reserve into the Anchor reserve every time it was depleted, introducing newly minted UST that was not supposed to be there into circulation.

Back when Terra’s focus was on payments, having a centralized stability reserve at least made sense from a business perspective, because it is capitally inefficient to introduce new Terra into circulation from burnt Luna for a traditional fintech application like Chai.

When you’re doing savings and DeFi products, Anchor could have done better.

Temporarily lowering Anchor’s interest rates should stop the Anchor reserve from being depleted, preventing additional UST from entering circulation. Interest rates could be re-calculated when the depeg is resolved.

**Proposal**  
**Terra Core** :

```auto
{
  "subspace": "market",
  "key": "BasePool",
  "value": "1000000000000000.000000000000000000"
}

{
  "subspace": "market",
  "key": "PoolRecoveryPeriod",
  "value": "1"
}

```

**Anchor Protocol** :

```auto
[
  {
    "order": 1,
    "contract": "terra1tmnqgvg567ypvsvk6rwsga3srp7e3lg6u0elp8",
    "msg": {
      "update_config": {
        "target_deposit_rate": "0.000000008589570972",
        "threshold_deposit_rate": "0.000000008589570972",
        "dyn_rate_min": "0.000000007515874600",
        "dyn_rate_max": "0.000000011810660087"
      }
    }
  }
]

```

---

<div class="post-metadata">

**Author:** ![atebites](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atebites](https://forum.anchorprotocol.com/u/atebites)\
**Post date:** [May 11, 2022, 9:52am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/2 "2022-05-11T09:52:45Z")

</div>

hang on, just to confirm is this joint prop for terra and anchor?

the terra prop is to dump luna to burn UST at a rate fast enough to restore the peg am I right? this is going to be insane?? but it will work, when is it being posted?

the anchor side is just to prevent an attack while doing this correct?/

---

<div class="post-metadata">

**Author:** ![unifiedh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.anchorprotocol.com/unifiedh/32/1092_2.png) [@unifiedh](https://forum.anchorprotocol.com/u/unifiedh)\
**Post date:** [May 11, 2022, 9:56am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/3 "2022-05-11T09:56:59Z")

</div>

> [@atebites](#):
>
> hang on, just to confirm is this joint prop for terra and anchor?

Yes, you are correct.

> [@atebites](#):
>
> the terra prop is to dump luna to burn UST at a rate fast enough to restore the peg am I right? this is going to be insane?? but it will work, when is it being posted?

I will post both proposals onchain after hearing thoughts from the community.

If there’s no stablecoin, there’s no Luna

> [@atebites](#):
>
> the anchor side is just to prevent an attack while doing this correct?/

Both to prevent attacks, and to control UST circulating supply

---

<div class="post-metadata">

**Author:** ![atebites](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atebites](https://forum.anchorprotocol.com/u/atebites)\
**Post date:** [May 11, 2022, 10:09am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/4 "2022-05-11T10:09:50Z")

</div>

if I could I would put you in charge right away we should have done this from the start.

---

<div class="post-metadata">

**Author:** ![KashMoney](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@KashMoney](https://forum.anchorprotocol.com/u/KashMoney)\
**Post date:** [May 11, 2022, 11:33am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/5 "2022-05-11T11:33:42Z")

</div>

Hi, I cannot transfer the UST held here on Anchor to my Binance account, is there a reason for this? Also based on the above, would the UST return to its Pegged rate … my funds have halved in a day for no reason!

---

<div class="post-metadata">

**Author:** ![Jerry](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.anchorprotocol.com/jerry/32/949_2.png) [@Jerry](https://forum.anchorprotocol.com/u/Jerry)\
**Post date:** [May 11, 2022, 11:37am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/6 "2022-05-11T11:37:31Z")

</div>

TVL has decreased a lot and it doesn’t fall out as fast as it used to. It might be better to leave the interest at or rather increase it to keep the UST peg. The priority is to prevent users from leaving.

---

<div class="post-metadata">

**Author:** ![Kamil](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kamil](https://forum.anchorprotocol.com/u/Kamil)\
**Post date:** [May 11, 2022, 11:39am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/7 "2022-05-11T11:39:26Z")

</div>

Will changing the Anchor rate to ~4% not mean that pretty much all of the 4b UST that is still there also gets withdrawn?

A rate around 10% might encourage people believing in the peg to keep these funds in.

I suppose the tradeoff is whether the additional potentially billions dumped is worse or not than the yield reserve running dry in the next few weeks & Anchor switching to a dynamic rate.

---

<div class="post-metadata">

**Author:** ![unifiedh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.anchorprotocol.com/unifiedh/32/1092_2.png) [@unifiedh](https://forum.anchorprotocol.com/u/unifiedh)\
**Post date:** [May 11, 2022, 11:45am UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/8 "2022-05-11T11:45:01Z")

</div>

> [@Jerry](#):
>
> TVL has decreased a lot and it doesn’t fall out as fast as it used to. It might be better to leave the interest at or rather increase it to keep the UST peg. The priority is to prevent users from leaving.

They will leave anyways if UST stays depegged for more than a week. No one will use a savings protocol that doesn’t have principal protection.

> [@Kamil](#):
>
> I suppose the tradeoff is whether the additional potentially billions dumped is worse or not than the yield reserve running dry in the next few weeks & Anchor switching to a dynamic rate.

The current dynamic rate algorithm has a capped interest delta. It won’t be enough to adjust rates quickly before there is another yield reserve bailout

---

<div class="post-metadata">

**Author:** ![unifiedh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.anchorprotocol.com/unifiedh/32/1092_2.png) [@unifiedh](https://forum.anchorprotocol.com/u/unifiedh)\
**Post date:** [May 11, 2022, 12:02pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/9 "2022-05-11T12:02:41Z")

</div>

Also this is a temporary measure before UST is repegged. Once the peg is there, then we can talk about higher APR. But not now.

---

<div class="post-metadata">

**Author:** ![atebites](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atebites](https://forum.anchorprotocol.com/u/atebites)\
**Post date:** [May 11, 2022, 12:13pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/10 "2022-05-11T12:13:14Z")

</div>

Terras prop is almost at quorum.

community already had all of their collateral blown out which just leave depositors and you know how they feel.

@narco78 whats your take? I think the hole needs to be plugged once and for all imo.

---

<div class="post-metadata">

**Author:** ![narco78](https://avatars.discourse-cdn.com/v4/letter/n/8dc957/32.png) [@narco78](https://forum.anchorprotocol.com/u/narco78)\
**Post date:** [May 11, 2022, 1:12pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/12 "2022-05-11T13:12:53Z")

</div>

I really don’t see a solution here. The system needs to do what it needs to do, but ultimately LUNA is heading to sub cents and UST going towards zero on the back of no demand. There is no such outcome of UST ‘at peg’ again.

Maybe there can be some kind of a capital raise or some guarantees, but any attempt to salvage this situation is a sunk cost, like Iron Finance was.

I wish I had some ideas or better news, but this is what the outcome was always going to be as a result of poor risk management.

Do Kwon and Matt are the guys who need to be held accountable as heads of each side of the operation.

---

<div class="post-metadata">

**Author:** ![ADT](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@ADT](https://forum.anchorprotocol.com/u/ADT)\
**Post date:** [May 11, 2022, 1:19pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/13 "2022-05-11T13:19:00Z")

</div>

withdrawal from Anchor protocol to terra station, terra to finance -could take up to an hour to show.

---

<div class="post-metadata">

**Author:** ![arkboltz](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@arkboltz](https://forum.anchorprotocol.com/u/arkboltz)\
**Post date:** [May 11, 2022, 2:41pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/14 "2022-05-11T14:41:12Z")

</div>

In some form, Anchor probably needs to be purchasing other-chain assets in it’s treasury. The yield reserve is a good idea as it offers stability, but moving to a floating rate and acquiring bonded assets might be better in the long run. If staking yields on ETH, SOL, AVAX, etc are to become the low risk yield in a Defi world, having those assets in treasury can provide a bottom floor for UST demand as all yield is sold for it. Even if those assets depreciate in price, it is irrelevant as there is always loan demand generated from anchor. Kind of like how central banks purchase other CB’s currencies, even if it depreciates.

---

<div class="post-metadata">

**Author:** ![atebites](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atebites](https://forum.anchorprotocol.com/u/atebites)\
**Post date:** [May 11, 2022, 3:33pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/15 "2022-05-11T15:33:21Z")

</div>

guys, we should have a live chart showing UST market cap or supply and spam the shit out of it on crypto twitter.

---

<div class="post-metadata">

**Author:** ![LUNABUYER](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@LUNABUYER](https://forum.anchorprotocol.com/u/LUNABUYER)\
**Post date:** [May 11, 2022, 3:38pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/16 "2022-05-11T15:38:32Z")

</div>

Please, just accept that it’s over. This is the best for you and everyone reading it.

**Get rid of the rest of your $LUNA, $UST, $ANC, $ASTRO, any Terra project and NFT and run away.** The ecosystem is getting delisted soon.

Move on and next time be wiser.

---

<div class="post-metadata">

**Author:** ![BTFD](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@BTFD](https://forum.anchorprotocol.com/u/BTFD)\
**Post date:** [May 11, 2022, 3:39pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/17 "2022-05-11T15:39:15Z")

</div>

> [@atebites](#):
>
> the terra prop is to dump luna to burn UST at a rate fast enough to restore the peg am I right? this is going to be insane?? but it will work, when is it being posted?

Sorry to waste your time asking unhelpful questions, but hasn’t the depeg widened every time luna dropped? They seem to be inversely correlated.

Where will luna be dumped? Onto CEX’s? I don’t understand how reducing UST’s 15 billion circulating supply is going to help restore the peg if there’s no demand for UST to begin with and even less if luna craters further.

Public, perception of luna, false though it may be, is that its market cap is an indicator of value that could be used to provide some partial measure of value to ‘junk bond’ UST bag holders.

Crazy as it sounds, it almost seems like the answer is to pump luna using btc reserves. Every time it goes up, the UST depeg narrows.

Pardon my ignorance. Trying to learn.

Cheers.

---

<div class="post-metadata">

**Author:** ![atebites](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atebites](https://forum.anchorprotocol.com/u/atebites)\
**Post date:** [May 11, 2022, 3:53pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/18 "2022-05-11T15:53:25Z")

</div>

The idea is to make UST hyper deflationary, buy as much of it as discount as possible, and burn it by issuing luna. Luna’s nominal value will be destroyed in the process but once all the dust as settled ultimately the number of zeros behind lunas number doesnt matter so long as its able to find a trace of solvency.

Which ironically it does so long as UST exists in the market, luna is solvent, why, because you can redeem the ust for $1 worth of luna. Does this actually work? who the fk knows. 100% terra will be mitigated to a fringe blockchain, 50/50 we hold peg ontop of that. We will never be able to mint UST like lfg did ever again since our market cap and demand is destroyed but so long as the stablecoin lives banks die.

---

<div class="post-metadata">

**Author:** ![BTFD](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@BTFD](https://forum.anchorprotocol.com/u/BTFD)\
**Post date:** [May 11, 2022, 4:16pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/19 "2022-05-11T16:16:56Z")

</div>

Thank you for taking the time to explain the idea. I really do appreciate that. If you happen to have more time, I have a few follow-up questions:

When you say “burn it by issuing Luna” who exactly is the Luna issued to? Does the protocol automatically dump the new Luna onto other protocols’ and CEX’s Luna/USD pairs?

And if UST’s supply shrinks, can’t legacy market makers just ignore that fact and continue to offer a paltry rate on UST/USD pairs?

It seems like they hold all the cards unless luna demand increases, which the market lately interprets as the peg being restored. In cases like this behavioral finance often seems to have a better guide than fundamentals. Even though I’m a UST holder, I’d rather see Luna pumped outright with all remaining BTC reserves, since the market has consistently treated that as a reason to offer better UST/USD rates.

But I admit I am out of my depth and just trying to find a way to retain as much value as possible in my UST holdings. Welcome to the party, I suppose. Luna holders must feel even worse. I can’t help but to think the rumors and right and Kenny over at Citadel is celebrating this morning.

Thanks again for your time. I really do appreciate it.

Cheers.

 ![FSUb8lIXwAQdE1U](https://us1.discourse-cdn.com/flex016/uploads/anchor/original/2X/d/da7f971cd9db16c51ff5f6659fc307d7e5bfbebc.jpeg)

---

<div class="post-metadata">

**Author:** ![unifiedh](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.anchorprotocol.com/unifiedh/32/1092_2.png) [@unifiedh](https://forum.anchorprotocol.com/u/unifiedh)\
**Post date:** [May 11, 2022, 4:26pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/20 "2022-05-11T16:26:38Z")

</div>

This proposal is [live for on-chain voting.](https://app.anchorprotocol.com/#/poll/28)

---

<div class="post-metadata">

**Author:** ![atebites](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@atebites](https://forum.anchorprotocol.com/u/atebites)\
**Post date:** [May 11, 2022, 4:47pm UTC](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784/21 "2022-05-11T16:47:53Z")

</div>

Also,

Everyone on terra can help arb the peg back to health with this route:

Solana, [portalbridge.com](http://portalbridge.com) jup.ag terra station and solana wallet needed

Swap UST for luna on terra station  
bridge luna to solana via [portalbridge.com](http://portalbridge.com)  
swap luna for ust on solana  
bridge ust from solana to terra via [portalbridge.com](http://portalbridge.com)  
repeat process n times until youve recovered all your capital. rejoyce, you’ve helped push back the peg and made a ton of money in the process.

[Next page](https://forum.anchorprotocol.com/t/emergency-measures-for-restoring-terra-peg/4784.md?page=2)
