From 16dee3e4e3645f3118aa30a45159801873cd8bd4 Mon Sep 17 00:00:00 2001
From: sampocs <sam@stridelabs.co>
Date: Wed, 29 Mar 2023 14:20:51 -0500
Subject: [PATCH] Set epoch provisions in mint init genesis (#695)

---
 x/mint/genesis.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/x/mint/genesis.go b/x/mint/genesis.go
index ac1db0b830..524c7cc0ae 100644
--- a/x/mint/genesis.go
+++ b/x/mint/genesis.go
@@ -9,7 +9,9 @@ import (
 
 // InitGenesis new mint genesis.
 func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, data *types.GenesisState) {
-	data.Minter.EpochProvisions = data.Params.GenesisEpochProvisions
+	if data.Minter.EpochProvisions.IsZero() {
+		data.Minter.EpochProvisions = data.Params.GenesisEpochProvisions
+	}
 	keeper.SetMinter(ctx, data.Minter)
 	keeper.SetParams(ctx, data.Params)