Liquidation Cost Function

Formula

The liquidation cost function is a mathematical formula that quantifies the total expenses incurred during the automatic liquidation of an undercollateralized position. This function typically incorporates various components, including network transaction fees (gas), slippage costs from market execution, and any protocol-specific penalties or liquidation bonuses. Its precise formulation varies across different decentralized finance (DeFi) protocols and centralized exchanges. Understanding this formula is critical for both liquidators and borrowers.