📑
DeFi Saver Knowledge Base
  • Welcome to DeFi Saver Knowledge Base
  • General
    • What is DeFi Saver?
      • Boost & Repay
      • Smart Contracts
      • DeFi Saver and security
      • Liquidity Sources of DeFi Saver
      • DeFi Saver Fees
    • Smart Wallets
      • Can I access DFS created positions using other apps?
      • Why did we switch to Safe?
    • Wallet Compatibility
    • Troubleshooting common issues
      • Error: "An issue was detected with this transaction that would cause it to fail" - what to do
      • How can I withdraw tokens from my Smart Wallet?
      • My MetaMask account is failing to load - what should I do?
      • My transaction is pending / not going through - what should I do?
      • I cannot make any transactions using DeFi Saver after using Furucombo?
      • Avoiding MEV with your transactions
  • Features
    • ETH Saver
      • How does ETH Saver work?
      • Profit tracking & how does it work
      • Positions in ETH Saver
      • Are there fees?
        • Are there any costs that are not immediately noticeable?
    • Automation
      • Automation strategies
      • Requirements for using Automation
      • Automation Fees
      • How does Automation work?
      • When are Automation transactions made?
      • Are there risks when using Automation?
    • Recipe Creator
      • What are Flash Loans?
      • Is Recipe Creator safe to use?
      • Pre-made recipes / Recipe Book
      • How can I reuse output of previous functions?
    • Loan Shifter
      • Collateral Swaps
      • Debt Swaps
    • Notify
      • Notification Monitors
      • How do I set up Notify?
    • Simulation Mode
    • Smart Savings
      • Overview of Yearn
      • Overview of Convex
      • Overview of mStable
      • Why is a smart wallet needed for using Smart Savings?
      • How to start lending funds and earning interest using Smart Savings?
      • Managing existing portfolios using Smart Savings
      • The difference between APR and APY
      • Are there any security risks?
    • Bridge
    • Exchange
      • What are Limit Orders?
      • What is DCA?
  • Protocols
    • Aave
      • Aave Dashboard
      • Aave versions comparison
      • How does Aave Automation work?
      • Can I manage my existing Aave lending/borrowing portfolio using the Aave dashboard?
      • What are Flash Loans?
      • How can I long or short assets using Aave?
      • Staking Aave tokens
      • How can I tell how much interest I will earn or have already earned using Aave?
      • How can I swap my collateral or debt in Aave?
      • Migrating your Aave position(s)
      • Pendle Principal Tokens (PTs) on Aave
    • CurveUSD
      • What is LLAMMA in CurveUSD?
      • How do you create a loan in CurveUSD protocol?
      • Does CurveUSD charge any fees?
      • Is there a standard (hard) liquidation in CurveUSD?
      • What are bands in CurveUSD?
      • Why do I need a Smart wallet for CurveUSD?
    • Compound
      • Compound Dashboard
      • Can I manage my existing Compound lending/borrowing portfolio using the Compound dashboard in DeFi S
      • How to earn and withdraw COMP tokens
      • How can I tell how much interest I will earn or have already earned using Compound?
    • Fluid
      • Intro to Fluid
      • Liquidity Layer
      • Lend Protocol
      • Vault Protocol
      • DEX Protocol
      • DeFi Saver-supported Features
    • Liquity
      • Liquity Dashboard walkthrough
      • What is a Trove?
      • Liquity Redemptions
      • How to stay protected from redemption risk in Liquity
      • How do Liquidations work in Liquity?
      • What are the key benefits of Liquity?
      • Does Liquity charge any fees?
      • What is a Stability Pool?
      • What is the "Debt-in-Front" value in Liquity?
      • How can I earn LQTY tokens?
      • Why do I need a Smart wallet for Liquity?
    • Liquity V2
      • Intro to BOLD
      • Borrowing Rates and Redemptions
      • Collateral Ratios
      • Troves as NFTs
      • Revenue Distribution and Forkanomics
      • LQTY Staking
      • DeFi Saver-supported Features
    • Chicken Bonds
    • MakerDAO
      • Managing the Dashboard
      • Automation options for MakerDAO
      • What is a CDP and why should I be interested in opening one?
      • How do Boost & Repay work?
      • How does CDP Automation work?
      • Can I transfer my MakerDAO Vault to a different address?
      • Can I manage MakerDAO Vaults created using other apps at DeFi Saver?
    • Morpho Blue
    • Reflexer
      • Reflexer Dashboard walkthrough
      • How can I start borrowing or leveraging using Reflexer?
      • What makes Reflexer unique?
    • Spark
      • Spark Dashboard walkthrough
      • What is sDAI?
      • Liquidations in Spark
  • Legal
    • Terms and Conditions
Powered by GitBook
On this page
  1. Protocols
  2. CurveUSD

What is LLAMMA in CurveUSD?

PreviousCurveUSDNextHow do you create a loan in CurveUSD protocol?

Last updated 1 year ago

TL;DR: LLAMMA is an AMM for continuous (de)liquidation, intentionally creating arbitrage spaces as incentives for arbitrage bots to rebalance the collateral assets in the pool. Bots are essentially performing partial (aka soft) liquidations that work both ways.

LLAMMA is a new type of AMM introduced by the Curve team that incentivizes arbitrage bots to liquidate the collateral in the active band (price range) LINK by increasing (or decreasing) the P_AMM price (the price of collateral in the pool) faster than the P_ORACLE (market price).

Let's examine both scenarios:

Case 1: Oracle price decrease (P_AMM < P_ORACLE). If the oracle price of the collateral starts to fall, the algorithm will make the AMM price decrease faster, creating an arbitrage opportunity to deposit $crvUSD into the pool and withdraw the collateral asset (e.g. ETH). This results in collateral being liquidated to $crvUSD.

Case 2: Oracle price increase (P_AMM > P_ORACLE). If the oracle price of the collateral starts to rise, the algorithm will make the AMM price increase faster, creating an arbitrage opportunity to deposit ETH into the pool and withdraw $crvUSD. This results in collateral being shifted back to ETH.

Keep in mind that there is no debt repayment during the process of soft liquidation. The collateral asset is just rebalanced by shifting it from a volatile asset (e.g. ETH) to the stable asset $crvUSD, and vice versa. The more non-volatile collateral, the healthier the position.