Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Params collections.Item[types.Params] | ||
| RegionMetrics collections.Map[collections.Pair[string, string], types.RegionMetric] | ||
| GrowthScores collections.Map[collections.Pair[string, string], types.GrowthScore] | ||
| Occupations collections.Map[collections.Pair[string, string], sdkmath.LegacyDec] |
There was a problem hiding this comment.
Persist occupation locks through genesis
The new Occupations store added to the growth keeper is not wired into genesis import/export: InitGenesis/ExportGenesis in x/growth/keeper/genesis.go still only serialize params, metrics, and scores. Any occupation values used by fund’s ValidateFundPlan to lock regions will therefore be silently dropped when the chain is exported for an upgrade or test and re-started from that genesis, leaving all regions unlocked even if they were previously above the 50% threshold.
Useful? React with 👍 / 👎.
No description provided.