Skip to content

Commit 8362b2a

Browse files
authored
update comments
1 parent c00ff02 commit 8362b2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ pub mod pallet {
13761376
// * 'take' (u16):
13771377
// - The new stake proportion that this hotkey takes from delegations.
13781378
// The new value can be between 0 and 11_796 and should be strictly
1379-
// lower than the previous value. It T is the new value (rational number),
1379+
// lower than the previous value. If T is the new value (rational number),
13801380
// the the parameter is calculated as [65535 * T]. For example, 1% would be
13811381
// [0.01 * 65535] = [655.35] = 655
13821382
//
@@ -1416,13 +1416,13 @@ pub mod pallet {
14161416
// * 'take' (u16):
14171417
// - The new stake proportion that this hotkey takes from delegations.
14181418
// The new value can be between 0 and 11_796 and should be strictly
1419-
// greater than the previous value. It T is the new value (rational number),
1419+
// greater than the previous value. If T is the new value (rational number),
14201420
// the the parameter is calculated as [65535 * T]. For example, 1% would be
14211421
// [0.01 * 65535] = [655.35] = 655
14221422
//
14231423
// # Event:
1424-
// * TakeDecreased;
1425-
// - On successfully setting a decreased take for this hotkey.
1424+
// * TakeIncreased;
1425+
// - On successfully setting a increased take for this hotkey.
14261426
//
14271427
// # Raises:
14281428
// * 'NotRegistered':
@@ -1432,7 +1432,7 @@ pub mod pallet {
14321432
// - The hotkey we are delegating is not owned by the calling coldkey.
14331433
//
14341434
// * 'InvalidTransaction':
1435-
// - The delegate is setting a take which is not lower than the previous.
1435+
// - The delegate is setting a take which is not greater than the previous.
14361436
//
14371437
#[pallet::call_index(66)]
14381438
#[pallet::weight((0, DispatchClass::Normal, Pays::No))]

0 commit comments

Comments
 (0)