Skip to content

Commit

Permalink
fix: v3 config engine rates import generator
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite committed Oct 25, 2023
1 parent 1e69d05 commit 60aa9c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator/utils/importsResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const GovernanceImports = [
] as const;

/**
* @dev matches the code fro known address book imports and generates an import statment satisfying the used libraries
* @dev matches the code fro known address book imports and generates an import statement satisfying the used libraries
* @param code
* @returns
*/
Expand Down Expand Up @@ -83,8 +83,8 @@ export function prefixWithImports(code: string) {
if (findMatch(code, 'IAaveV3ConfigEngine')) {
imports += `import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';\n`;
}
if (findMatch(code, 'IV3RateStrategyFactory')) {
imports += `import {IV3RateStrategyFactory} from 'aave-helpers/v3-config-engine/IV3RateStrategyFactory.sol';\n`;
if (findMatch(code, 'Rates')) {
imports += `import {IV3RateStrategyFactory as Rates} from 'aave-helpers/v3-config-engine/IV3RateStrategyFactory.sol';\n`;
}
// v2 config engine imports
if (findMatch(code, 'IAaveV2ConfigEngine')) {
Expand Down

0 comments on commit 60aa9c8

Please sign in to comment.