In this repo, we implement asset ratings for stablecoins. The targeted assets are the following 10 stablecoins widely used in the Ethereum mainnet.
In this implementation, we evaluate each stablecoin in terms of how many people use and how much they use it. We use the following metrics to measure the usage of each stablecoin.
-
Decentralization of holders
We need to determine if anyone who holds the stablecoin has an unfair advantage. The stablecoin is distributed among many people, which makes it difficult for any one person to manipulate its price. Therefore, if the coin is held by a large number of people in an even manner, it will receive a higher score. To measure this, we use the Herfindahl-Hirschman Index (HHI).
-
Transaction Structure
It is not enough for a stablecoin to have a large number of owners if it is only being used by a limited group of people. To ensure proper distribution, we use the Gini Coefficient to measure whether the coins are being circulated among a diverse group of users. This is done by tracking adjacent addresses and evaluating the network in which the coins are being used.
-
Daily Transaction Volume
Measuring the daily transaction volume of a cryptocurrency is a straightforward approach to gauge its demand in the market. However, this data is also the most susceptible to manipulation by certain individuals. Therefore, it is advisable to evaluate coins in combination with other indicators, rather than solely relying on this indicator.
From a gas cost perspective, it is not efficient to track all prevous ERC-20 Transfer events so far. Instead, we will track all transactions that tool place over a 24-hour period, thus recoding daily results from the start date of the measurement to today on a daily basis.
It is challenging to make an absolute assessment based on the mentioned items alone. We can only provide a relative evaluation based on the ten items that need to be assessed.
Let's simulate the scoring of stablecoins using random values. Please note that these values are not actual and are only for demonstration purposes.
Daily measurements of Stablecoin and Daily Tx Volume would produce the following chart. These will be accumulated on Chainsight as raw data, but they are only one of the evaluation items.
The ultimate assessment must be presented in relative measures, considering all available data. As this rating measures the level of demand for a stablecoin, with a broad range of users frequently utilizing it, we can objectively state that a stablecoin with a score of 10 is the most prevalent one according to our criteria.