From 8547f37007514720a8f35d0a382821db90f1e4ec Mon Sep 17 00:00:00 2001 From: JD Date: Tue, 10 Dec 2024 14:48:20 -0500 Subject: [PATCH 1/3] add polygon component --- src/tokenlist.json.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/tokenlist.json.ts b/src/tokenlist.json.ts index fa394ea..93f8521 100644 --- a/src/tokenlist.json.ts +++ b/src/tokenlist.json.ts @@ -693,6 +693,20 @@ export default { tags: ['index', 'prt'], }, // --------------- Component Tokens --------------- + { + chainId: 137, + address: '0x1a13F4Ca1d028320A707D99520AbFefca3998b7F', + name: 'Aave Matic Market USDC', + symbol: 'amUSDC', + decimals: 18, + logoURI: + 'https://assets.coingecko.com/coins/images/17249/large/amUSDC_2x.png', + extensions: { + status: 'Active', + coingeckoId: 'aave-polygon-usdc', + }, + tags: ['component'], + }, { chainId: 1, address: '0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72', From fe74ab2b3a56fed12374d01b2dfccd18bdc58ad2 Mon Sep 17 00:00:00 2001 From: JD Date: Tue, 10 Dec 2024 14:48:34 -0500 Subject: [PATCH 2/3] add polygon to network config --- config/networks.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/networks.ts b/config/networks.ts index 5901926..47c7a6d 100644 --- a/config/networks.ts +++ b/config/networks.ts @@ -1,6 +1,6 @@ import type { ChainId } from '@/src/types'; import { createClient, http, type Client } from 'viem'; -import { mainnet, arbitrum, base } from 'viem/chains'; +import { mainnet, arbitrum, base, polygon } from 'viem/chains'; const alchemyId = typeof Bun !== 'undefined' && Bun.env @@ -11,12 +11,13 @@ if (!alchemyId) { throw new Error('ALCHEMY_ID is not set'); } -export const chains = [mainnet, arbitrum, base]; +export const chains = [mainnet, arbitrum, base, polygon]; export const rpcUrls: Record = { [mainnet.id]: `https://eth-mainnet.g.alchemy.com/v2/${alchemyId}`, [arbitrum.id]: `https://arb-mainnet.g.alchemy.com/v2/${alchemyId}`, [base.id]: `https://base-mainnet.g.alchemy.com/v2/${alchemyId}`, + [polygon.id]: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyId}`, }; export const staticClients = Object.entries(rpcUrls).reduce( From d08e18ea7f9b63be41380ef26b1d82684d697c72 Mon Sep 17 00:00:00 2001 From: JD Date: Tue, 10 Dec 2024 14:59:19 -0500 Subject: [PATCH 3/3] add remaining polygon components for flis --- src/tokenlist.json.ts | 44 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/src/tokenlist.json.ts b/src/tokenlist.json.ts index 93f8521..e7d4e2c 100644 --- a/src/tokenlist.json.ts +++ b/src/tokenlist.json.ts @@ -698,7 +698,7 @@ export default { address: '0x1a13F4Ca1d028320A707D99520AbFefca3998b7F', name: 'Aave Matic Market USDC', symbol: 'amUSDC', - decimals: 18, + decimals: 6, logoURI: 'https://assets.coingecko.com/coins/images/17249/large/amUSDC_2x.png', extensions: { @@ -707,6 +707,48 @@ export default { }, tags: ['component'], }, + { + chainId: 137, + address: '0x5c2ed810328349100A66B82b78a1791B101C9D61', + name: 'Aave Matic Market WBTC', + symbol: 'amWBTC', + decimals: 8, + logoURI: + 'https://assets.coingecko.com/coins/images/17265/large/amWBTC_2x.png', + extensions: { + status: 'Active', + coingeckoId: 'aave-polygon-wbtc', + }, + tags: ['component'], + }, + { + chainId: 137, + address: '0x28424507fefb6f7f8E9D3860F56504E4e5f5f390', + name: 'Aave Matic Market WETH', + symbol: 'amWETH', + decimals: 18, + logoURI: + 'https://assets.coingecko.com/coins/images/17266/large/amWETH_2x.png', + extensions: { + status: 'Active', + coingeckoId: 'aave-polygon-weth', + }, + tags: ['component'], + }, + { + chainId: 137, + address: '0x8dF3aad3a84da6b69A4DA8aeC3eA40d9091B2Ac4', + name: 'Aave Matic Market WMATIC', + symbol: 'amWMATIC', + decimals: 18, + logoURI: + 'https://assets.coingecko.com/coins/images/17267/large/amWMATIC_2x.png', + extensions: { + status: 'Active', + coingeckoId: 'aave-polygon-wmatic', + }, + tags: ['component'], + }, { chainId: 1, address: '0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72',