Skip to content

Commit 24fb4c1

Browse files
committed
fix root network alpha to tao price
1 parent 39e6909 commit 24fb4c1

File tree

1 file changed

+1
-1
lines changed
  • scraper_service/shovel_alpha_to_tao

1 file changed

+1
-1
lines changed

scraper_service/shovel_alpha_to_tao/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def do_process_block(self, n):
8383
).value / 1e9
8484

8585
# Calculate exchange rate (TAO per Alpha)
86-
alpha_to_tao = subnet_tao / subnet_alpha_in if subnet_alpha_in > 0 else 0
86+
alpha_to_tao = 1 if netuid == 0 else (subnet_tao / subnet_alpha_in if subnet_alpha_in > 0 else 0)
8787

8888
buffer_insert(
8989
self.table_name,

0 commit comments

Comments
 (0)