🔋
Ionic Docs
  • Welcome to Ionic
  • Ionic pools
  • Yield-Bearing Vaults (ERC-4626)
  • Partner & Pool Operator Documents
    • Overview
    • Ionic For Partners
      • Long-tail and exotic asset support
      • Liquid Staking Tokens
      • Forex Markets & Non-US Centric DeFi
      • Delta-Neutral Strategies
      • AMM LP Pools
    • Advanced Features
    • Getting Started
    • Pool Customisations
      • The Markets
      • The Yield
      • Pool Parameters
  • Security
    • Security Outline
      • Oracle Security
      • Yield Bearing 4626 Strategy Risk Scoring
      • Liquidity Monitoring
    • Audit
  • Developers
    • Ionic SDK
      • Chain Configuration and Addresses
      • Data Fetching & Pool Introspection
      • Funding Operations
      • Advanced Use-Cases
      • Liquidations
      • Putting It All Together
      • API Reference, Typing & Interfaces
    • Deployed Contract Addresses
  • Support
    • Media Kit
    • DeFi Terms Glossary
    • FAQ
  • Documents
    • Privacy Policy
    • Terms and Conditions
Powered by GitBook
On this page
  • Gathering Liquidations
  • liquidatePositions
  1. Developers
  2. Ionic SDK

Liquidations

Liquidating positions is a core aspect of any borrowing and lending protocol. We offer functionality to fetch potential liquidations, as we as to actually run the liquidations.

PreviousAdvanced Use-CasesNextPutting It All Together

Last updated 1 year ago

While we run our own bots for ensuring that liquidations occur smoothly, users are also incentivised to the same, as every liquidation might be a healthy source of profit, since each liquidation comes with a .

The source code for the liquidation bots we run is fully open-sourced, and it leverages heavily the SDK. Users are welcomed to fork it and run their own liquidation bots.

Check it out in our .

Gathering Liquidations

getPotentialLiquidations

Arguments:

  • signer: ethers.Wallet: a wallet from which to run the liquidations

  • supportedComptrollers: Array = []: a list of supported pool addresses. If empty, all pools will be checked

  • maxHealthFactor: BigNumber = utils.parseEther("1"): filter positions by their health factors

  • configOverrides?: : configuration for the supported input and output currencies for the liquidation and other parameters

Returns:

  • Promise<Array<>>

liquidatePositions

Arguments:

  • positions: Array<>

Returns:

  • null

liquidation incentive
monorepo
ChainLiquidationConfig
LiquidatablePool
LiquidatablePool