https://github.com/code-423n4/2024-04-dyad/blob/4a987e536576139793a1c04690336d06c93fca90/src/core/VaultManagerV2.sol#L214-L240
This function is used to liquidate a dNFT thats currently underwater, i.e. whose collateral ratio is less than MIN_COLLATERIZATION_RATIO which is 150%; however, this attempt does not check to ensure that the to address is not the current owner of the dNFT thats to be liquidated. This then allows any user whose position goes underwater to instead of bringing back their positions afloat just liquidate themselves.
Some dNFT owners can attempt gaming the system by liquidating themselves instead of getting their positions back afloat when its profitable to do so.
Consider checking that the position to be liquidated is not owned by the liquidator whos liquidating it.
