From b60064cd73da0b893b9c2f79935af3f93ec9b7b0 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 29 Mar 2022 12:20:58 +0200 Subject: [PATCH] Fix weight of `pool_join_with_exact_asset_amount` (#508) --- Cargo.lock | 30 +++++++++++++++--------------- zrml/swaps/src/lib.rs | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 14cadc227..2464924e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11903,7 +11903,7 @@ dependencies = [ [[package]] name = "zeitgeist-node" -version = "0.2.4" +version = "0.3.0" dependencies = [ "cfg-if 1.0.0", "cumulus-client-cli", @@ -11978,7 +11978,7 @@ dependencies = [ [[package]] name = "zeitgeist-primitives" -version = "0.2.4" +version = "0.3.0" dependencies = [ "arbitrary", "frame-support", @@ -11995,7 +11995,7 @@ dependencies = [ [[package]] name = "zeitgeist-runtime" -version = "0.2.4" +version = "0.3.0" dependencies = [ "cfg-if 1.0.0", "cumulus-pallet-dmp-queue", @@ -12096,7 +12096,7 @@ dependencies = [ [[package]] name = "zrml-authorized" -version = "0.2.4" +version = "0.3.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -12113,7 +12113,7 @@ dependencies = [ [[package]] name = "zrml-court" -version = "0.2.4" +version = "0.3.0" dependencies = [ "arrayvec 0.7.2", "frame-benchmarking", @@ -12133,7 +12133,7 @@ dependencies = [ [[package]] name = "zrml-liquidity-mining" -version = "0.2.4" +version = "0.3.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -12151,7 +12151,7 @@ dependencies = [ [[package]] name = "zrml-market-commons" -version = "0.2.4" +version = "0.3.0" dependencies = [ "frame-support", "frame-system", @@ -12164,7 +12164,7 @@ dependencies = [ [[package]] name = "zrml-orderbook-v1" -version = "0.2.4" +version = "0.3.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -12193,7 +12193,7 @@ dependencies = [ [[package]] name = "zrml-prediction-markets" -version = "0.2.4" +version = "0.3.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -12237,7 +12237,7 @@ dependencies = [ [[package]] name = "zrml-prediction-markets-runtime-api" -version = "0.2.4" +version = "0.3.0" dependencies = [ "parity-scale-codec 2.3.1", "sp-api", @@ -12246,7 +12246,7 @@ dependencies = [ [[package]] name = "zrml-rikiddo" -version = "0.2.4" +version = "0.3.0" dependencies = [ "arbitrary", "cfg-if 1.0.0", @@ -12279,7 +12279,7 @@ dependencies = [ [[package]] name = "zrml-simple-disputes" -version = "0.2.4" +version = "0.3.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -12296,7 +12296,7 @@ dependencies = [ [[package]] name = "zrml-swaps" -version = "0.2.4" +version = "0.3.0" dependencies = [ "frame-benchmarking", "frame-support", @@ -12333,7 +12333,7 @@ dependencies = [ [[package]] name = "zrml-swaps-rpc" -version = "0.2.4" +version = "0.3.0" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -12348,7 +12348,7 @@ dependencies = [ [[package]] name = "zrml-swaps-runtime-api" -version = "0.2.4" +version = "0.3.0" dependencies = [ "parity-scale-codec 2.3.1", "sp-api", diff --git a/zrml/swaps/src/lib.rs b/zrml/swaps/src/lib.rs index 99c24987c..e075aa839 100644 --- a/zrml/swaps/src/lib.rs +++ b/zrml/swaps/src/lib.rs @@ -1592,7 +1592,7 @@ mod pallet { pool_id, pool: pool_ref, }; - let weight = T::WeightInfo::pool_exit_with_exact_asset_amount(); + let weight = T::WeightInfo::pool_join_with_exact_asset_amount(); pool_join_with_exact_amount::<_, _, _, T>(params).map(|_| weight) }