update lending contract
This commit is contained in:
@@ -50,8 +50,7 @@ contract Configurator is
|
||||
Configuration memory oldConfiguration = configuratorParams[lendingProxy];
|
||||
|
||||
if (oldConfiguration.baseToken != address(0) &&
|
||||
(oldConfiguration.baseToken != newConfiguration.baseToken ||
|
||||
oldConfiguration.trackingIndexScale != newConfiguration.trackingIndexScale))
|
||||
oldConfiguration.baseToken != newConfiguration.baseToken)
|
||||
revert ConfigurationAlreadyExists();
|
||||
|
||||
delete configuratorParams[lendingProxy];
|
||||
@@ -67,7 +66,6 @@ contract Configurator is
|
||||
configuratorParams[lendingProxy].borrowPerYearInterestRateSlopeHigh = newConfiguration.borrowPerYearInterestRateSlopeHigh;
|
||||
configuratorParams[lendingProxy].borrowPerYearInterestRateBase = newConfiguration.borrowPerYearInterestRateBase;
|
||||
configuratorParams[lendingProxy].storeFrontPriceFactor = newConfiguration.storeFrontPriceFactor;
|
||||
configuratorParams[lendingProxy].trackingIndexScale = newConfiguration.trackingIndexScale;
|
||||
configuratorParams[lendingProxy].baseBorrowMin = newConfiguration.baseBorrowMin;
|
||||
configuratorParams[lendingProxy].targetReserves = newConfiguration.targetReserves;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user