# Withdraw

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

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

At some point you might want the deposited collateral back to your wallet. This is done by performing a withdraw from the protocol.

On withdrawals, the protocol performs checks on the user debt. This prevents withdrawals that would cause the [CDP](/kopio-docs/fundamentals/cdps.md)'s collateral ratio to get under the [MCR](/kopio-docs/fundamentals/cdps.md#minimum-collateralization-ratio). If the checks pass, protocol reduces the recorded collateral deposit amount for the user and transfer the amount of tokens requested to the user.

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

```solidity
/**
* @notice Emitted when an account withdraws collateral.
* @param account The address of the account withdrawing collateral.
* @param collateralAsset The address of the collateral asset.
* @param amount The amount of the collateral asset that was withdrawn.
*/
event CollateralWithdrawn(address indexed account, address indexed collateralAsset, uint256 indexed amount);
```

{% endhint %}

## Conditions Preventing Withdrawals

### Insufficient Collateral

If an account has existing debt, there is a [minimum collateral value](/kopio-docs/fundamentals/cdps.md#minimum-collateralization-ratio) required to back it up.

If accounts collateral value is *smaller* than the minimum collateral value, the withdrawal is not permitted.

### Safety State: Pause

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

### Kopio Asset Minimum Collateral Amount

For [Kopio Asset](/kopio-docs/fundamentals/kresko-assets.md#overview) [collaterals](/kopio-docs/fundamentals/collateral-assets.md#overview) the minimum amount of collateral is 1e12 or 0.000001. So if you withdrawal ends up leaving dust lower than this amount, the transaction will revert.


---

# 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/withdraw.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.
