diff --git a/pallets/ddc-payouts/src/lib.rs b/pallets/ddc-payouts/src/lib.rs index f84d739a7..f5c2a1192 100644 --- a/pallets/ddc-payouts/src/lib.rs +++ b/pallets/ddc-payouts/src/lib.rs @@ -249,17 +249,17 @@ pub mod pallet { } #[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo, PartialEq, Default)] + // don't remove or change numbers, if needed add a new state to the end with new number + // DAC uses the state value for integration! pub enum State { #[default] - NotInitialized, - Initialized, - ChargingCustomers, - CustomersChargedWithFees, - CustomersCharged, - FeesDeducted, - RewardingProviders, - ProvidersRewarded, - Finalized, + NotInitialized = 1, + Initialized = 2, + ChargingCustomers = 3, + CustomersChargedWithFees = 4, + RewardingProviders = 5, + ProvidersRewarded = 6, + Finalized = 7, } #[pallet::call]