bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.8k stars 2.07k forks source link

[REF] Special handling for usdc.e and usdc on matic #3671

Closed gabrielbazan7 closed 5 months ago

gabrielbazan7 commented 6 months ago

currencies specified by invoice v4:

  USDC_m: {
    code: 'USDC.e',
    name: 'USD Coin',
    network: 'Polygon',
    imgSrc: '/img/icon/currencies/USDC.svg',
    networkImgSrc: '/img/icon/currencies/MATIC.svg',
    displayNetwork: true,
  },
  USDCn_m: {
    code: 'USDC',
    name: 'USD Coin',
    network: 'Polygon',
    imgSrc: '/img/icon/currencies/USDC.svg',
    networkImgSrc: '/img/icon/currencies/MATIC.svg',
    displayNetwork: true,
  },

For USDC.e and USDC wallets in the app, we expect USDC.e_m and USDC_m in the paypro options. But we have for USDC.e -> USDC_m and for USDC -> USDCn_m

leolambo commented 5 months ago

LGTM!