When borrowing, users are allowed to provide their collateral == debt they want to take, since this check would then pass when modifying the position.
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L451-L455
However, the iscollaterized check would allow the hinted scenario since the check is inclusive:
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L345-L351
Which then means that users passing in (wdiv(collateralValue, liquidationRatio) == debt would take the debt, but can immediately be liquidatable in the next block.
Consider making the check strict, this way there is quite a buffer:
