Skip to content
Merged
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
10 changes: 8 additions & 2 deletions src/components/AddMoney/consts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export const countryData: CountryData[] = [
id: 'BGR',
type: 'country',
title: 'Bulgaria',
currency: 'BGN',
currency: 'EUR',
path: 'bulgaria',
iso2: 'BG',
iso3: 'BGR',
Expand Down Expand Up @@ -2597,10 +2597,12 @@ export const countryData: CountryData[] = [

export const COUNTRY_SPECIFIC_METHODS: Record<string, CountrySpecificMethods> = {}

// bridge EAA country codes, source: https://apidocs.bridge.xyz/docs/sepa-euro-transactions
// countries enabled for Bridge bank transfers — SEPA zone (source: https://apidocs.bridge.xyz/docs/sepa-euro-transactions,
// incl. the 2025/26 SEPA joiners AL/MD/ME/MK/RS) plus US
// note: this is a map of 3-letter country codes to 2-letter country codes, for flags to work, bridge expects 3 letter codes
export const BRIDGE_ALPHA3_TO_ALPHA2: { [key: string]: string } = {
ALA: 'AX',
ALB: 'AL',
AND: 'AD',
AUT: 'AT',
BEL: 'BE',
Expand All @@ -2627,13 +2629,17 @@ export const BRIDGE_ALPHA3_TO_ALPHA2: { [key: string]: string } = {
MLT: 'MT',
MTQ: 'MQ',
MYT: 'YT',
MDA: 'MD',
MNE: 'ME',
NLD: 'NL',
MKD: 'MK',
NOR: 'NO',
POL: 'PL',
PRT: 'PT',
REU: 'RE',
ROU: 'RO',
MAF: 'MF',
SRB: 'RS',
SVK: 'SK',
SVN: 'SI',
ESP: 'ES',
Expand Down
28 changes: 26 additions & 2 deletions src/constants/countryCurrencyMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const countryCurrencyMappings: CountryCurrencyMapping[] = [
{ currencyCode: 'EUR', currencyName: 'Euro', country: 'Eurozone', flagCode: 'eu' },

// Non-Eurozone SEPA Countries
{ currencyCode: 'BGN', currencyName: 'Bulgarian Lev', country: 'Bulgaria', flagCode: 'bg', path: 'bulgaria' },
{ currencyCode: 'ALL', currencyName: 'Albanian Lek', country: 'Albania', flagCode: 'al', path: 'albania' },
{
currencyCode: 'CZK',
currencyName: 'Czech Koruna',
Expand All @@ -25,9 +25,18 @@ const countryCurrencyMappings: CountryCurrencyMapping[] = [
{ currencyCode: 'DKK', currencyName: 'Danish Krone', country: 'Denmark', flagCode: 'dk', path: 'denmark' },
{ currencyCode: 'HUF', currencyName: 'Hungarian Forint', country: 'Hungary', flagCode: 'hu', path: 'hungary' },
{ currencyCode: 'ISK', currencyName: 'Icelandic Krona', country: 'Iceland', flagCode: 'is', path: 'iceland' },
{ currencyCode: 'MDL', currencyName: 'Moldovan Leu', country: 'Moldova', flagCode: 'md', path: 'moldova' },
{
currencyCode: 'MKD',
currencyName: 'Macedonian Denar',
country: 'North Macedonia',
flagCode: 'mk',
path: 'macedonia',
},
{ currencyCode: 'NOK', currencyName: 'Norwegian Krone', country: 'Norway', flagCode: 'no', path: 'norway' },
{ currencyCode: 'PLN', currencyName: 'Polish Zloty', country: 'Poland', flagCode: 'pl', path: 'poland' },
{ currencyCode: 'RON', currencyName: 'Romanian Leu', country: 'Romania', flagCode: 'ro', path: 'romania' },
{ currencyCode: 'RSD', currencyName: 'Serbian Dinar', country: 'Serbia', flagCode: 'rs', path: 'serbia' },
{ currencyCode: 'SEK', currencyName: 'Swedish Krona', country: 'Sweden', flagCode: 'se', path: 'sweden' },
{ currencyCode: 'CHF', currencyName: 'Swiss Franc', country: 'Switzerland', flagCode: 'ch', path: 'switzerland' },
{
Expand Down Expand Up @@ -136,7 +145,22 @@ export function isNonEuroSepaCountry(currencyCode: string | undefined): boolean

// explicit list of non-EUR SEPA currencies
// SEPA includes EU countries that use their own currency
const nonEurSepaCurrencies = ['GBP', 'PLN', 'SEK', 'DKK', 'CZK', 'HUF', 'RON', 'BGN', 'ISK', 'NOK', 'CHF']
const nonEurSepaCurrencies = [
'GBP',
'PLN',
'SEK',
'DKK',
'CZK',
'HUF',
'RON',
'ISK',
'NOK',
'CHF',
'ALL',
'MDL',
'MKD',
'RSD',
]

return nonEurSepaCurrencies.includes(upper)
}
Expand Down
Loading