@morpho-org/blue-liquidation-sdk
v1.2.0
Published
A package containing all useful utilities to help build efficient and competitive liquidation bots on Morpho Blue.
Downloads
18
Keywords
Readme
@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:
- Fetches liquidatable positions from the API
- Finds the largest available liquidity for a swap of the collateral for the debt via 1inch
- Redeems collateral MetaMorpho shares for the underlying assets when applicable
- Only submit profitable liquidations (wrt to the gas cost & the swap's slippage)