diff --git a/contracts/protocol/pool/PoolConfigurator.sol b/contracts/protocol/pool/PoolConfigurator.sol index 5e75ad168..c91664d54 100644 --- a/contracts/protocol/pool/PoolConfigurator.sol +++ b/contracts/protocol/pool/PoolConfigurator.sol @@ -275,7 +275,7 @@ contract PoolConfigurator is VersionedInitializable, IPoolConfigurator { override onlyRiskOrPoolAdmins { - require(fee <= PercentageMath.PERCENTAGE_FACTOR, Errors.INVALID_LIQUIDATION_PROTOCOL_FEE); + require(newFee <= PercentageMath.PERCENTAGE_FACTOR, Errors.INVALID_LIQUIDATION_PROTOCOL_FEE); DataTypes.ReserveConfigurationMap memory currentConfig = _pool.getConfiguration(asset); uint256 oldFee = currentConfig.getLiquidationProtocolFee(); currentConfig.setLiquidationProtocolFee(newFee);