Skip to content

Commit

Permalink
fix: add impls (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Mar 11, 2024
1 parent 196fe26 commit 59151e7
Show file tree
Hide file tree
Showing 50 changed files with 257 additions and 1,048 deletions.
16 changes: 0 additions & 16 deletions scripts/configs/governance/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@ export const governanceConfigSepolia: GovernanceConfig = {
},
};

export const governanceConfigGoerli: GovernanceConfig = {
name: 'Goerli',
CHAIN_ID: ChainId.goerli,
ADDRESSES: {
GOVERNANCE: '0x586207Df62c7D5D1c9dBb8F61EdF77cc30925C4F',
VOTING_MACHINE: '0xE8AD5ab6295c16D04257BC6Cd6D447ff4018FF89',
PAYLOADS_CONTROLLER: '0x064361B3761CcDd17300146bf58a79d1E570382E',
VOTING_PORTAL_ETH_ETH: '0xFf376b6db4AF0d87Dba35860B3B87F526d7879cF',
VM_DATA_HELPER: '0xe10617A1ea760E174E82fBeb38a540d8ACe566f5',
PC_DATA_HELPER: '0xbd2db358f3C82F2883132A6584e22F38A979e768',
META_DELEGATE_HELPER: '0x1966133c190475E8385Dc1b4150B5f81c70DC578',
GOV_DATA_HELPER: '0x160e2d1456B815d6a3d281218538dd6E2e3C841f',
GOVERNANCE_POWER_STRATEGY: '0x1ba21Fb1bDF4234CAe0AD1e02cF6750d7938E358',
},
};

