func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) {
	keeper.setParams(ctx, data.CdpModuleParams)
	keeper.setGlobalDebt(ctx, data.GlobalDebt)
}
InitGenesis sets the genesis state in the keeper.
package cdp
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
)
type GenesisState struct {
	CdpModuleParams CdpModuleParams `json:"params"`
	GlobalDebt      sdk.Int         `json:"global_debt"`
}
func DefaultGenesisState() GenesisState {
	return GenesisState{
		CdpModuleParams{
			GlobalDebtLimit: sdk.NewInt(1000000),
			CollateralParams: []CollateralParams{
				{
					Denom:            "btc",
					LiquidationRatio: sdk.MustNewDecFromStr("1.5"),
					DebtLimit:        sdk.NewInt(500000),
				},
				{
					Denom:            "xrp",
					LiquidationRatio: sdk.MustNewDecFromStr("2.0"),
					DebtLimit:        sdk.NewInt(500000),
				},
			},
		},
		sdk.ZeroInt(),
	}
}