Protocol integrates a liquidation mechanism; however, this logic does not include any buffer whatsoever. Now, users are allowed to borrow with a condition where liquidatable state == to the liquidating threshold, which would mean that they could be liquidatable immediately in the next block.
More info on this bug case can be seen here, otherwise here.
Users could unfairly be liquidated in the next block.
Consider when creating a position to always have a gap between the user's liquidatable sstate and their liquidating threshold. This way, we can ensure they are not immediately liquidated in the next block.
