update lending contract
This commit is contained in:
@@ -68,8 +68,7 @@ contract Configurator is
|
||||
|
||||
// 防止修改不可变参数
|
||||
if (oldConfiguration.baseToken != address(0) &&
|
||||
(oldConfiguration.baseToken != newConfiguration.baseToken ||
|
||||
oldConfiguration.trackingIndexScale != newConfiguration.trackingIndexScale))
|
||||
oldConfiguration.baseToken != newConfiguration.baseToken)
|
||||
revert ConfigurationAlreadyExists();
|
||||
|
||||
// 删除旧的资产配置
|
||||
@@ -87,7 +86,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