update lending contract

This commit is contained in:
2025-12-22 13:25:06 +08:00
parent 95cb192fed
commit 682552bfe6
18 changed files with 41 additions and 41 deletions

View File

@@ -10,14 +10,14 @@ contract LendingConfiguration {
address asset; // 资产地址
address priceFeed; // 价格预言机地址
uint8 decimals; // 小数位数
uint64 borrowCollateralFactor; // 借款抵押率 (例: 0.8e18 = 80%)
uint64 liquidateCollateralFactor; // 清算抵押率 (例: 0.85e18 = 85%)
uint64 liquidationFactor; // 清算激励 (例: 1.05e18 = 5%折扣)
uint64 borrowCollateralFactor; // 借款抵押率
uint64 liquidateCollateralFactor; // 清算抵押率
uint64 liquidationFactor; // 清算折扣
uint128 supplyCap; // 供应上限
}
struct Configuration {
address baseToken; // 基础资产(借出的资产,如 USDC
address baseToken; // 基础资产
address baseTokenPriceFeed; // 基础资产价格预言机
// 利率模型参数