Describe the bug
The USD PnL calculation is misleading because it ignores price fluctuations. It only calculates the USD value of the yield (the difference in token amount). We should maybe create multiple views of the PnL one based on usd equity and other on collateral yield.
To Reproduce
Steps to reproduce the behavior:
- open a LT position
- when the underlying asset price (eth) drops significantly
- check the PnL on the app dashboard
- the PnL doesn't reflect loss from price drop, it likely shows the value of yield earned during that period
Expected behavior
unrealized PnL in USD should be (current total equity) - (initial total equity).
If we only want to show the value of the yield, we should rename the label, otherwise, users think they are profitable when they are actually down.
Additional context
chad confirmed the current logic where we take the delta in tokens (Current Equity - Initial Equity) and convert that to usd.