Skip to content

Commit c351a75

Browse files
authored
feat(flash-loans): update smartcontract addresses
Refactor AAVE adapter factory and hooks to use mapAddressToSupportedNetworks for initialization.
1 parent 1b04b9e commit c351a75

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

packages/flash-loans/src/aave/const.ts

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,19 @@ export const AAVE_POOL_ADDRESS: Record<SupportedChainId, string> = {
2323
[SupportedChainId.LINEA]: '0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac',
2424
[SupportedChainId.PLASMA]: '0x925a2A7214Ed92428B5b1B090F80b25700095e12',
2525
}
26-
export const AAVE_ADAPTER_FACTORY: Record<SupportedChainId, string> = {
27-
...mapAddressToSupportedNetworks(''),
28-
[SupportedChainId.GNOSIS_CHAIN]: '0x7f230F7Cee38ca371b871B74B3C6ded4932A2f93',
29-
[SupportedChainId.MAINNET]: '0x22E08c56a6799e28e7b05A117D853B9b46abc017',
30-
[SupportedChainId.BASE]: '0xc5D68e305e0b5998f895e34d4440954072F285B6',
31-
}
26+
export const AAVE_ADAPTER_FACTORY: Record<SupportedChainId, string> = mapAddressToSupportedNetworks(
27+
'0x43c658Ea38bBfD897706fDb35e2468ef5D8F6927',
28+
)
3229

33-
const AAVE_COLLATERAL_SWAP_ADAPTER_HOOK: Record<SupportedChainId, string> = {
34-
...mapAddressToSupportedNetworks(''),
35-
[SupportedChainId.GNOSIS_CHAIN]: '0x837aA74e8daf7Fd7160f078ca455a67B7F441E4b',
36-
[SupportedChainId.MAINNET]: '0xFEb471EC22E5572dbb44229301c266f4C305A78a',
37-
[SupportedChainId.BASE]: '0xBb45A7898A6f06a9c148BfeD0C103140F0079cd9',
38-
}
39-
const AAVE_DEBT_SWAP_ADAPTER_HOOK: Record<SupportedChainId, string> = {
40-
...mapAddressToSupportedNetworks(''),
41-
[SupportedChainId.GNOSIS_CHAIN]: '0xC9A495A17B1eeC18AE0f0865840B8fd3f8a9DE3F',
42-
[SupportedChainId.MAINNET]: '0x238f57A2c3F0696fB20295075a0F9A18EfC67D3a',
43-
[SupportedChainId.BASE]: '0xaCbd34fAB78BD6C8738eb32dDAFd688df98CD2E3',
44-
}
45-
const AAVE_REPAY_COLLATERAL_ADAPTER_HOOK: Record<SupportedChainId, string> = {
46-
...mapAddressToSupportedNetworks(''),
47-
[SupportedChainId.GNOSIS_CHAIN]: '0x2890CE372f3a397B6f3BB3a71B1836A6F3F33657',
48-
[SupportedChainId.MAINNET]: '0x9eB0ffd318e862D344792a8e589e8393E8bEd96F',
49-
[SupportedChainId.BASE]: '0x1549445700D0Cb2D7Ce85ECd5a7FD7Ba4a3D40A7',
50-
}
30+
const AAVE_COLLATERAL_SWAP_ADAPTER_HOOK: Record<SupportedChainId, string> = mapAddressToSupportedNetworks(
31+
'0x29A9b0a13c81d59f13BA0f39DBDCAA1AB2adc95F',
32+
)
33+
const AAVE_DEBT_SWAP_ADAPTER_HOOK: Record<SupportedChainId, string> = mapAddressToSupportedNetworks(
34+
'0xbE9A121bb958BBBb027dA728DEC0D5496811b7d1',
35+
)
36+
const AAVE_REPAY_COLLATERAL_ADAPTER_HOOK: Record<SupportedChainId, string> = mapAddressToSupportedNetworks(
37+
'0x8e25d1210FabB0fcAdE92a82C4a89568B4b10E0F',
38+
)
5139

5240
export const AAVE_HOOK_ADAPTER_PER_TYPE: Record<AaveFlashLoanType, Record<SupportedChainId, string>> = {
5341
[AaveFlashLoanType.CollateralSwap]: AAVE_COLLATERAL_SWAP_ADAPTER_HOOK,

0 commit comments

Comments
 (0)