-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
- Wrong
floatSidein correction calculation
LiquidationPx.tsx#L182
floatSide should be derived from the updated position, not the old one:
const floatSide = updatedPosSideFloat;
AccountValueshould beisolated marginLiquidationPx.tsx#L186
For isolated positions, AccountValue should be the isolated margin per docs.
Using rawUsd is incorrect because it's still mark-price dependent
This can be simplified to:
const isolatedMargin = totalNtlPos / leverage.value;
Please let me know if im mistaken!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels