From e4e0d3216745c6e85d94603cabf9720da1d02bab Mon Sep 17 00:00:00 2001 From: Tronic Date: Fri, 24 Jan 2025 16:51:06 +0100 Subject: [PATCH 1/7] fix typo prec_dec.go --- utils/math/prec_dec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/math/prec_dec.go b/utils/math/prec_dec.go index 8af1eb425..d4651e893 100644 --- a/utils/math/prec_dec.go +++ b/utils/math/prec_dec.go @@ -13,7 +13,7 @@ import ( ) // NOTE: This file is nearly direct copy from cosmossdk.io/math/dec.go @v1.01 -// The Precesion has been changed from 18 to 27 +// The Precessio has been changed from 18 to 27 // NOTE: never use new(Dec) or else we will panic unmarshalling into the // nil embedded big.Int From 1310bb0b83b06c0f77df63b8bdd5625c81f1f929 Mon Sep 17 00:00:00 2001 From: Tronic Date: Fri, 24 Jan 2025 16:51:44 +0100 Subject: [PATCH 2/7] fix typo prec_dec.go --- utils/math/prec_dec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/math/prec_dec.go b/utils/math/prec_dec.go index d4651e893..35f66c916 100644 --- a/utils/math/prec_dec.go +++ b/utils/math/prec_dec.go @@ -718,7 +718,7 @@ func (d PrecDec) TruncatePrecDec() PrecDec { return NewPrecDecFromBigInt(chopPrecisionAndTruncateNonMutative(d.i)) } -// Ceil returns the smallest interger value (as a decimal) that is greater than +// Ceil returns the smallest integer value (as a decimal) that is greater than // or equal to the given decimal. func (d PrecDec) Ceil() PrecDec { tmp := new(big.Int).Set(d.i) From 1aaf3e08fd22cfeed125130c22db41c6f3d35be4 Mon Sep 17 00:00:00 2001 From: Tronic Date: Fri, 24 Jan 2025 16:53:27 +0100 Subject: [PATCH 3/7] fix typo query.proto --- proto/neutron/dex/query.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/neutron/dex/query.proto b/proto/neutron/dex/query.proto index 58ae794b4..f189b28f0 100644 --- a/proto/neutron/dex/query.proto +++ b/proto/neutron/dex/query.proto @@ -310,7 +310,7 @@ message QueryEstimateMultiHopSwapRequest { ]; // If pickBestRoute == true then all routes are run and the route with the - // best price is chosen otherwise, the first succesful route is used. + // best price is chosen otherwise, the first successful route is used. bool pick_best_route = 6; } From 23876515e648a485f1f90d9d8550b864dc00b464 Mon Sep 17 00:00:00 2001 From: Tronic Date: Fri, 24 Jan 2025 16:54:19 +0100 Subject: [PATCH 4/7] fix typo tx.pb.go --- x/dex/types/tx.pb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/dex/types/tx.pb.go b/x/dex/types/tx.pb.go index 93681d614..60ef125dd 100644 --- a/x/dex/types/tx.pb.go +++ b/x/dex/types/tx.pb.go @@ -832,7 +832,7 @@ type MsgMultiHopSwap struct { AmountIn cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=cosmossdk.io/math.Int" json:"amount_in" yaml:"amount_in"` ExitLimitPrice github_com_neutron_org_neutron_v5_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/v5/utils/math.PrecDec" json:"exit_limit_price" yaml:"exit_limit_price"` // If pickBestRoute == true then all routes are run and the route with the - // best price is chosen otherwise, the first succesful route is used. + // best price is chosen otherwise, the first successful route is used. PickBestRoute bool `protobuf:"varint,6,opt,name=pick_best_route,json=pickBestRoute,proto3" json:"pick_best_route,omitempty"` } From ae9c8a6d8b6645c2f76b26ede431ccfdb330abcc Mon Sep 17 00:00:00 2001 From: Tronic Date: Fri, 24 Jan 2025 16:55:09 +0100 Subject: [PATCH 5/7] fix typo query.pb.go --- x/dex/types/query.pb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/dex/types/query.pb.go b/x/dex/types/query.pb.go index 9bb947c6f..db2142704 100644 --- a/x/dex/types/query.pb.go +++ b/x/dex/types/query.pb.go @@ -1334,7 +1334,7 @@ type QueryEstimateMultiHopSwapRequest struct { AmountIn cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount_in,json=amountIn,proto3,customtype=cosmossdk.io/math.Int" json:"amount_in" yaml:"amount_in"` ExitLimitPrice github_com_neutron_org_neutron_v5_utils_math.PrecDec `protobuf:"bytes,5,opt,name=exit_limit_price,json=exitLimitPrice,proto3,customtype=github.com/neutron-org/neutron/v5/utils/math.PrecDec" json:"exit_limit_price" yaml:"exit_limit_price"` // If pickBestRoute == true then all routes are run and the route with the - // best price is chosen otherwise, the first succesful route is used. + // best price is chosen otherwise, the first successful route is used. PickBestRoute bool `protobuf:"varint,6,opt,name=pick_best_route,json=pickBestRoute,proto3" json:"pick_best_route,omitempty"` } From e1708f92a697460bc3a7fed23f954e4c14d16694 Mon Sep 17 00:00:00 2001 From: Tronica Date: Fri, 14 Feb 2025 17:39:46 +0100 Subject: [PATCH 6/7] Update prec_dec.go --- utils/math/prec_dec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/math/prec_dec.go b/utils/math/prec_dec.go index 35f66c916..647c6b53a 100644 --- a/utils/math/prec_dec.go +++ b/utils/math/prec_dec.go @@ -13,7 +13,7 @@ import ( ) // NOTE: This file is nearly direct copy from cosmossdk.io/math/dec.go @v1.01 -// The Precessio has been changed from 18 to 27 +// The Precession has been changed from 18 to 27 // NOTE: never use new(Dec) or else we will panic unmarshalling into the // nil embedded big.Int From 7b93441db6f6f6e4c45b3763c7fca99b7254b90a Mon Sep 17 00:00:00 2001 From: Tronica Date: Mon, 17 Feb 2025 09:55:03 +0100 Subject: [PATCH 7/7] Update prec_dec.go --- utils/math/prec_dec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/math/prec_dec.go b/utils/math/prec_dec.go index 647c6b53a..79fbd319e 100644 --- a/utils/math/prec_dec.go +++ b/utils/math/prec_dec.go @@ -13,7 +13,7 @@ import ( ) // NOTE: This file is nearly direct copy from cosmossdk.io/math/dec.go @v1.01 -// The Precession has been changed from 18 to 27 +// The precision has been changed from 18 to 27 // NOTE: never use new(Dec) or else we will panic unmarshalling into the // nil embedded big.Int