Giter Club home page Giter Club logo

swapr-info's Introduction

DXstats

Statistics portal for Swapr protocol. The application displays different kind of statistics about the interactions on the swapr dex, for each network (currently Gnosis Chain, Ethereum, Arbitrum), and for all networks stacked.

The application fetches the statistics from a subgraph, that tracks multiple different entities.

Check it out live: https://dxstats.eth.limo.

Subgraphs

Code: https://github.com/dxgraphs/swapr-subgraph

To Start Development

Installing dependencies
yarn
Running locally
yarn start

swapr-info's People

Contributors

guerrap avatar mi-lan avatar wixzi avatar 0xvenky avatar nicoelzer avatar natonnelier avatar adamazad avatar kliyer-ai avatar

Stargazers

 avatar  avatar  avatar Aaron Abu Usama avatar Diogo Ferreira avatar  avatar AboveWallStreet avatar

Watchers

 avatar Federico Luzzi avatar

swapr-info's Issues

Fix the route for add liquidity

Hey, we had made a change in the route for liquidity in this PR in swapr-dapp : SwaprHQ/swapr-dapp#996

This will have impact in some places in the dxstats. Would be good to take a look and fix this and we can plan a release when both of this goes Live together. We need to investigate where all we need to make this change and make in all those places. :)

Update the farming page

As part of the farming page, we need to redesign this page to have a better look and feel.

  • Improve the readability of the page
  • Add a link to the Swapr campaign, clicking on the link should take the user to Swapr farming page.
  • remove the column TVL and add it as a % of Total value staked
  • Add what tokens are being rewarded

Dashboard things

  • Add unique wallets interacted everyday, group by chain (swapped and liquidity provided)
  • Add no of traded wallets
  • Add cumulative volume (total volume of Swapr)
  • Add cumulative transactions
  • Total unique wallets interacted
    The above are things from DODO dashboard, could be good to add in our stats page.

Add utilisation for each pair

We need to know which pools are being effectively used to make sure we incentivise the right pools.
The calculation for the pool's utilisation is

Utilisation = Volume / TVL of the pool in %

For this task, we would like to build a view to view the utilisation.

Pairs page

In this page(https://dxstats.eth.link/#/pairs), add 2 columns that calculates the utilisation for 24h and 7d.

Utilization(24h) = 24h volume / 24h average TVL
Utilization(7d) = 7d volume / 7d average TVL

Individual pairs page

https://dxstats.eth.link/#/pair/0xd45c3a746a22016b2ac77210bdc1cbde2b1aeee6

In this CRV-ETH pair, we should display the same detail as above, maybe under the chart. Also, display a bar chart that tracks the daily utilisation for the last 28 days.

Farming page on DxStats

Add another page called Farms
image

The page design can be a simple table like the other pages like pairs and tokens.

The columns needed are:

FARM
TVL or total staked
How many tokens
Total LP tokens
Yield per $1000
APR and APY

Picking the inspiration from sushi.zippo.io
image

Post the first cut, we need to also include a filter for the following:

Active, Upcoming and Expired
if a farm is created by the DAO

Minor generic improvements

  • Move all useMedia() usages in a common place, and improve the naming.
  • Remove TYPE component from theme.
  • Use modules from swapr-sdk (e.g. chain mappings, utility functions, ...).
  • Check for unused/useless code across the application.
  • Reduce the margin between the sections' titles and the top bar on mobile.

Redesign farming page

The farming page was built as a stop gap arrangement. We need to have a look into it and see if we can make it better for desktop in terms of design.
And its totally broken in mobile, so we need a new design for how we could condense all that data into mobile viewport.

Loader icon

When we open dxstats, the loader looks like this below:

image

2 things to update if possible,

  1. Update the loader to look similar to how the loader is in Swapr (when loading the Swapr balance)
  2. The value of the liquidity is available (as we can see from the charts), but for some reason the loader keeps on and on for about 20 seconds. Would be good to display the current time's liquidity and figure out what is causing this loading.

use gnosiscan

Replace blockscout with gnosisscan across the application.

Multi chain dashboard - MVP

We need to have a multi chain dashboard to view the summarised view of different parameters in our dxstats page.

  1. Create a link "Dashboard" at the top of the menu
  2. Display combined TVL and Volume for the last 60 days. We have this data already in charts, we could just use a stacked chart to show each networks data on top of each other.

Design could be similar to how DODO is using. https://legacy.dodoex.io/dashboard?network=mainnet

image

This task is part of building an overall multi chain dashboard and in future we would add data related to DAU, MAU, unique wallets connected, total fees received, SWPR bought back, best utilised pair, farms and more.

Weird error in accounts page

One of our users came to our Discord and messaged that he sees his data incorrect in Accounts page. Would be good to investigate and see if this look okay. If something is negative, change it to Red atleast. :)

image

Fees info in the dashboard

In dxstats, it would be good to show what fees are we making and how much we are making across networks.

Would be good to show the Protocol fees that is in the FeeReceiver and also what are the different LP tokens that are in the FeeReceiver.
If there has been fees collected, we could also display the fees collected.

A small info about how much SWPR could be bought back with the total fees collected would be a good thing to display.

Active wallets

We need to find a way to add the following metric to our dashboard.

DAU - Count of number of unique wallets that has transacted.
WAU - Count of the unique number of wallets that has transacted within the current week.
MAU - Count of the unique number of wallets that has transacted within the current month.

We discussed about this earlier and found that this will be too performance heavy in the frontend. So, if this needs update and aggregation in the graph side, feel free to have a go! :)

Add a top bar

Top Bar that looks something like Uniswap info and it should contain the following data - Last synced, ETH price, SWPR price and DXD price
To the right, it contains link to Swapr, DXdao, Github of dxstats

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.