@@ -534,11 +534,15 @@ impl pallet_multi_asset_delegation::Config for Runtime {
534534parameter_types ! {
535535 #[ derive( Default , Copy , Clone , Eq , PartialEq , RuntimeDebug , Encode , Decode , MaxEncodedLen , TypeInfo ) ]
536536 #[ cfg_attr( feature = "std" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
537- pub const MaxStakeTiers : u32 = 10 ;
537+ pub const MaxStakeTiers : u32 = tangle_primitives :: credits :: MAX_STAKE_TIERS ;
538538
539539 #[ derive( Default , Copy , Clone , Eq , PartialEq , RuntimeDebug , Encode , Decode , MaxEncodedLen , TypeInfo ) ]
540540 #[ cfg_attr( feature = "std" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
541541 pub const CreditBurnRecipient : Option <AccountId > = None ;
542+
543+ #[ derive( Default , Copy , Clone , Eq , PartialEq , RuntimeDebug , Encode , Decode , MaxEncodedLen , TypeInfo ) ]
544+ #[ cfg_attr( feature = "std" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
545+ pub const MaxRatePerBlock : Balance = tangle_primitives:: credits:: MAX_RATE_PER_BLOCK ;
542546}
543547
544548impl pallet_credits:: Config for Runtime {
@@ -547,11 +551,12 @@ impl pallet_credits::Config for Runtime {
547551 type AssetId = AssetId ;
548552 type MultiAssetDelegationInfo = MultiAssetDelegation ;
549553 type BurnConversionRate = ConstU128 < 1000 > ;
550- type ClaimWindowBlocks = ConstU64 < 1000 > ;
554+ type ClaimWindowBlocks = ConstU64 < { tangle_primitives :: credits :: CLAIM_WINDOW_BLOCKS } > ;
551555 type CreditBurnRecipient = CreditBurnRecipient ;
552- type MaxOffchainAccountIdLength = ConstU32 < 100 > ;
556+ type MaxOffchainAccountIdLength = ConstU32 < 1024 > ;
553557 type MaxStakeTiers = MaxStakeTiers ;
554558 type ForceOrigin = frame_system:: EnsureRoot < AccountId > ;
559+ type MaxRatePerBlock = MaxRatePerBlock ;
555560 type WeightInfo = ( ) ;
556561}
557562
0 commit comments