seamless-protocol / seamless-interface

https://seamless-interface.vercel.app
Other
6 stars 3 forks source link

Total Profit/Loss from Leverage Long/Short Positions [My Dashboard] #435

Open rcqiao opened 1 month ago

rcqiao commented 1 month ago

Name of feature/metric: Total Profit (or Loss) from Yield Bearing Strategies (historical to now, in USD)

Description of feature/metric: Total profit or loss from long/short ILM strategies. Inclusive of historical positions (that are already closed) and currently active positions (that might fluctuate in profit/loss value up or down). Right now, the only strategy that follows this pattern would be the 1.5x ETH/USDC ILM. In the future, this metric would sum ALL long/short strategies (so for example the 1.5x eth.usdc ILM strategy + 4.5x eth/USDC ILM strategy if you have positions in both).

Questions/considerations: Is it possible to show this metric as a total token number by tokens as well? (Maybe too confusing, easier to just show a sum aggregate USD value, but maybe if you expand the number it shows the breakdown by tokens? Future strategies in the future might not always use ETH against USDC, so this could become complicated)

Shown on the my dashboard page

Picture from design (if available): Image

Estimated Timeline:

Requirements/Data Sources: Solution for this would be the same as in https://github.com/orgs/seamless-protocol/projects/1/views/13?pane=issue&itemId=71019766

kitanovicd commented 1 month ago

Should reward be included in calculation here or only real profit?

rcqiao commented 1 month ago

Only real profit, no rewards in this

rcqiao commented 1 month ago

The only examples I can think of are GMX or other similar perp/leverage enabled dexs here is an example from the GMX v1 UI after you open a position on https://app.gmx.io/#/v1 Image Image

kitanovicd commented 1 month ago

This is duplicate of https://github.com/orgs/seamless-protocol/projects/1/views/13?pane=issue&itemId=71019766