InjectiveLabs / injective-helix-demo

Decentralized Derivatives Trading. Any Market. Anytime. Anywhere.
Apache License 2.0
100 stars 71 forks source link

P&L on open position is not automatically updated with the changes in price #983

Open dyegonery opened 1 year ago

dyegonery commented 1 year ago

Describe the bug When we have an open position on Helix, the "Open Positions" box doesn't have your profit/loss updated with the changes in mark price. We actually need to refresh the page for this to be updated.

To Reproduce Just opens a position, and leave it open. While the mark price might change, your profit/loss shown is not being updated with it.

Screenshots Screenshot from 2022-10-26 11-52-38 Screenshot from 2022-10-26 11-52-50