Open rcqiao opened 1 month ago
Extra finance has an example, if you look at any strategy here
https://app.extrafi.io/farm
click on the button "data" and it shows a few graphs of historical price and performance
We would do something similar with historical performance potentially.
If we decide to go with historic APY FE is just going to get it from Vaults.fyi. If we decide to go with historic value of LP token we will need to do it on a Subgraph or Dune. Subgraph should be better because we already need it for some other tickets.
assumption is LP token historical price --> subgraph and dune
Name of feature/metric: Value of X Asset in Specific ILM Strategy Over X Time Period
Description of feature/metric: For a yield bearing strategy: when a user inputs a number of an asset to deposit into the strategy (for example, for 3x wsteth/eth ILM, if they input "5 wsteth to deposit"). The historical returns if that 5 wsteth was deposited into the strategy, how much return (in that asset) would the user have received if they deposited 1h ago, 1d ago, 1 week ago, 1 month ago, 3 months ago, 1 year ago. Then also have the historical data to do a graph comparison to the asset on it's own (just a wsteth with no leverage in the strategy - graphed against the strategy).
For a long or short strategy: when a user inputs a number of an asset to deposit into the strategy (for example, for the 1.5x eth/usdc ILM, if they input "1 ETH to deposit"). The historical gain/loss on that position across times from 1hr ago to 1 year ago. This would be represented in $ price (gain loss in USD) instead of # tokens like a yield bearing strategy (mentioned above). Also have the historical data to graph the base asset (ETH on its own vs leveraged ETH).
Shown on the detailed ILM view page
Questions/considerations:
Picture from design (if available):![Image](https://github.com/user-attachments/assets/1ace2345-ec91-457a-8189-e76f57becc51)
Estimated Timeline:
Requirements/Data Sources: I would recommend that we code Dune query that will return historic value of one strategy share. Then we will just present that data to user. It will be the same for all users so query will most likely be properly cached. We can scale that response with shares that user will receive from simulation and present him in USD just like that. On the other hand we can present historic APY from Vaults.fyi.