diff --git a/liquidations/navi/index.ts b/liquidations/navi/index.ts new file mode 100644 index 0000000000..634a114256 --- /dev/null +++ b/liquidations/navi/index.ts @@ -0,0 +1,22 @@ +import { Liq } from "../utils/types"; +import axios from "axios"; + +const liquidations = async () => { + const info = await axios.get("https://api-defi.naviprotocol.io/estimateLiquidateUser"); + + return info.data.map( + ({ owner, liqPrice, collateral, collateralAmount }) => + ({ + owner, + liqPrice, + collateral, + collateralAmount, + } as Liq) + ); +}; + +module.exports = { + sui: { + liquidations, + }, +};