From 7a3aaf9492ea2525c038b05b64dd74d9abe09f2d Mon Sep 17 00:00:00 2001 From: cdamian <17934949+cdamian@users.noreply.github.com> Date: Fri, 1 Dec 2023 12:06:03 +0100 Subject: [PATCH] restricted-xtokens: Update weights --- pallets/restricted-xtokens/src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pallets/restricted-xtokens/src/lib.rs b/pallets/restricted-xtokens/src/lib.rs index 1abeb069d2..a9451793eb 100644 --- a/pallets/restricted-xtokens/src/lib.rs +++ b/pallets/restricted-xtokens/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Centrifuge Foundation (centrifuge.io). +// Copyright 2023 Centrifuge Foundation (centrifuge.io). // // This file is part of the Centrifuge chain project. // Centrifuge is free software: you can redistribute it and/or modify @@ -122,7 +122,7 @@ pub mod pallet { /// by the network, and if the receiving chain would handle /// messages correctly. #[pallet::call_index(0)] - #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer(currency_id.clone(), * amount, dest))] + #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer(currency_id.clone(), * amount, dest) + T::DbWeight::get().reads(4))] pub fn transfer( origin: OriginFor, currency_id: T::CurrencyId, @@ -164,7 +164,7 @@ pub mod pallet { /// by the network, and if the receiving chain would handle /// messages correctly. #[pallet::call_index(1)] - #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multiasset(asset, dest))] + #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multiasset(asset, dest) + T::DbWeight::get().reads(4))] pub fn transfer_multiasset( origin: OriginFor, asset: Box, @@ -210,7 +210,7 @@ pub mod pallet { /// by the network, and if the receiving chain would handle /// messages correctly. #[pallet::call_index(2)] - #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer(currency_id.clone(), * amount, dest))] + #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer(currency_id.clone(), * amount, dest) + T::DbWeight::get().reads(4))] pub fn transfer_with_fee( origin: OriginFor, currency_id: T::CurrencyId, @@ -264,7 +264,7 @@ pub mod pallet { /// by the network, and if the receiving chain would handle /// messages correctly. #[pallet::call_index(3)] - #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multiasset(asset, dest))] + #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multiasset(asset, dest) + T::DbWeight::get().reads(4))] pub fn transfer_multiasset_with_fee( origin: OriginFor, asset: Box, @@ -315,7 +315,7 @@ pub mod pallet { /// by the network, and if the receiving chain would handle /// messages correctly. #[pallet::call_index(4)] - #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multicurrencies(currencies, fee_item, dest))] + #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multicurrencies(currencies, fee_item, dest) + T::DbWeight::get().reads(4))] pub fn transfer_multicurrencies( origin: OriginFor, currencies: Vec<(T::CurrencyId, T::Balance)>, @@ -363,7 +363,7 @@ pub mod pallet { /// by the network, and if the receiving chain would handle /// messages correctly. #[pallet::call_index(5)] - #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multiassets(assets, fee_item, dest))] + #[pallet::weight(orml_xtokens::XtokensWeight::< T >::weight_of_transfer_multiassets(assets, fee_item, dest) + T::DbWeight::get().reads(4))] pub fn transfer_multiassets( origin: OriginFor, assets: Box,