Steer Protocol
Build

Liquidation Bot Integration

Connect liquidation inventory discovery and execution to deployed CDP markets.

Liquidation automation is an integration between offchain inventory discovery, market risk state, and the deployed liquidation controller. A bot should be boring in production: discover, verify, simulate, submit, and record.

Bot Loop

Quote Server Endpoints

  • POST /quote/liquidation returns a liquidation quote for a specific request.
  • POST /quote/liquidations returns liquidation inventory.

Integration Rules

  • Read the current manifest before each deployment target change.
  • Keep a per-market retry ledger so a failing position does not block all other candidates.
  • Simulate before submission, even when inventory is freshly returned.
  • Treat oracle, risk, and pause changes as loop-invalidating events.

Deployment Dependency

Native stablecoin markets may need liquidation support backfilled with:

make deploy-liquidation-controller MANIFEST=deployments/manifests/11155111-native-stablecoin-registry-v3.json

Source Files

  • quote-server/src/liquidations.ts
  • quote-server/src/http.ts
  • sdk/src/liquidation.ts
  • sdk/src/liquidationHookData.ts
  • script/production/DeployLiquidationController.s.sol

On this page