message: add possibility to use ramp payment gateway with users wallets
diff: @@ -2,6 +2,41 @@ import store from 'redux/store'
  import { externalConfig, links, getItezUrl } from 'helpers'
  import TOKEN_STANDARDS, { EXISTING_STANDARDS } from 'helpers/constants/TOKEN_STANDARDS'
  +export const SUPPORTED_RAMP_ASSETS = {
  + BTC: 'BTC_BTC',
  +
  + ETH: 'ETH_ETH',
  + '{ETH}BAT': 'ETH_BAT',
  + '{ETH}DAI': 'ETH_DAI',
  + '{ETH}ENS': 'ETH_ENS',
  + '{ETH}FEVR': 'ETH_FEVR',
  + '{ETH}LINK': 'ETH_LINK',
  + '{ETH}MANA': 'ETH_MANA',
  + '{ETH}RLY': 'ETH_RLY',
  + '{ETH}SAND': 'ETH_SAND',
  + '{ETH}USDC': 'ETH_USDC',
  + '{ETH}USDT': 'ETH_USDT',
  +
  + BNB: 'BSC_BNB',
  + '{BNB}USDT': 'BSC_BUSD',
  + '{BNB}FEVR': 'BSC_FEVR',
  +
  + MATIC: 'MATIC_MATIC',
  + '{MATIC}ETH': 'MATIC_ETH',
  + '{MATIC}MANA': 'MATIC_MANA',
  + '{MATIC}BAT': 'MATIC_BAT',
  + '{MATIC}DAI': 'MATIC_DAI',
  + '{MATIC}OVR': 'MATIC_OVR',
  + '{MATIC}SAND': 'MATIC_SAND',
  + '{MATIC}USDC': 'MATIC_USDC',
  +
  + ARBETH: 'ARBITRUM_ETH',
  + XDAI: 'XDAI_XDAI',
  + AVAX: 'AVAX_AVAX',
  + '{AVAX}USDC': 'AVAX_USDC',
  + ONE: 'HARMONY_ONE',
  +}
  +
  const getEnabledEvmCurrencies = () => Object.keys(externalConfig.enabledEvmNetworks)
  export const getActivatedCurrencies = () => {
  @@ -130,6 +165,27 @@ export const getTransakLink = (params) => {
  return exchangeUrl + parameters.join('')
  }
  +export const getRampLink = (params) => {
  + const { address = '', currency = '' } = params
  + const rampLink = 'https://buy.ramp.network/'
  +
  + const assetKey = SUPPORTED_RAMP_ASSETS[currency?.toUpperCase()]
  +
  + if (!assetKey) return rampLink
  +
  + const parameters = [
  + `?swapAsset=${assetKey}`,
  + ]
  +
  + if (address) parameters.push(`&userAddress=${address}`)
  +
  + const addCustomLogo = window?.logoUrl && window.logoUrl !== '#'
  +
  + if (addCustomLogo) parameters.push(`&hostLogoUrl=${window.logoUrl}`)
  +
  + return rampLink + parameters.join('')
  +}
  +
  export const getExternalExchangeLink = (params) => {
  const { address = '', currency = '', locale = 'en' } = params
  const { user } = store.getState()
  @@ -143,6 +199,15 @@ export const getExternalExchangeLink = (params) => {
  } else if (externalConfig?.opts?.buyViaCreditCardLink) {
  link = externalConfig.opts.buyViaCreditCardLink
  + // check the ramp payment gateway
  + if (link.match(/buy\.ramp\.network/g) && currency) {
  +
  + if (SUPPORTED_RAMP_ASSETS[currency.toUpperCase()]) {
  + link = getRampLink(params)
  + }
  +
  + }
  +
  // checking whether the currency is available in ITEZ
  if (link.match(/itez\.com/g) && currency) {
  const itezCrypto = ['BTC', 'ETH', 'MATIC']
  