update lending contract
This commit is contained in:
@@ -614,15 +614,16 @@
|
||||
│ 计划: 借款 1,000,000 USDC │
|
||||
└────────────────────────────┬────────────────────────────────────────┘
|
||||
│
|
||||
│ 1. 调用 borrow(1000000e6)
|
||||
│ 1. 调用 withdraw(1000000e6) 进行借款
|
||||
▼
|
||||
┌─────────────────────────────────────────────────────────────────────┐
|
||||
│ Lending.borrow() │
|
||||
│ Lending.withdraw() │
|
||||
│ ───────────────────────────────────────────────────────────────── │
|
||||
│ function borrow(uint256 amount) │
|
||||
│ function withdraw(uint256 amount) │
|
||||
│ • 非重入保护: nonReentrant │
|
||||
│ • 暂停检查: whenNotPaused │
|
||||
│ • 参数: 1,000,000 USDC (1000000e6) │
|
||||
│ • 注: withdraw 会自动处理借款逻辑 │
|
||||
└────────────────────────────┬────────────────────────────────────────┘
|
||||
│
|
||||
│ 2. 计提利息
|
||||
@@ -1824,7 +1825,6 @@ Configuration {
|
||||
|
||||
// 清算参数
|
||||
storeFrontPriceFactor: 0.95e18 // 清算购买折扣 5%
|
||||
trackingIndexScale: 1e15 // 追踪索引比例
|
||||
baseBorrowMin: 100e6 // 最小借款 100 USDC
|
||||
targetReserves: 5000000e6 // 目标储备 500万
|
||||
|
||||
|
||||
Reference in New Issue
Block a user