cache + updateState + get health factor
_calculateDebt
validateLiquidationCall
getConfigurationData
calculateAvailableCollateralToLiquidate
setBorrowing
setUsingAsCollateral
_burnDebtTokens
updateInterestRates
updateIsolatedDebtIfIsolated
liquidate/burn collateral
liquidation fee
Wrap-up
get liquidation bonus of collateral from its ReserveData struct: liquidationBonus
liquidationBonus
get oracle addresses for both debt and collateral assets:
collateralPriceSource, debtPriceSource
collateralPriceSource
debtPriceSource
If user is in some E-mode category
get eModePriceSource -> if defined, will overwrite debtPriceSource that was obtained earlier
eModePriceSource
If user's e-mode and collateral e-mode categories match:
overwrite liquidationBonus with the e-mode's liquidation bonus
if eModePriceSource is defined, overwrite collateralPriceSource that was obtained earlier
Last updated 2 years ago