Delegating Collateral

Providing liquidity to pools involves two function calls, deposit and delegateCollateral. deposit transfers collateral to the DexToro Core address and associates it with the relevant account. delegateCollateral assigns the collateral to a pool, creating or updating a liquidity position.

deposit and withdraw increase and decrease the amount of available collateral associated with an account. delegateCollateral will increase/decrease the amount of available collateral by altering the amount provided to a specified pool. These functions may be called together using the multicall function, so end users need to only execute one transaction.

When delegating, the position size must be greater than the minimum amount specified by governance per collateral type. This generally serves as the liquidation reward for the position.

There are a few scenarios in which collateral may not have its delegation reduced or be withdrawn:

  • Delegated collateral may only be reduced if the liquidity position’s resulting C-Ratio is greater than the Issuance C-Ratio for its collateral type. In other words, liquidity providers can only retrieve their collateral if they pay off their debt.

  • Delegated collateral may not be reduced if the resulting credit capacity for any of the markets connected to the pool drops below the market's minimum credit value.

  • Delegated collateral may not be adjusted unless the minimum collateral delegation duration has elapsed since the last time delegateCollateral was called regarding this liquidity position. This mechanism allows markets to mitigate the risk of active liquidity provider's front-running market activity.

  • Available collateral may not be withdrawn unless the globally configured withdraw timeout has elapsed since this account was last interacted with. This is a global system safety parameter that may eventually be set to 0 via a DexToro Improvement Proposal (DIP).

The types of collateral that are accepted by the protocol are configured globally by the DexToro Protocol. Enabling, disabling, or changing the settings pertaining to collateral may be proposed via a DexToro Improvement Proposal (DIP). Retrieve information about the currently accepted collateral types with the getCollateralConfigurations function.

Last updated