Skip to content

Commit

Permalink
feat!: replace config engine with 3.1 (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
sendra committed Jul 23, 2024
1 parent f6ac658 commit 343a7be
Show file tree
Hide file tree
Showing 37 changed files with 59 additions and 122 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"tsup": "^8.0.2",
"tsx": "^4.7.1",
"typescript": "^5.4.2",
"viem": "^2.8.5"
"viem": "^2.8.5",
"dotenv": "^16.4.1"
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
3 changes: 1 addition & 2 deletions scripts/configs/pools/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ export const arbitrumSepoliaProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xB25a5D144626a0D488e52AE717A051a2E9997076',
additionalAddresses: {
L2_ENCODER: '0x2E45e7dCD1e94d8edf1605FfF4602912FDC662bC',
CONFIG_ENGINE: '0x0a275C06556EeB3c7Ff2b0f0cfD462A7645772EF',
CONFIG_ENGINE: '0xEB442296880a3FC7C00FFe695c40B09d970fb936',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xbB7492Cce831eE6F349960a6E2da8eadC4b50cA3',
RATES_FACTORY: '0x6376D4df995f32f308f2d5049a7a320943023232',
UI_INCENTIVE_DATA_PROVIDER: '0xB90fa850a4af6D30feA8b41989eaAecDcA8fd414',
UI_POOL_DATA_PROVIDER: '0x97Cf44bF6a9A3D2B4F32b05C480dBEdC018F72A9',
WALLET_BALANCE_PROVIDER: '0x1Be33D186a081eFDf15310e4bdEd81E828C47f9b',
Expand Down
3 changes: 1 addition & 2 deletions scripts/configs/pools/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ export const avalancheProtoV3: PoolConfig = {
CAPS_PLUS_RISK_STEWARD: '0xD2C92b5A793e196aB11dBefBe3Af6BddeD6c3DD5',
FREEZING_STEWARD: '0x6d4F341d8Bb3Dc5ABe822Aa940F1884508C13f99',
DEBT_SWAP_ADAPTER: '0x8A9b2c132EA7676EE267F5b97b622083d6E3a2d4',
CONFIG_ENGINE: '0x0587B66Bc824368cFA5849bc56216a59260Df2c5',
CONFIG_ENGINE: '0x5fF5c392C5D397926364789E22f74043f7E42f2b',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
PROOF_OF_RESERVE: '0xab22988D93d5F942fC6B6c6Ea285744809D1d9Cc',
PROOF_OF_RESERVE_AGGREGATOR: '0x80f2c02224a2E548FC67c0bF705eBFA825dd5439',
RATES_FACTORY: '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA',
REPAY_WITH_COLLATERAL_ADAPTER: '0x49F5B996814fEd1dd39285B92A59CFb2dfd8D4f9',
STATIC_A_TOKEN_FACTORY: '0x691C316b2Eec7e64d17e7E3E01f3dB44c9CcEf19',
SWAP_COLLATERAL_ADAPTER: '0x2Cf641F7C0eac2788A7924B82d6Ca8EB7bAa4E3A',
Expand Down
3 changes: 1 addition & 2 deletions scripts/configs/pools/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const baseProtoV3: PoolConfig = {
STATIC_A_TOKEN_FACTORY: '0x940F9a5d5F9ED264990D0eaee1F3DD60B4Cb9A22',
STATIC_A_TOKEN_ORACLE: '0xe63eAf6DAb1045689BD3a332bC596FfcF54A5C88',
CONFIG_ENGINE: '0xc7751400F809cdB0C167F87985083C558a0610F7',
RATES_FACTORY: '0x0D1Fe8eAdb0a3e44C4Cc9D73De8dA50C1E475832',
L2_ENCODER: '0x39e97c588B2907Fb67F44fea256Ae3BA064207C5',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x2f6571d3Eb9a4e350C68C36bCD2afe39530078E2',
UI_INCENTIVE_DATA_PROVIDER: '0xEdD3b4737C1a0011626631a977b91Cf3E944982d',
Expand All @@ -30,7 +29,7 @@ export const baseSepoliaProtoV3: PoolConfig = {
chainId: ChainId.base_sepolia,
POOL_ADDRESSES_PROVIDER: '0xd449FeD49d9C443688d6816fE6872F21402e41de',
additionalAddresses: {
CONFIG_ENGINE: '0xC18ECB3DEf8BAaB2be2714324c5AdA75608e0a48',
CONFIG_ENGINE: '0x08183F38166f640D60895150d99e57c6ad948451',
RATES_FACTORY: '0x777fBA024bA1228fDa76149A4ff8B23475ed057D',
L2_ENCODER: '0x458d281bFFCE958E34571B33F1F26Bd42Aa27c44',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x1169e227cD901899A02c8FD242251a311D73b252',
Expand Down
3 changes: 1 addition & 2 deletions scripts/configs/pools/bnb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const bnbProtoV3: PoolConfig = {
CAPS_PLUS_RISK_STEWARD: '0x971F1C94b139AdEdedA729DA636e2B0C433Ff595',
FREEZING_STEWARD: '0x83f15Bc50d1A212576B202f80489502a7cc10412',
DEBT_SWAP_ADAPTER: '0xAe13e4DA0952f0B8fE04E21df53716fCF799a923',
CONFIG_ENGINE: '0xcb0670258e5961CCA85D8F71D29C1167Ef20De99',
CONFIG_ENGINE: '0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x117684358D990E42Eb1649E7e8C4691951dc1E71',
RATES_FACTORY: '0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6',
REPAY_WITH_COLLATERAL_ADAPTER: '0x0727a6494095511078d63143A8a1E90b9f310880',
SWAP_COLLATERAL_ADAPTER: '0x33E0b3fc976DC9C516926BA48CfC0A9E10a2aAA5',
UI_INCENTIVE_DATA_PROVIDER: '0x1236010CECea55998384e795B59815D871f5f94d',
Expand Down
3 changes: 1 addition & 2 deletions scripts/configs/pools/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ export const mainnetProtoV3Pool: PoolConfig = {
FREEZING_STEWARD: '0x2eE68ACb6A1319de1b49DC139894644E424fefD6',
DEBT_SWAP_ADAPTER: '0x8761e0370f94f68Db8EaA731f4fC581f6AD0Bd68',
DELEGATION_AWARE_A_TOKEN_IMPL_REV_1: '0x21714092D90c7265F52fdfDae068EC11a23C6248',
CONFIG_ENGINE: '0xA3e44d830440dF5098520F62Ebec285B1198c51E',
CONFIG_ENGINE: '0x8689b8add004a9fd2320031b7d3f5af1f7f41e17',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xbaA999AC55EAce41CcAE355c77809e68Bb345170',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0x02e7B8511831B1b02d9018215a0f8f500Ea5c6B3',
STATIC_A_TOKEN_FACTORY: '0x411D79b8cC43384FDE66CaBf9b6a17180c842511',
SWAP_COLLATERAL_ADAPTER: '0xADC0A53095A0af87F3aa29FE0715B5c28016364e',
Expand Down
3 changes: 1 addition & 2 deletions scripts/configs/pools/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ export const gnosisProtoV3: PoolConfig = {
chainId: ChainId.gnosis,
POOL_ADDRESSES_PROVIDER: '0x36616cf17557639614c1cdDb356b1B83fc0B2132',
additionalAddresses: {
CONFIG_ENGINE: '0x3238FC1d642b60F41a35f62570237656C85F4744',
CONFIG_ENGINE: '0xE2a33403eaD139873820da597531f07f65ED0E3c',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x1236010CECea55998384e795B59815D871f5f94d',
RATES_FACTORY: '0x73dDE2A75c06a108912bf7Ff600eDdCE9d96Ed25',
UI_INCENTIVE_DATA_PROVIDER: '0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9',
UI_POOL_DATA_PROVIDER: '0x86E2938daE289763D4e09a7e42c5cCcA62Cf9809',
WALLET_BALANCE_PROVIDER: '0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D',
Expand Down
3 changes: 1 addition & 2 deletions scripts/configs/pools/metis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const metisProtoV3: PoolConfig = {
CAPS_PLUS_RISK_STEWARD: '0x5f4d15d761528c57a5C30c43c1DAb26Fc5452731',
FREEZING_STEWARD: '0x2C77153fF4a1e83A8d8D750735FB101ECB55949f',
L2_ENCODER: '0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9',
CONFIG_ENGINE: '0x8be473dCfA93132658821E67CbEB684ec8Ea2E74',
CONFIG_ENGINE: '0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5',
RATES_FACTORY: '0x87Aaba7cf8e1F319d0E3402d68017171201dEcd5',
UI_INCENTIVE_DATA_PROVIDER: '0x3e7BC5EcE0f22DbB16c3e3EeA288a10A57d68927',
UI_POOL_DATA_PROVIDER: '0x7dd60bd8507fDC3d300d53427b7AE566701a7320',
WALLET_BALANCE_PROVIDER: '0x1df710eb1E2FD9C21494aF2BFb1F210a4185885b',
Expand Down
5 changes: 2 additions & 3 deletions scripts/configs/pools/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const optimismProtoV3: PoolConfig = {
L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC',
CONFIG_ENGINE: '0x893411580e590D62dDBca8a703d61Cc4A8c7b2b9',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
RATES_FACTORY: '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA',
REPAY_WITH_COLLATERAL_ADAPTER: '0xa12734e64417f61f8442E7D5132EdBFdbDDeF0fa',
STATIC_A_TOKEN_FACTORY: '0x22D76094730fA377184100EFB8CEfC673B89B372',
SWAP_COLLATERAL_ADAPTER: '0x830C5A67a0C95D69dA5fb7801Ac1773c6fB53857',
Expand All @@ -30,12 +29,12 @@ export const optimismSepoliaProtoV3: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0x36616cf17557639614c1cdDb356b1B83fc0B2132',
additionalAddresses: {
L2_ENCODER: '0xBeC519531F0E78BcDdB295242fA4EC5251B38574',
CONFIG_ENGINE: '0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2',
CONFIG_ENGINE: '0x619643b346E3389062527cdb60C8720415B39860',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x1236010CECea55998384e795B59815D871f5f94d',
RATES_FACTORY: '0x83E0E6095a318446b313f7D27e0c33Ed1e9c0213',
UI_INCENTIVE_DATA_PROVIDER: '0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9',
UI_POOL_DATA_PROVIDER: '0x86E2938daE289763D4e09a7e42c5cCcA62Cf9809',
WALLET_BALANCE_PROVIDER: '0x4172E6aAEC070ACB31aaCE343A58c93E4C70f44D',
WETH_GATEWAY: '0x589750BA8aF186cE5B55391B0b7148cAD43a1619'
WETH_GATEWAY: '0x589750BA8aF186cE5B55391B0b7148cAD43a1619',
},
};
3 changes: 1 addition & 2 deletions scripts/configs/pools/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ export const polygonProtoV3: PoolConfig = {
CAPS_PLUS_RISK_STEWARD: '0xc5de989E0D1BF605d19478Fdd32Aa827a10b464f',
FREEZING_STEWARD: '0xa7b40ed4dfAC9255EA9Dd218A3874f380D9FbBEB',
DEBT_SWAP_ADAPTER: '0xb58Fd91558fa213D97Ac94C97F831c7289278084',
CONFIG_ENGINE: '0xfFD6F13c9574bedb3f4E131e9C4320186AF83c1D',
CONFIG_ENGINE: '0xAF0C901489790c35D9cef02CFA11123009E81e2a',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0xE3090207A2de94A856EA10a7e1Bd36dD6145712B',
STATIC_A_TOKEN_FACTORY: '0x397202AB0b4E7C954ac0c493c00749C517210953',
SWAP_COLLATERAL_ADAPTER: '0xC4aff49fCeD8ac1D818a6DCAB063f9f97E66ec5E',
Expand Down
3 changes: 1 addition & 2 deletions scripts/configs/pools/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ export const scrollProtoV3: PoolConfig = {
L2_ENCODER: '0x8714E5ED2d8edD4E88eFf66637C3FE8eCf2B8C40',
CAPS_PLUS_RISK_STEWARD: '0xc4dca550ef04fd0f8abd4c384575fb8a8123054e',
FREEZING_STEWARD: '0xc68d0c511076283075bd5cc9aa61e43673135f37',
CONFIG_ENGINE: '0x9CBC05104c3ff7EC0885770911a0828C40fd0a32',
CONFIG_ENGINE: '0x8543A1c3f8D4Cb0D7363047bec613b6b54740B1d',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xFBedc64AeE24921cb43004312B9eF367a4162b57',
RATES_FACTORY: '0xe48fb34452fae3cd5d906f748490fbe16c3ce31b',
UI_INCENTIVE_DATA_PROVIDER: '0x37A2f0b0b5FC33999e3E7fdECcFAe1e894fF9b07',
UI_POOL_DATA_PROVIDER: '0x639c4ae31A02D54d66A9c696c63404BCa8B2734C',
WALLET_BALANCE_PROVIDER: '0xE51642875Af07Fea1B03d821E41a9DB24bC4447E',
Expand Down
1 change: 1 addition & 0 deletions scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'dotenv/config';
import {appendFileSync, existsSync, mkdirSync, readdirSync, rmSync, writeFileSync} from 'fs';
import {governanceConfigMainnet} from './configs/governance/ethereum';
import {arbitrumProtoV3, arbitrumSepoliaProtoV3} from './configs/pools/arbitrum';
Expand Down
7 changes: 2 additions & 5 deletions src/AaveV3ArbitrumSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,13 @@ library AaveV3ArbitrumSepolia {
// https://sepolia.arbiscan.io/address/0x2E45e7dCD1e94d8edf1605FfF4602912FDC662bC
address internal constant L2_ENCODER = 0x2E45e7dCD1e94d8edf1605FfF4602912FDC662bC;

// https://sepolia.arbiscan.io/address/0x0a275C06556EeB3c7Ff2b0f0cfD462A7645772EF
address internal constant CONFIG_ENGINE = 0x0a275C06556EeB3c7Ff2b0f0cfD462A7645772EF;
// https://sepolia.arbiscan.io/address/0xEB442296880a3FC7C00FFe695c40B09d970fb936
address internal constant CONFIG_ENGINE = 0xEB442296880a3FC7C00FFe695c40B09d970fb936;

// https://sepolia.arbiscan.io/address/0xbB7492Cce831eE6F349960a6E2da8eadC4b50cA3
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0xbB7492Cce831eE6F349960a6E2da8eadC4b50cA3;

// https://sepolia.arbiscan.io/address/0x6376D4df995f32f308f2d5049a7a320943023232
address internal constant RATES_FACTORY = 0x6376D4df995f32f308f2d5049a7a320943023232;

// https://sepolia.arbiscan.io/address/0xB90fa850a4af6D30feA8b41989eaAecDcA8fd414
address internal constant UI_INCENTIVE_DATA_PROVIDER = 0xB90fa850a4af6D30feA8b41989eaAecDcA8fd414;

Expand Down
7 changes: 2 additions & 5 deletions src/AaveV3Avalanche.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ library AaveV3Avalanche {
// https://snowscan.xyz/address/0x8A9b2c132EA7676EE267F5b97b622083d6E3a2d4
address internal constant DEBT_SWAP_ADAPTER = 0x8A9b2c132EA7676EE267F5b97b622083d6E3a2d4;

// https://snowscan.xyz/address/0x0587B66Bc824368cFA5849bc56216a59260Df2c5
address internal constant CONFIG_ENGINE = 0x0587B66Bc824368cFA5849bc56216a59260Df2c5;
// https://snowscan.xyz/address/0x5fF5c392C5D397926364789E22f74043f7E42f2b
address internal constant CONFIG_ENGINE = 0x5fF5c392C5D397926364789E22f74043f7E42f2b;

// https://snowscan.xyz/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
Expand All @@ -81,9 +81,6 @@ library AaveV3Avalanche {
address internal constant PROOF_OF_RESERVE_AGGREGATOR =
0x80f2c02224a2E548FC67c0bF705eBFA825dd5439;

// https://snowscan.xyz/address/0xDd81E6F85358292075B78fc8D5830BE8434aF8BA
address internal constant RATES_FACTORY = 0xDd81E6F85358292075B78fc8D5830BE8434aF8BA;

// https://snowscan.xyz/address/0x49F5B996814fEd1dd39285B92A59CFb2dfd8D4f9
address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0x49F5B996814fEd1dd39285B92A59CFb2dfd8D4f9;
Expand Down
7 changes: 2 additions & 5 deletions src/AaveV3BNB.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,13 @@ library AaveV3BNB {
// https://bscscan.com/address/0xAe13e4DA0952f0B8fE04E21df53716fCF799a923
address internal constant DEBT_SWAP_ADAPTER = 0xAe13e4DA0952f0B8fE04E21df53716fCF799a923;

// https://bscscan.com/address/0xcb0670258e5961CCA85D8F71D29C1167Ef20De99
address internal constant CONFIG_ENGINE = 0xcb0670258e5961CCA85D8F71D29C1167Ef20De99;
// https://bscscan.com/address/0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b
address internal constant CONFIG_ENGINE = 0x2ecC4F6CDbe6ea77107dd131Af81ec82Db330d6b;

// https://bscscan.com/address/0x117684358D990E42Eb1649E7e8C4691951dc1E71
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0x117684358D990E42Eb1649E7e8C4691951dc1E71;

// https://bscscan.com/address/0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6
address internal constant RATES_FACTORY = 0x02e9b27599C4Bf8f789d34b6E65C51092c3d9FA6;

// https://bscscan.com/address/0x0727a6494095511078d63143A8a1E90b9f310880
address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0x0727a6494095511078d63143A8a1E90b9f310880;
Expand Down
3 changes: 0 additions & 3 deletions src/AaveV3Base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ library AaveV3Base {
// https://basescan.org/address/0xc7751400F809cdB0C167F87985083C558a0610F7
address internal constant CONFIG_ENGINE = 0xc7751400F809cdB0C167F87985083C558a0610F7;

// https://basescan.org/address/0x0D1Fe8eAdb0a3e44C4Cc9D73De8dA50C1E475832
address internal constant RATES_FACTORY = 0x0D1Fe8eAdb0a3e44C4Cc9D73De8dA50C1E475832;

// https://basescan.org/address/0x39e97c588B2907Fb67F44fea256Ae3BA064207C5
address internal constant L2_ENCODER = 0x39e97c588B2907Fb67F44fea256Ae3BA064207C5;

Expand Down
4 changes: 2 additions & 2 deletions src/AaveV3BaseSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ library AaveV3BaseSepolia {
// https://sepolia.basescan.org/address/0x0D42405bc97AeF309c22aB2D30dD3d35eD41d05f
address internal constant EMISSION_MANAGER = 0x0D42405bc97AeF309c22aB2D30dD3d35eD41d05f;

// https://sepolia.basescan.org/address/0xC18ECB3DEf8BAaB2be2714324c5AdA75608e0a48
address internal constant CONFIG_ENGINE = 0xC18ECB3DEf8BAaB2be2714324c5AdA75608e0a48;
// https://sepolia.basescan.org/address/0x08183F38166f640D60895150d99e57c6ad948451
address internal constant CONFIG_ENGINE = 0x08183F38166f640D60895150d99e57c6ad948451;

// https://sepolia.basescan.org/address/0x777fBA024bA1228fDa76149A4ff8B23475ed057D
address internal constant RATES_FACTORY = 0x777fBA024bA1228fDa76149A4ff8B23475ed057D;
Expand Down
7 changes: 2 additions & 5 deletions src/AaveV3Ethereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,13 @@ library AaveV3Ethereum {
address internal constant DELEGATION_AWARE_A_TOKEN_IMPL_REV_1 =
0x21714092D90c7265F52fdfDae068EC11a23C6248;

// https://etherscan.io/address/0xA3e44d830440dF5098520F62Ebec285B1198c51E
address internal constant CONFIG_ENGINE = 0xA3e44d830440dF5098520F62Ebec285B1198c51E;
// https://etherscan.io/address/0x8689b8aDD004A9fD2320031b7d3f5aF1f7F41e17
address internal constant CONFIG_ENGINE = 0x8689b8aDD004A9fD2320031b7d3f5aF1f7F41e17;

// https://etherscan.io/address/0xbaA999AC55EAce41CcAE355c77809e68Bb345170
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0xbaA999AC55EAce41CcAE355c77809e68Bb345170;

// https://etherscan.io/address/0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896
address internal constant RATES_FACTORY = 0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896;

// https://etherscan.io/address/0x02e7B8511831B1b02d9018215a0f8f500Ea5c6B3
address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0x02e7B8511831B1b02d9018215a0f8f500Ea5c6B3;
Expand Down
7 changes: 2 additions & 5 deletions src/AaveV3Gnosis.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,13 @@ library AaveV3Gnosis {
// https://gnosisscan.io/address/0x41585C50524fb8c3899B43D7D797d9486AAc94DB
address internal constant EMISSION_MANAGER = 0x41585C50524fb8c3899B43D7D797d9486AAc94DB;

// https://gnosisscan.io/address/0x3238FC1d642b60F41a35f62570237656C85F4744
address internal constant CONFIG_ENGINE = 0x3238FC1d642b60F41a35f62570237656C85F4744;
// https://gnosisscan.io/address/0xE2a33403eaD139873820da597531f07f65ED0E3c
address internal constant CONFIG_ENGINE = 0xE2a33403eaD139873820da597531f07f65ED0E3c;

// https://gnosisscan.io/address/0x1236010CECea55998384e795B59815D871f5f94d
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0x1236010CECea55998384e795B59815D871f5f94d;

// https://gnosisscan.io/address/0x73dDE2A75c06a108912bf7Ff600eDdCE9d96Ed25
address internal constant RATES_FACTORY = 0x73dDE2A75c06a108912bf7Ff600eDdCE9d96Ed25;

// https://gnosisscan.io/address/0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9
address internal constant UI_INCENTIVE_DATA_PROVIDER = 0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9;

Expand Down
7 changes: 2 additions & 5 deletions src/AaveV3Metis.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,13 @@ library AaveV3Metis {
// https://andromeda-explorer.metis.io/address/0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9
address internal constant L2_ENCODER = 0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9;

// https://andromeda-explorer.metis.io/address/0x8be473dCfA93132658821E67CbEB684ec8Ea2E74
address internal constant CONFIG_ENGINE = 0x8be473dCfA93132658821E67CbEB684ec8Ea2E74;
// https://andromeda-explorer.metis.io/address/0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957
address internal constant CONFIG_ENGINE = 0x17Dd33Ed0e3dD2a80E37489B8A63063161BE6957;

// https://andromeda-explorer.metis.io/address/0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5;

// https://andromeda-explorer.metis.io/address/0x87Aaba7cf8e1F319d0E3402d68017171201dEcd5
address internal constant RATES_FACTORY = 0x87Aaba7cf8e1F319d0E3402d68017171201dEcd5;

// https://andromeda-explorer.metis.io/address/0x3e7BC5EcE0f22DbB16c3e3EeA288a10A57d68927
address internal constant UI_INCENTIVE_DATA_PROVIDER = 0x3e7BC5EcE0f22DbB16c3e3EeA288a10A57d68927;

Expand Down
3 changes: 0 additions & 3 deletions src/AaveV3Optimism.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ library AaveV3Optimism {
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0x770ef9f4fe897e59daCc474EF11238303F9552b6;

// https://optimistic.etherscan.io/address/0xDd81E6F85358292075B78fc8D5830BE8434aF8BA
address internal constant RATES_FACTORY = 0xDd81E6F85358292075B78fc8D5830BE8434aF8BA;

// https://optimistic.etherscan.io/address/0xa12734e64417f61f8442E7D5132EdBFdbDDeF0fa
address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0xa12734e64417f61f8442E7D5132EdBFdbDDeF0fa;
Expand Down
4 changes: 2 additions & 2 deletions src/AaveV3OptimismSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ library AaveV3OptimismSepolia {
// https://optimism-sepolia.blockscout.com/address/0xBeC519531F0E78BcDdB295242fA4EC5251B38574
address internal constant L2_ENCODER = 0xBeC519531F0E78BcDdB295242fA4EC5251B38574;

// https://optimism-sepolia.blockscout.com/address/0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2
address internal constant CONFIG_ENGINE = 0x1D0f881Ce1a646E2f27Dec3c57Fa056cB838BCC2;
// https://optimism-sepolia.blockscout.com/address/0x619643b346E3389062527cdb60C8720415B39860
address internal constant CONFIG_ENGINE = 0x619643b346E3389062527cdb60C8720415B39860;

// https://optimism-sepolia.blockscout.com/address/0x1236010CECea55998384e795B59815D871f5f94d
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
Expand Down
7 changes: 2 additions & 5 deletions src/AaveV3Polygon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,13 @@ library AaveV3Polygon {
// https://polygonscan.com/address/0xb58Fd91558fa213D97Ac94C97F831c7289278084
address internal constant DEBT_SWAP_ADAPTER = 0xb58Fd91558fa213D97Ac94C97F831c7289278084;

// https://polygonscan.com/address/0xfFD6F13c9574bedb3f4E131e9C4320186AF83c1D
address internal constant CONFIG_ENGINE = 0xfFD6F13c9574bedb3f4E131e9C4320186AF83c1D;
// https://polygonscan.com/address/0xAF0C901489790c35D9cef02CFA11123009E81e2a
address internal constant CONFIG_ENGINE = 0xAF0C901489790c35D9cef02CFA11123009E81e2a;

// https://polygonscan.com/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0x770ef9f4fe897e59daCc474EF11238303F9552b6;

// https://polygonscan.com/address/0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896
address internal constant RATES_FACTORY = 0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896;

// https://polygonscan.com/address/0xE3090207A2de94A856EA10a7e1Bd36dD6145712B
address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0xE3090207A2de94A856EA10a7e1Bd36dD6145712B;
Expand Down
Loading

0 comments on commit 343a7be

Please sign in to comment.