This function shows how to calculate min collateral amount value. when liquidator has not enough of loan asset to cover the full loan.
amount of loan asset liquidator want to transfer.
max liquidation amount value calculated.
max collateral reward amount calculated.
minCollateralAmount value for safe liquidation.
This function shows how to calculate min collateral amount value. when liquidator has not enough of loan asset to cover the full loan.