From dee814a5d81a68e79d29a4f21e14c529065204ed Mon Sep 17 00:00:00 2001 From: John Emau Date: Thu, 8 Oct 2026 14:37:27 -0700 Subject: [PATCH] Add MATIC to donate widget crypto config Brings the widget's CryptoCurrency list to parity with every.org (101 coins). MATIC is added to DISABLED_TOKENS, matching packages/common/src/helpers/cryptoCurrency.ts in every.org, where the API has no processors for MATIC. Co-Authored-By: Claude Opus 5.5 --- .../src/components/widget/types/Crypto.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/donate-button-v4/src/components/widget/types/Crypto.ts b/packages/donate-button-v4/src/components/widget/types/Crypto.ts index 77cc87b0..51084bfa 100644 --- a/packages/donate-button-v4/src/components/widget/types/Crypto.ts +++ b/packages/donate-button-v4/src/components/widget/types/Crypto.ts @@ -85,6 +85,7 @@ export enum CryptoCurrency { LTC = 'LTC', MANA = 'MANA', MASK = 'MASK', + MATIC = 'MATIC', MCO2 = 'MCO2', MEW = 'MEW', MKR = 'MKR', @@ -148,7 +149,8 @@ export const DISABLED_TOKENS = [ CryptoCurrency.ALGO, CryptoCurrency.MOB, CryptoCurrency.XLM, - CryptoCurrency.BNB + CryptoCurrency.BNB, + CryptoCurrency.MATIC ]; export const SharedCryptoCurrencyConfig: { @@ -536,6 +538,13 @@ export const SharedCryptoCurrencyConfig: { decimalOffset: 18, coingeckoId: 'mask-network' }, + [CryptoCurrency.MATIC]: { + displayName: 'Polygon', + abbreviation: 'MATIC', + contractType: ContractType.ERC20, + decimalOffset: 18, + coingeckoId: 'matic-network' + }, [CryptoCurrency.MCO2]: { displayName: 'Moss Carbon Credit', abbreviation: 'MCO2', @@ -1000,6 +1009,7 @@ const WebsiteCryptoCurrencyConfig: { [CryptoCurrency.LRC]: {iconCloudinaryId: 'crypto/sazpx9zyfsgbmprmfag9'}, [CryptoCurrency.MANA]: {iconCloudinaryId: 'crypto/ekefdi1p3jgoeb08oszc'}, [CryptoCurrency.MASK]: {iconCloudinaryId: 'crypto/ykwym7djaofb2q6lcn5n'}, + [CryptoCurrency.MATIC]: {iconCloudinaryId: 'crypto/i1m8h4uzfijyjcfeeydg'}, [CryptoCurrency.MCO2]: {iconCloudinaryId: 'crypto/ysuyysfrukryu1jw2wrh'}, [CryptoCurrency.MEW]: {iconCloudinaryId: 'crypto/u5yaemgk4ajviyqriav6'}, [CryptoCurrency.MKR]: {iconCloudinaryId: 'crypto/tpdipvaap6m150j2hdec'},