From 07165c03c3001d51449f2b717e154a471da197f0 Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Tue, 19 Nov 2024 16:55:48 -0600 Subject: [PATCH 1/2] feat: debt swith adapters --- src/ui-config/marketsConfig.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui-config/marketsConfig.tsx b/src/ui-config/marketsConfig.tsx index 468657fe4c..e78b102152 100644 --- a/src/ui-config/marketsConfig.tsx +++ b/src/ui-config/marketsConfig.tsx @@ -151,7 +151,7 @@ export const marketsData: { collateralRepay: true, incentives: true, withdrawAndSwitch: true, - debtSwitch: false, + debtSwitch: true, switch: true, }, subgraphUrl: `https://gateway-arbitrum.network.thegraph.com/api/${apiKey}/subgraphs/id/5vxMbXRhG1oQr55MWC5j6qg78waWujx1wjeuEWDA6j3`, @@ -166,6 +166,7 @@ export const marketsData: { UI_INCENTIVE_DATA_PROVIDER: AaveV3EthereumLido.UI_INCENTIVE_DATA_PROVIDER, COLLECTOR: AaveV3Ethereum.COLLECTOR, WITHDRAW_SWITCH_ADAPTER: AaveV3EthereumLido.WITHDRAW_SWAP_ADAPTER, + DEBT_SWITCH_ADAPTER: '0xd1B2dec98A95B773C4909B5CD8FB455F467A527f', }, }, [CustomMarket.proto_etherfi_v3]: { @@ -181,7 +182,7 @@ export const marketsData: { collateralRepay: true, incentives: true, withdrawAndSwitch: true, - debtSwitch: false, + debtSwitch: true, switch: false, }, subgraphUrl: `https://gateway-arbitrum.network.thegraph.com/api/${apiKey}/subgraphs/id/8o4HGApJkAqnvxAHShG4w5xiXihHyL7HkeDdQdRUYmqZ`, @@ -196,6 +197,7 @@ export const marketsData: { UI_INCENTIVE_DATA_PROVIDER: AaveV3EthereumEtherFi.UI_INCENTIVE_DATA_PROVIDER, COLLECTOR: AaveV3EthereumEtherFi.COLLECTOR, WITHDRAW_SWITCH_ADAPTER: AaveV3EthereumEtherFi.WITHDRAW_SWAP_ADAPTER, + DEBT_SWITCH_ADAPTER: '0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C', }, }, [CustomMarket.proto_mainnet]: { From a8d1930f0e84bcc7489342ffa58a6481dc4a02c1 Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Wed, 20 Nov 2024 13:20:28 -0600 Subject: [PATCH 2/2] chore: address book --- package.json | 2 +- src/ui-config/marketsConfig.tsx | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 06b9ddba5c..5b7fc19785 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@aave/contract-helpers": "1.30.5", "@aave/math-utils": "1.30.5", - "@bgd-labs/aave-address-book": "4.4.0", + "@bgd-labs/aave-address-book": "4.5.0", "@emotion/cache": "11.10.3", "@emotion/react": "11.10.4", "@emotion/server": "latest", diff --git a/src/ui-config/marketsConfig.tsx b/src/ui-config/marketsConfig.tsx index e78b102152..ccd41e94db 100644 --- a/src/ui-config/marketsConfig.tsx +++ b/src/ui-config/marketsConfig.tsx @@ -166,7 +166,7 @@ export const marketsData: { UI_INCENTIVE_DATA_PROVIDER: AaveV3EthereumLido.UI_INCENTIVE_DATA_PROVIDER, COLLECTOR: AaveV3Ethereum.COLLECTOR, WITHDRAW_SWITCH_ADAPTER: AaveV3EthereumLido.WITHDRAW_SWAP_ADAPTER, - DEBT_SWITCH_ADAPTER: '0xd1B2dec98A95B773C4909B5CD8FB455F467A527f', + DEBT_SWITCH_ADAPTER: AaveV3EthereumLido.DEBT_SWAP_ADAPTER, }, }, [CustomMarket.proto_etherfi_v3]: { @@ -197,7 +197,7 @@ export const marketsData: { UI_INCENTIVE_DATA_PROVIDER: AaveV3EthereumEtherFi.UI_INCENTIVE_DATA_PROVIDER, COLLECTOR: AaveV3EthereumEtherFi.COLLECTOR, WITHDRAW_SWITCH_ADAPTER: AaveV3EthereumEtherFi.WITHDRAW_SWAP_ADAPTER, - DEBT_SWITCH_ADAPTER: '0x40ede12b44d98Fc4E53A2fB027D1BD1846e1690C', + DEBT_SWITCH_ADAPTER: AaveV3EthereumEtherFi.DEBT_SWAP_ADAPTER, }, }, [CustomMarket.proto_mainnet]: { diff --git a/yarn.lock b/yarn.lock index 0831daf21c..8936ceb483 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1317,10 +1317,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@bgd-labs/aave-address-book@4.4.0": - version "4.4.0" - resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.4.0.tgz#9afc34ff87a4f1d32af39f5df1c3b52f5d78b129" - integrity sha512-wEWhdTpqy6PwB3Dc772nX1lF1dQr9qmnmKJHcYKpP/VFBYztxunoZS/c26iKH4SP/DRXwDnMbZcnRkebC73bDA== +"@bgd-labs/aave-address-book@4.5.0": + version "4.5.0" + resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.5.0.tgz#bc844a2518b1d09fa53b71343f95ee1a6a66821c" + integrity sha512-PqG1FIC6pK/dNYX+eIsyENj+aLGMcBNFqUUjA6wJ4OJHKfCpKoD1l+5wJzvvYku9CrLRadZ0j690ARa0lTbUBg== "@coinbase/wallet-sdk@3.1.0", "@coinbase/wallet-sdk@^3.0.4": version "3.1.0"