Open $100 long position with e.g. 5,000 sats margin.
Press Close Position button.
The margin row will show a margin that does not match 5,000 sats. Instead, it will be equivalent to the margin for opening a new $100 short position, which is different because the bid and ask prices are normally different.
Interestingly, this is fixed if you toy around with resizing the position first. Although we then display Margin 0 sats:
It would make sense to not display the margin row when closing positions.
Repro
Close Position
button.Interestingly, this is fixed if you toy around with resizing the position first. Although we then display
Margin 0 sats
:It would make sense to not display the margin row when closing positions.