# Backstop AMM (BAMM)

{% embed url="<https://www.youtube.com/watch?v=LBaRFiIrxvs&ab_channel=Bankless>" %} <mark style="color:blue;">**Yaron Velner presents B.Protocol's liquidation engine (v1)**</mark>
{% endembed %}

## Intro

B.Protocol provides a Backstop AMM (BAMM) DeFi primitive, providing better stability, and unlocking higher capital efficiency in the DeFi ecosystem. By democratizing liquidation systems we shift MEV and bots' profits to the community.&#x20;

**High-Level System Design**

B.Protocol pools users’ funds into Backstop pools. This liquidity is used for liquidations as they happen on integrated platforms. While the Backstop funds are sitting idle in the pools waiting for liquidation to occur, they gain either interest rates or liquidity mining rewards, or both, generating passive revenue for the Backstoppers - users who provide liquidity to the Backstop pools.

Once a liquidation takes place, the Backstop AMM (B.AMM) smart contract pulls the needed funds from the backstop to facilitate the liquidation and automatically puts the seized collateral for sale. Once sold, the return is deposited back to the backstop pool, and profits are accrued.

![B.Protocol's Backstop AMM High-Level System Design (B.AMM)](/files/Si59vCjsdopZp4A4VdjM)

Here's a (recap of the) call we had with the Liquity team after the launch of B.Protocol v2 integration with Liquity, summarizing the benefits of using the B.AMM for automatic rebalancing after liquidations (the recording of the full call can be watched here - <https://youtu.be/t81WxsStfD4?t=52>) -&#x20;

{% embed url="<https://www.youtube.com/watch?ab_channel=B.Protocol&v=S29A5UindjQ>" %}

An interview with CRE8R DAO covering the inception and making of B.Protocol, liquidations in DeFi, the benefits of using B.Protocol, and more -

{% embed url="<https://youtu.be/4eVHWk78c9Q?t=928>" %}

For a more updated review of B.Protocol v2 and the User-Based Backstop, you can watch this interview of Eitan Katchka, Head of Growth at B.Protocol on the FTM Alerts show.&#x20;

{% embed url="<https://youtu.be/LAzHAu5AKfQ?t=58>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bprotocol.org/master-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
