Project Overview

Description

Lending-Liquidating AMM Algorithm.

LLAMMA replaces traditional liquidations with a continuous liquidation/deliquidation process that converts between collateral (such as Ethereum) and stablecoin (such as USD) through a series of price bands. The goal is to prevent significant losses for borrowers even when the price of the collateral drops below the liquidation threshold.

The stablecoin is essentially a Collateralized Debt Position (CDP), where users can borrow the stablecoin against a volatile collateral, such as ETH.

Evolution (History → curren state)

Curve Stablecoin model, released End of 2022

<aside> 💡 Relevant Links

</aside>

Overall Schematic

Screenshot 2023-05-06 at 4.53.36 PM.png

What Worked Well

Curve is leader in stablecoin liquidity provisioning

DefiLlama

What Issues Arose

The AMM is constantly selling at a loss to reduce or increase exposure

Bonding Curve Mechanics & Design Parameters:

Description:

Overview:

Algorithmic Stablecoin Lending/Liquidating Curve

Type: LLAMMA

Shape: Multi-Dimensional / Dynamic

Curve custom features

Oracle: LLAMMA uses an external price oracle to maintain the prices in each band by adiabatic shifting the tokens between collateral (e.g., ETH) and stablecoin (e.g., USD) while preserving the constant-product invariant.

Automatic Stabilizer: the PegKeeper contract is allowed to mint uncollateralized stablecoin and (only!) deposit it to the stableswap pool single-sided in such a way that the final price after this is still no less than 1.

Interest Rate: (r) sets the interest rate, incentivize borrowing or returning loans based on the market conditions

Pricing algorithm

Variables**:**