Skip to content
8 changes: 4 additions & 4 deletions bittensor/core/extrinsics/asyncex/move_stake.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def transfer_stake_extrinsic(
)
call = await subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="transfer_stake",
call_function="transfer_stake_aggregate",
call_params={
"destination_coldkey": destination_coldkey_ss58,
"hotkey": hotkey_ss58,
Expand Down Expand Up @@ -233,14 +233,14 @@ async def swap_stake_extrinsic(
"allow_partial": allow_partial_stake,
}
)
call_function = "swap_stake_limit"
call_function = "swap_stake_limit_aggregate"
else:
logging.info(
f"Swapping stake for hotkey [blue]{hotkey_ss58}[/blue]\n"
f"Amount: [green]{amount}[/green] from netuid [green]{origin_netuid}[/green] to netuid "
f"[green]{destination_netuid}[/green]"
)
call_function = "swap_stake"
call_function = "swap_stake_aggregate"

call = await subtensor.substrate.compose_call(
call_module="SubtensorModule",
Expand Down Expand Up @@ -353,7 +353,7 @@ async def move_stake_extrinsic(
)
call = await subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="move_stake",
call_function="move_stake_aggregate",
call_params={
"origin_hotkey": origin_hotkey,
"origin_netuid": origin_netuid,
Expand Down
6 changes: 3 additions & 3 deletions bittensor/core/extrinsics/asyncex/staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ async def add_stake_extrinsic(
"allow_partial": allow_partial_stake,
}
)
call_function = "add_stake_limit"
call_function = "add_stake_limit_aggregate"
else:
logging.info(
f":satellite: [magenta]Staking to:[/magenta] "
f"[blue]netuid: [green]{netuid}[/green], amount: [green]{staking_balance}[/green] "
f"on [blue]{subtensor.network}[/blue][magenta]...[/magenta]"
)
call_function = "add_stake"
call_function = "add_stake_aggregate"

call = await subtensor.substrate.compose_call(
call_module="SubtensorModule",
Expand Down Expand Up @@ -346,7 +346,7 @@ async def add_stake_multiple_extrinsic(
)
call = await subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="add_stake",
call_function="add_stake_aggregate",
call_params={
"hotkey": hotkey_ss58,
"amount_staked": staking_balance.rao,
Expand Down
8 changes: 4 additions & 4 deletions bittensor/core/extrinsics/asyncex/unstaking.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ async def unstake_extrinsic(
"allow_partial": allow_partial_stake,
}
)
call_function = "remove_stake_limit"
call_function = "remove_stake_limit_aggregate"
else:
logging_info = (
f":satellite: [magenta]Unstaking from:[/magenta] "
f"netuid: [green]{netuid}[/green], amount: [green]{unstaking_balance}[/green] "
f"on [blue]{subtensor.network}[/blue]"
)
call_function = "remove_stake"
call_function = "remove_stake_aggregate"

call = await subtensor.substrate.compose_call(
call_module="SubtensorModule",
Expand Down Expand Up @@ -255,7 +255,7 @@ async def unstake_all_extrinsic(
async with subtensor.substrate as substrate:
call = await substrate.compose_call(
call_module="SubtensorModule",
call_function="remove_stake_full_limit",
call_function="remove_stake_full_limit_aggregate",
call_params=call_params,
)

Expand Down Expand Up @@ -387,7 +387,7 @@ async def unstake_multiple_extrinsic(
try:
call = await subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="remove_stake",
call_function="remove_stake_aggregate",
call_params={
"hotkey": hotkey_ss58,
"amount_unstaked": unstaking_balance.rao,
Expand Down
8 changes: 4 additions & 4 deletions bittensor/core/extrinsics/move_stake.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def transfer_stake_extrinsic(
)
call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="transfer_stake",
call_function="transfer_stake_aggregate",
call_params={
"destination_coldkey": destination_coldkey_ss58,
"hotkey": hotkey_ss58,
Expand Down Expand Up @@ -229,14 +229,14 @@ def swap_stake_extrinsic(
"allow_partial": allow_partial_stake,
}
)
call_function = "swap_stake_limit"
call_function = "swap_stake_limit_aggregate"
else:
logging.info(
f"Swapping stake for hotkey [blue]{hotkey_ss58}[/blue]\n"
f"Amount: [green]{amount}[/green] from netuid [green]{origin_netuid}[/green] to netuid "
f"[green]{destination_netuid}[/green]"
)
call_function = "swap_stake"
call_function = "swap_stake_aggregate"

call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
Expand Down Expand Up @@ -348,7 +348,7 @@ def move_stake_extrinsic(
)
call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="move_stake",
call_function="move_stake_aggregate",
call_params={
"origin_hotkey": origin_hotkey,
"origin_netuid": origin_netuid,
Expand Down
6 changes: 3 additions & 3 deletions bittensor/core/extrinsics/staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ def add_stake_extrinsic(
"allow_partial": allow_partial_stake,
}
)
call_function = "add_stake_limit"
call_function = "add_stake_limit_aggregate"
else:
logging.info(
f":satellite: [magenta]Staking to:[/magenta] "
f"[blue]netuid: [green]{netuid}[/green], amount: [green]{staking_balance}[/green] "
f"on [blue]{subtensor.network}[/blue][magenta]...[/magenta]"
)
call_function = "add_stake"
call_function = "add_stake_aggregate"

call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
Expand Down Expand Up @@ -328,7 +328,7 @@ def add_stake_multiple_extrinsic(
)
call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="add_stake",
call_function="add_stake_aggregate",
call_params={
"hotkey": hotkey_ss58,
"amount_staked": staking_balance.rao,
Expand Down
8 changes: 4 additions & 4 deletions bittensor/core/extrinsics/unstaking.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ def unstake_extrinsic(
"allow_partial": allow_partial_stake,
}
)
call_function = "remove_stake_limit"
call_function = "remove_stake_limit_aggregate"
else:
logging_info = (
f":satellite: [magenta]Unstaking from:[/magenta] "
f"netuid: [green]{netuid}[/green], amount: [green]{unstaking_balance}[/green] "
f"on [blue]{subtensor.network}[/blue]"
)
call_function = "remove_stake"
call_function = "remove_stake_aggregate"

call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
Expand Down Expand Up @@ -252,7 +252,7 @@ def unstake_all_extrinsic(

call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="remove_stake_full_limit",
call_function="remove_stake_full_limit_aggregate",
call_params=call_params,
)

Expand Down Expand Up @@ -379,7 +379,7 @@ def unstake_multiple_extrinsic(
try:
call = subtensor.substrate.compose_call(
call_module="SubtensorModule",
call_function="remove_stake",
call_function="remove_stake_aggregate",
call_params={
"hotkey": hotkey_ss58,
"amount_unstaked": unstaking_balance.rao,
Expand Down
Loading
Loading