Blockworks Research Profile picture
May 25 17 tweets 4 min read Twitter logo Read on Twitter
AMMs are at the root of everything elegant and useful in DeFi.

That's why @CurveFinance put LLAMMA at the center of its lending protocol.

@smyyguy breaks down this novel mechanism👇
LLAMMA and crvUSD are complex and require a lot of explaining, so we are breaking this into two threads:

1. LLAMMA soft liquidation today
2. crvUSD monetary policy tomorrow
1/

Nearly all DeFi lending today is overcollateralized, where protocols rely on "hard liquidations" to remain solvent when the value of the collateral declines.
2/

While the design protects protocols from bad debt, it forces borrowers to realize losses as collateral cannot be recovered post-liquidation, even if the value recovers.

Curve set out to improve this, derisking the process for the protocol and improving borrower UX.
3/

Insert LLAMMA, the lending-liquidating AMM algorithm.

By replacing a traditional lending pool with an AMM, Curve introduces "soft liquidation" that 𝐠𝐫𝐚𝐝𝐮𝐚𝐥𝐥𝐲 liquidates collateral over a 𝐩𝐫𝐢𝐜𝐞 𝐫𝐚𝐧𝐠𝐞 instead of a sudden liquidation at a specific price.
4/

To open a loan, borrowers deposit collateral into a LLAMMA and receive debt in Curve’s stablecoin, crvUSD.

The collateral is spread across a user-specific set of “bands," creating the “liquidation range.”

The # of bands controls the spread of collateral across the range.
5/

Loan A has fewer bands, so it has a more dense range that begins at a lower ETH price (1675) than Loan B (1750).

Also, the lower bound of Loan A’s range (1575) is at a higher ETH price than that of Loan B (1550), meaning it will reach full soft liquidation before Loan B. Image
6/

The price offered by a LLAMMA pool does not strictly rely on the balance of the assets in the pool. An oracle price influences the AMM price.

For example, if the oracle price increases/decreases by 1%, then the LLAMMA price will increase/decrease by 𝐚𝐭 𝐥𝐞𝐚𝐬𝐭 1%.
7/

The design creates arbitrage opportunities to incentivize third parties to interact with the pool, which in turn operates the soft liquidation process.

The use of an oracle is required, and the protocol currently leverages a Chainlink-based solution... for now 😉
8/

To remain solvent during collateral price declines, LLAMMA pools need to soft liquidate collateral for crvUSD.

The LLAMMA price decreases more rapidly than the oracle price, so Curve’s lending pool sells collateral for less than the current market price.
9/

Arbitrageurs can buy collateral from the LLAMMA with crvUSD and sell it on the market, capturing the spread between the market price and the LLAMMA price.

The arb transaction converts the collateral into crvUSD, soft liquidating borrowers with collateral in the active band.
10/

When the price of the collateral later increases, LLAMMA deliquidates borrowers by incentivizing arbitrageurs to sell collateral back into the pool.

As the oracle price increases, the LLAMMA price increases at a faster rate, so LLAMMA buys collateral above the market price.
11/

Arbitrageurs now buy collateral from the market and sell it to the LLAMMA pool, capturing the spread between the LLAMMA price and the market price.

The arb transaction converts the LLAMMA’s crvUSD back into collateral, returning capital to borrowers.
12/

The animation below walks through the lifecycle of the soft liquidation process for a crvUSD loan against ETH collateral.
13/

While arbitrageurs play a critical role in maintaining the health of the protocol, each transaction erodes borrower collateral.

In other words, borrowers must pay a small price for the potential ability to recover their collateral after being soft liquidated.
Blockworks Research subscribers have access to the full report that explains how LLAMMA functions in significantly more detail.

Remember, this is just Twitter.

blockworksresearch.com/research/curve…
Tomorrow's thread will walk through the protocol's monetary policy and discuss stability pools, peg keepers, and the interest rate calculation.

• • •

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

Keep Current with Blockworks Research

Blockworks Research 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 @blockworksres

May 26
So now we know LLAMMA changes the game for DeFi lending, but it uses a native stablecoin as the debt asset...

