_execute_transfer wrong order of operations, will first apply diff and then check with applying the diff
The transfer function applies a balance change to the sender's position before checking that the resulting position is healthy, and then applies the same change again during validation. This can cause a valid transfer to revert if the sender's position becomes unhealthy after the second application.
Starknet Perpetual
High