Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf committed May 3, 2024
1 parent 8362b2a commit e57b429
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pallets/subtensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ pub mod pallet {
// * 'NonAssociatedColdKey':
// - The hotkey we are delegating is not owned by the calling coldkey.
//
// * 'InvalidTransaction':
// * 'InvalidTake':
// - The delegate is setting a take which is not lower than the previous.
//
#[pallet::call_index(65)]
Expand Down Expand Up @@ -1431,7 +1431,7 @@ pub mod pallet {
// * 'NonAssociatedColdKey':
// - The hotkey we are delegating is not owned by the calling coldkey.
//
// * 'InvalidTransaction':
// * 'InvalidTake':
// - The delegate is setting a take which is not greater than the previous.
//
#[pallet::call_index(66)]
Expand Down
10 changes: 8 additions & 2 deletions pallets/subtensor/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ impl<T: Config> Pallet<T> {
// * 'NonAssociatedColdKey':
// - The hotkey we are delegating is not owned by the calling coldket.
//
// * 'InvalidTake':
// - The delegate is setting a take which is not lower than the previous.
//
pub fn do_decrease_take(
origin: T::RuntimeOrigin,
hotkey: T::AccountId,
Expand Down Expand Up @@ -173,8 +176,8 @@ impl<T: Config> Pallet<T> {
// - The stake proportion that this hotkey takes from delegations for subnet ID.
//
// # Event:
// * TakeDecreased;
// - On successfully setting a decreased take for this hotkey.
// * TakeIncreased;
// - On successfully setting a increased take for this hotkey.
//
// # Raises:
// * 'NotRegistered':
Expand All @@ -186,6 +189,9 @@ impl<T: Config> Pallet<T> {
// * 'TxRateLimitExceeded':
// - Thrown if key has hit transaction rate limit
//
// * 'InvalidTake':
// - The delegate is setting a take which is not greater than the previous.
//
pub fn do_increase_take(
origin: T::RuntimeOrigin,
hotkey: T::AccountId,
Expand Down

0 comments on commit e57b429

Please sign in to comment.