Skip to content

IExitAndLiquidationFacet

The ExitAndLiquidationFacet contract interface

This contract allows for the exiting and liquidation of certificates

Exits or Liquidates a certificate

  • Exiting a certificate will withdraw the user’s funds and rewards
  • Liquidating a certificate will sell the user’s funds and rewards at market and transfer the ether proceeds to the user

When shouldLiquidate === true, liquidation must be enabled for the project

When liquidating, the slippageTolerance must be greater than 0

function exitOrLiquidate(
uint256 certificateId,
uint256 slippageTolerance,
bool shouldLiquidate
)
external;

Parameters

NameTypeDescription
certificateIduint256Certificate ID to exit
slippageToleranceuint256Slippage tolerance for the exit
shouldLiquidateboolWhether to liquidate the certificate