Skip to content

Commit 703747c

Browse files
committed
add doc to get_self_contribution
1 parent b852255 commit 703747c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ impl<T: Config> Pallet<T> {
460460
}
461461
}
462462

463+
/// Returns the self contribution of a hotkey on a subnet.
464+
/// This is the portion of the hotkey's stake that is provided by itself, and not delegated to other hotkeys.
463465
pub fn get_self_contribution(hotkey: &T::AccountId, netuid: u16) -> u64 {
464466
// Get all childkeys for this hotkey.
465467
let childkeys = Self::get_children(hotkey, netuid);

0 commit comments

Comments
 (0)