Minting crvUSD and the LLAMMA liquidation process
Curve Finance enables crvUSD minting through collateralized positions with high loan-to-value ratios, such as 86% for wBTC. The LLAMMA mechanism utilizes price bands and a special-purpose AMM to perform gradual rebalancing instead of sudden liquidations.
Minting crvUSD with collateral
Users mint crvUSD using a collateralized-debt-position design. Borrowers lock volatile crypto assets such as WETH, wstETH, WBTC, cbBTC, tBTC, weETH, or sfrxETH into Curve smart contracts to borrow the dollar-pegged stablecoin. The protocol supports high loan-to-value ratios. For example, a 35 wBTC deposit allows a user to borrow crvUSD at 86% LTV, which enables leverage of 7x to 9x. The protocol manages these positions through smart contracts that ensure the stablecoin remains fully backed. When borrowers close their position and reclaim collateral, the protocol burns the crvUSD. The current market includes a wide variety of assets like liquid staked derivatives of ETH, specifically wstETH and weETH, to provide diverse collateral options.
The LLAMMA liquidation mechanism
LLAMMA replaces traditional, sudden liquidations with a gradual rebalancing process. Instead of a single trigger point, LLAMMA divides collateral into multiple price bands. As the market price of the collateral falls through these bands, the special-purpose AMM converts portions of the deposit into crvUSD. If the price of the collateral recovers, the system uses the crvUSD to repurchase the original asset. This "de-liquidation" process allows the position to rebalance back toward the original collateral. You should understand that the internal token balances within these bands move in the opposite direction of Uniswap V3 pools. In Uniswap V3, the LP holds only the stablecoin if the price stays above the upper limit, but LLAMMA maintains the full collateral position when the price exceeds the upper band. If the price of the collateral falls within the range between the lower bound and the upper bound, the borrower enters soft-liquidation mode where the LP position consists of a composition of both the volatile asset and the stablecoin. During soft-liquidation, the system prevents borrowers from adding more collateral or withdrawing existing funds. To exit this mode, borrowers must repay the loan, self-liquidate using a flash loan, add more collateral, or wait for a full liquidation. The AMM design ensures that changes in external price data lead to larger deviations in the price in the LLAMMA Pool. This design attracts arbitrageurs to perform partial liquidations or de-liquidations of the pool’s assets. LLAMMA provides a more favorable liquidation experience than traditional platforms.
Peg stability and risk
The system maintains the peg through PegKeeper contracts and a dynamic borrow rate. PegKeepers manage the peg by interacting with crvUSD pools. If the crvUSD price is above $1, the PegKeeper mints new crvUSD and deposits it into the pools. If the price is less than $1, the PegKeeper withdraws crvUSD from the pools and burns it. The dynamic borrow rate implements an exponential increase in interest as the PegKeeper exhausts its balance. LLAMMA pulls price data from Uniswap Twap, Chainlink, and Tricrypto, then applies an exponential moving average to reduce volatility. The system relies on the difference between the external oracle price and the internal AMM price to attract arbitrageurs. When the external oracle price declines, the internal AMM price declines faster, which allows arbitrageurs to deposit crvUSD to swap out ETH collateral. Conversely, when the external oracle price increases, the internal AMM price increases faster and provides an opportunity for arbitrageurs to deposit ETH into the LLAMMA pool to swap for more crvUSD.
| Parameter | Detail |
|---|---|
| Supported Collateral | WETH, wstETH, WBTC, cbBTC, tBTC, weETH, sfrxETH |
| Maximum LTV Example | 86% for 35 wBTC |
| Oracle Price Sources | Uniswap Twap, Chainlink, Tricrypto |
| Peg Maintenance | PegKeeper and Dynamic Borrow Rate |
Constant rebalancing leaks value through trading fees and arbitrage, which causes a loan that rides the price down and back up to return less collateral than it started with. A sharp enough crash still results in a hard liquidation. Which specific collateral type will remain most resilient during extreme market stress?
Join the discussion