IMarketLiquidate.sol
IMarketLiquidate
Interface for liquidating and claiming positions in a market.
checkLiquidation
function checkLiquidation(uint256 positionId) external view returns (bool)
Checks if a position is eligible for liquidation.
Parameters:
Name Type Description positionId uint256 The ID of the position to check. Return Values:
Name Type Description [0] bool A boolean indicating if the position is eligible for liquidation.
checkLiquidationWithOracleVersion
function checkLiquidationWithOracleVersion(uint256 positionId, struct IOracleProvider.OracleVersion oracleVersion) external view returns (bool)
Checks if a position is eligible for liquidation.
Parameters:
Name Type Description positionId uint256 The ID of the position to check. oracleVersion struct IOracleProvider.OracleVersion The oracle version data for liquidation check. Return Values:
Name Type Description [0] bool A boolean indicating if the position is eligible for liquidation.
liquidate
function liquidate(uint256 positionId, address keeper, uint256 keeperFee) external
Liquidates a position.
Parameters:
Name Type Description positionId uint256 The ID of the position to liquidate. keeper address The address of the keeper performing the liquidation. keeperFee uint256 The native token amount of the keeper's fee.
checkClaimPosition
function checkClaimPosition(uint256 positionId) external view returns (bool)
Checks if a position is eligible for claim.
Parameters:
Name Type Description positionId uint256 The ID of the position to check. Return Values:
Name Type Description [0] bool A boolean indicating if the position is eligible for claim.
claimPosition
function claimPosition(uint256 positionId, address keeper, uint256 keeperFee) external
Claims a closed position on behalf of a keeper.
Parameters:
Name Type Description positionId uint256 The ID of the position to claim. keeper address The address of the keeper claiming the position. keeperFee uint256 The native token amount of the keeper's fee.