Liquidate Vault
This contract is responsible for managing the liquidation of positions in a trading context. It includes several functions and events for registering and executing liquidations, as well as validating
Last updated
liquidateVault.validateLiquidationWithPosid(
uint256 _posId
);// Returns a boolean indicating whether the position is liquidatable, and three integers representing pnl, fundingFee, and borrowFee respectively.liquidateVault.validateLiquidationWithPosidAndPrice(
uint256 _posId,
uint256 _price
);// Returns a boolean indicating whether the position is liquidatable, and three integers representing pnl, fundingFee, and borrowFee respectively.liquidateVault.validateLiquidation(
uint256 _tokenId,
bool _isLong,
uint256 _size,
uint256 _averagePrice,
uint256 _lastPrice,
uint256 _lastIncreasedTime,
uint256 _accruedBorrowFee,
int256 _fundingIndex,
uint256 _collateral
);// Returns a boolean indicating whether the position is liquidatable, and three integers representing pnl, fundingFee, and borrowFee respectively.