Skip to content

feat: add support to dec34 #104

feat: add support to dec34

feat: add support to dec34 #104

Triggered via pull request January 7, 2025 18:34
Status Failure
Total duration 1m 22s
Billable time 2m
Artifacts
create-new-snapshot
1m 13s
create-new-snapshot
Fit to window
Zoom out
Zoom in

Annotations

10 errors
create-new-snapshot: x/amm/types/amm_price.go#L39
cannot use priceA.Quo(priceB) (value of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in return statement
create-new-snapshot: x/amm/types/calc_exit_pool.go#L119
cannot use tokenPrice (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to exitValueWithoutSlippage.Quo
create-new-snapshot: x/amm/types/pool.go#L318
cannot use tokenPrice (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to amount.ToLegacyDec().Mul
create-new-snapshot: x/amm/types/pool_join_pool.go#L27
cannot use sdkmath.LegacyNewDecFromInt(asset.Amount) (value of type "cosmossdk.io/math".LegacyDec) as "github.com/elys-network/elys/types".Dec34 value in argument to tokenPrice.Mul
create-new-snapshot: x/amm/types/pool_join_pool.go#L28
cannot use v (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to joinValue.Add
create-new-snapshot: x/amm/types/swap_in_amt_given_out.go#L39
cannot use outTokenPrice (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to sdkmath.LegacyNewDecFromInt(tokenOut.Amount).Mul
create-new-snapshot: x/amm/types/swap_in_amt_given_out.go#L39
cannot use inTokenPrice (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to sdkmath.LegacyNewDecFromInt(tokenOut.Amount).Mul(outTokenPrice).Quo
create-new-snapshot: x/amm/types/swap_in_amt_given_out.go#L90
cannot use outTokenPrice (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to sdkmath.LegacyNewDecFromInt(tokenOut.Amount).Mul
create-new-snapshot: x/amm/types/swap_in_amt_given_out.go#L90
cannot use inTokenPrice (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to sdkmath.LegacyNewDecFromInt(tokenOut.Amount).Mul(outTokenPrice).Quo
create-new-snapshot: x/amm/types/swap_out_amt_given_in.go#L43
cannot use tokenPrice (variable of type "github.com/elys-network/elys/types".Dec34) as "cosmossdk.io/math".LegacyDec value in argument to amount.ToLegacyDec().Mul