You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LiquidationLogic.executeLiquidationCall function is not taking into account the liquidationProtocolFee in the condition for setting to false the flag of useAsCollateral
// If the collateral being liquidated is equal to the user balance,
// we set the currency as not being used as collateral anymore
if (vars.actualCollateralToLiquidate + vars.liquidationProtocolFeeAmount == vars.userCollateralBalance) {
userConfig.setUsingAsCollateral(collateralReserve.id, false);
emit ReserveUsedAsCollateralDisabled(params.collateralAsset, params.user);
}
The
LiquidationLogic.executeLiquidationCall
function is not taking into account theliquidationProtocolFee
in the condition for setting to false the flag ofuseAsCollateral
Kudos to @GopherJ for this! #740
The text was updated successfully, but these errors were encountered: