update lending contract

This commit is contained in:
2025-12-29 15:30:10 +08:00
parent 6fe3fa93b3
commit b1b3b07b21
30 changed files with 53 additions and 101 deletions

View File

@@ -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;