Liquidation process walk through
This page provides a more detailed explanation of Fathom's FXD liquidation process
function liquidate(
bytes32 _collateralPoolId, // the collateralPoolId of the position that is to be liquidated
address _positionAddress, // the positionHandler's address of a position that is to be liquidated
uint256 _debtShareToBeLiquidated, // a param to set how much of debtShare will be liquidated from a position
uint256 _maxDebtShareToBeLiquidated, // the ceiling for the debtShare that can be liquidated
address _collateralRecipient, // the recipient of the collateral once the liquidation process ends
bytes calldata _data // is used when the liquidation process includes FlashLendingCallee
) external;Last updated