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 3m 11s
Artifacts

unit-test-and-coverage.yml

on: pull_request
Run tests and collect coverage
2m 59s
Run tests and collect coverage
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage: 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
Run tests and collect coverage
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636