Skip to content

Commit

Permalink
chore: check main broker account
Browse files Browse the repository at this point in the history
  • Loading branch information
Janislav committed Jan 31, 2025
1 parent e4b0989 commit 48dcf8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions state-chain/pallets/cf-ingress-egress/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,13 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
boost_fee,
}: VaultDepositWitness<T, I>,
) {
if let Some(Beneficiary { account, .. }) = broker_fee.clone() {
if !T::AccountRoleRegistry::has_account_role(&account, AccountRole::Broker) {
AbortedVaultTransaction::<T, I>::insert(&tx_id, ());
return;
}
}

let destination_address_internal =
match T::AddressConverter::decode_and_validate_address_for_asset(
destination_address.clone(),
Expand Down

0 comments on commit 48dcf8e

Please sign in to comment.