# 协议扩展

Moolah 扩展了 Morpho Blue，增加了为生产风险管理和产品灵活性设计的协议级控制。

## 最小贷款限制 (`minLoan`)

每个市场可以强制执行最小借款金额。

* 导致债务低于 `minLoan` 的借款交易将被回滚。
* 部分还款交易如果剩余债务低于 `minLoan` 也将被回滚。

这避免了清算成本高昂的微小债务位置，并可能增加坏账风险。

## 重入保护

状态改变路径应用 `nonReentrant` 防护，包括：

* `supply()`
* `borrow()`
* `repay()`
* `withdrawCollateral()`
* `liquidate()`

## 可升级性

Moolah 被部署为一个可升级系统。

* 升级权限由 `DEFAULT_ADMIN_ROLE` 控制。
* 执行由 TimeLock 延迟。
* TimeLock 提供一天的审查窗口，之后升级才生效。

## Oracle 架构

Moolah oracle 提供一个带有 8 位小数价格规模（`1e8`）的 `peek()` 接口。

### 弹性 Oracle

有关弹性/多源 Oracle 设计，请参见：

* [多 Oracle](/zh-cn/kai-fa-zhe-zhuan-qu/collateral-debt-position/multi-oracle.md)

### PT 线性折扣 Oracle

PT 代币在到期前使用基于底层资产价格的线性折扣模型。

* 典型用例：基于 PT 的抵押市场，如 `PT-USDe / USD1`
* 折扣公式：

```
discount = baseDiscount x (timeToMaturity / totalDuration)
```

到期时，折扣变为零，oracle 返回完整的底层价格。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bsc.lista.org/zh-cn/kai-fa-zhe-zhuan-qu/lista-lending/protocol-extensions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
