From 0371402d33e56b0957e123b6b3c26c8cfc50d31a Mon Sep 17 00:00:00 2001 From: goncer Date: Thu, 6 Jul 2023 10:45:53 +0200 Subject: [PATCH 1/2] improve docs --- pallets/proof-of-stake/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pallets/proof-of-stake/src/lib.rs b/pallets/proof-of-stake/src/lib.rs index 04fea2501c..bc0fbdd2f5 100644 --- a/pallets/proof-of-stake/src/lib.rs +++ b/pallets/proof-of-stake/src/lib.rs @@ -136,7 +136,10 @@ pub mod pallet { >; #[pallet::storage] - /// Stores information about pool weight and accumulated rewards + /// Stores information about pool weight and accumulated rewards. The accumulated + /// rewards amount is the number of rewards that can be claimed per liquidity + /// token. Here is tracked the number of rewards per liquidity token relationship. + /// Expect larger values when the number of liquidity tokens are smaller. pub type PromotedPoolRewards = StorageValue<_, BTreeMap, ValueQuery>; From d771556c052619981fc21a6ae70a301117a8d933 Mon Sep 17 00:00:00 2001 From: GonCer Date: Thu, 6 Jul 2023 12:45:16 +0200 Subject: [PATCH 2/2] fix cargo fmt --- pallets/proof-of-stake/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pallets/proof-of-stake/src/lib.rs b/pallets/proof-of-stake/src/lib.rs index bc0fbdd2f5..21c4d8a0f1 100644 --- a/pallets/proof-of-stake/src/lib.rs +++ b/pallets/proof-of-stake/src/lib.rs @@ -136,9 +136,9 @@ pub mod pallet { >; #[pallet::storage] - /// Stores information about pool weight and accumulated rewards. The accumulated - /// rewards amount is the number of rewards that can be claimed per liquidity - /// token. Here is tracked the number of rewards per liquidity token relationship. + /// Stores information about pool weight and accumulated rewards. The accumulated + /// rewards amount is the number of rewards that can be claimed per liquidity + /// token. Here is tracked the number of rewards per liquidity token relationship. /// Expect larger values when the number of liquidity tokens are smaller. pub type PromotedPoolRewards = StorageValue<_, BTreeMap, ValueQuery>;