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

# Deposits

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

Shared deposits of the SCDP back debt accrued from [swaps](/kopio-docs/fundamentals/cdps/scdp/swaps.md), meaning they can be fully or partially locked at any given time. When the collateral is not used as backing anymore, it can be fully [withdrawn](#withdrawals).

Deposits increase the overall [collateralization](/kopio-docs/fundamentals/cdps.md#overcollateralization) of the global position. Each whitelisted [Collateral Asset ](/kopio-docs/fundamentals/collateral-assets.md)is configured with a deposit limit. All collaterals use the same [cFactor](/kopio-docs/fundamentals/collateral-assets.md#collateral-factor) configuration as the [ICDP](/kopio-docs/fundamentals/cdps/icdp.md).

{% hint style="info" %}
SCDP has very limited collateral assets compared to the ICDP.
{% endhint %}

## Depositing Collateral

Deposits work the same way as in the ICDP for the participators. Under the hood assets are transferred from depositors wallet balance and marked as principal deposits for the depositor, after which the global deposit are incremented.

## Yield

The main reason depositors would want to participate in this system is because all asset [swaps incur a fee](/kopio-docs/fundamentals/cdps/scdp/swaps.md#fees) paid by the account performing the swap. A configurable portion of this fee is distributed instantly to the depositors within the swap transaction itself. Fees are distributed as the same asset they have deposited.

{% hint style="success" %}
Fees can be claimed separately, they are also claimed with any deposit or withdraw.
{% endhint %}

Fee distribution in the deposit asset is achieved through an additional conversion step where the fee amount is converted into the configured fee asset. At the time of writing, the system only supports **one fee asset** at a time.

<figure><img src="https://lh7-us.googleusercontent.com/m2nLVBj4q1RKM3kOb01MA_7S9n02m-F6IUT_uMuD39DL3RM1nZ_0b8CojNH2X6strSKvvmjgSxjRTMG74h6Ag_v_KyiOhrItXjruxnlWYmRe8Xj4Edu71Q-prXJRn55-WrYAjnFCYVbi7fG3CglyiGk" alt="" width="563"><figcaption><p>Distribution of the swap fee</p></figcaption></figure>

### Liquidations and Yield

A conscious choice was made that fees distributed to depositors are not used as collateral which means they are not subject to liquidations and can be withdrawn regardless of the withdrawal capacity.

This has one drawback which is that compounding does not happen automatically. Accounts must re-deposit these fees themselves. Automatic compounding can be achieved by using external automation like a keeper service or custom scripts.

## Withdrawals

When an account deposits into the [SCDP](/kopio-docs/fundamentals/cdps/scdp.md), they allow traders to utilize it. This means that when debt exists deposits can only be withdrawn up to the [MCR](/kopio-docs/fundamentals/cdps.md#minimum-collateralization-ratio). Further withdrawals have to wait for more collateral deposits or debt to be repaid by swaps.

<figure><img src="https://lh7-us.googleusercontent.com/vAGcTJQ3U5mJ5_MVSRv96B2P3NOVOG5G7jFCzLIQ3zZWD3ORkhOcFfYxMIfVR2j8ixULVrSb0osMK6YvUOGrsy0bVaWT0HDR_vGd1tICoGCspct_QqrOb-uzBldlWpCyhgN8uSAz4Lw9Mvhey-3uCZ0" alt="" width="563"><figcaption><p>Depositors cannot withdraw all deposits when debt exists</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, and the optional `goal` query parameter:

```
GET https://kopio.gitbook.io/kopio-docs/fundamentals/cdps/scdp/deposits.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
