// Check if the user paid the token factory fee in any other of the allowed denoms
let tf_fee_paid = denom_creation_fee.iter().any(|fee| {
    let paid_fee_amount = info
        .funds
        .iter()
        .filter(|fund| fund.denom == fee.denom)
        .map(|fund| fund.amount)
        .try_fold(Uint128::zero(), |acc, amount| acc.checked_add(amount))
        .unwrap_or(Uint128::zero());

    total_fees.push(Coin {
        denom: fee.denom.clone(),
        amount: paid_fee_amount,
    });

    paid_fee_amount == fee.amount
});

ensure!(tf_fee_paid, ContractError::TokenFactoryFeeNotPaid);
