> For the complete documentation index, see [llms.txt](https://kresko.gitbook.io/kresko-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kresko.gitbook.io/kresko-docs/fundamentals/cdps/icdp/deposit.md).

# Deposit

Adding collateral to an ICDP

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

{% hint style="success" %}
Depositing collateral will increase your [health factor](/kresko-docs/fundamentals/glossary.md).
{% endhint %}

In order to [mint](/kresko-docs/fundamentals/cdps/icdp/minting-borrowing.md) any [Kresko Asset](/kresko-docs/fundamentals/kresko-assets.md), account must have collateral value to back them. The value is gained by depositing any of the whitelisted [Collateral Assets](/kresko-docs/fundamentals/collateral-assets.md) into the protocol.&#x20;

This requires the user to give [Approval](/kresko-docs/fundamentals/glossary.md) for the protocol to transfer the tokens from the users wallet into the main protocol contract where they reside until the user [withdraws](/kresko-docs/fundamentals/cdps/icdp/withdraw.md) them or gets [liquidated](/kresko-docs/fundamentals/cdps/icdp/liquidations.md).

Unlike in minting, [burning](/kresko-docs/fundamentals/cdps/icdp/burn-repay.md) or withdrawals - *anyone* can deposit collateral for another account. Note that this is equal to **donation** if you are **not** controlling the account receiving the collateral.

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

```solidity
/**
 * @notice Emitted when an account deposits collateral.
 * @param account The address of the account depositing collateral.
 * @param collateralAsset The address of the collateral asset.
 * @param amount The amount of the collateral asset that was deposited.
 */
event CollateralDeposited(address indexed account, address indexed collateralAsset, uint256 indexed amount);
```

{% endhint %}

## Conditions Preventing Depositing

### Safety State: Pause

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

### Kresko Asset Minimum Collateral Amount

For [Kresko Asset](/kresko-docs/fundamentals/kresko-assets.md#overview) [collaterals](/kresko-docs/fundamentals/collateral-assets.md#overview) the minimum deposit amount is 1e12 or 0.000001. Accounts must have collateral deposits greater than this amount if the collateral asset is a Kresko Asset.
