Kresko Documentation
GitHubWhitepaperTwitterDiscord
  • ℹ️Kresko 101
  • fundamentals
    • CDPs
      • ICDP
        • Deposit
        • Withdraw
        • Burn / Repay
        • Minting / Borrowing
        • Liquidations
      • SCDP
        • Deposits
        • Swaps
        • Liquidations
    • Collateral Assets
    • Kresko Assets
    • KISS
    • Synth Wrap
    • Liquidations
    • Oracles
    • Glossary
    • Litepaper
  • Developers
    • Contracts Overview
    • Liquidations
    • Errors
  • contracts
    • Deployment Addresses
  • Security
    • Audits
    • Bug Bounty
  • Brand Kit
    • Design Resources
  • Events
    • Closed Beta
    • Quest for Kresk: Season 0
      • Scoring Methodology
      • FAQs
Powered by GitBook
On this page
  • Depositing Collateral
  • Yield
  • Liquidations and Yield
  • Withdrawals
  1. fundamentals
  2. CDPs
  3. SCDP

Deposits

Providing liquidity in the SCDP

PreviousSCDPNextSwaps

Last updated 1 year ago

This documentation is a work in progress!

Shared deposits of the SCDP back debt accrued from , 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 .

Deposits increase the overall of the global position. Each whitelisted is configured with a deposit limit. All collaterals use the same configuration as the .

SCDP has very limited collateral assets compared to the ICDP.

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 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.

Fees can be claimed separately, they are also claimed with any deposit or withdraw.

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.

Distribution of the swap fee

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 , they allow traders to utilize it. This means that when debt exists deposits can only be withdrawn up to the . Further withdrawals have to wait for more collateral deposits or debt to be repaid by swaps.

Depositors cannot withdraw all deposits when debt exists
swaps
Collateral Asset
ICDP
withdrawn
SCDP
cFactor
MCR
collateralization
swaps incur a fee