export const governanceConfigMainnet: GovernanceConfig = {
name: 'Ethereum',
CHAIN_ID: ChainId.mainnet,
Expand Down
27 changes: 0 additions & 27 deletions scripts/configs/pools/ethereum.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
import {ChainId} from '@bgd-labs/js-utils';
import {PoolConfig} from '../types';

export const goerliProtoV2Pool: PoolConfig = {
name: 'Goerli',
chainId: ChainId.goerli,
POOL_ADDRESSES_PROVIDER: '0x5E52dEc931FFb32f609681B8438A51c675cc232d',
additionalAddresses: {
FAUCET: '0x681860075529352da2C94082Eb66c59dF958e89C',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x3465454D658019f8A0eABD3bC61d2d1Dd3a0735F',
UI_INCENTIVE_DATA_PROVIDER: '0xA2E05bE2090b3658A264bdf1C39387f5Dba367Ec',
UI_POOL_DATA_PROVIDER: '0xaaa2872d1F7f5ceb630Cb736BcA34Ff1e121992b',
WALLET_BALANCE_PROVIDER: '0xf1E4A6E7FA07421FD5139Ba0848290A27e22db7f',
WETH_GATEWAY: '0x3bd3a20Ac9Ff1dda1D99C0dFCE6D65C4960B3627',
},
};

export const goerliGHOV3Pool: PoolConfig = {
name: 'GoerliGho',
chainId: ChainId.goerli,
POOL_ADDRESSES_PROVIDER: '0x4dd5ab8Fb385F2e12aDe435ba7AFA812F1d364D0',
additionalAddresses: {
FAUCET: '0x1265305F033156bbF8Ba54fE45DD5685BEc4Cc44',
UI_INCENTIVE_DATA_PROVIDER: '0xF67B25977cEFf3563BF7F24A531D6CEAe6870a9d',
UI_POOL_DATA_PROVIDER: '0x3De59b6901e7Ad0A19621D49C5b52cC9a4977e52',
WALLET_BALANCE_PROVIDER: '0x03C8d0c46834921c4468C15A03E5d76Ae5CA3133',
WETH_GATEWAY: '0x9c402E3b0D123323F0FCed781b8184Ec7E02Dd31',
},
};

export const sepoliaProtoV3: PoolConfig = {
name: 'Sepolia',
chainId: ChainId.sepolia,
Expand Down
7 changes: 1 addition & 6 deletions scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {appendFileSync, existsSync, mkdirSync, readdirSync, rmSync, writeFileSync} from 'fs';
import {governanceConfigMainnet, governanceConfigGoerli} from './configs/governance/ethereum';
import {governanceConfigMainnet} from './configs/governance/ethereum';
import {arbitrumProtoV3, arbitrumSepoliaProtoV3} from './configs/pools/arbitrum';
import {
avalancheProtoV2,
Expand All @@ -13,9 +13,7 @@ import {
mainnetAmmV2Pool,
mainnetArcV2Pool,
mainnetProtoV2Pool,
goerliProtoV2Pool,
sepoliaProtoV3,
goerliGHOV3Pool,
} from './configs/pools/ethereum';
import {fantomProtoV3, fantomTestnetProtoV3} from './configs/pools/fantom';
import {harmonyProtoV3} from './configs/pools/harmony';
Expand Down Expand Up @@ -84,7 +82,6 @@ async function main() {
governanceConfigOptimism,
governanceConfigPolygon,
governanceConfigMumbai,
governanceConfigGoerli,
governanceConfigMetis,
governanceConfigBase,
governanceConfigBNB,
Expand All @@ -100,7 +97,6 @@ async function main() {
mainnetProtoV2Pool,
polygonProtoV2,
mumbaiProtoV2,
goerliProtoV2Pool,
fujiProtoV2,
avalancheProtoV2,
].map((config) => generateProtocolV2Library(config)),
Expand All @@ -110,7 +106,6 @@ async function main() {
[
mainnetProtoV3Pool,
sepoliaProtoV3,
goerliGHOV3Pool,
polygonProtoV3,
mumbaiProtoV3,
avalancheProtoV3,
Expand Down
17 changes: 14 additions & 3 deletions scripts/generator/protocolV3Generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ import {IUiPoolDataProvider_ABI} from '../../src/ts/abis/IUiPoolDataProvider';
export interface PoolV3Addresses {
POOL_ADDRESSES_PROVIDER: AddressInfo;
POOL: AddressInfo;
POOL_IMPL: AddressInfo;
AAVE_PROTOCOL_DATA_PROVIDER: AddressInfo;
POOL_CONFIGURATOR: AddressInfo;
POOL_CONFIGURATOR_IMPL: AddressInfo;
ORACLE: AddressInfo;
PRICE_ORACLE_SENTINEL: AddressInfo;
ACL_ADMIN: AddressInfo;
Expand Down Expand Up @@ -121,7 +123,10 @@ export async function getPoolV3Addresses(
abi: ADDRESS_PROVIDER_V3_ABI,
client,
});
if (!client) console.log(client, pool.chainId, pool.POOL_ADDRESSES_PROVIDER);
if (!client) {
console.log(client, pool.chainId, pool.POOL_ADDRESSES_PROVIDER);
throw new Error('client for chain not found');
}
try {
const [
POOL,
Expand All @@ -141,8 +146,12 @@ export async function getPoolV3Addresses(
addressProviderContract.read.getPoolDataProvider(),
]);

const DEFAULT_INCENTIVES_CONTROLLER = await addressProviderContract.read.getAddress([
'0x703c2c8634bed68d98c029c18f310e7f7ec0e5d6342c590190b3cb8b3ba54532',
const [POOL_IMPL, POOL_CONFIGURATOR_IMPL, DEFAULT_INCENTIVES_CONTROLLER] = await Promise.all([
getImplementationStorageSlot(client, POOL),
getImplementationStorageSlot(client, POOL_CONFIGURATOR),
addressProviderContract.read.getAddress([
'0x703c2c8634bed68d98c029c18f310e7f7ec0e5d6342c590190b3cb8b3ba54532',
]),
]);

let EMISSION_MANAGER: Hex = zeroAddress;
Expand Down Expand Up @@ -208,10 +217,12 @@ export async function getPoolV3Addresses(
type: 'IPoolAddressesProvider',
},
POOL: {value: POOL, type: 'IPool'},
POOL_IMPL: bytes32toAddress(POOL_IMPL),
POOL_CONFIGURATOR: {
value: POOL_CONFIGURATOR,
type: 'IPoolConfigurator',
},
POOL_CONFIGURATOR_IMPL: bytes32toAddress(POOL_CONFIGURATOR_IMPL),
ORACLE: {
value: ORACLE,
type: 'IAaveOracle',
Expand Down
3 changes: 0 additions & 3 deletions src/AaveAddressBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {GovernanceV3Fuji} from './GovernanceV3Fuji.sol';
import {GovernanceV3Optimism} from './GovernanceV3Optimism.sol';
import {GovernanceV3Polygon} from './GovernanceV3Polygon.sol';
import {GovernanceV3Mumbai} from './GovernanceV3Mumbai.sol';
import {GovernanceV3Goerli} from './GovernanceV3Goerli.sol';
import {GovernanceV3Metis} from './GovernanceV3Metis.sol';
import {GovernanceV3Base} from './GovernanceV3Base.sol';
import {GovernanceV3BNB} from './GovernanceV3BNB.sol';
Expand All @@ -21,12 +20,10 @@ import {AaveV2EthereumArc} from './AaveV2EthereumArc.sol';
import {AaveV2Ethereum} from './AaveV2Ethereum.sol';
import {AaveV2Polygon} from './AaveV2Polygon.sol';
import {AaveV2Mumbai} from './AaveV2Mumbai.sol';
import {AaveV2Goerli} from './AaveV2Goerli.sol';
import {AaveV2Fuji} from './AaveV2Fuji.sol';
import {AaveV2Avalanche} from './AaveV2Avalanche.sol';
import {AaveV3Ethereum} from './AaveV3Ethereum.sol';
import {AaveV3Sepolia} from './AaveV3Sepolia.sol';
import {AaveV3GoerliGho} from './AaveV3GoerliGho.sol';
import {AaveV3Polygon} from './AaveV3Polygon.sol';
import {AaveV3Mumbai} from './AaveV3Mumbai.sol';
import {AaveV3Avalanche} from './AaveV3Avalanche.sol';
Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Arbitrum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Arbitrum {
// https://arbiscan.io/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD
IPool internal constant POOL = IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD);

// https://arbiscan.io/address/0x03e8C5Cd5E194659b16456bb43Dd5D38886FE541
address internal constant POOL_IMPL = 0x03e8C5Cd5E194659b16456bb43Dd5D38886FE541;

// https://arbiscan.io/address/0x8145eddDf43f50276641b55bd3AD95944510021E
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E);

// https://arbiscan.io/address/0x04a8D477eE202aDCE1682F5902e1160455205b12
address internal constant POOL_CONFIGURATOR_IMPL = 0x04a8D477eE202aDCE1682F5902e1160455205b12;

// https://arbiscan.io/address/0xb56c2F0B653B2e0b10C9b928C8580Ac5Df02C7C7
IAaveOracle internal constant ORACLE = IAaveOracle(0xb56c2F0B653B2e0b10C9b928C8580Ac5Df02C7C7);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3ArbitrumSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3ArbitrumSepolia {
// https://sepolia.arbiscan.io/address/0xBfC91D59fdAA134A4ED45f7B584cAf96D7792Eff
IPool internal constant POOL = IPool(0xBfC91D59fdAA134A4ED45f7B584cAf96D7792Eff);

// https://sepolia.arbiscan.io/address/0x82405D1a189bd6cE4667809C35B37fBE136A4c5B
address internal constant POOL_IMPL = 0x82405D1a189bd6cE4667809C35B37fBE136A4c5B;

// https://sepolia.arbiscan.io/address/0x8E4Bb46E6245a507F1a267ef488228B08c0dc664
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x8E4Bb46E6245a507F1a267ef488228B08c0dc664);

// https://sepolia.arbiscan.io/address/0x629A5a607aC4901252e4C48a0Fde156785598F5b
address internal constant POOL_CONFIGURATOR_IMPL = 0x629A5a607aC4901252e4C48a0Fde156785598F5b;

// https://sepolia.arbiscan.io/address/0xEf95A6B9e88Bd509Fd67BA741cf2b263DaC65c00
IAaveOracle internal constant ORACLE = IAaveOracle(0xEf95A6B9e88Bd509Fd67BA741cf2b263DaC65c00);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Avalanche.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Avalanche {
// https://snowtrace.io/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD
IPool internal constant POOL = IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD);

// https://snowtrace.io/address/0x1ed647b250e5b6d71DC7B25806F44c33F5658F71
address internal constant POOL_IMPL = 0x1ed647b250e5b6d71DC7B25806F44c33F5658F71;

// https://snowtrace.io/address/0x8145eddDf43f50276641b55bd3AD95944510021E
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E);

// https://snowtrace.io/address/0x79b5e91037AE441dE0d9e6fd3Fd85b96B83d4E93
address internal constant POOL_CONFIGURATOR_IMPL = 0x79b5e91037AE441dE0d9e6fd3Fd85b96B83d4E93;

// https://snowtrace.io/address/0xEBd36016B3eD09D4693Ed4251c67Bd858c3c7C9C
IAaveOracle internal constant ORACLE = IAaveOracle(0xEBd36016B3eD09D4693Ed4251c67Bd858c3c7C9C);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3BNB.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3BNB {
// https://bscscan.com/address/0x6807dc923806fE8Fd134338EABCA509979a7e0cB
IPool internal constant POOL = IPool(0x6807dc923806fE8Fd134338EABCA509979a7e0cB);

// https://bscscan.com/address/0xE23AE099E2EF2a75183d06Af93c8EE0B5f1B546D
address internal constant POOL_IMPL = 0xE23AE099E2EF2a75183d06Af93c8EE0B5f1B546D;

// https://bscscan.com/address/0x67bdF23C7fCE7C65fF7415Ba3F2520B45D6f9584
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x67bdF23C7fCE7C65fF7415Ba3F2520B45D6f9584);

// https://bscscan.com/address/0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9
address internal constant POOL_CONFIGURATOR_IMPL = 0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9;

// https://bscscan.com/address/0x39bc1bfDa2130d6Bb6DBEfd366939b4c7aa7C697
IAaveOracle internal constant ORACLE = IAaveOracle(0x39bc1bfDa2130d6Bb6DBEfd366939b4c7aa7C697);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Base.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Base {
// https://basescan.org/address/0xA238Dd80C259a72e81d7e4664a9801593F98d1c5
IPool internal constant POOL = IPool(0xA238Dd80C259a72e81d7e4664a9801593F98d1c5);

// https://basescan.org/address/0xE9547fc44C271dBddf94D8E20b46836B87DA6789
address internal constant POOL_IMPL = 0xE9547fc44C271dBddf94D8E20b46836B87DA6789;

// https://basescan.org/address/0x5731a04B1E775f0fdd454Bf70f3335886e9A96be
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x5731a04B1E775f0fdd454Bf70f3335886e9A96be);

// https://basescan.org/address/0x5456C510ACb8bD0b9a65B4B632dB2925690D3237
address internal constant POOL_CONFIGURATOR_IMPL = 0x5456C510ACb8bD0b9a65B4B632dB2925690D3237;

// https://basescan.org/address/0x2Cc0Fc26eD4563A5ce5e8bdcfe1A2878676Ae156
IAaveOracle internal constant ORACLE = IAaveOracle(0x2Cc0Fc26eD4563A5ce5e8bdcfe1A2878676Ae156);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3BaseSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3BaseSepolia {
// https://sepolia.basescan.org/address/0x07eA79F68B2B3df564D0A34F8e19D9B1e339814b
IPool internal constant POOL = IPool(0x07eA79F68B2B3df564D0A34F8e19D9B1e339814b);

// https://sepolia.basescan.org/address/0x54BDcc37c4143f944A3EE51C892a6cBDF305E7a0
address internal constant POOL_IMPL = 0x54BDcc37c4143f944A3EE51C892a6cBDF305E7a0;

// https://sepolia.basescan.org/address/0x347Ae6820F48e9Dd563235742d89FAef6ffCaA72
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x347Ae6820F48e9Dd563235742d89FAef6ffCaA72);

// https://sepolia.basescan.org/address/0xf2D6E38B407e31E7E7e4a16E6769728b76c7419F
address internal constant POOL_CONFIGURATOR_IMPL = 0xf2D6E38B407e31E7E7e4a16E6769728b76c7419F;

// https://sepolia.basescan.org/address/0x29E1eF0209275D0F403E8C57861C2df8706eA244
IAaveOracle internal constant ORACLE = IAaveOracle(0x29E1eF0209275D0F403E8C57861C2df8706eA244);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Ethereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Ethereum {
// https://etherscan.io/address/0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
IPool internal constant POOL = IPool(0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2);

// https://etherscan.io/address/0x5FAab9E1adbddaD0a08734BE8a52185Fd6558E14
address internal constant POOL_IMPL = 0x5FAab9E1adbddaD0a08734BE8a52185Fd6558E14;

// https://etherscan.io/address/0x64b761D848206f447Fe2dd461b0c635Ec39EbB27
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x64b761D848206f447Fe2dd461b0c635Ec39EbB27);

// https://etherscan.io/address/0xFDA7ffA872bDc906D43079EA134ebC9a511db0c2
address internal constant POOL_CONFIGURATOR_IMPL = 0xFDA7ffA872bDc906D43079EA134ebC9a511db0c2;

// https://etherscan.io/address/0x54586bE62E3c3580375aE3723C145253060Ca0C2
IAaveOracle internal constant ORACLE = IAaveOracle(0x54586bE62E3c3580375aE3723C145253060Ca0C2);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Fantom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Fantom {
// https://ftmscan.com/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD
IPool internal constant POOL = IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD);

// https://ftmscan.com/address/0xDF9e4ABdbd94107932265319479643D3B05809dc
address internal constant POOL_IMPL = 0xDF9e4ABdbd94107932265319479643D3B05809dc;

// https://ftmscan.com/address/0x8145eddDf43f50276641b55bd3AD95944510021E
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E);

// https://ftmscan.com/address/0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade
address internal constant POOL_CONFIGURATOR_IMPL = 0xD6FA681E22306b0F4E605B979b7c9a1dFa865ade;

// https://ftmscan.com/address/0xfd6f3c1845604C8AE6c6E402ad17fb9885160754
IAaveOracle internal constant ORACLE = IAaveOracle(0xfd6f3c1845604C8AE6c6E402ad17fb9885160754);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3FantomTestnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3FantomTestnet {
// https://testnet.ftmscan.com/address/0x56Ab717d882F7A8d4a3C2b191707322c5Cc70db8
IPool internal constant POOL = IPool(0x56Ab717d882F7A8d4a3C2b191707322c5Cc70db8);

// https://testnet.ftmscan.com/address/0x685b86a6659a1CbcfE168304386e1b54C543Ce16
address internal constant POOL_IMPL = 0x685b86a6659a1CbcfE168304386e1b54C543Ce16;

// https://testnet.ftmscan.com/address/0x257a6f06192D532e40F66b3DDfE2cBBaf8373822
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x257a6f06192D532e40F66b3DDfE2cBBaf8373822);

// https://testnet.ftmscan.com/address/0x1034d6131E0E7F2F47bFAd06597ed97b35aA5492
address internal constant POOL_CONFIGURATOR_IMPL = 0x1034d6131E0E7F2F47bFAd06597ed97b35aA5492;

// https://testnet.ftmscan.com/address/0x18a8d31dA46eeb9138a16dfC429E74C04ff523F4
IAaveOracle internal constant ORACLE = IAaveOracle(0x18a8d31dA46eeb9138a16dfC429E74C04ff523F4);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Fuji.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Fuji {
// https://testnet.snowtrace.io/address/0xccEa5C65f6d4F465B71501418b88FBe4e7071283
IPool internal constant POOL = IPool(0xccEa5C65f6d4F465B71501418b88FBe4e7071283);

// https://testnet.snowtrace.io/address/0x987F9410f61c56F0d0D2F44B783d7E1B75141249
address internal constant POOL_IMPL = 0x987F9410f61c56F0d0D2F44B783d7E1B75141249;

// https://testnet.snowtrace.io/address/0x34b80e82dFa833D65ef7618Cfc22bb1F359adce7
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x34b80e82dFa833D65ef7618Cfc22bb1F359adce7);

// https://testnet.snowtrace.io/address/0x892E31b5a218879C9dbe258f691897AC28c5e061
address internal constant POOL_CONFIGURATOR_IMPL = 0x892E31b5a218879C9dbe258f691897AC28c5e061;

// https://testnet.snowtrace.io/address/0x4DaE2f0f4Db78115eF114F1Dfef426ef2A4fC318
IAaveOracle internal constant ORACLE = IAaveOracle(0x4DaE2f0f4Db78115eF114F1Dfef426ef2A4fC318);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Gnosis.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Gnosis {
// https://gnosisscan.io/address/0xb50201558B00496A145fE76f7424749556E326D8
IPool internal constant POOL = IPool(0xb50201558B00496A145fE76f7424749556E326D8);

// https://gnosisscan.io/address/0x5b522140fabeB6b6232336295581e63902e9b4ad
address internal constant POOL_IMPL = 0x5b522140fabeB6b6232336295581e63902e9b4ad;

// https://gnosisscan.io/address/0x7304979ec9E4EaA0273b6A037a31c4e9e5A75D16
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x7304979ec9E4EaA0273b6A037a31c4e9e5A75D16);

// https://gnosisscan.io/address/0x25Ec457d1778b0E5316e7f38f3c22baF413F1A8C
address internal constant POOL_CONFIGURATOR_IMPL = 0x25Ec457d1778b0E5316e7f38f3c22baF413F1A8C;

// https://gnosisscan.io/address/0xeb0a051be10228213BAEb449db63719d6742F7c4
IAaveOracle internal constant ORACLE = IAaveOracle(0xeb0a051be10228213BAEb449db63719d6742F7c4);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Metis.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Metis {
// https://andromeda-explorer.metis.io/address/0x90df02551bB792286e8D4f13E0e357b4Bf1D6a57
IPool internal constant POOL = IPool(0x90df02551bB792286e8D4f13E0e357b4Bf1D6a57);

// https://andromeda-explorer.metis.io/address/0x8adB6916Bc161d7E3D46286ADAD3C77eef84Eb5d
address internal constant POOL_IMPL = 0x8adB6916Bc161d7E3D46286ADAD3C77eef84Eb5d;

// https://andromeda-explorer.metis.io/address/0x69FEE8F261E004453BE0800BC9039717528645A6
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x69FEE8F261E004453BE0800BC9039717528645A6);

// https://andromeda-explorer.metis.io/address/0x4e70dFC21Cec67FCC2C1A0D2A093604ac7c9e4fB
address internal constant POOL_CONFIGURATOR_IMPL = 0x4e70dFC21Cec67FCC2C1A0D2A093604ac7c9e4fB;

// https://andromeda-explorer.metis.io/address/0x38D36e85E47eA6ff0d18B0adF12E5fC8984A6f8e
IAaveOracle internal constant ORACLE = IAaveOracle(0x38D36e85E47eA6ff0d18B0adF12E5fC8984A6f8e);

Expand Down
6 changes: 6 additions & 0 deletions src/AaveV3Mumbai.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ library AaveV3Mumbai {
// https://mumbai.polygonscan.com/address/0xcC6114B983E4Ed2737E9BD3961c9924e6216c704
IPool internal constant POOL = IPool(0xcC6114B983E4Ed2737E9BD3961c9924e6216c704);

// https://mumbai.polygonscan.com/address/0xBAdD48c3EB42A10dB791D7b02E3c07Fbf95B3155
address internal constant POOL_IMPL = 0xBAdD48c3EB42A10dB791D7b02E3c07Fbf95B3155;

// https://mumbai.polygonscan.com/address/0x5C12526EaAc2637fEa2322ee4e389698dBFC3845
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x5C12526EaAc2637fEa2322ee4e389698dBFC3845);

// https://mumbai.polygonscan.com/address/0xe6c0e5085CaebcFD5d8a144636dCc2379b38333F
address internal constant POOL_CONFIGURATOR_IMPL = 0xe6c0e5085CaebcFD5d8a144636dCc2379b38333F;

// https://mumbai.polygonscan.com/address/0x27848354d8c9f71a41c6f6edfC6E3CACf3b848c8
IAaveOracle internal constant ORACLE = IAaveOracle(0x27848354d8c9f71a41c6f6edfC6E3CACf3b848c8);

Expand Down
Loading

0 comments on commit 59151e7

Please sign in to comment.