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 8d891dd commit f13cf80Copy full SHA for f13cf80
scraper_service/shovel_alpha_to_tao/main.py
@@ -59,19 +59,19 @@ def do_process_block(self, n):
59
60
# Process each subnet
61
for netuid in networks:
62
- subnet_tao = float(str(substrate.query(
+ subnet_tao = substrate.query(
63
'SubtensorModule',
64
'SubnetTAO',
65
[netuid],
66
block_hash=block_hash
67
- ).value).replace(',', '')) / 1e9
+ ).value / 1e9
68
69
- subnet_alpha_in = float(str(substrate.query(
+ subnet_alpha_in = substrate.query(
70
71
'SubnetAlphaIn',
72
73
74
75
76
# Calculate exchange rate (TAO per Alpha)
77
alpha_to_tao = subnet_tao / subnet_alpha_in if subnet_alpha_in > 0 else 0
0 commit comments