From 9940a09e56b5642d4c5ce313560d707b293c75b0 Mon Sep 17 00:00:00 2001 From: Charles Dusek Date: Wed, 13 Dec 2023 15:15:18 -0600 Subject: [PATCH] Set default onomy and reserve channels to zero --- x/portal/types/params.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x/portal/types/params.go b/x/portal/types/params.go index 3fe7a50e..01bee895 100644 --- a/x/portal/types/params.go +++ b/x/portal/types/params.go @@ -17,9 +17,9 @@ var ( var ( // DefaultEarnRate is default value for the DefaultEarnRate param. - DefaultOnomyChannel = "1" //nolint:gomnd,gochecknoglobals // cosmos-sdk style + DefaultOnomyChannel = "0" //nolint:gomnd,gochecknoglobals // cosmos-sdk style // DefaultReserveChannel is default value for the DefaultReserveChannel param. - DefaultReserveChannel = "2" //nolint:gomnd,gochecknoglobals // cosmos-sdk style + DefaultReserveChannel = "0" //nolint:gomnd,gochecknoglobals // cosmos-sdk style ) var _ paramtypes.ParamSet = (*Params)(nil) @@ -81,7 +81,7 @@ func validateOnomyChannel(i interface{}) error { if !ok { return fmt.Errorf("invalid string number format: %q", value) } - if onomyChannel.LTE(sdk.ZeroInt()) { + if onomyChannel.LT(sdk.ZeroInt()) { return fmt.Errorf("onomy channel must be positive and greater than zero: %d", onomyChannel) } @@ -98,7 +98,7 @@ func validateReserveChannel(i interface{}) error { if !ok { return fmt.Errorf("invalid string number format: %q", value) } - if reserveChannel.LTE(sdk.ZeroInt()) { + if reserveChannel.LT(sdk.ZeroInt()) { return fmt.Errorf("reserve channel must be positive and greater than zero: %d", reserveChannel) }