Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/icons/tokens/kbtc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/tokens/usdg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/tokens/usd₮0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 10 additions & 8 deletions src/components/MarketSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,16 @@ const MARKET_ORDER_BY_TITLE: { [title: string]: number } = {
OP: 9,
Gnosis: 10,
Aptos: 11,
'BNB Chain': 12,
Polygon: 13,
Scroll: 14,
ZKsync: 15,
Celo: 16,
Metis: 17,
Soneium: 18,
EtherFi: 19,
Ink: 12,

'BNB Chain': 13,
Polygon: 14,
Scroll: 15,
ZKsync: 16,
Celo: 17,
Metis: 18,
Soneium: 19,
EtherFi: 20,
};

const getMarketOrder = (marketId: CustomMarket): number => {
Expand Down
20 changes: 20 additions & 0 deletions src/ui-config/marketsConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
AaveV3EthereumEtherFi,
AaveV3EthereumLido,
AaveV3Gnosis,
AaveV3InkWhitelabel,
AaveV3Linea,
AaveV3Metis,
AaveV3Optimism,
Expand Down Expand Up @@ -106,11 +107,13 @@ export enum CustomMarket {
proto_sepolia_horizon_v3 = 'proto_sepolia_horizon_v3',
proto_aptos_v3 = 'proto_aptos_v3',
proto_plasma_v3 = 'proto_plasma_v3',
proto_ink_v3 = 'proto_ink_v3',
// v2
proto_mainnet = 'proto_mainnet',
proto_avalanche = 'proto_avalanche',
proto_fuji = 'proto_fuji',
proto_polygon = 'proto_polygon',

// external
// permissioned_market = 'permissioned_market',
}
Expand Down Expand Up @@ -648,6 +651,23 @@ export const marketsData: {
},
},

[CustomMarket.proto_ink_v3]: {
marketTitle: 'Ink',
market: CustomMarket.proto_ink_v3,
chainId: 57073 as ChainId,
v3: true,
logo: '/icons/networks/ink.svg',
addresses: {
LENDING_POOL_ADDRESS_PROVIDER: AaveV3InkWhitelabel.POOL_ADDRESSES_PROVIDER,
LENDING_POOL: AaveV3InkWhitelabel.POOL,
WETH_GATEWAY: AaveV3InkWhitelabel.WETH_GATEWAY,
WALLET_BALANCE_PROVIDER: AaveV3InkWhitelabel.WALLET_BALANCE_PROVIDER,
UI_POOL_DATA_PROVIDER: '0xc851e6147dcE6A469CC33BE3121b6B2D4CaD2763', // custom as doesnt work utils
UI_INCENTIVE_DATA_PROVIDER: AaveV3InkWhitelabel.UI_INCENTIVE_DATA_PROVIDER,
// COLLECTOR: AaveV3InkWhitelabel.COLLECTOR,
},
},

[CustomMarket.proto_fuji]: {
marketTitle: 'Avalanche Fuji',
market: CustomMarket.proto_fuji,
Expand Down
Loading