> For the complete documentation index, see [llms.txt](https://credit-guild.gitbook.io/introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://credit-guild.gitbook.io/introduction/borrowing/lending-terms.md).

# Lending Terms

Borrowers on Credit v1 can pick among a set of **lending terms**. This is a data structure with all the parameters for a loan, including:

```
address collateralToken
uint256 maxDebtPerCollateralToken
uint256 interestRate
uint256 maxDelayBetweenPartialRepay
uint256 minPartialRepayPercent
uint256 openingFee
uint256 hardCap
```

Some of these are self explanatory. Note that the max debt per collateral token, or collateral ratio, is in unit terms and does not reference any external price feed. The opening fee is added to the user's debt balance. The hard cap is a maximum debt ceiling regardless of how much capital is voting for that term in a gauge.

The `interestRate` and `hardCap` can be adjusted through optimistic governance, the other parameters are fixed upon lending term creation. The team is in the process of developing a dedicated governance flow for interest rate adjustment so that it can proceed faster than the 1-week timeline for "full" governance proposals. This mechanism will have two days for voting and a one day timelock, similar to onboarding.

The `maxDelayBetweenPartialRepay` and the `minPartialRepayPercent` are not relevant for most loans are useful for certain special loans, consider the following example of a lending term that has a plugin with the DAI Savings Rate so the collateral earns yield via rebasing:

```
collateralToken: DAI
maxDebtPerCollateralToken: 0.99e18
interestRate: 0.05e18 (5%)
maxDelayBetweenPartialRepay: 7.884e+6 (seconds, equals three months)
minPartialRepayPercent: 0.02e18 (2%)
openingFee: 0.0005e18 (5 bips)
hardCap: 1e26 ($100m)
```

This setup allows 1:1 minting with a small opening fee. In the event that the DAI Savings Rate is lower than the interest rate on the loan, the periodic repayment forces borrowers to realize their losses before the loan's 1% collateralization is worn through, without requiring any intervention on the part of GUILD holders to call the loan, or an offboard-onboard cycle to reactivate the lending term the next time rates flip. In general, this functionality is useful for like-kind rebasing assets.

When a borrower opens a loan, their collateral asset is transfered to the lending term they are using. Upon repayment or when the loan is called, the interest due is calculated and added to the debt amount.

If governance [offboards a lending term](/introduction/governance.md), outstanding loans under that term may be called. Once called, the collateral for the loan is sent to the auction house. There is no liquidation penalty. The standard auction house uses a Dutch auction model where the amount of collateral offered to repay a borrower's full debt increases over time. If this fails, a gradually increasing discount is applied to the debt to attempt a partial recovery.

There is a tradeoff where a longer auction means less value leaked to bidders, but more risk of bad debt in the case of a volatile asset. At launch the protocol will have only a single auction house. Either multiple auction houses, or integrating auction duration into lending terms, is one of the upgrades the DAO can consider in the period following launch. In the meantime, the value leaked will still be substantially less than flat-penalty liquidation models as are common today.

<figure><img src="/files/WAMFipKw98LD9k7BLBhv" alt=""><figcaption><p>Lifecycle of a loan</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://credit-guild.gitbook.io/introduction/borrowing/lending-terms.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.
