Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix SpS #549

Open
2 of 6 tasks
ArnaudBger opened this issue Oct 15, 2024 · 2 comments
Open
2 of 6 tasks

Helix SpS #549

ArnaudBger opened this issue Oct 15, 2024 · 2 comments
Assignees

Comments

@ArnaudBger
Copy link
Contributor

ArnaudBger commented Oct 15, 2024

Helix Dashboard powered by Substreams

  • Ask Injective team which Events we should track to get all relevant metrics
  • Write the helix-dashboard substreams for contract inj1xufs3ggc9styawwhfp23q9jz7kxmm7tek8yflk
    • Store current round + created campaigns for this round
    • Map all relevant events for those market_id to get total_volume and total_reward per campaign per round and output them as Instructions
  • Generate an SPS
  • Use new SQL Sink and Write SQL Queries to aggregate all volumes and rewards as for injectiveLabs it's used for internal usage
@ArnaudBger
Copy link
Contributor Author

ArnaudBger commented Oct 28, 2024

STATUS:

  • Issue on volume conversion to usdt, each trade as a price on a specific market_id. If we want the conversion for this specific market_id (Let's say TOKENA/TOKENB), we have to get the price of (TOKENB/USD) to make the conversion...

Two information are missing :

  • Mapping of market_id (hash) into token pair
  • set_pyth_oracle could miss some market...

Note

The issue has been paused (prioritize sol_account), waiting for a meeting with the injective team to answer those questions...

@ArnaudBger
Copy link
Contributor Author

LAST STATUS:

  • We have had a meeting with on of the Injective engineer.
  • I am waiting for the event name to track the token creation...

TECHNICAL WORK REMAINING:

  • Add a new store to map denom token to decimals
  • Do the conversion in USD based on the following formulas :
quantity = quantity / 10 ^ BaseDecimals
price = price * 10 ^ BaseDecimals - QuoteDecimals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant