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

Able to measure router provider activity over time #5153

Closed
4 tasks
alexwhte opened this issue Nov 10, 2023 · 2 comments · Fixed by #5224
Closed
4 tasks

Able to measure router provider activity over time #5153

alexwhte opened this issue Nov 10, 2023 · 2 comments · Fixed by #5224
Assignees
Labels
analytics 📏 Enhance 🧘 Issue type: Enhancement Request ui 🎨 Component category

Comments

@alexwhte
Copy link
Contributor

Problem

For the liquidity taskforce, but also in general to understand product usage, we need the ability to measure router events
We want to be able to visualize this in both Connextscan and the Looker dashboards (fed by bigquery)

Impact

Allows us to measure liquidity provision and share rewards back fairly and transparently with the LTF
It's also critical for us to work with routers better over time and understand churn events

Proposed Solution

Log how much liquidity is added and removed with timestamps, for example

  • event type (add/remove)
  • amount
  • asset
  • chain
  • router
  • timestamp

Acceptance Criteria

From an end user perspective, the below criteria must be met to consider this done:

  • We can query against timestamped router events in SQL
  • Coinhippo can fetch this data to display in our connextscan UI
  • We can pull this data into our bigquery db in order to create new visualizations in Looker
  • We can build these visualizations in USD values to segment across routers/assets at scale (for example it's fine if we can join against USD prices somehow, but should confirm this)
@alexwhte alexwhte added analytics 📏 Enhance 🧘 Issue type: Enhancement Request ui 🎨 Component category labels Nov 10, 2023
@liu-zhipeng
Copy link
Contributor

liu-zhipeng commented Nov 22, 2023

ToDo List

  • update connext subgraph. contracts emit all events for adding/removing liquidity, so we can add event handlers simply to the subgraph.
  • Add the decimal of the adopted asset. currently, we have only decimals of local assets, and it causes the issue for calculating USD volume on bigquery. ????
  • Add migration to db
  • Update cartographer poller to fetch add/remove events from subgraph and store to db
  • Unit tests
  • Redeploy the runtime subgraph to testnet prod and test
  • Redeploy the runtime subgraph to prod and test

@liu-zhipeng liu-zhipeng self-assigned this Nov 24, 2023
@liu-zhipeng liu-zhipeng linked a pull request Nov 27, 2023 that will close this issue
7 tasks
@liu-zhipeng liu-zhipeng reopened this Nov 29, 2023
@liu-zhipeng
Copy link
Contributor

#5244

Mainnet subgraph redeploy ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analytics 📏 Enhance 🧘 Issue type: Enhancement Request ui 🎨 Component category
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants