> For the complete documentation index, see [llms.txt](https://tno.gitbook.io/tnocoin-and-not-punks-ecosystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tno.gitbook.io/tnocoin-and-not-punks-ecosystem/utility-for-not-punks-and-not-punks-girls-nfts/validator-rating-calculation.md).

# ⭐ Validator Rating Calculation

The rating of validators in the NFT NOT Punks and NOT Punks Girls staking system is determined based on several factors, such as the number of NFTs, the number of pairs, the number of rare NFTs, and the number of NFTs with identical serial numbers. This helps create a balanced system where validators with more significant assets receive higher rewards.

### **📊 Factors for Calculating Validator Rating**

1. **Number of NFTs**:
   * Validators receive base points for each NFT.
   * **Weighting factor**: 1 point for each NFT.
2. **Number of pairs (male + female)**:
   * Validators receive additional points for each pair.
   * **Weighting factor**: 3 points for each pair.
3. **Number of rare NFTs**:
   * Rare NFTs receive additional points depending on their rarity.
   * **Weighting factor**: up to 5 points for each rare NFT. Rarity is calculated as follows:
     * Rarity points = 5 × (1 - (rarity / total number of NFTs)).
     * **Example**: If we have 3 rare NFTs with rarities of 100, 200, and 300 out of 3260, the rarity points would be:
       * NFT with rarity 100: 5 × (1 - (100 / 3260)) = 4.85
       * NFT with rarity 200: 5 × (1 - (200 / 3260)) = 4.69
       * NFT with rarity 300: 5 × (1 - (300 / 3260)) = 4.54
4. **Number of NFTs with identical serial numbers**:
   * Validators receive additional points for each pair of NFTs with identical serial numbers.
   * **Weighting factor**: 2 points for each pair with identical serial numbers.

### **📈 Example of Validator Rating Calculation**

Suppose a validator has the following characteristics:

* 10 regular NFTs
* 2 pairs (male + female)
* 3 rare NFTs with rarities of 100, 200, and 300 out of 3260
* 1 pair with identical serial numbers

### **🔢 Calculation**

1. **Number of NFTs**:
   * 10 regular NFTs × 1 = 10 points.
2. **Number of pairs**:
   * 2 pairs × 3 = 6 points.
3. **Number of rare NFTs**:
   * For each rare NFT:
     * Rarity points for the first NFT = 5 × (1 - (100 / 3260)) = 4.85 points.
     * Rarity points for the second NFT = 5 × (1 - (200 / 3260)) = 4.69 points.
     * Rarity points for the third NFT = 5 × (1 - (300 / 3260)) = 4.54 points.
   * Total rarity points for rare NFTs = 4.85 + 4.69 + 4.54 = 14.08 points.
4. **Number of NFTs with identical serial numbers**:
   * 1 pair × 2 = 2 points.

### **📊 Total Validator Rating**

**Validator Rating = 10 (Number of NFTs) + 6 (Number of pairs) + 14.08 (Number of rare NFTs) + 2 (Number of identical serial numbers) = 32.08**

Thus, the validator's rating is 32.08 points. This rating will be used for reward distribution and determining the trust of delegators.
