Not your first version. Your second version is close.
The idea is that the city is so filled with both (needy) refugees and merchants and traders of every sort that all troubles are an opportunity for profit for someone. This would not be the case were there fewer refugees or fewer merchants (economical 'critical masses' need to be reached, perhaps).