IExitAndLiquidationFacet
The ExitAndLiquidationFacet contract interface
This contract allows for the exiting and liquidation of certificates
Functions
Section titled “Functions”exitOrLiquidate
Section titled “exitOrLiquidate”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
| Name | Type | Description |
|---|---|---|
certificateId | uint256 | Certificate ID to exit |
slippageTolerance | uint256 | Slippage tolerance for the exit |
shouldLiquidate | bool | Whether to liquidate the certificate |