diff --git a/safe.csv b/safe.csv index 0d6048fc..571a5f74 100644 --- a/safe.csv +++ b/safe.csv @@ -604,7 +604,7 @@ address,name,chainId 0x4F01b76391A05d32B20FA2d05dD5963eE8db20E6,AaveV3Ethereum ASSETS USDS ORACLE,1 0x82dcCF206Ae2Ab46E2099e663F70DeE77caE7778,AaveV3Ethereum CAPS_PLUS_RISK_STEWARD,1 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3Ethereum COLLECTOR,1 -0x8689b8aDD004A9fD2320031b7d3f5aF1f7F41e17,AaveV3Ethereum CONFIG_ENGINE,1 +0xA8e351C7Ab1b75A2134A418701919c462932DF79,AaveV3Ethereum CONFIG_ENGINE,1 0xd7852E139a7097E119623de0751AE53a61efb442,AaveV3Ethereum DEBT_SWAP_ADAPTER,1 0x7EfFD7b47Bfd17e52fB7559d3f924201b9DbfF3d,AaveV3Ethereum DEFAULT_A_TOKEN_IMPL_REV_1,1 0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb,AaveV3Ethereum DEFAULT_INCENTIVES_CONTROLLER,1 @@ -655,7 +655,7 @@ address,name,chainId 0x45D270263BBee500CF8adcf2AbC0aC227097b036,AaveV3EthereumEtherFi ASSETS FRAX ORACLE,1 0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA,AaveV3EthereumEtherFi CAPS_PLUS_RISK_STEWARD,1 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3EthereumEtherFi COLLECTOR,1 -0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed,AaveV3EthereumEtherFi CONFIG_ENGINE,1 +0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340,AaveV3EthereumEtherFi CONFIG_ENGINE,1 0xaFFA06528Bd92625de2e7A0cfa0119319265Ea4b,AaveV3EthereumEtherFi DEFAULT_A_TOKEN_IMPL_REV_1,1 0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb,AaveV3EthereumEtherFi DEFAULT_INCENTIVES_CONTROLLER,1 0xBb077DaFFeb23B2126E7358b0b122ba6838FB881,AaveV3EthereumEtherFi DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,1 @@ -701,7 +701,7 @@ address,name,chainId 0x736bF902680e68989886e9807CD7Db4B3E015d3C,AaveV3EthereumLido ASSETS USDC ORACLE,1 0x3843b29118fFC18d5d12EE079d0324E1bF115e69,AaveV3EthereumLido CAPS_PLUS_RISK_STEWARD,1 0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c,AaveV3EthereumLido COLLECTOR,1 -0xC80f057d40Fc7f0A01ad4a634f35520Df8079707,AaveV3EthereumLido CONFIG_ENGINE,1 +0x1097eDb85392932b7dCB630baDDC8A6D73585218,AaveV3EthereumLido CONFIG_ENGINE,1 0x7F8Fc14D462bdF93c681c1f2Fd615389bF969Fb2,AaveV3EthereumLido DEFAULT_A_TOKEN_IMPL_REV_1,1 0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb,AaveV3EthereumLido DEFAULT_INCENTIVES_CONTROLLER,1 0x3E59212c34588a63350142EFad594a20C88C2CEd,AaveV3EthereumLido DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,1 @@ -857,7 +857,7 @@ address,name,chainId 0x4DD03dfD36548C840B563745e3FBeC320F37BA7e,AaveV3Optimism ASSETS USDCn STATIC_A_TOKEN,10 0x5E76E98E0963EcDC6A065d1435F84065b7523f39,AaveV3Optimism CAPS_PLUS_RISK_STEWARD,10 0xB2289E329D2F85F1eD31Adbb30eA345278F21bcf,AaveV3Optimism COLLECTOR,10 -0x619643b346E3389062527cdb60C8720415B39860,AaveV3Optimism CONFIG_ENGINE,10 +0x1AA25FdD7d55FA8a401D6EFba8e48874Ef730E55,AaveV3Optimism CONFIG_ENGINE,10 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Optimism DEBT_SWAP_ADAPTER,10 0xbCb167bDCF14a8F791d6f4A6EDd964aed2F8813B,AaveV3Optimism DEFAULT_A_TOKEN_IMPL_REV_2,10 0x929EC64c34a17401F460460D4B9390518E5B473e,AaveV3Optimism DEFAULT_INCENTIVES_CONTROLLER,10 @@ -944,7 +944,7 @@ address,name,chainId 0x4d074aAa0821073dA827f7bf6a02cF905b394ed0,AaveV3BNB ASSETS FDUSD STATIC_A_TOKEN,56 0x971F1C94b139AdEdedA729DA636e2B0C433Ff595,AaveV3BNB CAPS_PLUS_RISK_STEWARD,56 0x25Ec457d1778b0E5316e7f38f3c22baF413F1A8C,AaveV3BNB COLLECTOR,56 -0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b,AaveV3BNB CONFIG_ENGINE,56 +0x249396a890F89D47F89326d7EE116b1d374Fb3A9,AaveV3BNB CONFIG_ENGINE,56 0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3BNB DEBT_SWAP_ADAPTER,56 0x6c23bAF050ec192afc0B967a93b83e6c5405df43,AaveV3BNB DEFAULT_A_TOKEN_IMPL_REV_1,56 0xC206C2764A9dBF27d599613b8F9A63ACd1160ab4,AaveV3BNB DEFAULT_INCENTIVES_CONTROLLER,56 @@ -1032,7 +1032,7 @@ address,name,chainId 0xf0E7eC247b918311afa054E0AEdb99d74c31b809,AaveV3Gnosis ASSETS USDCe STATIC_A_TOKEN,100 0x33AE1f41546a2e05368Bf789b3d868813c0Ae658,AaveV3Gnosis CAPS_PLUS_RISK_STEWARD,100 0x3e652E97ff339B73421f824F5b03d75b62F1Fb51,AaveV3Gnosis COLLECTOR,100 -0xE2a33403eaD139873820da597531f07f65ED0E3c,AaveV3Gnosis CONFIG_ENGINE,100 +0x97CB9e81d480A2AB03299760654C1DDC0C16bE07,AaveV3Gnosis CONFIG_ENGINE,100 0x589750BA8aF186cE5B55391B0b7148cAD43a1619,AaveV3Gnosis DEFAULT_A_TOKEN_IMPL_REV_1,100 0xaD4F91D26254B6B0C6346b390dDA2991FDE2F20d,AaveV3Gnosis DEFAULT_INCENTIVES_CONTROLLER,100 0xBeC519531F0E78BcDdB295242fA4EC5251B38574,AaveV3Gnosis DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,100 @@ -1282,7 +1282,7 @@ address,name,chainId 0x2dCa80061632f3F87c9cA28364d1d0c30cD79a19,AaveV3Polygon ASSETS USDCn STATIC_A_TOKEN,137 0xc5de989E0D1BF605d19478Fdd32Aa827a10b464f,AaveV3Polygon CAPS_PLUS_RISK_STEWARD,137 0xe8599F3cc5D38a9aD6F3684cd5CEa72f10Dbc383,AaveV3Polygon COLLECTOR,137 -0xAF0C901489790c35D9cef02CFA11123009E81e2a,AaveV3Polygon CONFIG_ENGINE,137 +0x43632469e02CDAaEB4dE3DcBfCAaBEf310975729,AaveV3Polygon CONFIG_ENGINE,137 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Polygon DEBT_SWAP_ADAPTER,137 0xCf85FF1c37c594a10195F7A9Ab85CBb0a03f69dE,AaveV3Polygon DEFAULT_A_TOKEN_IMPL_REV_2,137 0x929EC64c34a17401F460460D4B9390518E5B473e,AaveV3Polygon DEFAULT_INCENTIVES_CONTROLLER,137 @@ -1356,7 +1356,7 @@ address,name,chainId 0x57815Ab06D846d7dECd326Ee541CD06144FED237,AaveV3ZkSync ASSETS ZK INTEREST_RATE_STRATEGY,324 0xD1ce60dc8AE060DDD17cA8716C96f193bC88DD13,AaveV3ZkSync ASSETS ZK ORACLE,324 0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b,AaveV3ZkSync COLLECTOR,324 -0x93E5E329FaCf7d85118b49f0eb250E9c767CA177,AaveV3ZkSync CONFIG_ENGINE,324 +0x54965A9c830DCEEa6BeEa77642C6A78C3df1C957,AaveV3ZkSync CONFIG_ENGINE,324 0x34be365Fd01ac224F21490aaC6dFd65D25434bbB,AaveV3ZkSync DEFAULT_A_TOKEN_IMPL_REV_1,324 0x37c972C9dDfC2138EBe33eC19dba063AB9f8966e,AaveV3ZkSync DEFAULT_INCENTIVES_CONTROLLER,324 0x52E97425D1Fa6885fAaC9260B711fA5047A88d06,AaveV3ZkSync DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,324 @@ -1418,7 +1418,7 @@ address,name,chainId 0x2f1606864d6322c54b50a1762D4a1ca67f42d23d,AaveV3Metis ASSETS WETH STATIC_A_TOKEN,1088 0x5f4d15d761528c57a5C30c43c1DAb26Fc5452731,AaveV3Metis CAPS_PLUS_RISK_STEWARD,1088 0xB5b64c7E00374e766272f8B442Cd261412D4b118,AaveV3Metis COLLECTOR,1088 -0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957,AaveV3Metis CONFIG_ENGINE,1088 +0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726,AaveV3Metis CONFIG_ENGINE,1088 0x246405C70461f93513C74606815615c24c5C8C79,AaveV3Metis DEFAULT_A_TOKEN_IMPL_REV_1,1088 0x30C1b8F0490fa0908863d6Cbd2E36400b4310A6B,AaveV3Metis DEFAULT_INCENTIVES_CONTROLLER,1088 0xE7fA271BD76FC9c6F2F968976E9f4f553256E02f,AaveV3Metis DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,1088 @@ -1448,31 +1448,6 @@ address,name,chainId 0xF6Db48C5968A9eBCB935786435530f28e32Cc501,MiscMetis PROTOCOL_GUARDIAN,1088 0x1CabD986cBAbDf12E00128DFf03C80ee62C4fd97,MiscMetis PROXY_ADMIN,1088 0x1dad86dC5990BCE5bFe3A150A4E0ece990d6EBcB,MiscMetis TRANSPARENT_PROXY_FACTORY,1088 -0x501B4c19dd9C2e06E94dA7b6D5Ed4ddA013EC741,AaveV3PolygonZkEvm AAVE_PROTOCOL_DATA_PROVIDER,1101 -0xe59470B3BE3293534603487E00A44C72f2CD466d,AaveV3PolygonZkEvm ACL_ADMIN,1101 -0x41585C50524fb8c3899B43D7D797d9486AAc94DB,AaveV3PolygonZkEvm ACL_MANAGER,1101 -0xAe13e4DA0952f0B8fE04E21df53716fCF799a923,AaveV3PolygonZkEvm CAPS_PLUS_RISK_STEWARD,1101 -0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2,AaveV3PolygonZkEvm CONFIG_ENGINE,1101 -0xb9Ef6e27ef85fE393B9F8B8C23e794ff4596C7dF,AaveV3PolygonZkEvm DEBT_SWAP_ADAPTER,1101 -0xaD4F91D26254B6B0C6346b390dDA2991FDE2F20d,AaveV3PolygonZkEvm DEFAULT_INCENTIVES_CONTROLLER,1101 -0xeb0a051be10228213BAEb449db63719d6742F7c4,AaveV3PolygonZkEvm EMISSION_MANAGER,1101 -0x33AE1f41546a2e05368Bf789b3d868813c0Ae658,AaveV3PolygonZkEvm FREEZING_STEWARD,1101 -0x777fBA024bA1228fDa76149A4ff8B23475ed057D,AaveV3PolygonZkEvm L2_ENCODER,1101 -0x3e652E97ff339B73421f824F5b03d75b62F1Fb51,AaveV3PolygonZkEvm ORACLE,1101 -0xb50201558B00496A145fE76f7424749556E326D8,AaveV3PolygonZkEvm POOL,1101 -0x36616cf17557639614c1cdDb356b1B83fc0B2132,AaveV3PolygonZkEvm POOL_ADDRESSES_PROVIDER,1101 -0x1236010CECea55998384e795B59815D871f5f94d,AaveV3PolygonZkEvm POOL_ADDRESSES_PROVIDER_REGISTRY,1101 -0x7304979ec9E4EaA0273b6A037a31c4e9e5A75D16,AaveV3PolygonZkEvm POOL_CONFIGURATOR,1101 -0x25Ec457d1778b0E5316e7f38f3c22baF413F1A8C,AaveV3PolygonZkEvm POOL_CONFIGURATOR_IMPL,1101 -0xB1532b76D054c9F9E61b25c4d91f69B4133E4671,AaveV3PolygonZkEvm POOL_IMPL,1101 -0x78946C514C385248b13AAf3056529a99E7E26BFC,AaveV3PolygonZkEvm RATES_FACTORY,1101 -0xBeC519531F0E78BcDdB295242fA4EC5251B38574,AaveV3PolygonZkEvm REPAY_WITH_COLLATERAL_ADAPTER,1101 -0x589750BA8aF186cE5B55391B0b7148cAD43a1619,AaveV3PolygonZkEvm SWAP_COLLATERAL_ADAPTER,1101 -0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9,AaveV3PolygonZkEvm UI_INCENTIVE_DATA_PROVIDER,1101 -0x86E2938daE289763D4e09a7e42c5cCcA62Cf9809,AaveV3PolygonZkEvm UI_POOL_DATA_PROVIDER,1101 -0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D,AaveV3PolygonZkEvm WALLET_BALANCE_PROVIDER,1101 -0x6c23bAF050ec192afc0B967a93b83e6c5405df43,AaveV3PolygonZkEvm WETH_GATEWAY,1101 -0x06C35Cfd3FC61eC2aC437f0d08840d5776b945af,AaveV3PolygonZkEvm WITHDRAW_SWAP_ADAPTER,1101 0xed7e0874526B9BB9E36C7e9472ed7ed324CEeE3B,GovernanceV3PolygonZkEvm CROSS_CHAIN_CONTROLLER,1101 0xe59470B3BE3293534603487E00A44C72f2CD466d,GovernanceV3PolygonZkEvm EXECUTOR_LVL_1,1101 0xa2d22795E0D85D4Cb14Cbb14Df7bb8fec1016615,GovernanceV3PolygonZkEvm PAYLOADS_CONTROLLER,1101 @@ -1528,7 +1503,7 @@ address,name,chainId 0x64c911996D3c6aC71f9b455B1E8E7266BcbD848F,AaveV3Base ASSETS cbBTC ORACLE,8453 0x12DEB4025b79f2B43f6aeF079F9D77C3f9a67bb6,AaveV3Base CAPS_PLUS_RISK_STEWARD,8453 0xBA9424d650A4F5c80a0dA641254d1AcCE2A37057,AaveV3Base COLLECTOR,8453 -0x08183F38166f640D60895150d99e57c6ad948451,AaveV3Base CONFIG_ENGINE,8453 +0xD828E29E2268f56309dDbbAB697ae85DCEb43B9d,AaveV3Base CONFIG_ENGINE,8453 0xb12e82DF057BF16ecFa89D7D089dc7E5C1Dc057B,AaveV3Base DEBT_SWAP_ADAPTER,8453 0x98F409Fc4A42F34AE3c326c7f48ED01ae8cAeC69,AaveV3Base DEFAULT_A_TOKEN_IMPL_REV_1,8453 0xf9cc4F0D883F1a1eb2c253bdb46c254Ca51E1F44,AaveV3Base DEFAULT_INCENTIVES_CONTROLLER,8453 @@ -1674,7 +1649,7 @@ address,name,chainId 0xD9FBA68D89178e3538e708939332c79efC540179,AaveV3Arbitrum ASSETS GHO STATIC_A_TOKEN,42161 0xADf86b537eF08591c2777E144322E8b0Ca7E82a7,AaveV3Arbitrum CAPS_PLUS_RISK_STEWARD,42161 0x053D55f9B5AF8694c503EB288a1B7E552f590710,AaveV3Arbitrum COLLECTOR,42161 -0xEB442296880a3FC7C00FFe695c40B09d970fb936,AaveV3Arbitrum CONFIG_ENGINE,42161 +0x5EcF74eb2feC38fe80F8f20f7eb302F276635fff,AaveV3Arbitrum CONFIG_ENGINE,42161 0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4,AaveV3Arbitrum DEBT_SWAP_ADAPTER,42161 0x1Be1798b70aEe431c2986f7ff48d9D1fa350786a,AaveV3Arbitrum DEFAULT_A_TOKEN_IMPL_REV_2,42161 0x929EC64c34a17401F460460D4B9390518E5B473e,AaveV3Arbitrum DEFAULT_INCENTIVES_CONTROLLER,42161 @@ -1855,7 +1830,7 @@ address,name,chainId 0x34d768cc830c32DcD743321c09A2A702651bF9a2,AaveV3Avalanche ASSETS BTCb STATIC_A_TOKEN,43114 0xD2C92b5A793e196aB11dBefBe3Af6BddeD6c3DD5,AaveV3Avalanche CAPS_PLUS_RISK_STEWARD,43114 0x5ba7fd868c40c16f7aDfAe6CF87121E13FC2F7a0,AaveV3Avalanche COLLECTOR,43114 -0x5fF5c392C5D397926364789E22f74043f7E42f2b,AaveV3Avalanche CONFIG_ENGINE,43114 +0x9aaB9F0b6E19907e346420Edc0d3029Edb5e8616,AaveV3Avalanche CONFIG_ENGINE,43114 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Avalanche DEBT_SWAP_ADAPTER,43114 0x1E81af09001aD208BDa68FF022544dB2102A752d,AaveV3Avalanche DEFAULT_A_TOKEN_IMPL_REV_2,43114 0x929EC64c34a17401F460460D4B9390518E5B473e,AaveV3Avalanche DEFAULT_INCENTIVES_CONTROLLER,43114 @@ -1925,7 +1900,7 @@ address,name,chainId 0x32f924C0e0F1Abf5D1ff35B05eBc5E844dEdD2A9,AaveV3Scroll ASSETS weETH ORACLE,534352 0xc4dcA550EF04FD0f8AbD4c384575Fb8a8123054e,AaveV3Scroll CAPS_PLUS_RISK_STEWARD,534352 0x90eB541e1a431D8a30ED85A77675D1F001128cb5,AaveV3Scroll COLLECTOR,534352 -0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d,AaveV3Scroll CONFIG_ENGINE,534352 +0xC0FE411b2606a06f64C1536E8F92FA6a9d5a89B8,AaveV3Scroll CONFIG_ENGINE,534352 0x92EDe4ABd9df4Bfb49b4d723e4c932e35c47C54C,AaveV3Scroll DEFAULT_A_TOKEN_IMPL_REV_1,534352 0xa3f3100C4f1D0624DB9DB97b40C13885Ce297799,AaveV3Scroll DEFAULT_INCENTIVES_CONTROLLER,534352 0x49bA16C08130FF8cFADE263B49387A8555bc057B,AaveV3Scroll DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,534352 diff --git a/scripts/checks/configEngine.ts b/scripts/checks/configEngine.ts new file mode 100644 index 00000000..21fdccb1 --- /dev/null +++ b/scripts/checks/configEngine.ts @@ -0,0 +1,47 @@ +import {getContract} from 'viem'; +import {CHAIN_ID_CLIENT_MAP} from '../clients'; +import {IAaveV3ConfigEngine_ABI} from '../../src/ts/abis/IAaveV3ConfigEngine'; + +export async function check(lib: string, addresses: Record) { + // Aave V2 has a different type, being deprecated we don't validate it + if (addresses.CONFIG_ENGINE && lib.startsWith('AaveV3')) { + const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID]; + if (!client.chain?.testnet) { + const engineContract = getContract({ + abi: IAaveV3ConfigEngine_ABI, + address: addresses.CONFIG_ENGINE, + client, + }); + const [ + POOL, + POOL_CONFIGURATOR, + ORACLE, + REWARDS_CONTROLLER, + DEFAULT_INTEREST_RATE_STRATEGY, + COLLECTOR, + ] = await Promise.all([ + engineContract.read.POOL(), + engineContract.read.POOL_CONFIGURATOR(), + engineContract.read.ORACLE(), + engineContract.read.REWARDS_CONTROLLER(), + engineContract.read.DEFAULT_INTEREST_RATE_STRATEGY(), + engineContract.read.COLLECTOR(), + ]); + if (POOL !== addresses.POOL) throw new Error('SANITY_CONFIG_ENGINE: wrong POOL'); + if (POOL_CONFIGURATOR !== addresses.POOL_CONFIGURATOR) + throw new Error('SANITY_CONFIG_ENGINE: wrong POOL_CONFIGURATOR'); + if (ORACLE !== addresses.ORACLE) throw new Error('SANITY_CONFIG_ENGINE: wrong ORACLE'); + if (REWARDS_CONTROLLER !== addresses.DEFAULT_INCENTIVES_CONTROLLER) + throw new Error('SANITY_CONFIG_ENGINE: wrong DEFAULT_INCENTIVES_CONTROLLER'); + if (COLLECTOR !== addresses.COLLECTOR) + throw new Error('SANITY_CONFIG_ENGINE: wrong COLLECTOR'); + if ( + DEFAULT_INTEREST_RATE_STRATEGY !== + (Object.values(addresses.ASSETS)[0] as any).INTEREST_RATE_STRATEGY + ) + throw new Error( + `SANITY_CONFIG_ENGINE: wrong DEFAULT_INTEREST_RATE_STRATEGY ${addresses.CONFIG_ENGINE}`, + ); + } + } +} diff --git a/scripts/checks/stataFactory.ts b/scripts/checks/stataFactory.ts index 38648a68..66b71d97 100644 --- a/scripts/checks/stataFactory.ts +++ b/scripts/checks/stataFactory.ts @@ -1,7 +1,7 @@ import {getContract} from 'viem'; import {CHAIN_ID_CLIENT_MAP} from '../clients'; -export async function check(addresses: Record) { +export async function check(lib: string, addresses: Record) { if (addresses.STATIC_A_TOKEN_FACTORY) { const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID]; const factory = getContract({ diff --git a/scripts/checks/wethGateway.ts b/scripts/checks/wethGateway.ts index 17f014db..8cc8c09a 100644 --- a/scripts/checks/wethGateway.ts +++ b/scripts/checks/wethGateway.ts @@ -3,7 +3,7 @@ import {CHAIN_ID_CLIENT_MAP} from '../clients'; import {IOwnable_ABI} from '../../src/ts/abis/IOwnable'; import {getGovernance} from './utils'; -export async function check(addresses: Record) { +export async function check(lib: string, addresses: Record) { if (addresses.WETH_GATEWAY) { const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID]; // on testnets owners are usually not governance diff --git a/scripts/configs/abis.ts b/scripts/configs/abis.ts index 7c0fc4a4..0aa50f33 100644 --- a/scripts/configs/abis.ts +++ b/scripts/configs/abis.ts @@ -7,6 +7,7 @@ import {mainnetProtoV3Pool} from './pools/ethereum'; */ export const ABI_INTERFACES = [ 'ICollector', + 'lib/aave-v3-origin/src/contracts/extensions/v3-config-engine/IAaveV3ConfigEngine.sol:IAaveV3ConfigEngine', 'AggregatorInterface', 'IPayloadsControllerCore', 'IVotingMachineWithProofs', diff --git a/scripts/configs/pools/arbitrum.ts b/scripts/configs/pools/arbitrum.ts index 6d2aeff8..80fd45a8 100644 --- a/scripts/configs/pools/arbitrum.ts +++ b/scripts/configs/pools/arbitrum.ts @@ -11,7 +11,7 @@ export const arbitrumProtoV3: PoolConfig = { FREEZING_STEWARD: '0xe59470B3BE3293534603487E00A44C72f2CD466d', DEBT_SWAP_ADAPTER: '0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4', L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC', - CONFIG_ENGINE: '0xEB442296880a3FC7C00FFe695c40B09d970fb936', + CONFIG_ENGINE: '0x5EcF74eb2feC38fe80F8f20f7eb302F276635fff', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6', RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896', REPAY_WITH_COLLATERAL_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034', diff --git a/scripts/configs/pools/avalanche.ts b/scripts/configs/pools/avalanche.ts index 162ad096..66006f83 100644 --- a/scripts/configs/pools/avalanche.ts +++ b/scripts/configs/pools/avalanche.ts @@ -60,7 +60,7 @@ export const avalancheProtoV3: PoolConfig = { RISK_STEWARD: '0x5d7e9a32E0c3db609089186bEBC4B9d8Eb86ad2c', FREEZING_STEWARD: '0x6d4F341d8Bb3Dc5ABe822Aa940F1884508C13f99', DEBT_SWAP_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034', - CONFIG_ENGINE: '0x5fF5c392C5D397926364789E22f74043f7E42f2b', + CONFIG_ENGINE: '0x9aaB9F0b6E19907e346420Edc0d3029Edb5e8616', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6', PROOF_OF_RESERVE: '0xab22988D93d5F942fC6B6c6Ea285744809D1d9Cc', PROOF_OF_RESERVE_AGGREGATOR: '0x80f2c02224a2E548FC67c0bF705eBFA825dd5439', diff --git a/scripts/configs/pools/base.ts b/scripts/configs/pools/base.ts index 03001012..4de41563 100644 --- a/scripts/configs/pools/base.ts +++ b/scripts/configs/pools/base.ts @@ -15,7 +15,7 @@ export const baseProtoV3: PoolConfig = { REPAY_WITH_COLLATERAL_ADAPTER: '0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4', STATIC_A_TOKEN_FACTORY: '0x940F9a5d5F9ED264990D0eaee1F3DD60B4Cb9A22', STATIC_A_TOKEN_ORACLE: '0xe63eAf6DAb1045689BD3a332bC596FfcF54A5C88', - CONFIG_ENGINE: '0x08183F38166f640D60895150d99e57c6ad948451', + CONFIG_ENGINE: '0xD828E29E2268f56309dDbbAB697ae85DCEb43B9d', L2_ENCODER: '0x39e97c588B2907Fb67F44fea256Ae3BA064207C5', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x2f6571d3Eb9a4e350C68C36bCD2afe39530078E2', UI_INCENTIVE_DATA_PROVIDER: '0xEdD3b4737C1a0011626631a977b91Cf3E944982d', diff --git a/scripts/configs/pools/bnb.ts b/scripts/configs/pools/bnb.ts index c3aa5c6a..63164ba0 100644 --- a/scripts/configs/pools/bnb.ts +++ b/scripts/configs/pools/bnb.ts @@ -10,7 +10,7 @@ export const bnbProtoV3: PoolConfig = { RISK_STEWARD: '0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726', FREEZING_STEWARD: '0x83f15Bc50d1A212576B202f80489502a7cc10412', DEBT_SWAP_ADAPTER: '0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16', - CONFIG_ENGINE: '0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b', + CONFIG_ENGINE: '0x249396a890F89D47F89326d7EE116b1d374Fb3A9', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x117684358D990E42Eb1649E7e8C4691951dc1E71', REPAY_WITH_COLLATERAL_ADAPTER: '0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9', SWAP_COLLATERAL_ADAPTER: '0x33E0b3fc976DC9C516926BA48CfC0A9E10a2aAA5', diff --git a/scripts/configs/pools/ethereum.ts b/scripts/configs/pools/ethereum.ts index 737730c6..b811bccf 100644 --- a/scripts/configs/pools/ethereum.ts +++ b/scripts/configs/pools/ethereum.ts @@ -70,7 +70,7 @@ export const mainnetProtoV3Pool: PoolConfig = { FREEZING_STEWARD: '0x2eE68ACb6A1319de1b49DC139894644E424fefD6', DEBT_SWAP_ADAPTER: '0xd7852E139a7097E119623de0751AE53a61efb442', DELEGATION_AWARE_A_TOKEN_IMPL_REV_1: '0x21714092D90c7265F52fdfDae068EC11a23C6248', - CONFIG_ENGINE: '0x8689b8add004a9fd2320031b7d3f5af1f7f41e17', + CONFIG_ENGINE: '0xA8e351C7Ab1b75A2134A418701919c462932DF79', POOL_ADDRESSES_PROVIDER_REGISTRY: '0xbaA999AC55EAce41CcAE355c77809e68Bb345170', REPAY_WITH_COLLATERAL_ADAPTER: '0x35bb522b102326ea3F1141661dF4626C87000e3E', STATIC_A_TOKEN_FACTORY: '0x411D79b8cC43384FDE66CaBf9b6a17180c842511', @@ -98,7 +98,7 @@ export const lidoEthereumMainnetProtoV3Pool: PoolConfig = { UI_POOL_DATA_PROVIDER: '0x07060168141ab016abb8933b86d2541d66b4f74a', WALLET_BALANCE_PROVIDER: '0xC7be5307ba715ce89b152f3Df0658295b3dbA8E2', WETH_GATEWAY: '0x0B8C700917a6991FEa7198dDFC80bc8962b5055D', - CONFIG_ENGINE: '0xC80f057d40Fc7f0A01ad4a634f35520Df8079707', + CONFIG_ENGINE: '0x1097eDb85392932b7dCB630baDDC8A6D73585218', CAPS_PLUS_RISK_STEWARD: '0x3843b29118fFC18d5d12EE079d0324E1bF115e69', RISK_STEWARD: '0x45C4f8b32927eFFdf1dA3cA42498504947dd4d0D', // STATIC_A_TOKEN_FACTORY: '', @@ -120,7 +120,7 @@ export const etherFiEthereumMainnetProtoV3Pool: PoolConfig = { UI_POOL_DATA_PROVIDER: '0xdbbB1C304FA7feDeF5855ab993d34254BF2576A6', WALLET_BALANCE_PROVIDER: '0xC7be5307ba715ce89b152f3Df0658295b3dbA8E2', WETH_GATEWAY: '0xAB911dFB2bB9e264EE836F30D3367618f8Aef965', - CONFIG_ENGINE: '0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed', + CONFIG_ENGINE: '0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340', STATIC_A_TOKEN_FACTORY: '0x1Ff525426800279843B71C0F818594DeCdC3b522', CAPS_PLUS_RISK_STEWARD: '0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA', RISK_STEWARD: '0x7FbBCCFB548c110226fEF5BEc816Ea04B5170EA3', diff --git a/scripts/configs/pools/gnosis.ts b/scripts/configs/pools/gnosis.ts index fee0b1c8..a6492c3a 100644 --- a/scripts/configs/pools/gnosis.ts +++ b/scripts/configs/pools/gnosis.ts @@ -6,7 +6,7 @@ export const gnosisProtoV3: PoolConfig = { chainId: ChainId.gnosis, POOL_ADDRESSES_PROVIDER: '0x36616cf17557639614c1cdDb356b1B83fc0B2132', additionalAddresses: { - CONFIG_ENGINE: '0xE2a33403eaD139873820da597531f07f65ED0E3c', + CONFIG_ENGINE: '0x97CB9e81d480A2AB03299760654C1DDC0C16bE07', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x1236010CECea55998384e795B59815D871f5f94d', UI_INCENTIVE_DATA_PROVIDER: '0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9', UI_POOL_DATA_PROVIDER: '0xc851e6147dce6a469cc33be3121b6b2d4cad2763', diff --git a/scripts/configs/pools/metis.ts b/scripts/configs/pools/metis.ts index 81b69488..a9aa0c4d 100644 --- a/scripts/configs/pools/metis.ts +++ b/scripts/configs/pools/metis.ts @@ -10,7 +10,7 @@ export const metisProtoV3: PoolConfig = { RISK_STEWARD: '0xF73F2634b43344d86921DA3391d4EF0d5675Dd63', FREEZING_STEWARD: '0x2C77153fF4a1e83A8d8D750735FB101ECB55949f', L2_ENCODER: '0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9', - CONFIG_ENGINE: '0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957', + CONFIG_ENGINE: '0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5', UI_INCENTIVE_DATA_PROVIDER: '0x3e7BC5EcE0f22DbB16c3e3EeA288a10A57d68927', UI_POOL_DATA_PROVIDER: '0xc851e6147dcE6A469CC33BE3121b6B2D4CaD2763', diff --git a/scripts/configs/pools/optimism.ts b/scripts/configs/pools/optimism.ts index e2774ad6..286dec32 100644 --- a/scripts/configs/pools/optimism.ts +++ b/scripts/configs/pools/optimism.ts @@ -11,7 +11,7 @@ export const optimismProtoV3: PoolConfig = { FREEZING_STEWARD: '0x3829943c53F2d00e20B58475aF19716724bF90Ba', DEBT_SWAP_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034', L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC', - CONFIG_ENGINE: '0x619643b346E3389062527cdb60C8720415B39860', + CONFIG_ENGINE: '0x1aa25fdd7d55fa8a401d6efba8e48874ef730e55', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6', REPAY_WITH_COLLATERAL_ADAPTER: '0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16', STATIC_A_TOKEN_FACTORY: '0x22D76094730fA377184100EFB8CEfC673B89B372', diff --git a/scripts/configs/pools/polygon.ts b/scripts/configs/pools/polygon.ts index 67d3bcf0..8678da53 100644 --- a/scripts/configs/pools/polygon.ts +++ b/scripts/configs/pools/polygon.ts @@ -29,7 +29,7 @@ export const polygonProtoV3: PoolConfig = { RISK_STEWARD: '0xfF33BEcB9ECFE4328D4f9C37bE0F07b2CFe976E3', FREEZING_STEWARD: '0xa7b40ed4dfAC9255EA9Dd218A3874f380D9FbBEB', DEBT_SWAP_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034', - CONFIG_ENGINE: '0xAF0C901489790c35D9cef02CFA11123009E81e2a', + CONFIG_ENGINE: '0x43632469e02cdaaeb4de3dcbfcaabef310975729', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6', REPAY_WITH_COLLATERAL_ADAPTER: '0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16', STATIC_A_TOKEN_FACTORY: '0x397202AB0b4E7C954ac0c493c00749C517210953', diff --git a/scripts/configs/pools/polygonZkEvm.ts b/scripts/configs/pools/polygonZkEvm.ts deleted file mode 100644 index 18fd2939..00000000 --- a/scripts/configs/pools/polygonZkEvm.ts +++ /dev/null @@ -1,30 +0,0 @@ -import {ChainId} from '@bgd-labs/js-utils'; -import {PoolConfig} from '../types'; - -export const polygonZkEvmProtoV3: PoolConfig = { - name: 'PolygonZkEvm', - chainId: ChainId.zkEVM, - POOL_ADDRESSES_PROVIDER: '0x36616cf17557639614c1cdDb356b1B83fc0B2132', - additionalAddresses: { - L2_ENCODER: '0x777fBA024bA1228fDa76149A4ff8B23475ed057D', - CAPS_PLUS_RISK_STEWARD: '0xAe13e4DA0952f0B8fE04E21df53716fCF799a923', - FREEZING_STEWARD: '0x33AE1f41546a2e05368Bf789b3d868813c0Ae658', - DEBT_SWAP_ADAPTER: '0xb9Ef6e27ef85fE393B9F8B8C23e794ff4596C7dF', - CONFIG_ENGINE: '0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2', - POOL_ADDRESSES_PROVIDER_REGISTRY: '0x1236010CECea55998384e795B59815D871f5f94d', - RATES_FACTORY: '0x78946C514C385248b13AAf3056529a99E7E26BFC', - REPAY_WITH_COLLATERAL_ADAPTER: '0xBeC519531F0E78BcDdB295242fA4EC5251B38574', - SWAP_COLLATERAL_ADAPTER: '0x589750BA8aF186cE5B55391B0b7148cAD43a1619', - UI_INCENTIVE_DATA_PROVIDER: '0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9', - UI_POOL_DATA_PROVIDER: '0x86E2938daE289763D4e09a7e42c5cCcA62Cf9809', - WALLET_BALANCE_PROVIDER: '0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D', - WETH_GATEWAY: '0x6c23bAF050ec192afc0B967a93b83e6c5405df43', - WITHDRAW_SWAP_ADAPTER: '0x06C35Cfd3FC61eC2aC437f0d08840d5776b945af', - }, - initial: { - COLLECTOR: '0xe892E40C92c2E4D281Be59b2E6300F271d824E75', - DEFAULT_A_TOKEN_IMPL: '0xDe090EfCD6ef4b86792e2D84E55a5fa8d49D25D2', - DEFAULT_VARIABLE_DEBT_TOKEN_IMPL: '0x988B5d3863bdEE83339Be41cD31344Dfd9FD197c', - DEFAULT_STABLE_DEBT_TOKEN_IMPL: '0x96086C25d13943C80Ff9a19791a40Df6aFC08328', - }, -}; diff --git a/scripts/configs/pools/scroll.ts b/scripts/configs/pools/scroll.ts index 715e0f1e..62779cc2 100644 --- a/scripts/configs/pools/scroll.ts +++ b/scripts/configs/pools/scroll.ts @@ -24,7 +24,7 @@ export const scrollProtoV3: PoolConfig = { CAPS_PLUS_RISK_STEWARD: '0xc4dca550ef04fd0f8abd4c384575fb8a8123054e', RISK_STEWARD: '0x5E27B8EfDe76814795a07c8a378FcdF09715850b', FREEZING_STEWARD: '0xc68d0c511076283075bd5cc9aa61e43673135f37', - CONFIG_ENGINE: '0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d', + CONFIG_ENGINE: '0xC0FE411b2606a06f64C1536E8F92FA6a9d5a89B8', POOL_ADDRESSES_PROVIDER_REGISTRY: '0xFBedc64AeE24921cb43004312B9eF367a4162b57', UI_INCENTIVE_DATA_PROVIDER: '0x37A2f0b0b5FC33999e3E7fdECcFAe1e894fF9b07', UI_POOL_DATA_PROVIDER: '0xc851e6147dce6a469cc33be3121b6b2d4cad2763', diff --git a/scripts/configs/pools/zksync.ts b/scripts/configs/pools/zksync.ts index ddaa6c2d..ed74cc91 100644 --- a/scripts/configs/pools/zksync.ts +++ b/scripts/configs/pools/zksync.ts @@ -6,7 +6,7 @@ export const zkSyncProtoV3: PoolConfig = { chainId: ChainId.zkSync, POOL_ADDRESSES_PROVIDER: '0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7', additionalAddresses: { - CONFIG_ENGINE: '0x93E5E329FaCf7d85118b49f0eb250E9c767CA177', + CONFIG_ENGINE: '0x54965A9c830DCEEa6BeEa77642C6A78C3df1C957', POOL_ADDRESSES_PROVIDER_REGISTRY: '0x0753E3637ddC6efc40759D9c347251046644F25F', UI_INCENTIVE_DATA_PROVIDER: '0x82B3B951Cf43B42324B915Ab651a83D910f29D67', UI_POOL_DATA_PROVIDER: '0x43312730DB351Dc099924462A42B442c0993F6B5', diff --git a/scripts/generateAddresses.ts b/scripts/generateAddresses.ts index aebe3e8e..405677ec 100644 --- a/scripts/generateAddresses.ts +++ b/scripts/generateAddresses.ts @@ -23,7 +23,6 @@ import {harmonyProtoV3} from './configs/pools/harmony'; import {metisProtoV3} from './configs/pools/metis'; import {gnosisProtoV3} from './configs/pools/gnosis'; import {bnbProtoV3} from './configs/pools/bnb'; -import {polygonZkEvmProtoV3} from './configs/pools/polygonZkEvm'; import {optimismProtoV3, optimismSepoliaProtoV3} from './configs/pools/optimism'; import {polygonProtoV2, polygonProtoV3} from './configs/pools/polygon'; import {scrollSepoliaProtoV3, scrollProtoV3} from './configs/pools/scroll'; @@ -116,7 +115,6 @@ async function main() { baseSepoliaProtoV3, metisProtoV3, gnosisProtoV3, - polygonZkEvmProtoV3, bnbProtoV3, arbitrumProtoV3, arbitrumSepoliaProtoV3, diff --git a/scripts/sanity.ts b/scripts/sanity.ts index bacb0494..8413bf87 100644 --- a/scripts/sanity.ts +++ b/scripts/sanity.ts @@ -4,12 +4,13 @@ import * as addressBook from '../src/ts/AaveAddressBook'; import {check as stataCheck} from './checks/stataFactory'; import {check as wethCheck} from './checks/wethGateway'; +import {check as configEngineCheck} from './checks/configEngine'; async function sanity() { - const sanitySuites = [stataCheck, wethCheck]; + const sanitySuites = [stataCheck, wethCheck, configEngineCheck]; for (const key of Object.keys(addressBook)) { for (const suite of sanitySuites) { - await suite(addressBook[key]); + await suite(key, addressBook[key]); } } } diff --git a/src/AaveAddressBook.sol b/src/AaveAddressBook.sol index d21a687d..088df681 100644 --- a/src/AaveAddressBook.sol +++ b/src/AaveAddressBook.sol @@ -31,7 +31,6 @@ import {AaveV3Base} from './AaveV3Base.sol'; import {AaveV3BaseSepolia} from './AaveV3BaseSepolia.sol'; import {AaveV3Metis} from './AaveV3Metis.sol'; import {AaveV3Gnosis} from './AaveV3Gnosis.sol'; -import {AaveV3PolygonZkEvm} from './AaveV3PolygonZkEvm.sol'; import {AaveV3BNB} from './AaveV3BNB.sol'; import {AaveV3Arbitrum} from './AaveV3Arbitrum.sol'; import {AaveV3ArbitrumSepolia} from './AaveV3ArbitrumSepolia.sol'; diff --git a/src/AaveV3Arbitrum.sol b/src/AaveV3Arbitrum.sol index 9098bfe6..8c7f53d1 100644 --- a/src/AaveV3Arbitrum.sol +++ b/src/AaveV3Arbitrum.sol @@ -72,8 +72,8 @@ library AaveV3Arbitrum { // https://arbiscan.io/address/0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC address internal constant L2_ENCODER = 0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC; - // https://arbiscan.io/address/0xEB442296880a3FC7C00FFe695c40B09d970fb936 - address internal constant CONFIG_ENGINE = 0xEB442296880a3FC7C00FFe695c40B09d970fb936; + // https://arbiscan.io/address/0x5EcF74eb2feC38fe80F8f20f7eb302F276635fff + address internal constant CONFIG_ENGINE = 0x5EcF74eb2feC38fe80F8f20f7eb302F276635fff; // https://arbiscan.io/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3Avalanche.sol b/src/AaveV3Avalanche.sol index 0765ad9e..70ac6afd 100644 --- a/src/AaveV3Avalanche.sol +++ b/src/AaveV3Avalanche.sol @@ -66,8 +66,8 @@ library AaveV3Avalanche { // https://snowtrace.io/address/0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034 address internal constant DEBT_SWAP_ADAPTER = 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034; - // https://snowtrace.io/address/0x5fF5c392C5D397926364789E22f74043f7E42f2b - address internal constant CONFIG_ENGINE = 0x5fF5c392C5D397926364789E22f74043f7E42f2b; + // https://snowtrace.io/address/0x9aaB9F0b6E19907e346420Edc0d3029Edb5e8616 + address internal constant CONFIG_ENGINE = 0x9aaB9F0b6E19907e346420Edc0d3029Edb5e8616; // https://snowtrace.io/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3BNB.sol b/src/AaveV3BNB.sol index ee7a1784..e9fbdae6 100644 --- a/src/AaveV3BNB.sol +++ b/src/AaveV3BNB.sol @@ -66,8 +66,8 @@ library AaveV3BNB { // https://bscscan.com/address/0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16 address internal constant DEBT_SWAP_ADAPTER = 0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16; - // https://bscscan.com/address/0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b - address internal constant CONFIG_ENGINE = 0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b; + // https://bscscan.com/address/0x249396a890F89D47F89326d7EE116b1d374Fb3A9 + address internal constant CONFIG_ENGINE = 0x249396a890F89D47F89326d7EE116b1d374Fb3A9; // https://bscscan.com/address/0x117684358D990E42Eb1649E7e8C4691951dc1E71 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3Base.sol b/src/AaveV3Base.sol index 343b0d15..cb68c88d 100644 --- a/src/AaveV3Base.sol +++ b/src/AaveV3Base.sol @@ -85,8 +85,8 @@ library AaveV3Base { // https://basescan.org/address/0xe63eAf6DAb1045689BD3a332bC596FfcF54A5C88 address internal constant STATIC_A_TOKEN_ORACLE = 0xe63eAf6DAb1045689BD3a332bC596FfcF54A5C88; - // https://basescan.org/address/0x08183F38166f640D60895150d99e57c6ad948451 - address internal constant CONFIG_ENGINE = 0x08183F38166f640D60895150d99e57c6ad948451; + // https://basescan.org/address/0xD828E29E2268f56309dDbbAB697ae85DCEb43B9d + address internal constant CONFIG_ENGINE = 0xD828E29E2268f56309dDbbAB697ae85DCEb43B9d; // https://basescan.org/address/0x39e97c588B2907Fb67F44fea256Ae3BA064207C5 address internal constant L2_ENCODER = 0x39e97c588B2907Fb67F44fea256Ae3BA064207C5; diff --git a/src/AaveV3Ethereum.sol b/src/AaveV3Ethereum.sol index 5b3f2927..62bdc2ed 100644 --- a/src/AaveV3Ethereum.sol +++ b/src/AaveV3Ethereum.sol @@ -70,8 +70,8 @@ library AaveV3Ethereum { address internal constant DELEGATION_AWARE_A_TOKEN_IMPL_REV_1 = 0x21714092D90c7265F52fdfDae068EC11a23C6248; - // https://etherscan.io/address/0x8689b8aDD004A9fD2320031b7d3f5aF1f7F41e17 - address internal constant CONFIG_ENGINE = 0x8689b8aDD004A9fD2320031b7d3f5aF1f7F41e17; + // https://etherscan.io/address/0xA8e351C7Ab1b75A2134A418701919c462932DF79 + address internal constant CONFIG_ENGINE = 0xA8e351C7Ab1b75A2134A418701919c462932DF79; // https://etherscan.io/address/0xbaA999AC55EAce41CcAE355c77809e68Bb345170 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3EthereumEtherFi.sol b/src/AaveV3EthereumEtherFi.sol index 8b717d68..ee39deed 100644 --- a/src/AaveV3EthereumEtherFi.sol +++ b/src/AaveV3EthereumEtherFi.sol @@ -80,8 +80,8 @@ library AaveV3EthereumEtherFi { // https://etherscan.io/address/0xAB911dFB2bB9e264EE836F30D3367618f8Aef965 address internal constant WETH_GATEWAY = 0xAB911dFB2bB9e264EE836F30D3367618f8Aef965; - // https://etherscan.io/address/0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed - address internal constant CONFIG_ENGINE = 0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed; + // https://etherscan.io/address/0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340 + address internal constant CONFIG_ENGINE = 0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340; // https://etherscan.io/address/0x1Ff525426800279843B71C0F818594DeCdC3b522 address internal constant STATIC_A_TOKEN_FACTORY = 0x1Ff525426800279843B71C0F818594DeCdC3b522; diff --git a/src/AaveV3EthereumLido.sol b/src/AaveV3EthereumLido.sol index 4c22889a..07840d9d 100644 --- a/src/AaveV3EthereumLido.sol +++ b/src/AaveV3EthereumLido.sol @@ -80,8 +80,8 @@ library AaveV3EthereumLido { // https://etherscan.io/address/0x0B8C700917a6991FEa7198dDFC80bc8962b5055D address internal constant WETH_GATEWAY = 0x0B8C700917a6991FEa7198dDFC80bc8962b5055D; - // https://etherscan.io/address/0xC80f057d40Fc7f0A01ad4a634f35520Df8079707 - address internal constant CONFIG_ENGINE = 0xC80f057d40Fc7f0A01ad4a634f35520Df8079707; + // https://etherscan.io/address/0x1097eDb85392932b7dCB630baDDC8A6D73585218 + address internal constant CONFIG_ENGINE = 0x1097eDb85392932b7dCB630baDDC8A6D73585218; // https://etherscan.io/address/0x3843b29118fFC18d5d12EE079d0324E1bF115e69 address internal constant CAPS_PLUS_RISK_STEWARD = 0x3843b29118fFC18d5d12EE079d0324E1bF115e69; diff --git a/src/AaveV3Gnosis.sol b/src/AaveV3Gnosis.sol index 8b3559dd..e05dad66 100644 --- a/src/AaveV3Gnosis.sol +++ b/src/AaveV3Gnosis.sol @@ -54,8 +54,8 @@ library AaveV3Gnosis { address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = 0xBeC519531F0E78BcDdB295242fA4EC5251B38574; - // https://gnosisscan.io/address/0xE2a33403eaD139873820da597531f07f65ED0E3c - address internal constant CONFIG_ENGINE = 0xE2a33403eaD139873820da597531f07f65ED0E3c; + // https://gnosisscan.io/address/0x97CB9e81d480A2AB03299760654C1DDC0C16bE07 + address internal constant CONFIG_ENGINE = 0x97CB9e81d480A2AB03299760654C1DDC0C16bE07; // https://gnosisscan.io/address/0x1236010CECea55998384e795B59815D871f5f94d address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3Metis.sol b/src/AaveV3Metis.sol index a6c8db2f..1313b683 100644 --- a/src/AaveV3Metis.sol +++ b/src/AaveV3Metis.sol @@ -69,8 +69,8 @@ library AaveV3Metis { // https://explorer.metis.io/address/0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9 address internal constant L2_ENCODER = 0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9; - // https://explorer.metis.io/address/0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957 - address internal constant CONFIG_ENGINE = 0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957; + // https://explorer.metis.io/address/0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726 + address internal constant CONFIG_ENGINE = 0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726; // https://explorer.metis.io/address/0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3Optimism.sol b/src/AaveV3Optimism.sol index 93325780..c929622e 100644 --- a/src/AaveV3Optimism.sol +++ b/src/AaveV3Optimism.sol @@ -72,8 +72,8 @@ library AaveV3Optimism { // https://optimistic.etherscan.io/address/0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC address internal constant L2_ENCODER = 0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC; - // https://optimistic.etherscan.io/address/0x619643b346E3389062527cdb60C8720415B39860 - address internal constant CONFIG_ENGINE = 0x619643b346E3389062527cdb60C8720415B39860; + // https://optimistic.etherscan.io/address/0x1AA25FdD7d55FA8a401D6EFba8e48874Ef730E55 + address internal constant CONFIG_ENGINE = 0x1AA25FdD7d55FA8a401D6EFba8e48874Ef730E55; // https://optimistic.etherscan.io/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3Polygon.sol b/src/AaveV3Polygon.sol index 7a14890a..bba26276 100644 --- a/src/AaveV3Polygon.sol +++ b/src/AaveV3Polygon.sol @@ -66,8 +66,8 @@ library AaveV3Polygon { // https://polygonscan.com/address/0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034 address internal constant DEBT_SWAP_ADAPTER = 0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034; - // https://polygonscan.com/address/0xAF0C901489790c35D9cef02CFA11123009E81e2a - address internal constant CONFIG_ENGINE = 0xAF0C901489790c35D9cef02CFA11123009E81e2a; + // https://polygonscan.com/address/0x43632469e02CDAaEB4dE3DcBfCAaBEf310975729 + address internal constant CONFIG_ENGINE = 0x43632469e02CDAaEB4dE3DcBfCAaBEf310975729; // https://polygonscan.com/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3Scroll.sol b/src/AaveV3Scroll.sol index cd90178d..d84eece1 100644 --- a/src/AaveV3Scroll.sol +++ b/src/AaveV3Scroll.sol @@ -69,8 +69,8 @@ library AaveV3Scroll { // https://scrollscan.com/address/0xc68D0C511076283075bD5cc9aA61E43673135f37 address internal constant FREEZING_STEWARD = 0xc68D0C511076283075bD5cc9aA61E43673135f37; - // https://scrollscan.com/address/0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d - address internal constant CONFIG_ENGINE = 0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d; + // https://scrollscan.com/address/0xC0FE411b2606a06f64C1536E8F92FA6a9d5a89B8 + address internal constant CONFIG_ENGINE = 0xC0FE411b2606a06f64C1536E8F92FA6a9d5a89B8; // https://scrollscan.com/address/0xFBedc64AeE24921cb43004312B9eF367a4162b57 address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/AaveV3ZkSync.sol b/src/AaveV3ZkSync.sol index e92ff06c..0036a794 100644 --- a/src/AaveV3ZkSync.sol +++ b/src/AaveV3ZkSync.sol @@ -54,8 +54,8 @@ library AaveV3ZkSync { address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = 0x52E97425D1Fa6885fAaC9260B711fA5047A88d06; - // https://era.zksync.network/address/0x93E5E329FaCf7d85118b49f0eb250E9c767CA177 - address internal constant CONFIG_ENGINE = 0x93E5E329FaCf7d85118b49f0eb250E9c767CA177; + // https://era.zksync.network/address/0x54965A9c830DCEEa6BeEa77642C6A78C3df1C957 + address internal constant CONFIG_ENGINE = 0x54965A9c830DCEEa6BeEa77642C6A78C3df1C957; // https://era.zksync.network/address/0x0753E3637ddC6efc40759D9c347251046644F25F address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = diff --git a/src/ts/AaveAddressBook.ts b/src/ts/AaveAddressBook.ts index 815449eb..53854a4d 100644 --- a/src/ts/AaveAddressBook.ts +++ b/src/ts/AaveAddressBook.ts @@ -28,7 +28,6 @@ export * as AaveV3Base from './AaveV3Base'; export * as AaveV3BaseSepolia from './AaveV3BaseSepolia'; export * as AaveV3Metis from './AaveV3Metis'; export * as AaveV3Gnosis from './AaveV3Gnosis'; -export * as AaveV3PolygonZkEvm from './AaveV3PolygonZkEvm'; export * as AaveV3BNB from './AaveV3BNB'; export * as AaveV3Arbitrum from './AaveV3Arbitrum'; export * as AaveV3ArbitrumSepolia from './AaveV3ArbitrumSepolia'; diff --git a/src/ts/AaveV3Arbitrum.ts b/src/ts/AaveV3Arbitrum.ts index da81ba70..a0583e23 100644 --- a/src/ts/AaveV3Arbitrum.ts +++ b/src/ts/AaveV3Arbitrum.ts @@ -59,8 +59,8 @@ export const DEBT_SWAP_ADAPTER = '0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4'; // https://arbiscan.io/address/0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC export const L2_ENCODER = '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC'; -// https://arbiscan.io/address/0xEB442296880a3FC7C00FFe695c40B09d970fb936 -export const CONFIG_ENGINE = '0xEB442296880a3FC7C00FFe695c40B09d970fb936'; +// https://arbiscan.io/address/0x5EcF74eb2feC38fe80F8f20f7eb302F276635fff +export const CONFIG_ENGINE = '0x5EcF74eb2feC38fe80F8f20f7eb302F276635fff'; // https://arbiscan.io/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6'; diff --git a/src/ts/AaveV3Avalanche.ts b/src/ts/AaveV3Avalanche.ts index cf7a727d..4487d306 100644 --- a/src/ts/AaveV3Avalanche.ts +++ b/src/ts/AaveV3Avalanche.ts @@ -53,8 +53,8 @@ export const FREEZING_STEWARD = '0x6d4F341d8Bb3Dc5ABe822Aa940F1884508C13f99'; // https://snowtrace.io/address/0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034 export const DEBT_SWAP_ADAPTER = '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034'; -// https://snowtrace.io/address/0x5fF5c392C5D397926364789E22f74043f7E42f2b -export const CONFIG_ENGINE = '0x5fF5c392C5D397926364789E22f74043f7E42f2b'; +// https://snowtrace.io/address/0x9aaB9F0b6E19907e346420Edc0d3029Edb5e8616 +export const CONFIG_ENGINE = '0x9aaB9F0b6E19907e346420Edc0d3029Edb5e8616'; // https://snowtrace.io/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6'; diff --git a/src/ts/AaveV3BNB.ts b/src/ts/AaveV3BNB.ts index 4c48bbe5..e68352b6 100644 --- a/src/ts/AaveV3BNB.ts +++ b/src/ts/AaveV3BNB.ts @@ -53,8 +53,8 @@ export const FREEZING_STEWARD = '0x83f15Bc50d1A212576B202f80489502a7cc10412'; // https://bscscan.com/address/0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16 export const DEBT_SWAP_ADAPTER = '0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16'; -// https://bscscan.com/address/0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b -export const CONFIG_ENGINE = '0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b'; +// https://bscscan.com/address/0x249396a890F89D47F89326d7EE116b1d374Fb3A9 +export const CONFIG_ENGINE = '0x249396a890F89D47F89326d7EE116b1d374Fb3A9'; // https://bscscan.com/address/0x117684358D990E42Eb1649E7e8C4691951dc1E71 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x117684358D990E42Eb1649E7e8C4691951dc1E71'; diff --git a/src/ts/AaveV3Base.ts b/src/ts/AaveV3Base.ts index 57a638e3..fba47c8e 100644 --- a/src/ts/AaveV3Base.ts +++ b/src/ts/AaveV3Base.ts @@ -71,8 +71,8 @@ export const STATIC_A_TOKEN_FACTORY = '0x940F9a5d5F9ED264990D0eaee1F3DD60B4Cb9A2 // https://basescan.org/address/0xe63eAf6DAb1045689BD3a332bC596FfcF54A5C88 export const STATIC_A_TOKEN_ORACLE = '0xe63eAf6DAb1045689BD3a332bC596FfcF54A5C88'; -// https://basescan.org/address/0x08183F38166f640D60895150d99e57c6ad948451 -export const CONFIG_ENGINE = '0x08183F38166f640D60895150d99e57c6ad948451'; +// https://basescan.org/address/0xD828E29E2268f56309dDbbAB697ae85DCEb43B9d +export const CONFIG_ENGINE = '0xD828E29E2268f56309dDbbAB697ae85DCEb43B9d'; // https://basescan.org/address/0x39e97c588B2907Fb67F44fea256Ae3BA064207C5 export const L2_ENCODER = '0x39e97c588B2907Fb67F44fea256Ae3BA064207C5'; diff --git a/src/ts/AaveV3Ethereum.ts b/src/ts/AaveV3Ethereum.ts index 8e02281a..b76c7d56 100644 --- a/src/ts/AaveV3Ethereum.ts +++ b/src/ts/AaveV3Ethereum.ts @@ -56,8 +56,8 @@ export const DEBT_SWAP_ADAPTER = '0xd7852E139a7097E119623de0751AE53a61efb442'; // https://etherscan.io/address/0x21714092D90c7265F52fdfDae068EC11a23C6248 export const DELEGATION_AWARE_A_TOKEN_IMPL_REV_1 = '0x21714092D90c7265F52fdfDae068EC11a23C6248'; -// https://etherscan.io/address/0x8689b8aDD004A9fD2320031b7d3f5aF1f7F41e17 -export const CONFIG_ENGINE = '0x8689b8aDD004A9fD2320031b7d3f5aF1f7F41e17'; +// https://etherscan.io/address/0xA8e351C7Ab1b75A2134A418701919c462932DF79 +export const CONFIG_ENGINE = '0xA8e351C7Ab1b75A2134A418701919c462932DF79'; // https://etherscan.io/address/0xbaA999AC55EAce41CcAE355c77809e68Bb345170 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0xbaA999AC55EAce41CcAE355c77809e68Bb345170'; diff --git a/src/ts/AaveV3EthereumEtherFi.ts b/src/ts/AaveV3EthereumEtherFi.ts index 7d3f4d03..840b9368 100644 --- a/src/ts/AaveV3EthereumEtherFi.ts +++ b/src/ts/AaveV3EthereumEtherFi.ts @@ -65,8 +65,8 @@ export const WALLET_BALANCE_PROVIDER = '0xC7be5307ba715ce89b152f3Df0658295b3dbA8 // https://etherscan.io/address/0xAB911dFB2bB9e264EE836F30D3367618f8Aef965 export const WETH_GATEWAY = '0xAB911dFB2bB9e264EE836F30D3367618f8Aef965'; -// https://etherscan.io/address/0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed -export const CONFIG_ENGINE = '0x482548b76D4C577A0b5cb2A1f97EFB2893E957ed'; +// https://etherscan.io/address/0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340 +export const CONFIG_ENGINE = '0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340'; // https://etherscan.io/address/0x1Ff525426800279843B71C0F818594DeCdC3b522 export const STATIC_A_TOKEN_FACTORY = '0x1Ff525426800279843B71C0F818594DeCdC3b522'; diff --git a/src/ts/AaveV3EthereumLido.ts b/src/ts/AaveV3EthereumLido.ts index 85ca4d68..230b8bc4 100644 --- a/src/ts/AaveV3EthereumLido.ts +++ b/src/ts/AaveV3EthereumLido.ts @@ -65,8 +65,8 @@ export const WALLET_BALANCE_PROVIDER = '0xC7be5307ba715ce89b152f3Df0658295b3dbA8 // https://etherscan.io/address/0x0B8C700917a6991FEa7198dDFC80bc8962b5055D export const WETH_GATEWAY = '0x0B8C700917a6991FEa7198dDFC80bc8962b5055D'; -// https://etherscan.io/address/0xC80f057d40Fc7f0A01ad4a634f35520Df8079707 -export const CONFIG_ENGINE = '0xC80f057d40Fc7f0A01ad4a634f35520Df8079707'; +// https://etherscan.io/address/0x1097eDb85392932b7dCB630baDDC8A6D73585218 +export const CONFIG_ENGINE = '0x1097eDb85392932b7dCB630baDDC8A6D73585218'; // https://etherscan.io/address/0x3843b29118fFC18d5d12EE079d0324E1bF115e69 export const CAPS_PLUS_RISK_STEWARD = '0x3843b29118fFC18d5d12EE079d0324E1bF115e69'; diff --git a/src/ts/AaveV3Gnosis.ts b/src/ts/AaveV3Gnosis.ts index 7775e659..fd1d871d 100644 --- a/src/ts/AaveV3Gnosis.ts +++ b/src/ts/AaveV3Gnosis.ts @@ -41,8 +41,8 @@ export const DEFAULT_A_TOKEN_IMPL_REV_1 = '0x589750BA8aF186cE5B55391B0b7148cAD43 // https://gnosisscan.io/address/0xBeC519531F0E78BcDdB295242fA4EC5251B38574 export const DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = '0xBeC519531F0E78BcDdB295242fA4EC5251B38574'; -// https://gnosisscan.io/address/0xE2a33403eaD139873820da597531f07f65ED0E3c -export const CONFIG_ENGINE = '0xE2a33403eaD139873820da597531f07f65ED0E3c'; +// https://gnosisscan.io/address/0x97CB9e81d480A2AB03299760654C1DDC0C16bE07 +export const CONFIG_ENGINE = '0x97CB9e81d480A2AB03299760654C1DDC0C16bE07'; // https://gnosisscan.io/address/0x1236010CECea55998384e795B59815D871f5f94d export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x1236010CECea55998384e795B59815D871f5f94d'; diff --git a/src/ts/AaveV3Metis.ts b/src/ts/AaveV3Metis.ts index 3f60d01d..7e3d89d5 100644 --- a/src/ts/AaveV3Metis.ts +++ b/src/ts/AaveV3Metis.ts @@ -56,8 +56,8 @@ export const FREEZING_STEWARD = '0x2C77153fF4a1e83A8d8D750735FB101ECB55949f'; // https://explorer.metis.io/address/0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9 export const L2_ENCODER = '0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9'; -// https://explorer.metis.io/address/0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957 -export const CONFIG_ENGINE = '0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957'; +// https://explorer.metis.io/address/0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726 +export const CONFIG_ENGINE = '0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726'; // https://explorer.metis.io/address/0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5'; diff --git a/src/ts/AaveV3Optimism.ts b/src/ts/AaveV3Optimism.ts index 81e214fd..7dd88251 100644 --- a/src/ts/AaveV3Optimism.ts +++ b/src/ts/AaveV3Optimism.ts @@ -59,8 +59,8 @@ export const DEBT_SWAP_ADAPTER = '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034'; // https://optimistic.etherscan.io/address/0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC export const L2_ENCODER = '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC'; -// https://optimistic.etherscan.io/address/0x619643b346E3389062527cdb60C8720415B39860 -export const CONFIG_ENGINE = '0x619643b346E3389062527cdb60C8720415B39860'; +// https://optimistic.etherscan.io/address/0x1AA25FdD7d55FA8a401D6EFba8e48874Ef730E55 +export const CONFIG_ENGINE = '0x1AA25FdD7d55FA8a401D6EFba8e48874Ef730E55'; // https://optimistic.etherscan.io/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6'; diff --git a/src/ts/AaveV3Polygon.ts b/src/ts/AaveV3Polygon.ts index 9b06c62e..09785ffc 100644 --- a/src/ts/AaveV3Polygon.ts +++ b/src/ts/AaveV3Polygon.ts @@ -53,8 +53,8 @@ export const FREEZING_STEWARD = '0xa7b40ed4dfAC9255EA9Dd218A3874f380D9FbBEB'; // https://polygonscan.com/address/0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034 export const DEBT_SWAP_ADAPTER = '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034'; -// https://polygonscan.com/address/0xAF0C901489790c35D9cef02CFA11123009E81e2a -export const CONFIG_ENGINE = '0xAF0C901489790c35D9cef02CFA11123009E81e2a'; +// https://polygonscan.com/address/0x43632469e02CDAaEB4dE3DcBfCAaBEf310975729 +export const CONFIG_ENGINE = '0x43632469e02CDAaEB4dE3DcBfCAaBEf310975729'; // https://polygonscan.com/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6'; diff --git a/src/ts/AaveV3PolygonZkEvm.ts b/src/ts/AaveV3PolygonZkEvm.ts deleted file mode 100644 index 2f560ec0..00000000 --- a/src/ts/AaveV3PolygonZkEvm.ts +++ /dev/null @@ -1,78 +0,0 @@ -// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR -// IPoolAddressesProvider https://zkevm.polygonscan.com/address/0x36616cf17557639614c1cdDb356b1B83fc0B2132 -export const POOL_ADDRESSES_PROVIDER = '0x36616cf17557639614c1cdDb356b1B83fc0B2132'; - -// IPool https://zkevm.polygonscan.com/address/0xb50201558B00496A145fE76f7424749556E326D8 -export const POOL = '0xb50201558B00496A145fE76f7424749556E326D8'; - -// IPoolConfigurator https://zkevm.polygonscan.com/address/0x7304979ec9E4EaA0273b6A037a31c4e9e5A75D16 -export const POOL_CONFIGURATOR = '0x7304979ec9E4EaA0273b6A037a31c4e9e5A75D16'; - -// IAaveOracle https://zkevm.polygonscan.com/address/0x3e652E97ff339B73421f824F5b03d75b62F1Fb51 -export const ORACLE = '0x3e652E97ff339B73421f824F5b03d75b62F1Fb51'; - -// https://zkevm.polygonscan.com/address/0xe59470B3BE3293534603487E00A44C72f2CD466d -export const ACL_ADMIN = '0xe59470B3BE3293534603487E00A44C72f2CD466d'; - -// IACLManager https://zkevm.polygonscan.com/address/0x41585C50524fb8c3899B43D7D797d9486AAc94DB -export const ACL_MANAGER = '0x41585C50524fb8c3899B43D7D797d9486AAc94DB'; - -// IPoolDataProvider https://zkevm.polygonscan.com/address/0x501B4c19dd9C2e06E94dA7b6D5Ed4ddA013EC741 -export const AAVE_PROTOCOL_DATA_PROVIDER = '0x501B4c19dd9C2e06E94dA7b6D5Ed4ddA013EC741'; - -// https://zkevm.polygonscan.com/address/0xB1532b76D054c9F9E61b25c4d91f69B4133E4671 -export const POOL_IMPL = '0xB1532b76D054c9F9E61b25c4d91f69B4133E4671'; - -// https://zkevm.polygonscan.com/address/0x25Ec457d1778b0E5316e7f38f3c22baF413F1A8C -export const POOL_CONFIGURATOR_IMPL = '0x25Ec457d1778b0E5316e7f38f3c22baF413F1A8C'; - -// https://zkevm.polygonscan.com/address/0xaD4F91D26254B6B0C6346b390dDA2991FDE2F20d -export const DEFAULT_INCENTIVES_CONTROLLER = '0xaD4F91D26254B6B0C6346b390dDA2991FDE2F20d'; - -// https://zkevm.polygonscan.com/address/0xeb0a051be10228213BAEb449db63719d6742F7c4 -export const EMISSION_MANAGER = '0xeb0a051be10228213BAEb449db63719d6742F7c4'; - -// https://zkevm.polygonscan.com/address/0x777fBA024bA1228fDa76149A4ff8B23475ed057D -export const L2_ENCODER = '0x777fBA024bA1228fDa76149A4ff8B23475ed057D'; - -// https://zkevm.polygonscan.com/address/0xAe13e4DA0952f0B8fE04E21df53716fCF799a923 -export const CAPS_PLUS_RISK_STEWARD = '0xAe13e4DA0952f0B8fE04E21df53716fCF799a923'; - -// https://zkevm.polygonscan.com/address/0x33AE1f41546a2e05368Bf789b3d868813c0Ae658 -export const FREEZING_STEWARD = '0x33AE1f41546a2e05368Bf789b3d868813c0Ae658'; - -// https://zkevm.polygonscan.com/address/0xb9Ef6e27ef85fE393B9F8B8C23e794ff4596C7dF -export const DEBT_SWAP_ADAPTER = '0xb9Ef6e27ef85fE393B9F8B8C23e794ff4596C7dF'; - -// https://zkevm.polygonscan.com/address/0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2 -export const CONFIG_ENGINE = '0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2'; - -// https://zkevm.polygonscan.com/address/0x1236010CECea55998384e795B59815D871f5f94d -export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x1236010CECea55998384e795B59815D871f5f94d'; - -// https://zkevm.polygonscan.com/address/0x78946C514C385248b13AAf3056529a99E7E26BFC -export const RATES_FACTORY = '0x78946C514C385248b13AAf3056529a99E7E26BFC'; - -// https://zkevm.polygonscan.com/address/0xBeC519531F0E78BcDdB295242fA4EC5251B38574 -export const REPAY_WITH_COLLATERAL_ADAPTER = '0xBeC519531F0E78BcDdB295242fA4EC5251B38574'; - -// https://zkevm.polygonscan.com/address/0x589750BA8aF186cE5B55391B0b7148cAD43a1619 -export const SWAP_COLLATERAL_ADAPTER = '0x589750BA8aF186cE5B55391B0b7148cAD43a1619'; - -// https://zkevm.polygonscan.com/address/0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9 -export const UI_INCENTIVE_DATA_PROVIDER = '0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9'; - -// https://zkevm.polygonscan.com/address/0x86E2938daE289763D4e09a7e42c5cCcA62Cf9809 -export const UI_POOL_DATA_PROVIDER = '0x86E2938daE289763D4e09a7e42c5cCcA62Cf9809'; - -// https://zkevm.polygonscan.com/address/0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D -export const WALLET_BALANCE_PROVIDER = '0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D'; - -// https://zkevm.polygonscan.com/address/0x6c23bAF050ec192afc0B967a93b83e6c5405df43 -export const WETH_GATEWAY = '0x6c23bAF050ec192afc0B967a93b83e6c5405df43'; - -// https://zkevm.polygonscan.com/address/0x06C35Cfd3FC61eC2aC437f0d08840d5776b945af -export const WITHDRAW_SWAP_ADAPTER = '0x06C35Cfd3FC61eC2aC437f0d08840d5776b945af'; - -export const CHAIN_ID = 1101; -export const ASSETS = {} as const; diff --git a/src/ts/AaveV3Scroll.ts b/src/ts/AaveV3Scroll.ts index d859cf63..4696aa40 100644 --- a/src/ts/AaveV3Scroll.ts +++ b/src/ts/AaveV3Scroll.ts @@ -56,8 +56,8 @@ export const RISK_STEWARD = '0x5E27B8EfDe76814795a07c8a378FcdF09715850b'; // https://scrollscan.com/address/0xc68D0C511076283075bD5cc9aA61E43673135f37 export const FREEZING_STEWARD = '0xc68D0C511076283075bD5cc9aA61E43673135f37'; -// https://scrollscan.com/address/0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d -export const CONFIG_ENGINE = '0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d'; +// https://scrollscan.com/address/0xC0FE411b2606a06f64C1536E8F92FA6a9d5a89B8 +export const CONFIG_ENGINE = '0xC0FE411b2606a06f64C1536E8F92FA6a9d5a89B8'; // https://scrollscan.com/address/0xFBedc64AeE24921cb43004312B9eF367a4162b57 export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0xFBedc64AeE24921cb43004312B9eF367a4162b57'; diff --git a/src/ts/AaveV3ZkSync.ts b/src/ts/AaveV3ZkSync.ts index fb47f85d..c002c123 100644 --- a/src/ts/AaveV3ZkSync.ts +++ b/src/ts/AaveV3ZkSync.ts @@ -41,8 +41,8 @@ export const DEFAULT_A_TOKEN_IMPL_REV_1 = '0x34be365Fd01ac224F21490aaC6dFd65D254 // https://era.zksync.network/address/0x52E97425D1Fa6885fAaC9260B711fA5047A88d06 export const DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = '0x52E97425D1Fa6885fAaC9260B711fA5047A88d06'; -// https://era.zksync.network/address/0x93E5E329FaCf7d85118b49f0eb250E9c767CA177 -export const CONFIG_ENGINE = '0x93E5E329FaCf7d85118b49f0eb250E9c767CA177'; +// https://era.zksync.network/address/0x54965A9c830DCEEa6BeEa77642C6A78C3df1C957 +export const CONFIG_ENGINE = '0x54965A9c830DCEEa6BeEa77642C6A78C3df1C957'; // https://era.zksync.network/address/0x0753E3637ddC6efc40759D9c347251046644F25F export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x0753E3637ddC6efc40759D9c347251046644F25F'; diff --git a/src/ts/abis/IAaveV3ConfigEngine.ts b/src/ts/abis/IAaveV3ConfigEngine.ts new file mode 100644 index 00000000..7ca14eb8 --- /dev/null +++ b/src/ts/abis/IAaveV3ConfigEngine.ts @@ -0,0 +1,757 @@ +// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR +export const IAaveV3ConfigEngine_ABI = [ + { + type: 'function', + name: 'ATOKEN_IMPL', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'BORROW_ENGINE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'CAPS_ENGINE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'COLLATERAL_ENGINE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'COLLECTOR', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'DEFAULT_INTEREST_RATE_STRATEGY', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'EMODE_ENGINE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'LISTING_ENGINE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'ORACLE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'contract IAaveOracle', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'POOL', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'contract IPool', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'POOL_CONFIGURATOR', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'contract IPoolConfigurator', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'PRICE_FEED_ENGINE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'RATE_ENGINE', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'REWARDS_CONTROLLER', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'VTOKEN_IMPL', + inputs: [], + outputs: [ + { + name: '', + type: 'address', + internalType: 'address', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'listAssets', + inputs: [ + { + name: 'context', + type: 'tuple', + internalType: 'struct IAaveV3ConfigEngine.PoolContext', + components: [ + { + name: 'networkName', + type: 'string', + internalType: 'string', + }, + { + name: 'networkAbbreviation', + type: 'string', + internalType: 'string', + }, + ], + }, + { + name: 'listings', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.Listing[]', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'assetSymbol', + type: 'string', + internalType: 'string', + }, + { + name: 'priceFeed', + type: 'address', + internalType: 'address', + }, + { + name: 'rateStrategyParams', + type: 'tuple', + internalType: 'struct IAaveV3ConfigEngine.InterestRateInputData', + components: [ + { + name: 'optimalUsageRatio', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'baseVariableBorrowRate', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'variableRateSlope1', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'variableRateSlope2', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + { + name: 'enabledToBorrow', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'borrowableInIsolation', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'withSiloedBorrowing', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'flashloanable', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'ltv', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqThreshold', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqBonus', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'reserveFactor', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'supplyCap', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'borrowCap', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'debtCeiling', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqProtocolFee', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'listAssetsCustom', + inputs: [ + { + name: 'context', + type: 'tuple', + internalType: 'struct IAaveV3ConfigEngine.PoolContext', + components: [ + { + name: 'networkName', + type: 'string', + internalType: 'string', + }, + { + name: 'networkAbbreviation', + type: 'string', + internalType: 'string', + }, + ], + }, + { + name: 'listings', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.ListingWithCustomImpl[]', + components: [ + { + name: 'base', + type: 'tuple', + internalType: 'struct IAaveV3ConfigEngine.Listing', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'assetSymbol', + type: 'string', + internalType: 'string', + }, + { + name: 'priceFeed', + type: 'address', + internalType: 'address', + }, + { + name: 'rateStrategyParams', + type: 'tuple', + internalType: 'struct IAaveV3ConfigEngine.InterestRateInputData', + components: [ + { + name: 'optimalUsageRatio', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'baseVariableBorrowRate', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'variableRateSlope1', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'variableRateSlope2', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + { + name: 'enabledToBorrow', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'borrowableInIsolation', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'withSiloedBorrowing', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'flashloanable', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'ltv', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqThreshold', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqBonus', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'reserveFactor', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'supplyCap', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'borrowCap', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'debtCeiling', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqProtocolFee', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + { + name: 'implementations', + type: 'tuple', + internalType: 'struct IAaveV3ConfigEngine.TokenImplementations', + components: [ + { + name: 'aToken', + type: 'address', + internalType: 'address', + }, + { + name: 'vToken', + type: 'address', + internalType: 'address', + }, + ], + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'updateAssetsEMode', + inputs: [ + { + name: 'updates', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.AssetEModeUpdate[]', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'eModeCategory', + type: 'uint8', + internalType: 'uint8', + }, + { + name: 'borrowable', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'collateral', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'updateBorrowSide', + inputs: [ + { + name: 'updates', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.BorrowUpdate[]', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'enabledToBorrow', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'flashloanable', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'borrowableInIsolation', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'withSiloedBorrowing', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'reserveFactor', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'updateCaps', + inputs: [ + { + name: 'updates', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.CapsUpdate[]', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'supplyCap', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'borrowCap', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'updateCollateralSide', + inputs: [ + { + name: 'updates', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.CollateralUpdate[]', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'ltv', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqThreshold', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqBonus', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'debtCeiling', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqProtocolFee', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'updateEModeCategories', + inputs: [ + { + name: 'updates', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.EModeCategoryUpdate[]', + components: [ + { + name: 'eModeCategory', + type: 'uint8', + internalType: 'uint8', + }, + { + name: 'ltv', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqThreshold', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'liqBonus', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'label', + type: 'string', + internalType: 'string', + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'updatePriceFeeds', + inputs: [ + { + name: 'updates', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.PriceFeedUpdate[]', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'priceFeed', + type: 'address', + internalType: 'address', + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'updateRateStrategies', + inputs: [ + { + name: 'updates', + type: 'tuple[]', + internalType: 'struct IAaveV3ConfigEngine.RateStrategyUpdate[]', + components: [ + { + name: 'asset', + type: 'address', + internalType: 'address', + }, + { + name: 'params', + type: 'tuple', + internalType: 'struct IAaveV3ConfigEngine.InterestRateInputData', + components: [ + { + name: 'optimalUsageRatio', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'baseVariableBorrowRate', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'variableRateSlope1', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'variableRateSlope2', + type: 'uint256', + internalType: 'uint256', + }, + ], + }, + ], + }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, +] as const; diff --git a/src/ts/abis/index.ts b/src/ts/abis/index.ts index 0370c960..07e07201 100644 --- a/src/ts/abis/index.ts +++ b/src/ts/abis/index.ts @@ -1,4 +1,5 @@ export {ICollector_ABI} from './ICollector'; +export {IAaveV3ConfigEngine_ABI} from './IAaveV3ConfigEngine'; export {AggregatorInterface_ABI} from './AggregatorInterface'; export {IPayloadsControllerCore_ABI} from './IPayloadsControllerCore'; export {IVotingMachineWithProofs_ABI} from './IVotingMachineWithProofs';