Skip to content

Commit

Permalink
Restore #[pallet::constant]
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Jan 29, 2024
1 parent 1026c22 commit 7866043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pallets/staking-rewards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub mod pallet {
/// High rate percentage by which remaining emission supply decreases. Only used during `PostUpgradeHighRateDuration`.
type HighRateRewardDecayPct: Get<Percent>;
/// The percentage of rewards going to treasury
#[pallet::constant]
type TreasuryRewardsPct: Get<Percent>;
/// The NPoS reward curve where the first 2 points (of `points` field) correspond to the lowest
///and highest inflation and the subsequent points correspond to decreasing inflation
Expand Down Expand Up @@ -86,7 +87,7 @@ pub mod pallet {

#[pallet::call]
impl<T: Config> Pallet<T> {
/// Enable/disable emission rewards by calling this function true or false respectively.
/// Enable/disable emission rewards by calling this function with true or false respectively.
#[pallet::weight(T::DbWeight::get().writes(1))]
pub fn set_emission_status(
origin: OriginFor<T>,
Expand Down

0 comments on commit 7866043

Please sign in to comment.