@@ -19,7 +19,7 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
19
19
netuid = 2
20
20
root_netuid = 0
21
21
stake_amount = Balance .from_tao (100 ) # 100 TAO
22
- min_stake_fee = Balance .from_tao (0.050354772 )
22
+ min_stake_fee = Balance .from_tao (0.299076829 )
23
23
24
24
# Register subnet as Alice
25
25
assert subtensor .register_subnet (alice_wallet ), "Unable to register the subnet"
@@ -32,9 +32,9 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
32
32
coldkey_ss58 = alice_wallet .coldkeypub .ss58_address ,
33
33
hotkey_ss58 = alice_wallet .hotkey .ss58_address ,
34
34
)
35
- assert isinstance (stake_fee_0 , Balance ), "Stake fee should be a Balance object. "
35
+ assert isinstance (stake_fee_0 , Balance ), "Stake fee should be a Balance object"
36
36
assert stake_fee_0 == min_stake_fee , (
37
- "Stake fee should be equal the minimum stake fee. "
37
+ "Stake fee should be equal the minimum stake fee"
38
38
)
39
39
40
40
# Test unstake fee
@@ -44,11 +44,9 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
44
44
coldkey_ss58 = alice_wallet .coldkeypub .ss58_address ,
45
45
hotkey_ss58 = bob_wallet .hotkey .ss58_address ,
46
46
)
47
- assert isinstance (unstake_fee_root , Balance ), (
48
- "Stake fee should be a Balance object."
49
- )
50
- assert unstake_fee_root == min_stake_fee , (
51
- "Root unstake fee should be equal the minimum stake fee."
47
+ assert isinstance (unstake_fee_root , Balance ), "Stake fee should be a Balance object"
48
+ assert unstake_fee_root == Balance .from_rao (299076829 ), (
49
+ "Root unstake fee should be 0."
52
50
)
53
51
54
52
# Test various stake movement scenarios
0 commit comments