Skip to content

Commit

Permalink
enable exchange asset on AH
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Nov 28, 2024
1 parent 5735960 commit a935ff2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl<Call> XcmWeightInfo<Call> for AssetHubWestendXcmWeight<Call> {
assets.weigh_assets(XcmFungibleWeight::<Runtime>::deposit_reserve_asset())
}
fn exchange_asset(_give: &AssetFilter, _receive: &Assets, _maximal: &bool) -> Weight {
Weight::MAX
XcmFungibleWeight::<Runtime>::exchange_asset()
}
fn initiate_reserve_withdraw(
assets: &AssetFilter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,14 @@ impl<T: frame_system::Config> WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(4))
}

pub fn exchange_asset() -> Weight {
// Proof Size summary in bytes:
// Measured: `159`
// Estimated: `6196`
// Minimum execution time: 87_253_000 picoseconds.
Weight::from_parts(88_932_000, 6196)
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(4))
}
}

0 comments on commit a935ff2

Please sign in to comment.