Rarity Rankings

Rarities can be calculated in a lot of different ways. You can read about some of them from rarity.tools here:

https://raritytools.medium.com/ranking-rarity-understanding-rarity-calculation-methods-86ceaeb9b98c

Using our handy-dandy Subgraph, we have all the data we need! We know how many Dogs have which traits and the total number of Dogs minted and burned. So here's how we made it happen:

First, we wrote a Subgraph query that asks The Graph for information about each Dog's traits as well as how many of each of those traits exist (subtracting off any that have been Boomed). Since the Subgraph is always up to date, any following calculations will be using the data that includes any Booms and burns!

Next, we calculate the rarity score using the following formula:

Σ (1 ÷ [number of dogs with trait X ÷ total dogs in existence])

It might look a bit confusing, but basically you get a score for every trait you have. That score is higher when the trait is rarer. And then we add up all those scores to get an overall score.

Finally, we order a list of all the dogs by their rarity scores. The highest score is the rarest Dog. The lowest score is the least-rare Dog.

And that's it! I'm simplifying a bit as the web pages can get pretty complicated to manage due to the amount of data, loading states, and more. But this is how we determine rarity in real time!