Skip to content

Commit

Permalink
fix: add v3.2 config engine (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite authored Oct 10, 2024
1 parent 4f47411 commit cf71df4
Show file tree
Hide file tree
Showing 50 changed files with 889 additions and 219 deletions.
51 changes: 13 additions & 38 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
47 changes: 47 additions & 0 deletions scripts/checks/configEngine.ts
Original file line number Diff line number Diff line change
@@ -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<string, any>) {
// 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}`,
);
}
}
}
2 changes: 1 addition & 1 deletion scripts/checks/stataFactory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {getContract} from 'viem';
import {CHAIN_ID_CLIENT_MAP} from '../clients';

export async function check(addresses: Record<string, any>) {
export async function check(lib: string, addresses: Record<string, any>) {
if (addresses.STATIC_A_TOKEN_FACTORY) {
const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID];
const factory = getContract({
Expand Down
2 changes: 1 addition & 1 deletion scripts/checks/wethGateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>) {
export async function check(lib: string, addresses: Record<string, any>) {
if (addresses.WETH_GATEWAY) {
const client = CHAIN_ID_CLIENT_MAP[addresses.CHAIN_ID];
// on testnets owners are usually not governance
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/abis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/bnb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions scripts/configs/pools/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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: '',
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading

0 comments on commit cf71df4

Please sign in to comment.