From 905e102f50909cb96df6db7d1517174a25ddb151 Mon Sep 17 00:00:00 2001 From: Liam Aharon <liam.aharon@hotmail.com> Date: Wed, 17 Apr 2024 11:25:47 +0400 Subject: [PATCH] update call comment --- substrate/frame/asset-rewards/src/lib.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/substrate/frame/asset-rewards/src/lib.rs b/substrate/frame/asset-rewards/src/lib.rs index 1b7e9c2f019..d3f084d0cfd 100644 --- a/substrate/frame/asset-rewards/src/lib.rs +++ b/substrate/frame/asset-rewards/src/lib.rs @@ -377,7 +377,7 @@ pub mod pallet { Ok(()) } - /// Stake tokens in a pool. + /// Stake additional tokens in a pool. /// /// A freeze is placed on the staked tokens. #[pallet::call_index(1)] @@ -491,6 +491,8 @@ pub mod pallet { } /// Modify a pool reward rate. + /// + /// Only the pool admin may perform this operation. #[pallet::call_index(4)] pub fn set_pool_reward_rate_per_block( origin: OriginFor<T>, @@ -518,6 +520,8 @@ pub mod pallet { } /// Modify a pool admin. + /// + /// Only the pool admin may perform this operation. #[pallet::call_index(5)] pub fn set_pool_admin( origin: OriginFor<T>, @@ -538,6 +542,8 @@ pub mod pallet { } /// Modify a expiry block. + /// + /// Only the pool admin may perform this operation. #[pallet::call_index(6)] pub fn set_pool_expiry_block( origin: OriginFor<T>, @@ -591,6 +597,8 @@ pub mod pallet { } /// Permissioned method to withdraw reward tokens from a pool. + /// + /// Only the pool admin may perform this operation. #[pallet::call_index(8)] pub fn withdraw_reward_tokens( origin: OriginFor<T>, -- GitLab