Skip to content

Commit eeb01f1

Browse files
committed
fix macro usage
1 parent 4ce1f5d commit eeb01f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
22
#![recursion_limit = "512"]
33
#![allow(clippy::too_many_arguments)]
4+
#![allow(clippy::zero_prefixed_literal)]
45
// Edit this file to define custom logic or remove it if it is not needed.
56
// Learn more about FRAME and the core library of Substrate FRAME pallets:
67
// <https://docs.substrate.io/reference/frame-pallets/>
@@ -1902,7 +1903,6 @@ pub mod pallet {
19021903
/// Default VotingPower EMA alpha value (0.1 represented as u64 with 18 decimals)
19031904
/// alpha = 0.1 means slow response, 10% weight to new values per epoch
19041905
pub fn DefaultVotingPowerEmaAlpha<T: Config>() -> u64 {
1905-
#![allow(clippy::zero_prefixed_literal)]
19061906
0_003_570_000_000_000_000 // 0.00357 * 10^18 = 2 weeks e-folding (time-constant) @ 361
19071907
// blocks per tempo
19081908
// After 2 weeks -> EMA reaches 63.2% of a step change

0 commit comments

Comments
 (0)