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 07da454 commit 5cb4123Copy full SHA for 5cb4123
pallets/subtensor/src/staking/increase_take.rs
@@ -61,14 +61,14 @@ impl<T: Config> Pallet<T> {
61
let block: u64 = Self::get_current_block_as_u64();
62
ensure!(
63
!Self::exceeds_tx_delegate_take_rate_limit(
64
- Self::get_last_tx_block_delegate_take(&coldkey),
+ Self::get_last_tx_block_delegate_take(&hotkey),
65
block
66
),
67
Error::<T>::DelegateTxRateLimitExceeded
68
);
69
70
// Set last block for rate limiting
71
- Self::set_last_tx_block_delegate_take(&coldkey, block);
+ Self::set_last_tx_block_delegate_take(&hotkey, block);
72
73
// --- 6. Set the new take value.
74
Delegates::<T>::insert(hotkey.clone(), take);
0 commit comments