We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e6909 commit 24fb4c1Copy full SHA for 24fb4c1
scraper_service/shovel_alpha_to_tao/main.py
@@ -83,7 +83,7 @@ def do_process_block(self, n):
83
).value / 1e9
84
85
# Calculate exchange rate (TAO per Alpha)
86
- alpha_to_tao = subnet_tao / subnet_alpha_in if subnet_alpha_in > 0 else 0
+ alpha_to_tao = 1 if netuid == 0 else (subnet_tao / subnet_alpha_in if subnet_alpha_in > 0 else 0)
87
88
buffer_insert(
89
self.table_name,
0 commit comments