[GRANT] IDLE Analytics Site

Abstract
Create a community analytics dashboard that provides as much depth and statistics as possible about the IDLE protocol :bar_chart:. The initial idea was discussed in this post and came up multiple times on Telegram and Discord conversations.

Therefore the Pilot League committee has decided to take this initiative forward and implement this project for the Idle community :family_man_woman_girl_boy: :heart:. We are keen to see applications from our community members (all DeFi builders are definitely welcomed).

The analytics dashboard can be developed using different platforms and protocols; a couple of possible implementation are:

  • Building a Dune Analytics [duneanalytics.com] dashboard (Idle v4 contracts are already indexed there)
  • Deploying a subgraph to index Idle smart contracts (as suggested by 8bitporkchop here) and build an analytics front-end on top of the subgraph.

A good reference is the analytics page from Harvest here https://farmdashboard.xyz/. IDLEs analytics page should have similarities in terms of the depth of data provided.

Also, 8bitporkchop dashboard https://explore.duneanalytics.com/dashboard/idle_v4 has lots of good statistics and info about IDLE which should be included.

Budget: The quote in $IDLE to deliver the Proposal is in a range from 0 to 400 $IDLE. The Pilot League Committee will reward the selected applicants in proportion to the final outcome. In this way, the grant proposal is flexible and applicants can pick few or all parameters.

1. Scope of the Work
Mandatory requirements for the analytics page must collect parameters not listed in any other dashboard:

  • $IDLE Token Holders
  • Unique users
  • (Growth) New Unique Users / Week
  • IDLE price
  • IDLE Price Chart
  • Idle Total Profit Earned Breakdown
  • Idle Total Rebalances
  • FeeCollector balance over time
  • Smart Treasury focus: Total swap volume, Total swap fee, $BAL rewards, funds received by FeeCollector, $IDLE buyback
  • Rebalancer balance over time
  • FeeTreasury balance over time
  • Idle Pools APYs (including $IDLE)
  • Governance overview (on-chain and off-chain voting stats)
  • Calculator where users can easily get an estimate of potential rewards from pools for both APY, IDLE & COMP distribution.
  • Others…

Nice to have parameters include protocol-related data:

Low-priority parameters are optional

  • Liquidity, trades, price, charts on all pools where IDLE is available (ex. Sushi, Uniswap, Balancer)
  • Track trades on all exchanges
  • Track Liquidity on all exchanges
  • Gas Price, BTC & ETH price
  • dashboard section with direct links to exchanges
  • Link or visual integration of Trello’s roadmap to see what has been recently accomplished.
  • Others…

2. Discussion Links
IDLE Analytics Site

3. Application Window
The dev application window will open from when this post is created and will be open until 2021-03-17T17:00:00Z. This may be extended up to 24 hours.

4. How to apply
Candidates should provide the following information:

  • Bio & Background: Briefly introducing yourself (or the team) and past works. Applicants can remain anonymous, but past works should be mandatory to evaluate the skills of the developer.
  • Technology Specs: Specify tech & approach you will use to develop the Proposal
  • Timeline: Provide a roadmap/timeline for the assignment

When the open candidacy period ends, the Pilot League Committee will discuss the applications. The final winner(s) will be announced in the governance forum here :arrow_down: :trophy:.

The winner(s) will not immediately receive the Grant, but rewards will be assigned once the proposal lands off-chain :money_with_wings:.

12 Likes

Hello guys I am aaaaaaaaaa, I definitely can work on a Dune dashboard although I need some help. I would be glad to share the grant with anyone willing to join the working group.

Background

I have recently learnt SQL basics & Dune platform, and I am one of the co-authors of the Hegic dashboard https://explore.duneanalytics.com/dashboard/hegic-v2

Tech Specs

In the past days I have started working on a Idle dashboard, you can find a first draft here @ https://explore.duneanalytics.com/dashboard/idle-v4 (I have taken some queries from 8bitporkchop’s idle dashboard).

Timeline

3 weeks

8 Likes

In order to collect more applications and let other candidates form the working group, we would like to extend the applications’ window up to 2021-03-20T21:00:00Z. (final deadline).

We encourage the Idle community to share this grant among their networks :rocket:

6 Likes

Hello all, my name is Asaf, I’d be happy to participate in a working group as @aaaaaaaaaa suggested (great name btw, love it). I would be inclined to build out the analytics site with the graph protocol for a number of reasons.

  1. Its decentralised nature
    The graph is a decentralised indexing protocol, meaning there is no central point of failure, and to me is a natural design choice given that idle is a decentralised protocol.
  2. It is extensible
    Dune analytics is great, and super easy to use and get started with, however it has limits to what can be indexed with it, since they use their own indexing solution to track events. With the graph protocol custom event handlers can be created, even handlers on specific function calls on contracts.
  3. It is flexible
    Since graph protocol exposes a queryable graphQL API, many different types of queries can be made to it, making it highly customisable to meet most, if not all of the requirements for the analytics page. It also allows other community members to easily integrate and build community dashboards.

With that said, I haven’t had much hands on experience with the graph protocol, and I am still experimenting with it locally, and I’m happy to team up with other members to help build this out.

I also don’t have much experience with building front-ends, so anything I make in that regard may be quite basic :sweat_smile:.

With regards to a timeline for this assignment, I feel like an iterative approach should be taken to get a prototype built, and keep extending upon that. Perhaps a basic subgraph including mints, burns, transfers and rebalances, then building upon that.

8 Likes

Great to see a possible working group for the Grant @aaaaaaaaaa & @8bitporkchop ! :clap:

I would like to ask if Idle would get any $GRT rewards if we use the Graph platform?

4 Likes

Congrats to @aaaaaaaaaa & @8bitporkchop for their partnership :clap: :trophy:
We look forward to seeing the outcome of your work :man_technologist:

The Pilot Leauge Committee will evaluate the need to set up a new grant for the front end user interface later.

10 Likes

As an update on this grant regarding subgraph development, the first version of the subgraph is live, and can be accessed here: https://thegraph.com/explorer/subgraph/idle-finance/idle

The repo for the subgraph is here: GitHub - Idle-Finance/idle-subgraph: subgraph for the idle protocol

The following events are tracked:

  • Mint
  • Redeem
  • Transfer
  • Rebalance
  • Referral

In addition to this user profits and fees are indexed.
Unique users, token price, total supply, fees paid, number of rebalances and more are also indexed for each idle product.

I have also created some sample queries to experiment with on the subgraph playground.

More features can be added to this subgraph, and I expect this to be updated over time. The current syncing time is ~30 minutes.

7 Likes