File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
contracts/protocol/libraries/logic Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {ReserveLogic} from './ReserveLogic.sol';
11
11
import {ValidationLogic} from './ValidationLogic.sol ' ;
12
12
import {GenericLogic} from './GenericLogic.sol ' ;
13
13
import {IsolationModeLogic} from './IsolationModeLogic.sol ' ;
14
+ import {EModeLogic} from './EModeLogic.sol ' ;
14
15
import {UserConfiguration} from '../../libraries/configuration/UserConfiguration.sol ' ;
15
16
import {ReserveConfiguration} from '../../libraries/configuration/ReserveConfiguration.sol ' ;
16
17
import {IAToken} from '../../../interfaces/IAToken.sol ' ;
@@ -164,7 +165,12 @@ library LiquidationLogic {
164
165
if (params.userEModeCategory != 0 ) {
165
166
address eModePriceSource = eModeCategories[params.userEModeCategory].priceSource;
166
167
167
- if (params.userEModeCategory == collateralReserve.configuration.getEModeCategory ()) {
168
+ if (
169
+ EModeLogic.isInEModeCategory (
170
+ params.userEModeCategory,
171
+ collateralReserve.configuration.getEModeCategory ()
172
+ )
173
+ ) {
168
174
vars.liquidationBonus = eModeCategories[params.userEModeCategory].liquidationBonus;
169
175
170
176
if (eModePriceSource != address (0 )) {
You can’t perform that action at this time.
0 commit comments