subtensor icon indicating copy to clipboard operation
subtensor copied to clipboard

SubnetAlphaOut values are off

Open mvds00 opened this issue 3 months ago • 1 comments

The SubnetAlphaOut map of subtensor is supposed to reflect the alpha in the hands of holders, plus the alpha burned, per subnet. Due to a bug, that was fixed in spec version 240, the value is incorrect, because more alpha was handed out than was reflected in SubnetAlphaOut. The fix in spec version 240, however, did not correct these values, so that these values are now all offset from their true values. For some subnets (that did not burn enough yet) this even leads to the absurd situation that SubnetAlphaOut is smaller than the sum of all alpha held.

I believe the value should be corrected, for many reasons, on which I can elaborate if needed.

I expect people more knowledgeable about this, to be able to calculate the exact offset per subnet, but here is a first approximation, namely the deficit at the upgrade to spec version 240. This does not account for alpha burned after dtao launch and before upgrade to spec version 240. It does show that a significant inconsistency was present at that time:

subnet sum(TotalHotkeyAlpha) SubnetAlphaOut delta
1 66649,362809722 49808,496980884 16840,865828838
2 64990,313527927 48333,319235332 16656,994292595
3 67388,908477729 50777,138923695 16611,769554034
4 61208,416441433 44551,499640231 16656,916801202
5 68050,369959869 51447,447390724 16602,922569145
6 62200,73126758 45530,956387809 16669,774879771
7 65605,281262589 48940,73997675 16664,541285839
8 69596,337384372 52955,09225913 16641,245125242
9 71298,894329695 54697,01521154 16601,879118155
10 66340,11299797 49691,744429764 16648,368568206
11 62668,219424784 46053,950083853 16614,269340931
12 65538,4276993041 48929,53691072 16608,8907885841
13 69086,90146097 52494,223810064 16592,677650906
14 63420,769903389 46766,527380249 16654,24252314
15 66874,348458818 50234,99687396 16639,351584858
16 68236,385699835 51603,689269459 16632,696430376
17 67959,780291422 51330,74641989 16629,033871532
18 68778,5635194781 52169,224723166 16609,338796312
19 68508,599310635 51860,837661806 16647,761648829
20 64108,5113717701 47481,950278518 16626,5610932521
21 66667,760249835 50003,752910185 16664,00733965
22 64756,844121295 48099,867942685 16656,97617861
23 67646,641989456 50997,221861908 16649,420127548
24 67876,6809093099 51249,67068565 16627,0102236599
25 70805,923893114 54194,018714656 16611,905178458
26 64747,067513971 48216,986053573 16530,081460398
27 65972,180996111 49360,859185963 16611,321810148
28 64243,448067411 47609,39491162 16634,053155791
29 67213,755372546 50692,889902677 16520,865469869
30 68646,061469025 52135,476472209 16510,584996816
31 66811,025703175 50173,553188244 16637,472514931
32 66067,138214988 49425,87248672 16641,265728268
33 64868,429569282 48302,187175008 16566,242394274
34 65240,013526204 48622,445295872 16617,568230332
35 62010,134315977 45438,077160998 16572,057154979
36 61586,7893782519 44940,495212776 16646,294165476
37 70443,955962848 53814,537547819 16629,418415029
38 70243,030954366 53640,442827803 16602,588126563
39 71317,204585714 54706,030195133 16611,174390581
40 74654,777529805 58052,227690556 16602,549839249
41 72308,128521919 55743,713601341 16564,414920578
42 68168,9680633481 51560,368163572 16608,5998997761
43 65679,931502021 49125,476381814 16554,455120207
44 65842,731021971 49265,629791333 16577,101230638
45 60518,7846410881 43897,260136162 16621,5245049261
46 70584,6202956671 53971,719017164 16612,901278503
47 62452,135496123 45862,050211056 16590,085285067
48 55205,095336166 38621,366873714 16583,728462452
49 68104,579038322 51532,693759421 16571,885278901
50 62807,258064376 46207,295576014 16599,962488362
51 63240,796510734 46680,789031472 16560,007479262
52 69786,101241387 53178,564829688 16607,536411699
53 66578,096220989 50012,2364387 16565,859782289
54 67059,350938876 50462,128951625 16597,221987251
55 65529,317944711 48908,208400223 16621,109544488
56 71720,838783686 55138,469693556 16582,36909013
57 63458,520764902 46713,044302281 16745,476462621
58 62118,681403866 45155,171499636 16963,50990423
59 73296,1433602789 56359,711589269 16936,4317710099
60 63481,246920426 46502,059241962 16979,187678464
61 64144,980083209 47188,074484393 16956,905598816
62 63020,443172602 46062,592812065 16957,850360537
63 64034,804810968 47058,04885657 16976,755954398
64 66729,131112143 49808,147964465 16920,983147678

In a private tokenomics script, I use the following numbers as a better approximation, based on the block numbers of dtao launch and spec version 240:

    for sn in range(1,65):
        m_alpha_out[sn] += 17473
    m_alpha_out[65] += 4950 # SN65 was added after dtao epoch
    m_alpha_out[66] += 2003 # SN66 was added after dtao epoch 

See https://discord.com/channels/1120750674595024897/1245487232928714863/1401746286285426882 for more discussion on this matter.

mvds00 avatar Aug 15 '25 17:08 mvds00