From 31fdfeaa6ebd5bd8b579ecf4fb41e1ddc4a81637 Mon Sep 17 00:00:00 2001 From: sakulstra Date: Tue, 14 Nov 2023 23:41:06 +0300 Subject: [PATCH] fix: pdp address on amm is in a different slot --- scripts/generator/protocolV2Generator.ts | 5 ++++- src/AaveV2EthereumAMM.sol | 4 ++-- src/ts/AaveV2EthereumAMM.ts | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/generator/protocolV2Generator.ts b/scripts/generator/protocolV2Generator.ts index bda81ae7..59ec96c5 100644 --- a/scripts/generator/protocolV2Generator.ts +++ b/scripts/generator/protocolV2Generator.ts @@ -15,6 +15,7 @@ import {A_TOKEN_V2_ABI} from '../abi/aToken_v2_abi'; import {INCENTIVES_CONTROLLER_ABI} from '../abi/incentivesController_abi'; import {generateAssetsLibrary} from './assetsLibraryGenerator'; import {IUiPoolDataProvider_ABI} from '../../src/ts/abis/IUiPoolDataProvider'; +import {mainnetAmmV2Pool} from '../configs/pools/ethereum'; export interface PoolV2Addresses { POOL_ADDRESSES_PROVIDER: AddressInfo; @@ -98,7 +99,9 @@ export async function getPoolV2Addresses(pool: PoolConfig): Promise