Make a liquidation bot!

GLOW Protocol Liquidation Guide

Overview

GLOW Protocol uses the same liquidation system as Gearbox Protocol. When glow accounts become unhealthy (Health Factor < 1.0), they can be liquidated by anyone to maintain protocol stability and earn rewards.

When Can an Account Be Liquidated?

A glow account becomes eligible for liquidation when:

  • Health Factor < 1.0 - The account's collateral value falls below the liquidation threshold

Health Factor Calculation

Health Factor = (Total Collateral Value × Liquidation Threshold) / Total Debt

Liquidation Function

function liquidateCreditAccount(
    address creditAccount,
    address to,
    MultiCall[] calldata calls
) external payable;
Parameter
Description

creditAccount

The address of the glow account to liquidate

to

Address to transfer leftover underlying tokens after liquidation

calls

Array of MultiCall structs to execute during liquidation

Finding Liquidatable Accounts

The DataCompressor contract provides efficient bulk queries to find liquidatable accounts:

Using CreditManager Directly

JavaScript Implementation

Basic Liquidation Strategies

Strategy 1: Convert Collateral to Underlying

Strategy 2: Add Underlying (+ Withdraw Assets, not always needed)

Contract Addresses (PulseChain)

Core Contracts

Basic Liquidation Bot

Important Notes

  • Test First: Always test on testnet before mainnet

  • Account for Slippage: Add 2-5% buffer for DEX trades

  • Monitor Gas: Ensure profits exceed transaction costs

  • Competition: Use higher gas prices for time-sensitive liquidations

  • Risk Management: Start small and understand the mechanics

Resources

  • GLOW Dashboard: Monitor liquidatable accounts in real-time

  • Documentation: https://nexion-1.gitbook.io/nexion/glow/glow-protocol

  • PulseChain Explorer: https://otter.pulsechain.com

If you need more help speak to our dev in telegram http://t.me/Lefkk or join our group @NexionPulse

Last updated