func (p CdpModuleParams) String() string {
	out := fmt.Sprintf(`Params:
	Global Debt Limit: %s
	Collateral Params:`,
		p.GlobalDebtLimit,
	)
	for _, cp := range p.CollateralParams {
		out += fmt.Sprintf(`
		%s
			Liquidation Ratio: %s
			Debt Limit:        %s`,
			cp.Denom,
			cp.LiquidationRatio,
			cp.DebtLimit,
		)
	}
	return out
}
Implement fmt.Stringer interface for cli querying
package cdp
import (
	"fmt"
	sdk "github.com/cosmos/cosmos-sdk/types"
	"github.com/cosmos/cosmos-sdk/x/params"
)
type CdpModuleParams struct {
	GlobalDebtLimit  sdk.Int
	CollateralParams []CollateralParams
}
type CollateralParams struct {
	Denom            string   
	LiquidationRatio sdk.Dec  
	DebtLimit        sdk.Int  
}
var moduleParamsKey = []byte("CdpModuleParams")
func createParamsKeyTable() params.KeyTable {
	return params.NewKeyTable(
		moduleParamsKey, CdpModuleParams{},
	)
}