Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions bridges/snowbridge/pallets/outbound-queue-v2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,5 @@ pub mod pallet {

Ok(())
}

/// The local component of the message processing fees in native currency
pub(crate) fn calculate_local_fee() -> T::Balance {
T::WeightToFee::weight_to_fee(
&T::WeightInfo::do_process_message().saturating_add(T::WeightInfo::commit_single()),
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use frame_support::{
};
use snowbridge_outbound_queue_primitives::{
v2::{Message, SendMessage},
SendError, SendMessageFeeProvider,
SendError,
};
use sp_core::H256;
use sp_runtime::BoundedVec;
Expand Down Expand Up @@ -43,12 +43,3 @@ where
Ok(ticket.id)
}
}

impl<T: Config> SendMessageFeeProvider for Pallet<T> {
type Balance = T::Balance;

/// The local component of the message processing fees in native currency
fn local_fee() -> Self::Balance {
Self::calculate_local_fee()
}
}
Loading