Using The Graph to Provide Data Analytics for the KyberSwap Protocol

Kyber Network
Kyber Network
Published in
4 min readJun 25, 2021

--

UPDATE: DMM has now rebranded to KyberSwap.com! Learn more.

KyberSwap (previously known as DMM) is a highly capital efficient DEX aggregator and liquidity protocol that gives the best rates to traders and maximises returns for liquidity providers. Due to the need to provide accurate liquidity and transaction data, the Kyber team has chosen to build the KyberSwap analytics page analytics.kyberswap.com using a subgraph by The Graph!

What is The Graph?

The Graph is the indexing and query layer of the decentralized web. Developers build and publish open APIs, called subgraphs, that applications can query using GraphQL. The Graph currently supports indexing data from Ethereum, IPFS, and PoA with more networks coming soon. To date, over 16,000 subgraphs have been deployed by over 20,000 developers for applications such as KyberSwap and many others.

Building KyberSwap Analytics with a Subgraph

KyberSwap’s analytics page analytics.kyberswap.com is an important component of the liquidity protocol, providing valuable information including:

  • Trade Volume
  • Value Locked
  • Amplified Liquidity
  • Transactions
  • Top Tokens
  • Price Changes
  • Liquidity Pool Details

By working with The Graph community and using their subgraph service, Kyber was able to quickly set up KyberSwap’s analytics page and provide the required insights to liquidity providers, traders, Dapps, and aggregators that use the protocol. The analytics page currently tracks data on Ethereum and will soon also track data on Polygon (read about Kyber’s partnership with Polygon).

Liquidity Pool Information on KyberSwap

Creating an amplified liquidity pool for a token pair (e.g. KNC-ETH) on KyberSwap is very straightforward and can be done in a few minutes by following the instructions here.

Once an amplified pool is created, liquidity providers can immediately start providing liquidity for the tokens to earn fees. Important information about the pool can be viewed on our subgraph-powered analytics page at analytics.kyberswap.com

Kyber is glad to be working with The Graph to provide accurate KyberSwap data for traders, liquidity providers, and Dapps in DeFi!

To learn more about subgraphs, join The Graph’s discord! To build with KyberSwap, visit our documentation page and join Kyber’s discord.

For additional information, please contact Shane on Telegram https://t.me/shaneHk or Twitter https://twitter.com/shaneMkt

About The Graph

The Graph is the indexing and query layer of the decentralized web. Developers build and publish open APIs, called subgraphs, that applications can query using GraphQL. The Graph currently supports indexing data from Ethereum, IPFS, and PoA with more networks coming soon. To date, over 16,000 subgraphs have been deployed by ~20,000 developers for applications, such as Uniswap, Synthetix, Aragon, Gnosis, Balancer, Livepeer, DAOstack, AAVE, Decentraland, and many others.

If you are a developer building an application or Web3 application, you can use subgraphs for indexing and querying data from blockchains. The Graph allows applications to efficiently and performantly present data in a UI and allows other developers to use your subgraph too! You can deploy a subgraph or query existing subgraphs that are in the Graph Explorer. The Graph would love to welcome you to be Indexers, Curators and/or Delegators on The Graph’s mainnet. Join The Graph community by introducing yourself in The Graph Discord for technical discussions, join The Graph’s Telegram chat, or follow The Graph on Twitter! The Graph’s developers and members of the community are always eager to chat with you, and The Graph ecosystem has a growing community of developers who support each other.

The Graph Foundation oversees The Graph Network. The Graph Foundation is overseen by the Technical Council. Edge & Node and StreamingFast are two of the many organizations within The Graph ecosystem.

About Kyber Network

Kyber Network is delivering a sustainable liquidity infrastructure for DeFi. As a liquidity hub, Kyber connects liquidity from various protocols and sources to provide the best token rates to Dapps, aggregators, DeFi platforms, and traders.

Through Kyber, anyone can provide or access liquidity, and developers can build innovative applications, including token swap services, decentralized payments, and financial Dapps — helping to build a world where any token is usable anywhere. Kyber is powering more than 100 integrated projects and has facilitated over US$7 billion worth of transactions for thousands of users since its inception.

KyberSwap, the latest protocol in the liquidity hub, provides the best rates for traders and maximizes returns for liquidity providers.

Discord | Website | Twitter | Forum | Blog | Reddit | Facebook | Developer Portal | Github | KyberSwap | KyberSwap Docs

--

--