diff --git a/public/icons/networks/celo.svg b/public/icons/networks/celo.svg index c1bc95f9dd..7399c6b24a 100644 --- a/public/icons/networks/celo.svg +++ b/public/icons/networks/celo.svg @@ -1 +1 @@ - + diff --git a/public/icons/tokens/celo.svg b/public/icons/tokens/celo.svg new file mode 100644 index 0000000000..7399c6b24a --- /dev/null +++ b/public/icons/tokens/celo.svg @@ -0,0 +1 @@ + diff --git a/public/icons/tokens/ceur.svg b/public/icons/tokens/ceur.svg new file mode 100644 index 0000000000..1f7ec2b8ac --- /dev/null +++ b/public/icons/tokens/ceur.svg @@ -0,0 +1 @@ + diff --git a/public/icons/tokens/cusd.svg b/public/icons/tokens/cusd.svg new file mode 100644 index 0000000000..59483ba86f --- /dev/null +++ b/public/icons/tokens/cusd.svg @@ -0,0 +1 @@ + diff --git a/src/ui-config/marketsConfig.tsx b/src/ui-config/marketsConfig.tsx index d34c4259a0..58e07c4d61 100644 --- a/src/ui-config/marketsConfig.tsx +++ b/src/ui-config/marketsConfig.tsx @@ -9,6 +9,7 @@ import { AaveV3Avalanche, AaveV3Base, AaveV3BNB, + AaveV3Celo, AaveV3Ethereum, AaveV3EthereumEtherFi, AaveV3EthereumLido, @@ -96,6 +97,7 @@ export enum CustomMarket { proto_etherfi_v3 = 'proto_etherfi_v3', proto_linea_v3 = 'proto_linea_v3', proto_sonic_v3 = 'proto_sonic_v3', + proto_celo_v3 = 'proto_celo_v3', // v2 proto_mainnet = 'proto_mainnet', proto_avalanche = 'proto_avalanche', @@ -717,4 +719,19 @@ export const marketsData: { COLLECTOR: AaveV3Sonic.COLLECTOR, }, }, + [CustomMarket.proto_celo_v3]: { + marketTitle: 'Celo', + market: CustomMarket.proto_celo_v3, + chainId: ChainId.celo, + v3: true, + subgraphUrl: `https://gateway.thegraph.com/api/${apiKey}/subgraphs/id/GAVWZzGwQ6d6QbFojyFWxpZ2GB9Rf5hZgGyJHCEry8kn`, + addresses: { + LENDING_POOL_ADDRESS_PROVIDER: AaveV3Celo.POOL_ADDRESSES_PROVIDER, + LENDING_POOL: AaveV3Celo.POOL, + WALLET_BALANCE_PROVIDER: AaveV3Celo.WALLET_BALANCE_PROVIDER, + UI_POOL_DATA_PROVIDER: AaveV3Celo.UI_POOL_DATA_PROVIDER, + UI_INCENTIVE_DATA_PROVIDER: AaveV3Celo.UI_INCENTIVE_DATA_PROVIDER, + COLLECTOR: AaveV3Celo.COLLECTOR, + }, + }, } as const; diff --git a/src/ui-config/networksConfig.ts b/src/ui-config/networksConfig.ts index 0ffb195fed..a587bf3b0e 100644 --- a/src/ui-config/networksConfig.ts +++ b/src/ui-config/networksConfig.ts @@ -453,7 +453,6 @@ export const prodNetworkConfig: Record = { name: 'Celo Bridge', url: 'https://docs.celo.org/protocol/bridge', }, - ratesHistoryApiUrl, wagmiChain: celo, }, }; diff --git a/src/ui-config/permitConfig.ts b/src/ui-config/permitConfig.ts index d902f7bcdc..a293cd9a85 100644 --- a/src/ui-config/permitConfig.ts +++ b/src/ui-config/permitConfig.ts @@ -61,4 +61,10 @@ export const permitByChainAndToken: { '0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38': false, // wS '0x29219dd400f2bf60e5a23d13be72b486d4038894': false, // USDC.e }, + [ChainId.celo]: { + // '0xceba9300f2b948710d2653dd7b07f33a8b32118c': true, // USDC + '0x48065fbbe25f71c9282ddf5e1cd6d6a887483d5e': true, // USDT + // '0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73': true, // cEUR + // '0x765de816845861e75a25fca122bb6898b8b1282a': true, // cUSD + }, }; diff --git a/src/ui-config/reservePatches.ts b/src/ui-config/reservePatches.ts index 03b071db27..4de84c61db 100644 --- a/src/ui-config/reservePatches.ts +++ b/src/ui-config/reservePatches.ts @@ -43,6 +43,8 @@ export const SYMBOL_MAP: { [key: string]: string } = { 'm.USDC': 'USDC', 'm.USDT': 'USDT', 'm.DAI': 'DAI', + // celo + 'USDâ‚®': 'USDT', }; /**