# Minting / Borrowing

{% hint style="warning" %}
**This documentation is a work in progress!**
{% endhint %}

{% hint style="info" %}
Minting will decrease your [health factor](/kopio-docs/fundamentals/glossary.md).
{% endhint %}

The term minting comes from the ERC-20 standard referring to the process of increasing the overall supply of the token. [Kopio Assets](/kopio-docs/fundamentals/kresko-assets.md) are minted when borrowed.

The tokens are minted to the account requesting the debt as balance in the Kopio Asset contract. It is separately recorded for the user on the protocol as debt.

After minting, users are free to transact as they wish. In order to [withdraw](/kopio-docs/fundamentals/cdps/icdp/withdraw.md) the collateral backing the minted assets the user must [repay](/kopio-docs/fundamentals/cdps/icdp/burn-repay.md) the tokens by burning, removing them from circulation.

If the value of the Kopio Asset increases or decreases, so does the [debt value](/kopio-docs/fundamentals/cdps.md#debt-value) and the [collateral value](/kopio-docs/fundamentals/cdps.md#collateral-deposit-value) required to back it. When a borrowed asset is sold on eg. the [SCDP](/kopio-docs/fundamentals/cdps/scdp.md) it translates to a [**short position**](/kopio-docs/fundamentals/glossary.md)**.**

{% hint style="info" %}
Each mint will emit an event with relevant information

```solidity
/**
* @notice Emitted when an account mints a Kopio asset.
* @param account The address of the account minting the Kopio asset.
* @param kopioAsset The address of the Kopio asset.
* @param amount The amount of the KopioAsset that was minted.
* @param receiver Receiver of the minted assets.
*/
event KopioAssetMinted(address indexed account, address indexed kopioAsset, uint256 amount, address receiver);
```

{% endhint %}

## Conditions Preventing Minting

### Supply Limit

Each Kopio Asset has a configurable limit on it's total supply to allow controlled growth and to prevent malicious acts on existing liquidity.

### **Market Status**

If the liquidity for a [underlying asset](/kopio-docs/fundamentals/glossary.md) is primarily on a market that is closed the protocol will not allow minting of new assets. This is automatic and the minting will open up when the market is open again.

### Minimum Debt Value

Protocol has a USD-denominated lower limit that forbids tiny debt positions. This prevents spamming and ensures no dust positions form which could get annoying for the users themselves and troublesome for liquidators to process.

### Safety State: Pause

In an emergency situation the [Safety Council](/kopio-docs/fundamentals/glossary.md) multisig can pause the minting of a Kopio Asset to prevent possible negative impact it would have.


---

# 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://kopio.gitbook.io/kopio-docs/fundamentals/cdps/icdp/minting-borrowing.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.