How does @CurveFinance maintain the peg of crvUSD?

@smyyguy brings us Part 2 in the Curve series 🧵
Here's Part 1, covering what LLAMMA is and how soft liquidations work.

Give it a read before this thread!
1/

A stablecoin is only as useful as its ability to remain pegged to its target price. Curve uses “stability pools” and “peg keepers” to maintain the crvUSD peg.

crvUSD is backed by the assets in LLAMMA pools, but it's pegged to $1.00 by a basket of fiat stablecoins.
Read 18 tweets
May 24
In March, we got a China coin narrative with Hong Kong pro-crypto regulation.

Will we get a round 2 with retail trader regulation opening up?

Hold your horses, just for now. @purplepill3m explains why.
1/ Starting June 1st, platforms may apply for licenses to facilitate retail trading.

This likely means that approved retail trading will only occur in the second half of the year.
2/ Non-security tokens are required to have 12 months of no bad records.

Security tokens cannot be offered to retail investors.

In addition, retail trading will be limited to spot trading only, no derivatives will be offered.
Read 12 tweets
May 23
LSTFi Summer could be right around the corner.

Where are the best places to put your LSTs to work?

@WestieCapital lets you know 🧵
1/ Liquid Staking Tokens (LSTs) have emerged as a powerful instrument within DeFi, allowing users to access the yields associated with staking while simultaneously leveraging the liquidity of their assets.

Since Shapella, LSTs have seen 17% growth, with Frax leading the pack. Image
2/ With the increase in trust and growth of LST supply, there is also an increase in the number of use cases of LSTs within DeFi.

We have identified five major use cases:
- Leverage farming
- Liquidity providing
- LST baskets
- Stablecoin collateral
- Interest rate derivatives
Read 19 tweets
May 11
From both a trader and token holder perspective, the future for @Kwenta_io looks very promising

1. Fee switch on! ~$300k revenue the first 2 months.
2. Advanced order types + cross margin.
3. More assets and increased OI caps.
4. Juicy trading rewards.

🧵 by @MattFiebach Image
1/

Kwenta is a frontend for @synthetix_io Perps V2 on Optimism. Until recently, all fees and trader PnL were delivered back to SNX stakers, driving no value to the KWENTA token or protocol.

SIP-2002, approved in Feb, created a fee rebate mechanism for Perps V2 frontends. Image
2/

As of May 6th, Kwenta now receives a share of all fees it generates.

The retroactive payments totaled 78,000 and 55,000 SNX for March and April; at current market prices, this is worth almost $300,000. Image
Read 10 tweets
May 10
It seems like the market has an appetite for MEV protection.

MEV Blocker, MEV Protect, and MEV Boost are all MEV protection solutions that have been released in the past month.

All these solutions work a little differently, but we’ll focus on MEV Blocker 🧵 Image
1/ MEV Blocker was launched by Cowswap in collaboration with Beaver Build and Agnostic Relayer.

It works by mixing in fake transactions with actual user transactions, so searchers don’t know which transaction they should sandwich, and thus, nobody gets sandwiched.
2/ Yesterday, MEV Blocker protected ~5% of all transactions on Ethereum.

There hasn’t been a huge amount of refunds, in fact there has only been 13 refunds to date with a total of 0.775 ETH refunded according to this dashboard. dune.com/beetle/mev-blo…
Read 5 tweets
May 9
What if I told you there's an LST provider that:

- Offers liquid staking for a basket of assets
- Gives 100% of protocol revenue to stakers
- May become the largest competitor to Lido

It's @stride_zone. An appchain dominating the Cosmos LST market.

@EffortCapital explains 🧵
1/ Interchain DeFi growth has been slow compared to other ecosystems.

Historically, ATOM staking rewards have been over 15% APR, and OSMO over 20% APR, setting a high baseline yield that DeFi protocols must compete with to incentivize users to provide liquidity.
2/ This is where liquid staking comes in.

The ability to secure the network while also partaking in DeFi gives PoS assets money-like properties and unlocks liquidity for a healthier DeFi ecosystem.
Read 15 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

Don't want to be a Premium member but still want to support us?

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

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(