Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pallets/subtensor/src/macros/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ mod events {
/// a network is removed.
NetworkRemoved(u16),
/// stake has been transferred from the a coldkey account onto the hotkey staking account.
StakeAdded(T::AccountId, T::AccountId, u64, u64, u16),
StakeAdded(T::AccountId, T::AccountId, u64, u64, u16, u64),
/// stake has been removed from the hotkey staking account onto the coldkey account.
StakeRemoved(T::AccountId, T::AccountId, u64, u64, u16),
StakeRemoved(T::AccountId, T::AccountId, u64, u64, u16, u64),
/// stake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO).
StakeMoved(T::AccountId, T::AccountId, u16, T::AccountId, u16, u64),
/// a caller successfully sets their weights on a subnetwork.
Expand Down
12 changes: 8 additions & 4 deletions pallets/subtensor/src/staking/stake_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,14 +794,16 @@ impl<T: Config> Pallet<T> {
tao_unstaked,
actual_alpha_decrease,
netuid,
actual_fee,
));
log::debug!(
"StakeRemoved( coldkey: {:?}, hotkey:{:?}, tao: {:?}, alpha:{:?}, netuid: {:?} )",
"StakeRemoved( coldkey: {:?}, hotkey:{:?}, tao: {:?}, alpha:{:?}, netuid: {:?}, fee: {:?} )",
coldkey.clone(),
hotkey.clone(),
tao_unstaked,
actual_alpha_decrease,
netuid
netuid,
actual_fee
);

// Step 6: Return the amount of TAO unstaked.
Expand Down Expand Up @@ -857,14 +859,16 @@ impl<T: Config> Pallet<T> {
tao_staked,
actual_alpha,
netuid,
actual_fee,
));
log::debug!(
"StakeAdded( coldkey: {:?}, hotkey:{:?}, tao: {:?}, alpha:{:?}, netuid: {:?} )",
"StakeAdded( coldkey: {:?}, hotkey:{:?}, tao: {:?}, alpha:{:?}, netuid: {:?}, fee: {:?} )",
coldkey.clone(),
hotkey.clone(),
tao_staked,
actual_alpha,
netuid
netuid,
actual_fee
);

// Step 7: Return the amount of alpha staked
Expand Down
Loading