Skip to content

Commit

Permalink
feat: add generalised risk stewards (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite authored Aug 27, 2024
1 parent 2d7c918 commit be65fa2
Show file tree
Hide file tree
Showing 57 changed files with 1,171 additions and 653 deletions.
1 change: 1 addition & 0 deletions scripts/configs/pools/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const arbitrumProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7',
RISK_STEWARD: '0x9EEa1Ba822d204077e9f90a92D30432417184587',
FREEZING_STEWARD: '0xe59470B3BE3293534603487E00A44C72f2CD466d',
DEBT_SWAP_ADAPTER: '0x9E8e9D6b0D24216F59043db68BDda1620892f549',
L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const avalancheProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xD2C92b5A793e196aB11dBefBe3Af6BddeD6c3DD5',
RISK_STEWARD: '0x5d7e9a32E0c3db609089186bEBC4B9d8Eb86ad2c',
FREEZING_STEWARD: '0x6d4F341d8Bb3Dc5ABe822Aa940F1884508C13f99',
DEBT_SWAP_ADAPTER: '0x8A9b2c132EA7676EE267F5b97b622083d6E3a2d4',
CONFIG_ENGINE: '0x5fF5c392C5D397926364789E22f74043f7E42f2b',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const baseProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x12DEB4025b79f2B43f6aeF079F9D77C3f9a67bb6',
RISK_STEWARD: '0x963C0b3dFF5C35b171CcC11DAC006a605E42BeD2',
FREEZING_STEWARD: '0x4A4c73d563395ad827511F70097d4Ef82E653805',
DEBT_SWAP_ADAPTER: '0x5f4d15d761528c57a5C30c43c1DAb26Fc5452731',
WITHDRAW_SWAP_ADAPTER: '0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/bnb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const bnbProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x971F1C94b139AdEdedA729DA636e2B0C433Ff595',
RISK_STEWARD: '0x45918bB1D3F73904a30Ffc3eD11CdB1c05eBF726',
FREEZING_STEWARD: '0x83f15Bc50d1A212576B202f80489502a7cc10412',
DEBT_SWAP_ADAPTER: '0xAe13e4DA0952f0B8fE04E21df53716fCF799a923',
CONFIG_ENGINE: '0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b',
Expand Down
2 changes: 2 additions & 0 deletions scripts/configs/pools/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const mainnetProtoV3Pool: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0x2f39d218133AFaB8F2B819B1066c7E434Ad94E9e',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x82dcCF206Ae2Ab46E2099e663F70DeE77caE7778',
RISK_STEWARD: '0xF3911922bd054Bf6f4d6A02B8ADAC444921B0c51',
FREEZING_STEWARD: '0x2eE68ACb6A1319de1b49DC139894644E424fefD6',
DEBT_SWAP_ADAPTER: '0x8761e0370f94f68Db8EaA731f4fC581f6AD0Bd68',
DELEGATION_AWARE_A_TOKEN_IMPL_REV_1: '0x21714092D90c7265F52fdfDae068EC11a23C6248',
Expand Down Expand Up @@ -99,6 +100,7 @@ export const lidoEthereumMainnetProtoV3Pool: PoolConfig = {
WETH_GATEWAY: '0x702B6770A81f75964cA5D479F369eFB31dfa7C32',
CONFIG_ENGINE: '0xC80f057d40Fc7f0A01ad4a634f35520Df8079707',
CAPS_PLUS_RISK_STEWARD: '0x3843b29118fFC18d5d12EE079d0324E1bF115e69',
RISK_STEWARD: '0x45C4f8b32927eFFdf1dA3cA42498504947dd4d0D',
// STATIC_A_TOKEN_FACTORY: '',
// FREEZING_STEWARD: '',
// RATES_FACTORY: '',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const gnosisProtoV3: PoolConfig = {
WALLET_BALANCE_PROVIDER: '0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D',
WETH_GATEWAY: '0xfE76366A986B72c3f2923e05E6ba07b7de5401e4',
CAPS_PLUS_RISK_STEWARD: '0x33AE1f41546a2e05368Bf789b3d868813c0Ae658',
RISK_STEWARD: '0x0b9cA640284cf2636577703f785D5aEEc466BC56',
FREEZING_STEWARD: '0x3Ceaf9b6CAb92dFe6302D0CC3F1BA880C28d35e5',
STATIC_A_TOKEN_FACTORY: '0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6',
},
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/metis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const metisProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xB9FABd7500B2C6781c35Dd48d54f81fc2299D7AF',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x5f4d15d761528c57a5C30c43c1DAb26Fc5452731',
RISK_STEWARD: '0xF73F2634b43344d86921DA3391d4EF0d5675Dd63',
FREEZING_STEWARD: '0x2C77153fF4a1e83A8d8D750735FB101ECB55949f',
L2_ENCODER: '0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9',
CONFIG_ENGINE: '0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const optimismProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x5E76E98E0963EcDC6A065d1435F84065b7523f39',
RISK_STEWARD: '0x9062F78b631f33D24Ed058cBc116A653452ea82A',
FREEZING_STEWARD: '0x3829943c53F2d00e20B58475aF19716724bF90Ba',
DEBT_SWAP_ADAPTER: '0xcFaE0D8c5707FCc6478D6a65fFA31efADeF8b8EC',
L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const polygonProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xc5de989E0D1BF605d19478Fdd32Aa827a10b464f',
RISK_STEWARD: '0xfF33BEcB9ECFE4328D4f9C37bE0F07b2CFe976E3',
FREEZING_STEWARD: '0xa7b40ed4dfAC9255EA9Dd218A3874f380D9FbBEB',
DEBT_SWAP_ADAPTER: '0xb58Fd91558fa213D97Ac94C97F831c7289278084',
CONFIG_ENGINE: '0xAF0C901489790c35D9cef02CFA11123009E81e2a',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/pools/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const scrollProtoV3: PoolConfig = {
additionalAddresses: {
L2_ENCODER: '0x8714E5ED2d8edD4E88eFf66637C3FE8eCf2B8C40',
CAPS_PLUS_RISK_STEWARD: '0xc4dca550ef04fd0f8abd4c384575fb8a8123054e',
RISK_STEWARD: '0x5E27B8EfDe76814795a07c8a378FcdF09715850b',
FREEZING_STEWARD: '0xc68d0c511076283075bd5cc9aa61e43673135f37',
CONFIG_ENGINE: '0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xFBedc64AeE24921cb43004312B9eF367a4162b57',
Expand Down
1 change: 1 addition & 0 deletions scripts/configs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface PoolConfig {
STATIC_A_TOKEN_FACTORY?: Hex;
STATIC_A_TOKEN_ORACLE?: Hex;
CAPS_PLUS_RISK_STEWARD?: Hex;
RISK_STEWARD?: Hex;
FREEZING_STEWARD?: Hex;
UI_GHO_DATA_PROVIDER?: Hex;
RATES_FACTORY?: Hex;
Expand Down
2 changes: 1 addition & 1 deletion src/AaveGovernanceV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ library AaveGovernanceV2 {
// https://arbiscan.io/address/0x7d9103572bE58FfE99dc390E8246f02dcAe6f611
address internal constant ARBITRUM_BRIDGE_EXECUTOR = 0x7d9103572bE58FfE99dc390E8246f02dcAe6f611;

// https://explorer.metis.io/address/0x8EC77963068474a45016938Deb95E603Ca82a029
// https://andromeda-explorer.metis.io/address/0x8EC77963068474a45016938Deb95E603Ca82a029
address internal constant METIS_BRIDGE_EXECUTOR = 0x8EC77963068474a45016938Deb95E603Ca82a029;

// https://basescan.org/address/0xA9F30e6ED4098e9439B2ac8aEA2d3fc26BcEbb45
Expand Down
Loading

0 comments on commit be65fa2

Please sign in to comment.