Liquidation Facet (Implementation)
Changes to LiquidationFacetImpl.sol
Changes:
liquidatePendingPositionsPartyA()
liquidatePendingPositionsPartyA()
Updated Return Type:
Updated to return uint256[] memory liquidatedAmounts, bytes memory liquidationId
.
Updated Code:
Updated Functionality:
Added a new pending state
QuoteStatus.LIQUIDATED_PENDING
.
liquidatePositionsPartyA()
liquidatePositionsPartyA()
Updated Return Type:
Updated to return bool, uint256[] memory liquidatedAmounts, uint256[] memory closeIds, bytes memory liquidationId
.
Updated Code:
Updated Functionality:
Added
closeIds
andliquidatedAmounts
to capture detailed information about liquidated quotes.Changed state to
QuoteStatus.LIQUIDATED
.
resolveLiquidationDispute()
resolveLiquidationDispute()
Updated Return Type:
Updated to return bytes memory
.
Updated Code:
settlePartyALiquidation()
settlePartyALiquidation()
Updated Return Type:
Updated to return int256[] memory settleAmounts, bytes memory liquidationId
.
Updated Code:
Last updated