Skip to content

Commit

Permalink
feat: update risk stewards (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite authored Oct 31, 2024
1 parent 94267fd commit d6bdf78
Show file tree
Hide file tree
Showing 43 changed files with 1,480 additions and 79 deletions.
26 changes: 13 additions & 13 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ address,name,chainId
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Ethereum POOL_CONFIGURATOR_IMPL,1
0xeF434E4573b90b6ECd4a00f4888381e4D0CC5Ccd,AaveV3Ethereum POOL_IMPL,1
0x35bb522b102326ea3F1141661dF4626C87000e3E,AaveV3Ethereum REPAY_WITH_COLLATERAL_ADAPTER,1
0xF3911922bd054Bf6f4d6A02B8ADAC444921B0c51,AaveV3Ethereum RISK_STEWARD,1
0x7C7143f4bE189928A6a98D8686c5e84c893c59c7,AaveV3Ethereum RISK_STEWARD,1
0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Ethereum SAVINGS_DAI_TOKEN_WRAPPER,1
0x411D79b8cC43384FDE66CaBf9b6a17180c842511,AaveV3Ethereum STATIC_A_TOKEN_FACTORY,1
0xADC0A53095A0af87F3aa29FE0715B5c28016364e,AaveV3Ethereum SWAP_COLLATERAL_ADAPTER,1
Expand Down Expand Up @@ -668,7 +668,7 @@ address,name,chainId
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3EthereumEtherFi POOL_CONFIGURATOR_IMPL,1
0x3d881c2Dc90F00e7A52F06155f77FBEC63A779c7,AaveV3EthereumEtherFi POOL_IMPL,1
0x23b282c49C88d9161aae14b5eD777B976A5Ae65D,AaveV3EthereumEtherFi REPAY_WITH_COLLATERAL_ADAPTER,1
0x7FbBCCFB548c110226fEF5BEc816Ea04B5170EA3,AaveV3EthereumEtherFi RISK_STEWARD,1
0xBF79d8339303148E345277a994Eb2cD5d82F0067,AaveV3EthereumEtherFi RISK_STEWARD,1
0x1Ff525426800279843B71C0F818594DeCdC3b522,AaveV3EthereumEtherFi STATIC_A_TOKEN_FACTORY,1
0xB04427eFdd15b0EC233400d2F7f7E4fd0291C285,AaveV3EthereumEtherFi SWAP_COLLATERAL_ADAPTER,1
0xe3dFf4052F0bF6134ACb73bEaE8fe2317d71F047,AaveV3EthereumEtherFi UI_INCENTIVE_DATA_PROVIDER,1
Expand Down Expand Up @@ -719,7 +719,7 @@ address,name,chainId
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3EthereumLido POOL_CONFIGURATOR_IMPL,1
0xf5b4664CB6D13189345119c60a948cdc7785d0FE,AaveV3EthereumLido POOL_IMPL,1
0x66E1aBdb06e7363a618D65a910c540dfED23754f,AaveV3EthereumLido REPAY_WITH_COLLATERAL_ADAPTER,1
0x45C4f8b32927eFFdf1dA3cA42498504947dd4d0D,AaveV3EthereumLido RISK_STEWARD,1
0x30adC2f98ff78fDde12F191Acb82699f640694FB,AaveV3EthereumLido RISK_STEWARD,1
0xD0887AA7fEBC8962c622493646195e7c76D94fCE,AaveV3EthereumLido SWAP_COLLATERAL_ADAPTER,1
0xe3dFf4052F0bF6134ACb73bEaE8fe2317d71F047,AaveV3EthereumLido UI_INCENTIVE_DATA_PROVIDER,1
0x3F78BBD206e4D3c504Eb854232EdA7e47E9Fd8FC,AaveV3EthereumLido UI_POOL_DATA_PROVIDER,1
Expand Down Expand Up @@ -880,7 +880,7 @@ address,name,chainId
0x7A7eF57479123f26DB6a0e3EFbF8A3562EDD65BE,AaveV3Optimism POOL_IMPL,10
0xE229d5DE4BD5beEAf12d427B5B57BFe66abD2c3b,AaveV3Optimism PRICE_ORACLE_SENTINEL,10
0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Optimism REPAY_WITH_COLLATERAL_ADAPTER,10
0x9062F78b631f33D24Ed058cBc116A653452ea82A,AaveV3Optimism RISK_STEWARD,10
0x928807b90A74210268B590D0159FCf1340Ad76Bd,AaveV3Optimism RISK_STEWARD,10
0x22D76094730fA377184100EFB8CEfC673B89B372,AaveV3Optimism STATIC_A_TOKEN_FACTORY,10
0x830C5A67a0C95D69dA5fb7801Ac1773c6fB53857,AaveV3Optimism SWAP_COLLATERAL_ADAPTER,10
0x5c5228aC8BC1528482514aF3e27E692495148717,AaveV3Optimism UI_INCENTIVE_DATA_PROVIDER,10
Expand Down Expand Up @@ -966,7 +966,7 @@ address,name,chainId
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3BNB POOL_CONFIGURATOR_IMPL,56
0xB769c2A9259B3Eedaf120d8643C4C7EAe977fd7f,AaveV3BNB POOL_IMPL,56
0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9,AaveV3BNB REPAY_WITH_COLLATERAL_ADAPTER,56
0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726,AaveV3BNB RISK_STEWARD,56
0xbe7998712402B6A63975515A532Ce503437998b7,AaveV3BNB RISK_STEWARD,56
0x326aB0868bD279382Be2DF5E228Cb8AF38649AB4,AaveV3BNB STATIC_A_TOKEN_FACTORY,56
0x33E0b3fc976DC9C516926BA48CfC0A9E10a2aAA5,AaveV3BNB SWAP_COLLATERAL_ADAPTER,56
0x5c5228aC8BC1528482514aF3e27E692495148717,AaveV3BNB UI_INCENTIVE_DATA_PROVIDER,56
Expand Down Expand Up @@ -1053,7 +1053,7 @@ address,name,chainId
0x7304979ec9E4EaA0273b6A037a31c4e9e5A75D16,AaveV3Gnosis POOL_CONFIGURATOR,100
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Gnosis POOL_CONFIGURATOR_IMPL,100
0xF2C312BfAF4CF0429DB4DA15a0cf5F770Ea3E770,AaveV3Gnosis POOL_IMPL,100
0x0b9cA640284cf2636577703f785D5aEEc466BC56,AaveV3Gnosis RISK_STEWARD,100
0x677c9f358dA5DC83aF6760a839E4448D72840d04,AaveV3Gnosis RISK_STEWARD,100
0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6,AaveV3Gnosis STATIC_A_TOKEN_FACTORY,100
0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Gnosis UI_INCENTIVE_DATA_PROVIDER,100
0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9,AaveV3Gnosis UI_POOL_DATA_PROVIDER,100
Expand Down Expand Up @@ -1306,7 +1306,7 @@ address,name,chainId
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Polygon POOL_CONFIGURATOR_IMPL,137
0x5DFb8c777C19d3cEdcDc7398d2EeF1FB0b9b05c9,AaveV3Polygon POOL_IMPL,137
0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Polygon REPAY_WITH_COLLATERAL_ADAPTER,137
0xfF33BEcB9ECFE4328D4f9C37bE0F07b2CFe976E3,AaveV3Polygon RISK_STEWARD,137
0x88dECc4bf07f5219ea7D1E32fe3762DA28ff7609,AaveV3Polygon RISK_STEWARD,137
0x397202AB0b4E7C954ac0c493c00749C517210953,AaveV3Polygon STATIC_A_TOKEN_FACTORY,137
0xC4aff49fCeD8ac1D818a6DCAB063f9f97E66ec5E,AaveV3Polygon SWAP_COLLATERAL_ADAPTER,137
0x91E04cf78e53aEBe609e8a7f2003e7EECD743F2B,AaveV3Polygon UI_INCENTIVE_DATA_PROVIDER,137
Expand Down Expand Up @@ -1450,7 +1450,7 @@ address,name,chainId
0x0207d31b4377C74bEC37356aaD83E3dCc979F40E,AaveV3ZkSync POOL_CONFIGURATOR,324
0xBc4c49630350F67D7Ec88785E5DF9A57c78a1b7d,AaveV3ZkSync POOL_CONFIGURATOR_IMPL,324
0x79Bef43a562047B8FDF6335b28Fa61820A442fD6,AaveV3ZkSync POOL_IMPL,324
0xDeDee21f34eff4e2902B95A106855834a608e19a,AaveV3ZkSync RISK_STEWARD,324
0x05c77Cf62346329a157d7A6F874464D049CECb26,AaveV3ZkSync RISK_STEWARD,324
0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9,AaveV3ZkSync STATIC_A_TOKEN_FACTORY,324
0x430Ef10d29237a0f061f9F7753fCe1cd1F5cF0e1,AaveV3ZkSync UI_INCENTIVE_DATA_PROVIDER,324
0x6fCDa2646d6E4a42b1663d219811fC96AE3A0ec8,AaveV3ZkSync UI_POOL_DATA_PROVIDER,324
Expand Down Expand Up @@ -1515,7 +1515,7 @@ address,name,chainId
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Metis POOL_CONFIGURATOR_IMPL,1088
0xcA311Dce5b11436c7Bd7b3847E77adE29F829F8e,AaveV3Metis POOL_IMPL,1088
0x2B5EA1604BAbb7B730120950Cb13951f3525828A,AaveV3Metis PRICE_ORACLE_SENTINEL,1088
0xF73F2634b43344d86921DA3391d4EF0d5675Dd63,AaveV3Metis RISK_STEWARD,1088
0x58226D26658F19724cB881E9F747EeDC846BB1c9,AaveV3Metis RISK_STEWARD,1088
0x9C62AdC332888F56998542415c38D7CDf3Ff7619,AaveV3Metis STATIC_A_TOKEN_FACTORY,1088
0xE92cd6164CE7DC68e740765BC1f2a091B6CBc3e4,AaveV3Metis UI_INCENTIVE_DATA_PROVIDER,1088
0xc0179321f0825c3e0F59Fe7Ca4E40557b97797a3,AaveV3Metis UI_POOL_DATA_PROVIDER,1088
Expand Down Expand Up @@ -1603,7 +1603,7 @@ address,name,chainId
0x3a9C471F13C9cA1eBDf440cf713C8404e498F9C3,AaveV3Base POOL_IMPL,8453
0x943AcD0c93d7a8Bee7dA5Fd0DC3d0028237074d6,AaveV3Base PRICE_ORACLE_SENTINEL,8453
0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4,AaveV3Base REPAY_WITH_COLLATERAL_ADAPTER,8453
0x963C0b3dFF5C35b171CcC11DAC006a605E42BeD2,AaveV3Base RISK_STEWARD,8453
0xD3DE4b3571744EB77946d65aBF01408902E92c4E,AaveV3Base RISK_STEWARD,8453
0x940F9a5d5F9ED264990D0eaee1F3DD60B4Cb9A22,AaveV3Base STATIC_A_TOKEN_FACTORY,8453
0xe63eAf6DAb1045689BD3a332bC596FfcF54A5C88,AaveV3Base STATIC_A_TOKEN_ORACLE,8453
0x2E549104c516b8657A7D888494DfbAbD7C70b464,AaveV3Base SWAP_COLLATERAL_ADAPTER,8453
Expand Down Expand Up @@ -1751,7 +1751,7 @@ address,name,chainId
0x7A9ff54A6eE4a21223036890bB8c4ea2D62c686b,AaveV3Arbitrum PRICE_ORACLE_SENTINEL,42161
0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896,AaveV3Arbitrum RATES_FACTORY,42161
0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034,AaveV3Arbitrum REPAY_WITH_COLLATERAL_ADAPTER,42161
0x9EEa1Ba822d204077e9f90a92D30432417184587,AaveV3Arbitrum RISK_STEWARD,42161
0x14568979093FFF97aeBD73F58051a4f0e297b1eB,AaveV3Arbitrum RISK_STEWARD,42161
0x411D79b8cC43384FDE66CaBf9b6a17180c842511,AaveV3Arbitrum STATIC_A_TOKEN_FACTORY,42161
0xD61BF98649EA8F8D09e184184777b1867F00E5CB,AaveV3Arbitrum STATIC_A_TOKEN_ORACLE,42161
0xF3C3F14dd7BDb7E03e6EBc3bc5Ffc6D66De12251,AaveV3Arbitrum SWAP_COLLATERAL_ADAPTER,42161
Expand Down Expand Up @@ -1932,7 +1932,7 @@ address,name,chainId
0xab22988D93d5F942fC6B6c6Ea285744809D1d9Cc,AaveV3Avalanche PROOF_OF_RESERVE,43114
0x80f2c02224a2E548FC67c0bF705eBFA825dd5439,AaveV3Avalanche PROOF_OF_RESERVE_AGGREGATOR,43114
0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Avalanche REPAY_WITH_COLLATERAL_ADAPTER,43114
0x5d7e9a32E0c3db609089186bEBC4B9d8Eb86ad2c,AaveV3Avalanche RISK_STEWARD,43114
0xbf03aB677DEdA36E19D294d1735b93Dd9d1E0c05,AaveV3Avalanche RISK_STEWARD,43114
0x691C316b2Eec7e64d17e7E3E01f3dB44c9CcEf19,AaveV3Avalanche STATIC_A_TOKEN_FACTORY,43114
0x2Cf641F7C0eac2788A7924B82d6Ca8EB7bAa4E3A,AaveV3Avalanche SWAP_COLLATERAL_ADAPTER,43114
0x99732D5dA21f44f9e45e36eF9da4B1df2Eb0b28E,AaveV3Avalanche UI_INCENTIVE_DATA_PROVIDER,43114
Expand Down Expand Up @@ -2001,7 +2001,7 @@ address,name,chainId
0x4816b2C2895f97fB918f1aE7Da403750a0eE372e,AaveV3Scroll POOL_CONFIGURATOR_IMPL,534352
0xcB2107Ace932591C57EB5D07A135F1F3Dd613Dc0,AaveV3Scroll POOL_IMPL,534352
0xfD0Ba55775C1e53f50736FA5528d8aa45FBcA391,AaveV3Scroll PRICE_ORACLE_SENTINEL,534352
0x5E27B8EfDe76814795a07c8a378FcdF09715850b,AaveV3Scroll RISK_STEWARD,534352
0x64093fe5f8Cf62aFb4377cf7EF4373537fe9155B,AaveV3Scroll RISK_STEWARD,534352
0x970b77b96D94966939a8F867c2BfC2aC0310C0e7,AaveV3Scroll STATIC_A_TOKEN_FACTORY,534352
0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16,AaveV3Scroll UI_INCENTIVE_DATA_PROVIDER,534352
0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9,AaveV3Scroll UI_POOL_DATA_PROVIDER,534352
Expand Down
45 changes: 45 additions & 0 deletions scripts/checks/riskStewards.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import {getContract} from 'viem';
import {getClient} from '../clients';
import {getGovernance} from './utils';
import {IRiskSteward_ABI} from '../../src/ts/abis/IRiskSteward';

export async function check(lib: string, addresses: Record<string, any>) {
if (addresses.RISK_STEWARD) {
const client = getClient(addresses.CHAIN_ID);
if (!client.chain?.testnet) {
const riskStewardContract = getContract({
abi: IRiskSteward_ABI,
address: addresses.RISK_STEWARD,
client,
});
const [
CONFIG_ENGINE,
POOL_DATA_PROVIDER,
OWNER
] = await Promise.all([
riskStewardContract.read.CONFIG_ENGINE(),
riskStewardContract.read.POOL_DATA_PROVIDER(),
riskStewardContract.read.owner()
]);
if (CONFIG_ENGINE !== addresses.CONFIG_ENGINE) throw new Error(`SANITY_RISK_STEWARDS: wrong CONFIG_ENGINE on ${client.chain?.name}`);
if (POOL_DATA_PROVIDER !== addresses.AAVE_PROTOCOL_DATA_PROVIDER)
throw new Error(`SANITY_RISK_STEWARDS: wrong POOL_DATA_PROVIDER on ${client.chain?.name}`);

const governance = getGovernance(addresses.CHAIN_ID);
if (!governance) {
console.log(
`SANITY_RISK_STEWARDS: Skipped due to missing governance on ${client.chain?.name}`,
);
} else {
const l1Executor = (governance as any).EXECUTOR_LVL_1;
// prettier would be to check against executor lvl_1
if (OWNER !== l1Executor) {
throw new Error(
`SANITY_RISK_STEWARDS: OWNER MISMATCH ${addresses.POOL}.${addresses.RISK_STEWARD}:${OWNER} != ${l1Executor} on ${client.chain?.name}`,
);
}
}
console.log('SANITY_RISK_STEWARDS: PASSED');
}
}
}
5 changes: 5 additions & 0 deletions scripts/configs/abis.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { RISK_STEWARD } from './../../src/ts/AaveV3Avalanche';
import {governanceConfigMainnet} from './governance/ethereum';
import {mainnetProtoV3Pool} from './pools/ethereum';

Expand Down Expand Up @@ -65,6 +66,10 @@ export const DOWNLOAD_ABI_INTERFACES = [
address: mainnetProtoV3Pool.additionalAddresses.UI_POOL_DATA_PROVIDER,
name: 'IUiPoolDataProvider',
},
{
address: mainnetProtoV3Pool.additionalAddresses.RISK_STEWARD,
name: 'IRiskSteward',
},
{
address: '0x5D4Aa78B08Bc7C530e21bf7447988b1Be7991322',
name: 'IAaveToken',
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 @@ -7,7 +7,7 @@ export const arbitrumProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7',
RISK_STEWARD: '0x9EEa1Ba822d204077e9f90a92D30432417184587',
RISK_STEWARD: '0x14568979093FFF97aeBD73F58051a4f0e297b1eB',
FREEZING_STEWARD: '0xe59470B3BE3293534603487E00A44C72f2CD466d',
DEBT_SWAP_ADAPTER: '0x63dfa7c09Dc2Ff4030d6B8Dc2ce6262BF898C8A4',
L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC',
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 @@ -57,7 +57,7 @@ export const avalancheProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xD2C92b5A793e196aB11dBefBe3Af6BddeD6c3DD5',
RISK_STEWARD: '0x5d7e9a32E0c3db609089186bEBC4B9d8Eb86ad2c',
RISK_STEWARD: '0xbf03aB677DEdA36E19D294d1735b93Dd9d1E0c05',
FREEZING_STEWARD: '0x6d4F341d8Bb3Dc5ABe822Aa940F1884508C13f99',
DEBT_SWAP_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034',
CONFIG_ENGINE: '0x9aaB9F0b6E19907e346420Edc0d3029Edb5e8616',
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 @@ -7,7 +7,7 @@ export const baseProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x12DEB4025b79f2B43f6aeF079F9D77C3f9a67bb6',
RISK_STEWARD: '0x963C0b3dFF5C35b171CcC11DAC006a605E42BeD2',
RISK_STEWARD: '0xD3DE4b3571744EB77946d65aBF01408902E92c4E',
FREEZING_STEWARD: '0x4A4c73d563395ad827511F70097d4Ef82E653805',
DEBT_SWAP_ADAPTER: '0xb12e82DF057BF16ecFa89D7D089dc7E5C1Dc057B',
WITHDRAW_SWAP_ADAPTER: '0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9',
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 @@ -7,7 +7,7 @@ export const bnbProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x971F1C94b139AdEdedA729DA636e2B0C433Ff595',
RISK_STEWARD: '0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726',
RISK_STEWARD: '0xbe7998712402b6a63975515a532ce503437998b7',
FREEZING_STEWARD: '0x83f15Bc50d1A212576B202f80489502a7cc10412',
DEBT_SWAP_ADAPTER: '0x5d4D4007A4c6336550DdAa2a7c0d5e7972eebd16',
CONFIG_ENGINE: '0x249396a890F89D47F89326d7EE116b1d374Fb3A9',
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 @@ -66,7 +66,7 @@ export const mainnetProtoV3Pool: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0x2f39d218133AFaB8F2B819B1066c7E434Ad94E9e',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x82dcCF206Ae2Ab46E2099e663F70DeE77caE7778',
RISK_STEWARD: '0xF3911922bd054Bf6f4d6A02B8ADAC444921B0c51',
RISK_STEWARD: '0x7C7143f4bE189928A6a98D8686c5e84c893c59c7',
FREEZING_STEWARD: '0x2eE68ACb6A1319de1b49DC139894644E424fefD6',
DEBT_SWAP_ADAPTER: '0xd7852E139a7097E119623de0751AE53a61efb442',
DELEGATION_AWARE_A_TOKEN_IMPL_REV_1: '0x21714092D90c7265F52fdfDae068EC11a23C6248',
Expand Down Expand Up @@ -100,7 +100,7 @@ export const lidoEthereumMainnetProtoV3Pool: PoolConfig = {
WETH_GATEWAY: '0x0B8C700917a6991FEa7198dDFC80bc8962b5055D',
CONFIG_ENGINE: '0x1097eDb85392932b7dCB630baDDC8A6D73585218',
CAPS_PLUS_RISK_STEWARD: '0x3843b29118fFC18d5d12EE079d0324E1bF115e69',
RISK_STEWARD: '0x45C4f8b32927eFFdf1dA3cA42498504947dd4d0D',
RISK_STEWARD: '0x30adC2f98ff78fDde12F191Acb82699f640694FB',
// STATIC_A_TOKEN_FACTORY: '',
// FREEZING_STEWARD: '',
// RATES_FACTORY: '',
Expand All @@ -123,7 +123,7 @@ export const etherFiEthereumMainnetProtoV3Pool: PoolConfig = {
CONFIG_ENGINE: '0x909bA8DA4c826C62013Ce3A30ce1F42943F3b340',
STATIC_A_TOKEN_FACTORY: '0x1Ff525426800279843B71C0F818594DeCdC3b522',
CAPS_PLUS_RISK_STEWARD: '0x1EBdbE77bbDDD284BdCE8D7981D7eD26D6af58cA',
RISK_STEWARD: '0x7FbBCCFB548c110226fEF5BEc816Ea04B5170EA3',
RISK_STEWARD: '0xBF79d8339303148E345277a994Eb2cD5d82F0067',
},
initial: {
COLLECTOR: '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c',
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 @@ -13,7 +13,7 @@ export const gnosisProtoV3: PoolConfig = {
WALLET_BALANCE_PROVIDER: '0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D',
WETH_GATEWAY: '0x7B9c12915c594a68dE96201Cbdc79147F09da278',
CAPS_PLUS_RISK_STEWARD: '0x33AE1f41546a2e05368Bf789b3d868813c0Ae658',
RISK_STEWARD: '0x0b9cA640284cf2636577703f785D5aEEc466BC56',
RISK_STEWARD: '0x677c9f358dA5DC83aF6760a839E4448D72840d04',
FREEZING_STEWARD: '0x3Ceaf9b6CAb92dFe6302D0CC3F1BA880C28d35e5',
STATIC_A_TOKEN_FACTORY: '0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6',
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/metis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const metisProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xB9FABd7500B2C6781c35Dd48d54f81fc2299D7AF',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x5f4d15d761528c57a5C30c43c1DAb26Fc5452731',
RISK_STEWARD: '0xF73F2634b43344d86921DA3391d4EF0d5675Dd63',
RISK_STEWARD: '0x58226D26658F19724cB881E9F747EeDC846BB1c9',
FREEZING_STEWARD: '0x2C77153fF4a1e83A8d8D750735FB101ECB55949f',
L2_ENCODER: '0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9',
CONFIG_ENGINE: '0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const optimismProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x5E76E98E0963EcDC6A065d1435F84065b7523f39',
RISK_STEWARD: '0x9062F78b631f33D24Ed058cBc116A653452ea82A',
RISK_STEWARD: '0x928807b90a74210268b590d0159fcf1340ad76bd',
FREEZING_STEWARD: '0x3829943c53F2d00e20B58475aF19716724bF90Ba',
DEBT_SWAP_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034',
L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const polygonProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xc5de989E0D1BF605d19478Fdd32Aa827a10b464f',
RISK_STEWARD: '0xfF33BEcB9ECFE4328D4f9C37bE0F07b2CFe976E3',
RISK_STEWARD: '0x88dECc4bf07f5219ea7D1E32fe3762DA28ff7609',
FREEZING_STEWARD: '0xa7b40ed4dfAC9255EA9Dd218A3874f380D9FbBEB',
DEBT_SWAP_ADAPTER: '0xE28E2c8d240dd5eBd0adcab86fbD79df7a052034',
CONFIG_ENGINE: '0x43632469e02cdaaeb4de3dcbfcaabef310975729',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const scrollProtoV3: PoolConfig = {
additionalAddresses: {
L2_ENCODER: '0x8714E5ED2d8edD4E88eFf66637C3FE8eCf2B8C40',
CAPS_PLUS_RISK_STEWARD: '0xc4dca550ef04fd0f8abd4c384575fb8a8123054e',
RISK_STEWARD: '0x5E27B8EfDe76814795a07c8a378FcdF09715850b',
RISK_STEWARD: '0x64093fe5f8Cf62aFb4377cf7EF4373537fe9155B',
FREEZING_STEWARD: '0xc68d0c511076283075bd5cc9aa61e43673135f37',
CONFIG_ENGINE: '0xC0FE411b2606a06f64C1536E8F92FA6a9d5a89B8',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xFBedc64AeE24921cb43004312B9eF367a4162b57',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/zksync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const zkSyncProtoV3: PoolConfig = {
WALLET_BALANCE_PROVIDER: '0xcb8Dc3C135e59B1252F057da44A8f43EE6B0dAB0',
WETH_GATEWAY: '0xD5f6c8D402E0a0222f7FA132F9e80fDCC074df5C',
STATIC_A_TOKEN_FACTORY: '0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9',
RISK_STEWARD: '0xDeDee21f34eff4e2902B95A106855834a608e19a',
RISK_STEWARD: '0x05c77Cf62346329a157d7A6F874464D049CECb26',
},
initial: {
COLLECTOR: '0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b',
Expand Down
3 changes: 2 additions & 1 deletion scripts/sanity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ 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';
import {check as riskStewardsCheck} from './checks/riskStewards';

async function sanity() {
const sanitySuites = [stataCheck, wethCheck, configEngineCheck];
const sanitySuites = [stataCheck, wethCheck, configEngineCheck, riskStewardsCheck];
for (const key of Object.keys(addressBook)) {
for (const suite of sanitySuites) {
await suite(key, addressBook[key]);
Expand Down
4 changes: 2 additions & 2 deletions src/AaveV3Arbitrum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ library AaveV3Arbitrum {
// https://arbiscan.io/address/0xADf86b537eF08591c2777E144322E8b0Ca7E82a7
address internal constant CAPS_PLUS_RISK_STEWARD = 0xADf86b537eF08591c2777E144322E8b0Ca7E82a7;

// https://arbiscan.io/address/0x9EEa1Ba822d204077e9f90a92D30432417184587
address internal constant RISK_STEWARD = 0x9EEa1Ba822d204077e9f90a92D30432417184587;
// https://arbiscan.io/address/0x14568979093FFF97aeBD73F58051a4f0e297b1eB
address internal constant RISK_STEWARD = 0x14568979093FFF97aeBD73F58051a4f0e297b1eB;

// https://arbiscan.io/address/0xe59470B3BE3293534603487E00A44C72f2CD466d
address internal constant FREEZING_STEWARD = 0xe59470B3BE3293534603487E00A44C72f2CD466d;
Expand Down
Loading

0 comments on commit d6bdf78

Please sign in to comment.