1.2.0 • Published 1 year ago

@morpho-org/blue-liquidation-sdk v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

@morpho-org/blue-liquidation-sdk

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

Getting Started

npm install @morpho-org/blue-liquidation-sdk
yarn add @morpho-org/blue-liquidation-sdk

Examples

An example liquidation bot currently used in production is available under 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)