pallet_asset_rewards/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_asset_rewards`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_asset_rewards
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/asset-rewards/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_asset_rewards`.
74pub trait WeightInfo {
75 fn create_pool() -> Weight;
76 fn stake() -> Weight;
77 fn unstake() -> Weight;
78 fn harvest_rewards() -> Weight;
79 fn set_pool_reward_rate_per_block() -> Weight;
80 fn set_pool_admin() -> Weight;
81 fn set_pool_expiry_block() -> Weight;
82 fn deposit_reward_tokens() -> Weight;
83 fn cleanup_pool() -> Weight;
84}
85
86/// Weights for `pallet_asset_rewards` using the Substrate node and recommended hardware.
87pub struct SubstrateWeight<T>(PhantomData<T>);
88impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
89 /// Storage: `Assets::Asset` (r:2 w:0)
90 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
91 /// Storage: `AssetRewards::NextPoolId` (r:1 w:1)
92 /// Proof: `AssetRewards::NextPoolId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
93 /// Storage: `System::Account` (r:1 w:1)
94 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
95 /// Storage: `Balances::Holds` (r:1 w:1)
96 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
97 /// Storage: `AssetRewards::PoolCost` (r:0 w:1)
98 /// Proof: `AssetRewards::PoolCost` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
99 /// Storage: `AssetRewards::Pools` (r:0 w:1)
100 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
101 fn create_pool() -> Weight {
102 // Proof Size summary in bytes:
103 // Measured: `169`
104 // Estimated: `6360`
105 // Minimum execution time: 51_207_000 picoseconds.
106 Weight::from_parts(52_880_000, 6360)
107 .saturating_add(T::DbWeight::get().reads(5_u64))
108 .saturating_add(T::DbWeight::get().writes(5_u64))
109 }
110 /// Storage: `AssetRewards::Pools` (r:1 w:1)
111 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
112 /// Storage: `AssetRewards::PoolStakers` (r:1 w:1)
113 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
114 /// Storage: `AssetsFreezer::Freezes` (r:1 w:1)
115 /// Proof: `AssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`)
116 /// Storage: `Assets::Account` (r:1 w:0)
117 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
118 /// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:1)
119 /// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
120 fn stake() -> Weight {
121 // Proof Size summary in bytes:
122 // Measured: `638`
123 // Estimated: `3615`
124 // Minimum execution time: 44_515_000 picoseconds.
125 Weight::from_parts(45_206_000, 3615)
126 .saturating_add(T::DbWeight::get().reads(5_u64))
127 .saturating_add(T::DbWeight::get().writes(4_u64))
128 }
129 /// Storage: `AssetRewards::Pools` (r:1 w:1)
130 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
131 /// Storage: `AssetRewards::PoolStakers` (r:1 w:1)
132 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
133 /// Storage: `AssetsFreezer::Freezes` (r:1 w:1)
134 /// Proof: `AssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`)
135 /// Storage: `Assets::Account` (r:1 w:0)
136 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
137 /// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:1)
138 /// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
139 fn unstake() -> Weight {
140 // Proof Size summary in bytes:
141 // Measured: `638`
142 // Estimated: `3615`
143 // Minimum execution time: 46_068_000 picoseconds.
144 Weight::from_parts(46_950_000, 3615)
145 .saturating_add(T::DbWeight::get().reads(5_u64))
146 .saturating_add(T::DbWeight::get().writes(4_u64))
147 }
148 /// Storage: `AssetRewards::Pools` (r:1 w:0)
149 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
150 /// Storage: `AssetRewards::PoolStakers` (r:1 w:1)
151 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
152 /// Storage: `Assets::Asset` (r:1 w:1)
153 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
154 /// Storage: `Assets::Account` (r:2 w:2)
155 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
156 fn harvest_rewards() -> Weight {
157 // Proof Size summary in bytes:
158 // Measured: `766`
159 // Estimated: `6208`
160 // Minimum execution time: 60_648_000 picoseconds.
161 Weight::from_parts(62_025_000, 6208)
162 .saturating_add(T::DbWeight::get().reads(5_u64))
163 .saturating_add(T::DbWeight::get().writes(4_u64))
164 }
165 /// Storage: `AssetRewards::Pools` (r:1 w:1)
166 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
167 fn set_pool_reward_rate_per_block() -> Weight {
168 // Proof Size summary in bytes:
169 // Measured: `218`
170 // Estimated: `3615`
171 // Minimum execution time: 12_600_000 picoseconds.
172 Weight::from_parts(13_049_000, 3615)
173 .saturating_add(T::DbWeight::get().reads(1_u64))
174 .saturating_add(T::DbWeight::get().writes(1_u64))
175 }
176 /// Storage: `AssetRewards::Pools` (r:1 w:1)
177 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
178 fn set_pool_admin() -> Weight {
179 // Proof Size summary in bytes:
180 // Measured: `218`
181 // Estimated: `3615`
182 // Minimum execution time: 12_074_000 picoseconds.
183 Weight::from_parts(12_344_000, 3615)
184 .saturating_add(T::DbWeight::get().reads(1_u64))
185 .saturating_add(T::DbWeight::get().writes(1_u64))
186 }
187 /// Storage: `AssetRewards::Pools` (r:1 w:1)
188 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
189 fn set_pool_expiry_block() -> Weight {
190 // Proof Size summary in bytes:
191 // Measured: `218`
192 // Estimated: `3615`
193 // Minimum execution time: 13_587_000 picoseconds.
194 Weight::from_parts(14_037_000, 3615)
195 .saturating_add(T::DbWeight::get().reads(1_u64))
196 .saturating_add(T::DbWeight::get().writes(1_u64))
197 }
198 /// Storage: `AssetRewards::Pools` (r:1 w:0)
199 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
200 /// Storage: `Assets::Asset` (r:1 w:1)
201 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
202 /// Storage: `Assets::Account` (r:2 w:2)
203 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
204 /// Storage: `System::Account` (r:1 w:1)
205 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
206 fn deposit_reward_tokens() -> Weight {
207 // Proof Size summary in bytes:
208 // Measured: `585`
209 // Estimated: `6208`
210 // Minimum execution time: 51_501_000 picoseconds.
211 Weight::from_parts(52_593_000, 6208)
212 .saturating_add(T::DbWeight::get().reads(5_u64))
213 .saturating_add(T::DbWeight::get().writes(4_u64))
214 }
215 /// Storage: `AssetRewards::Pools` (r:1 w:1)
216 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
217 /// Storage: `AssetRewards::PoolStakers` (r:1 w:0)
218 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
219 /// Storage: `Assets::Asset` (r:1 w:1)
220 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
221 /// Storage: `Assets::Account` (r:2 w:2)
222 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
223 /// Storage: `System::Account` (r:2 w:2)
224 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
225 /// Storage: `AssetRewards::PoolCost` (r:1 w:1)
226 /// Proof: `AssetRewards::PoolCost` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
227 /// Storage: `Balances::Holds` (r:1 w:1)
228 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
229 fn cleanup_pool() -> Weight {
230 // Proof Size summary in bytes:
231 // Measured: `943`
232 // Estimated: `6208`
233 // Minimum execution time: 98_758_000 picoseconds.
234 Weight::from_parts(100_771_000, 6208)
235 .saturating_add(T::DbWeight::get().reads(9_u64))
236 .saturating_add(T::DbWeight::get().writes(8_u64))
237 }
238}
239
240// For backwards compatibility and tests.
241impl WeightInfo for () {
242 /// Storage: `Assets::Asset` (r:2 w:0)
243 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
244 /// Storage: `AssetRewards::NextPoolId` (r:1 w:1)
245 /// Proof: `AssetRewards::NextPoolId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
246 /// Storage: `System::Account` (r:1 w:1)
247 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
248 /// Storage: `Balances::Holds` (r:1 w:1)
249 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
250 /// Storage: `AssetRewards::PoolCost` (r:0 w:1)
251 /// Proof: `AssetRewards::PoolCost` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
252 /// Storage: `AssetRewards::Pools` (r:0 w:1)
253 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
254 fn create_pool() -> Weight {
255 // Proof Size summary in bytes:
256 // Measured: `169`
257 // Estimated: `6360`
258 // Minimum execution time: 51_207_000 picoseconds.
259 Weight::from_parts(52_880_000, 6360)
260 .saturating_add(RocksDbWeight::get().reads(5_u64))
261 .saturating_add(RocksDbWeight::get().writes(5_u64))
262 }
263 /// Storage: `AssetRewards::Pools` (r:1 w:1)
264 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
265 /// Storage: `AssetRewards::PoolStakers` (r:1 w:1)
266 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
267 /// Storage: `AssetsFreezer::Freezes` (r:1 w:1)
268 /// Proof: `AssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`)
269 /// Storage: `Assets::Account` (r:1 w:0)
270 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
271 /// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:1)
272 /// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
273 fn stake() -> Weight {
274 // Proof Size summary in bytes:
275 // Measured: `638`
276 // Estimated: `3615`
277 // Minimum execution time: 44_515_000 picoseconds.
278 Weight::from_parts(45_206_000, 3615)
279 .saturating_add(RocksDbWeight::get().reads(5_u64))
280 .saturating_add(RocksDbWeight::get().writes(4_u64))
281 }
282 /// Storage: `AssetRewards::Pools` (r:1 w:1)
283 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
284 /// Storage: `AssetRewards::PoolStakers` (r:1 w:1)
285 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
286 /// Storage: `AssetsFreezer::Freezes` (r:1 w:1)
287 /// Proof: `AssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(105), added: 2580, mode: `MaxEncodedLen`)
288 /// Storage: `Assets::Account` (r:1 w:0)
289 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
290 /// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:1)
291 /// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
292 fn unstake() -> Weight {
293 // Proof Size summary in bytes:
294 // Measured: `638`
295 // Estimated: `3615`
296 // Minimum execution time: 46_068_000 picoseconds.
297 Weight::from_parts(46_950_000, 3615)
298 .saturating_add(RocksDbWeight::get().reads(5_u64))
299 .saturating_add(RocksDbWeight::get().writes(4_u64))
300 }
301 /// Storage: `AssetRewards::Pools` (r:1 w:0)
302 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
303 /// Storage: `AssetRewards::PoolStakers` (r:1 w:1)
304 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
305 /// Storage: `Assets::Asset` (r:1 w:1)
306 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
307 /// Storage: `Assets::Account` (r:2 w:2)
308 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
309 fn harvest_rewards() -> Weight {
310 // Proof Size summary in bytes:
311 // Measured: `766`
312 // Estimated: `6208`
313 // Minimum execution time: 60_648_000 picoseconds.
314 Weight::from_parts(62_025_000, 6208)
315 .saturating_add(RocksDbWeight::get().reads(5_u64))
316 .saturating_add(RocksDbWeight::get().writes(4_u64))
317 }
318 /// Storage: `AssetRewards::Pools` (r:1 w:1)
319 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
320 fn set_pool_reward_rate_per_block() -> Weight {
321 // Proof Size summary in bytes:
322 // Measured: `218`
323 // Estimated: `3615`
324 // Minimum execution time: 12_600_000 picoseconds.
325 Weight::from_parts(13_049_000, 3615)
326 .saturating_add(RocksDbWeight::get().reads(1_u64))
327 .saturating_add(RocksDbWeight::get().writes(1_u64))
328 }
329 /// Storage: `AssetRewards::Pools` (r:1 w:1)
330 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
331 fn set_pool_admin() -> Weight {
332 // Proof Size summary in bytes:
333 // Measured: `218`
334 // Estimated: `3615`
335 // Minimum execution time: 12_074_000 picoseconds.
336 Weight::from_parts(12_344_000, 3615)
337 .saturating_add(RocksDbWeight::get().reads(1_u64))
338 .saturating_add(RocksDbWeight::get().writes(1_u64))
339 }
340 /// Storage: `AssetRewards::Pools` (r:1 w:1)
341 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
342 fn set_pool_expiry_block() -> Weight {
343 // Proof Size summary in bytes:
344 // Measured: `218`
345 // Estimated: `3615`
346 // Minimum execution time: 13_587_000 picoseconds.
347 Weight::from_parts(14_037_000, 3615)
348 .saturating_add(RocksDbWeight::get().reads(1_u64))
349 .saturating_add(RocksDbWeight::get().writes(1_u64))
350 }
351 /// Storage: `AssetRewards::Pools` (r:1 w:0)
352 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
353 /// Storage: `Assets::Asset` (r:1 w:1)
354 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
355 /// Storage: `Assets::Account` (r:2 w:2)
356 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
357 /// Storage: `System::Account` (r:1 w:1)
358 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
359 fn deposit_reward_tokens() -> Weight {
360 // Proof Size summary in bytes:
361 // Measured: `585`
362 // Estimated: `6208`
363 // Minimum execution time: 51_501_000 picoseconds.
364 Weight::from_parts(52_593_000, 6208)
365 .saturating_add(RocksDbWeight::get().reads(5_u64))
366 .saturating_add(RocksDbWeight::get().writes(4_u64))
367 }
368 /// Storage: `AssetRewards::Pools` (r:1 w:1)
369 /// Proof: `AssetRewards::Pools` (`max_values`: None, `max_size`: Some(150), added: 2625, mode: `MaxEncodedLen`)
370 /// Storage: `AssetRewards::PoolStakers` (r:1 w:0)
371 /// Proof: `AssetRewards::PoolStakers` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
372 /// Storage: `Assets::Asset` (r:1 w:1)
373 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
374 /// Storage: `Assets::Account` (r:2 w:2)
375 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
376 /// Storage: `System::Account` (r:2 w:2)
377 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
378 /// Storage: `AssetRewards::PoolCost` (r:1 w:1)
379 /// Proof: `AssetRewards::PoolCost` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
380 /// Storage: `Balances::Holds` (r:1 w:1)
381 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(427), added: 2902, mode: `MaxEncodedLen`)
382 fn cleanup_pool() -> Weight {
383 // Proof Size summary in bytes:
384 // Measured: `943`
385 // Estimated: `6208`
386 // Minimum execution time: 98_758_000 picoseconds.
387 Weight::from_parts(100_771_000, 6208)
388 .saturating_add(RocksDbWeight::get().reads(9_u64))
389 .saturating_add(RocksDbWeight::get().writes(8_u64))
390 }
391}