open-index/open-npm huggingface dataset:
npm package: @morpho-org/blue-liquidation-sdk
Description: A package containing all useful utilities to help build efficient and competitive liquidation bots on Morpho Blue.
Author: Morpho Association
Latest version: 1.2.0

# @morpho-org/blue-liquidation-sdk

A package containing all useful utilities to help build efficient and competitive liquidation bots on Morpho Blue.

## Getting Started

```bash
npm install @morpho-org/blue-liquidation-sdk
```

```bash
yarn add @morpho-org/blue-liquidation-sdk
```

---

## Examples

An example liquidation bot currently used in production is available under [examples/](./examples/).

This bot, provided a list of whitelisted markets to monitor, automatically:

1. Fetches liquidatable positions from the API
2. Finds the largest available liquidity for a swap of the collateral for the debt via 1inch
3. Redeems collateral MetaMorpho shares for the underlying assets when applicable
4. Only submit profitable liquidations (wrt to the gas cost & the swap's slippage)