Skip to content

Commit 1ddf6cb

Browse files
grothemfoodaka
andauthored
feat: celo market [skip cypress] (#2392)
Co-authored-by: Mark Hinschberger <[email protected]>
1 parent a90eb6f commit 1ddf6cb

File tree

8 files changed

+29
-2
lines changed

8 files changed

+29
-2
lines changed

public/icons/networks/celo.svg

Lines changed: 1 addition & 1 deletion
Loading

public/icons/tokens/celo.svg

Lines changed: 1 addition & 0 deletions
Loading

public/icons/tokens/ceur.svg

Lines changed: 1 addition & 0 deletions
Loading

public/icons/tokens/cusd.svg

Lines changed: 1 addition & 0 deletions
Loading

src/ui-config/marketsConfig.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
AaveV3Avalanche,
1010
AaveV3Base,
1111
AaveV3BNB,
12+
AaveV3Celo,
1213
AaveV3Ethereum,
1314
AaveV3EthereumEtherFi,
1415
AaveV3EthereumLido,
@@ -96,6 +97,7 @@ export enum CustomMarket {
9697
proto_etherfi_v3 = 'proto_etherfi_v3',
9798
proto_linea_v3 = 'proto_linea_v3',
9899
proto_sonic_v3 = 'proto_sonic_v3',
100+
proto_celo_v3 = 'proto_celo_v3',
99101
// v2
100102
proto_mainnet = 'proto_mainnet',
101103
proto_avalanche = 'proto_avalanche',
@@ -717,4 +719,19 @@ export const marketsData: {
717719
COLLECTOR: AaveV3Sonic.COLLECTOR,
718720
},
719721
},
722+
[CustomMarket.proto_celo_v3]: {
723+
marketTitle: 'Celo',
724+
market: CustomMarket.proto_celo_v3,
725+
chainId: ChainId.celo,
726+
v3: true,
727+
subgraphUrl: `https://gateway.thegraph.com/api/${apiKey}/subgraphs/id/GAVWZzGwQ6d6QbFojyFWxpZ2GB9Rf5hZgGyJHCEry8kn`,
728+
addresses: {
729+
LENDING_POOL_ADDRESS_PROVIDER: AaveV3Celo.POOL_ADDRESSES_PROVIDER,
730+
LENDING_POOL: AaveV3Celo.POOL,
731+
WALLET_BALANCE_PROVIDER: AaveV3Celo.WALLET_BALANCE_PROVIDER,
732+
UI_POOL_DATA_PROVIDER: AaveV3Celo.UI_POOL_DATA_PROVIDER,
733+
UI_INCENTIVE_DATA_PROVIDER: AaveV3Celo.UI_INCENTIVE_DATA_PROVIDER,
734+
COLLECTOR: AaveV3Celo.COLLECTOR,
735+
},
736+
},
720737
} as const;

src/ui-config/networksConfig.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ export const prodNetworkConfig: Record<string, BaseNetworkConfig> = {
453453
name: 'Celo Bridge',
454454
url: 'https://docs.celo.org/protocol/bridge',
455455
},
456-
ratesHistoryApiUrl,
457456
wagmiChain: celo,
458457
},
459458
};

src/ui-config/permitConfig.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@ export const permitByChainAndToken: {
6161
'0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38': false, // wS
6262
'0x29219dd400f2bf60e5a23d13be72b486d4038894': false, // USDC.e
6363
},
64+
[ChainId.celo]: {
65+
// '0xceba9300f2b948710d2653dd7b07f33a8b32118c': true, // USDC
66+
'0x48065fbbe25f71c9282ddf5e1cd6d6a887483d5e': true, // USDT
67+
// '0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73': true, // cEUR
68+
// '0x765de816845861e75a25fca122bb6898b8b1282a': true, // cUSD
69+
},
6470
};

src/ui-config/reservePatches.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export const SYMBOL_MAP: { [key: string]: string } = {
4343
'm.USDC': 'USDC',
4444
'm.USDT': 'USDT',
4545
'm.DAI': 'DAI',
46+
// celo
47+
'USD₮': 'USDT',
4648
};
4749

4850
/**

0 commit comments

Comments
 (0)