Skip to content

Commit 02bd690

Browse files
ferrell-codeAcala Benchmarking Bot
andauthored
Make close_dex benchmark Worst Case (#2314)
* make close dex worst case and add dbg_assert * cargo run --quiet --profile=production --color=never --bin=acala --features=runtime-benchmarks --features=with-acala-runtime --features=on-chain-release-build -- benchmark pallet --chain=acala-dev --steps=50 --repeat=20 --pallet=module_honzon --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/acala/src/weights/ * cargo run --quiet --profile=production --color=never --bin=acala --features=runtime-benchmarks --features=with-karura-runtime --features=on-chain-release-build -- benchmark pallet --chain=karura-dev --steps=50 --repeat=20 --pallet=module_honzon --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/karura/src/weights/ * use debug_assert_eq! Co-authored-by: Acala Benchmarking Bot <hello@acala.network>
1 parent 7a2c3a5 commit 02bd690

File tree

4 files changed

+67
-59
lines changed

4 files changed

+67
-59
lines changed

modules/homa/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,12 @@ pub mod module {
362362
let bump_era_number = Self::era_amount_should_to_bump(T::RelayChainBlockNumber::current_block_number());
363363
if !bump_era_number.is_zero() {
364364
let _ = Self::bump_current_era(bump_era_number);
365+
debug_assert_eq!(
366+
TotalStakingBonded::<T>::get(),
367+
StakingLedgers::<T>::iter().fold(Zero::zero(), |total_bonded: Balance, (_, ledger)| {
368+
total_bonded.saturating_add(ledger.bonded)
369+
})
370+
);
365371
<T as Config>::WeightInfo::on_initialize_with_bump_era()
366372
} else {
367373
<T as Config>::WeightInfo::on_initialize()

runtime/acala/src/weights/module_honzon.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! Autogenerated weights for module_honzon
2020
//!
2121
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
22-
//! DATE: 2022-08-01, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
22+
//! DATE: 2022-08-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2323
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024
2424
2525
// Executed Command:
@@ -51,25 +51,25 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
5151
// Storage: Honzon Authorization (r:1 w:1)
5252
// Storage: Balances Reserves (r:1 w:1)
5353
fn authorize() -> Weight {
54-
(29_590_000 as Weight)
54+
(29_504_000 as Weight)
5555
.saturating_add(T::DbWeight::get().reads(3 as Weight))
5656
.saturating_add(T::DbWeight::get().writes(3 as Weight))
5757
}
5858
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
5959
// Storage: Honzon Authorization (r:1 w:1)
6060
// Storage: Balances Reserves (r:1 w:1)
6161
fn unauthorize() -> Weight {
62-
(31_399_000 as Weight)
62+
(31_075_000 as Weight)
6363
.saturating_add(T::DbWeight::get().reads(3 as Weight))
6464
.saturating_add(T::DbWeight::get().writes(3 as Weight))
6565
}
6666
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
6767
// Storage: Balances Reserves (r:1 w:0)
6868
// Storage: Honzon Authorization (r:0 w:1)
6969
fn unauthorize_all(c: u32, ) -> Weight {
70-
(22_300_000 as Weight)
71-
// Standard Error: 398_000
72-
.saturating_add((4_857_000 as Weight).saturating_mul(c as Weight))
70+
(22_114_000 as Weight)
71+
// Standard Error: 391_000
72+
.saturating_add((4_847_000 as Weight).saturating_mul(c as Weight))
7373
.saturating_add(T::DbWeight::get().reads(2 as Weight))
7474
.saturating_add(T::DbWeight::get().writes(1 as Weight))
7575
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
@@ -89,7 +89,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
8989
// Storage: AcalaOracle Values (r:1 w:0)
9090
// Storage: AssetRegistry AssetMetadatas (r:2 w:0)
9191
fn adjust_loan() -> Weight {
92-
(104_230_000 as Weight)
92+
(104_167_000 as Weight)
9393
.saturating_add(T::DbWeight::get().reads(16 as Weight))
9494
.saturating_add(T::DbWeight::get().writes(8 as Weight))
9595
}
@@ -107,7 +107,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
107107
// Storage: System Account (r:1 w:1)
108108
// Storage: Loans TotalPositions (r:1 w:1)
109109
fn transfer_loan_from() -> Weight {
110-
(86_873_000 as Weight)
110+
(85_674_000 as Weight)
111111
.saturating_add(T::DbWeight::get().reads(17 as Weight))
112112
.saturating_add(T::DbWeight::get().writes(8 as Weight))
113113
}
@@ -116,29 +116,29 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
116116
// Storage: Loans Positions (r:1 w:1)
117117
// Storage: Prices LockedPrice (r:2 w:0)
118118
// Storage: AcalaOracle Values (r:1 w:0)
119-
// Storage: AssetRegistry AssetMetadatas (r:2 w:0)
120-
// Storage: Homa TotalStakingBonded (r:1 w:0)
121-
// Storage: Homa ToBondPool (r:1 w:0)
122-
// Storage: Tokens TotalIssuance (r:1 w:0)
123-
// Storage: Homa TotalVoidLiquid (r:1 w:0)
119+
// Storage: AssetRegistry AssetMetadatas (r:3 w:0)
124120
// Storage: CdpEngine DebitExchangeRate (r:1 w:0)
125121
// Storage: CdpEngine CollateralParams (r:1 w:0)
126-
// Storage: Tokens Accounts (r:6 w:6)
127-
// Storage: System Account (r:3 w:2)
122+
// Storage: Tokens Accounts (r:10 w:10)
123+
// Storage: System Account (r:4 w:2)
128124
// Storage: EvmAccounts EvmAddresses (r:1 w:0)
129125
// Storage: CdpTreasury DebitPool (r:1 w:1)
130126
// Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1)
131127
// Storage: Rewards PoolInfos (r:1 w:1)
132128
// Storage: Loans TotalPositions (r:1 w:1)
133129
// Storage: AuctionManager TotalCollateralInAuction (r:1 w:0)
134130
// Storage: Dex TradingPairStatuses (r:4 w:0)
135-
// Storage: Dex LiquidityPool (r:2 w:2)
136-
// Storage: StableAsset Pools (r:1 w:0)
131+
// Storage: Dex LiquidityPool (r:4 w:1)
132+
// Storage: StableAsset Pools (r:2 w:1)
137133
// Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0)
134+
// Storage: Homa TotalStakingBonded (r:1 w:0)
135+
// Storage: Homa ToBondPool (r:1 w:0)
136+
// Storage: Tokens TotalIssuance (r:2 w:1)
137+
// Storage: Homa TotalVoidLiquid (r:1 w:0)
138138
fn close_loan_has_debit_by_dex() -> Weight {
139-
(257_598_000 as Weight)
140-
.saturating_add(T::DbWeight::get().reads(37 as Weight))
141-
.saturating_add(T::DbWeight::get().writes(16 as Weight))
139+
(487_593_000 as Weight)
140+
.saturating_add(T::DbWeight::get().reads(47 as Weight))
141+
.saturating_add(T::DbWeight::get().writes(21 as Weight))
142142
}
143143
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
144144
// Storage: CdpEngine CollateralParams (r:1 w:0)
@@ -158,7 +158,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
158158
// Storage: AcalaOracle Values (r:1 w:0)
159159
// Storage: AssetRegistry AssetMetadatas (r:2 w:0)
160160
fn expand_position_collateral() -> Weight {
161-
(227_767_000 as Weight)
161+
(227_308_000 as Weight)
162162
.saturating_add(T::DbWeight::get().reads(32 as Weight))
163163
.saturating_add(T::DbWeight::get().writes(13 as Weight))
164164
}
@@ -181,7 +181,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
181181
// Storage: Rewards PoolInfos (r:1 w:1)
182182
// Storage: Loans TotalPositions (r:1 w:1)
183183
fn shrink_position_debit() -> Weight {
184-
(365_182_000 as Weight)
184+
(363_915_000 as Weight)
185185
.saturating_add(T::DbWeight::get().reads(39 as Weight))
186186
.saturating_add(T::DbWeight::get().writes(19 as Weight))
187187
}
@@ -199,7 +199,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
199199
// Storage: Homa ToBondPool (r:1 w:0)
200200
// Storage: Homa TotalVoidLiquid (r:1 w:0)
201201
fn transfer_debit() -> Weight {
202-
(217_935_000 as Weight)
202+
(135_809_000 as Weight)
203203
.saturating_add(T::DbWeight::get().reads(21 as Weight))
204204
.saturating_add(T::DbWeight::get().writes(7 as Weight))
205205
}
@@ -213,7 +213,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
213213
// Storage: Homa TotalVoidLiquid (r:1 w:0)
214214
// Storage: CdpEngine DebitExchangeRate (r:1 w:0)
215215
fn precompile_get_current_collateral_ratio() -> Weight {
216-
(32_496_000 as Weight)
216+
(32_806_000 as Weight)
217217
.saturating_add(T::DbWeight::get().reads(11 as Weight))
218218
}
219219
}

runtime/karura/src/weights/module_honzon.rs

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! Autogenerated weights for module_honzon
2020
//!
2121
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
22-
//! DATE: 2022-07-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
22+
//! DATE: 2022-08-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2323
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024
2424
2525
// Executed Command:
@@ -29,7 +29,7 @@
2929
// --chain=karura-dev
3030
// --steps=50
3131
// --repeat=20
32-
// --pallet=*
32+
// --pallet=module_honzon
3333
// --extrinsic=*
3434
// --execution=wasm
3535
// --wasm-execution=compiled
@@ -51,25 +51,25 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
5151
// Storage: Honzon Authorization (r:1 w:1)
5252
// Storage: Balances Reserves (r:1 w:1)
5353
fn authorize() -> Weight {
54-
(30_023_000 as Weight)
54+
(52_590_000 as Weight)
5555
.saturating_add(T::DbWeight::get().reads(3 as Weight))
5656
.saturating_add(T::DbWeight::get().writes(3 as Weight))
5757
}
5858
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
5959
// Storage: Honzon Authorization (r:1 w:1)
6060
// Storage: Balances Reserves (r:1 w:1)
6161
fn unauthorize() -> Weight {
62-
(31_449_000 as Weight)
62+
(31_507_000 as Weight)
6363
.saturating_add(T::DbWeight::get().reads(3 as Weight))
6464
.saturating_add(T::DbWeight::get().writes(3 as Weight))
6565
}
6666
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
6767
// Storage: Balances Reserves (r:1 w:0)
6868
// Storage: Honzon Authorization (r:0 w:1)
6969
fn unauthorize_all(c: u32, ) -> Weight {
70-
(22_604_000 as Weight)
71-
// Standard Error: 408_000
72-
.saturating_add((4_535_000 as Weight).saturating_mul(c as Weight))
70+
(22_653_000 as Weight)
71+
// Standard Error: 443_000
72+
.saturating_add((4_414_000 as Weight).saturating_mul(c as Weight))
7373
.saturating_add(T::DbWeight::get().reads(2 as Weight))
7474
.saturating_add(T::DbWeight::get().writes(1 as Weight))
7575
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
@@ -89,7 +89,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
8989
// Storage: AcalaOracle Values (r:1 w:0)
9090
// Storage: AssetRegistry AssetMetadatas (r:2 w:0)
9191
fn adjust_loan() -> Weight {
92-
(112_387_000 as Weight)
92+
(110_970_000 as Weight)
9393
.saturating_add(T::DbWeight::get().reads(18 as Weight))
9494
.saturating_add(T::DbWeight::get().writes(10 as Weight))
9595
}
@@ -107,7 +107,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
107107
// Storage: System Account (r:1 w:1)
108108
// Storage: Loans TotalPositions (r:1 w:1)
109109
fn transfer_loan_from() -> Weight {
110-
(87_216_000 as Weight)
110+
(86_059_000 as Weight)
111111
.saturating_add(T::DbWeight::get().reads(17 as Weight))
112112
.saturating_add(T::DbWeight::get().writes(8 as Weight))
113113
}
@@ -117,10 +117,6 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
117117
// Storage: Prices LockedPrice (r:2 w:0)
118118
// Storage: AcalaOracle Values (r:1 w:0)
119119
// Storage: AssetRegistry AssetMetadatas (r:2 w:0)
120-
// Storage: Homa TotalStakingBonded (r:1 w:0)
121-
// Storage: Homa ToBondPool (r:1 w:0)
122-
// Storage: Tokens TotalIssuance (r:1 w:0)
123-
// Storage: Homa TotalVoidLiquid (r:1 w:0)
124120
// Storage: CdpEngine DebitExchangeRate (r:1 w:0)
125121
// Storage: CdpEngine CollateralParams (r:1 w:0)
126122
// Storage: Tokens Accounts (r:6 w:6)
@@ -132,12 +128,16 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
132128
// Storage: Loans TotalPositions (r:1 w:1)
133129
// Storage: AuctionManager TotalCollateralInAuction (r:1 w:0)
134130
// Storage: Dex TradingPairStatuses (r:3 w:0)
135-
// Storage: Dex LiquidityPool (r:2 w:2)
136-
// Storage: StableAsset Pools (r:1 w:0)
131+
// Storage: Dex LiquidityPool (r:3 w:2)
132+
// Storage: StableAsset Pools (r:2 w:0)
137133
// Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0)
134+
// Storage: Homa TotalStakingBonded (r:1 w:0)
135+
// Storage: Homa ToBondPool (r:1 w:0)
136+
// Storage: Tokens TotalIssuance (r:1 w:0)
137+
// Storage: Homa TotalVoidLiquid (r:1 w:0)
138138
fn close_loan_has_debit_by_dex() -> Weight {
139-
(259_295_000 as Weight)
140-
.saturating_add(T::DbWeight::get().reads(36 as Weight))
139+
(288_101_000 as Weight)
140+
.saturating_add(T::DbWeight::get().reads(38 as Weight))
141141
.saturating_add(T::DbWeight::get().writes(16 as Weight))
142142
}
143143
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
@@ -147,7 +147,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
147147
// Storage: System Account (r:2 w:1)
148148
// Storage: Dex TradingPairStatuses (r:3 w:0)
149149
// Storage: Dex LiquidityPool (r:3 w:2)
150-
// Storage: StableAsset Pools (r:1 w:0)
150+
// Storage: StableAsset Pools (r:2 w:0)
151151
// Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0)
152152
// Storage: CdpEngine DebitExchangeRate (r:1 w:0)
153153
// Storage: Loans Positions (r:1 w:1)
@@ -158,27 +158,30 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
158158
// Storage: AcalaOracle Values (r:1 w:0)
159159
// Storage: AssetRegistry AssetMetadatas (r:2 w:0)
160160
fn expand_position_collateral() -> Weight {
161-
(199_525_000 as Weight)
162-
.saturating_add(T::DbWeight::get().reads(27 as Weight))
161+
(211_007_000 as Weight)
162+
.saturating_add(T::DbWeight::get().reads(28 as Weight))
163163
.saturating_add(T::DbWeight::get().writes(13 as Weight))
164164
}
165165
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
166166
// Storage: CdpEngine CollateralParams (r:1 w:0)
167167
// Storage: Loans Positions (r:1 w:1)
168168
// Storage: Dex TradingPairStatuses (r:3 w:0)
169169
// Storage: Dex LiquidityPool (r:3 w:2)
170-
// Storage: StableAsset Pools (r:1 w:0)
170+
// Storage: StableAsset Pools (r:2 w:0)
171171
// Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0)
172+
// Storage: Homa TotalStakingBonded (r:1 w:0)
173+
// Storage: Homa ToBondPool (r:1 w:0)
174+
// Storage: Tokens TotalIssuance (r:2 w:1)
175+
// Storage: Homa TotalVoidLiquid (r:1 w:0)
172176
// Storage: Tokens Accounts (r:5 w:5)
173177
// Storage: System Account (r:2 w:1)
174178
// Storage: CdpEngine DebitExchangeRate (r:1 w:0)
175179
// Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1)
176180
// Storage: Rewards PoolInfos (r:1 w:1)
177181
// Storage: Loans TotalPositions (r:1 w:1)
178-
// Storage: Tokens TotalIssuance (r:1 w:1)
179182
fn shrink_position_debit() -> Weight {
180-
(197_554_000 as Weight)
181-
.saturating_add(T::DbWeight::get().reads(23 as Weight))
183+
(323_847_000 as Weight)
184+
.saturating_add(T::DbWeight::get().reads(28 as Weight))
182185
.saturating_add(T::DbWeight::get().writes(14 as Weight))
183186
}
184187
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
@@ -195,7 +198,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
195198
// Storage: Homa ToBondPool (r:1 w:0)
196199
// Storage: Homa TotalVoidLiquid (r:1 w:0)
197200
fn transfer_debit() -> Weight {
198-
(137_148_000 as Weight)
201+
(133_578_000 as Weight)
199202
.saturating_add(T::DbWeight::get().reads(21 as Weight))
200203
.saturating_add(T::DbWeight::get().writes(7 as Weight))
201204
}
@@ -209,7 +212,7 @@ impl<T: frame_system::Config> module_honzon::WeightInfo for WeightInfo<T> {
209212
// Storage: Homa TotalVoidLiquid (r:1 w:0)
210213
// Storage: CdpEngine DebitExchangeRate (r:1 w:0)
211214
fn precompile_get_current_collateral_ratio() -> Weight {
212-
(32_314_000 as Weight)
215+
(31_907_000 as Weight)
213216
.saturating_add(T::DbWeight::get().reads(11 as Weight))
214217
}
215218
}

runtime/mandala/src/benchmarking/honzon.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,27 +165,26 @@ runtime_benchmarks! {
165165
}: _(RawOrigin::Signed(receiver), currency_id, sender_lookup)
166166

167167
close_loan_has_debit_by_dex {
168-
let currency_id: CurrencyId = LIQUID;
168+
let currency_id: CurrencyId = STAKING;
169169
let sender: AccountId = whitelisted_caller();
170170
let maker: AccountId = account("maker", 0, SEED);
171171
let debit_value = 100 * dollar(STABLECOIN);
172-
let debit_exchange_rate = CdpEngine::get_debit_exchange_rate(LIQUID);
172+
let debit_exchange_rate = CdpEngine::get_debit_exchange_rate(STAKING);
173173
let debit_amount = debit_exchange_rate.reciprocal().unwrap().saturating_mul_int(debit_value);
174174
let debit_amount: Amount = debit_amount.unique_saturated_into();
175175
let collateral_value = 10 * debit_value;
176-
let collateral_amount = Price::saturating_from_rational(dollar(LIQUID), dollar(STABLECOIN)).saturating_mul_int(collateral_value);
176+
let collateral_amount = Price::saturating_from_rational(dollar(STAKING), dollar(STABLECOIN)).saturating_mul_int(collateral_value);
177177

178178
// set balance and inject liquidity
179-
set_balance(LIQUID, &sender, (10 * collateral_amount) + ExistentialDeposits::get(&LIQUID));
180-
inject_liquidity(maker.clone(), LIQUID, STAKING, 10_000 * dollar(LIQUID), 10_000 * dollar(STAKING), false)?;
181-
inject_liquidity(maker, STAKING, STABLECOIN, 10_000 * dollar(STAKING), 10_000 * dollar(STABLECOIN), false)?;
179+
set_balance(STAKING, &sender, (10 * collateral_amount) + ExistentialDeposits::get(&STAKING));
180+
initialize_swap_pools(maker)?;
182181

183182
feed_price(vec![(STAKING, Price::one())])?;
184183

185184
// set risk params
186185
CdpEngine::set_collateral_params(
187186
RawOrigin::Root.into(),
188-
LIQUID,
187+
STAKING,
189188
Change::NoChange,
190189
Change::NewValue(Some(Ratio::saturating_from_rational(150, 100))),
191190
Change::NewValue(Some(Rate::saturating_from_rational(10, 100))),
@@ -196,11 +195,11 @@ runtime_benchmarks! {
196195
// initialize sender's loan
197196
Honzon::adjust_loan(
198197
RawOrigin::Signed(sender.clone()).into(),
199-
LIQUID,
198+
STAKING,
200199
(10 * collateral_amount).try_into().unwrap(),
201200
debit_amount,
202201
)?;
203-
}: _(RawOrigin::Signed(sender), LIQUID, collateral_amount)
202+
}: _(RawOrigin::Signed(sender), STAKING, collateral_amount)
204203

205204
expand_position_collateral {
206205
let currency_id: CurrencyId = STAKING;

0 commit comments

Comments
 (0)