Skip to content

Commit

Permalink
chore: add todo for init/export gen
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Dec 9, 2024
1 parent d009991 commit f80d9f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/incentive/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package incentive

import (
"context"

"github.com/babylonlabs-io/babylon/x/incentive/keeper"
"github.com/babylonlabs-io/babylon/x/incentive/types"
)
Expand All @@ -11,12 +12,14 @@ func InitGenesis(ctx context.Context, k keeper.Keeper, genState types.GenesisSta
if err := k.SetParams(ctx, genState.Params); err != nil {
panic(err)
}
// TODO(rafilx): add gauge, reward tracker
}

// ExportGenesis returns the module's exported genesis
func ExportGenesis(ctx context.Context, k keeper.Keeper) *types.GenesisState {
genesis := types.DefaultGenesis()
genesis.Params = k.GetParams(ctx)

// TODO(rafilx): add gauge, reward tracker
return genesis
}

0 comments on commit f80d9f6

Please sign in to comment.