diff --git a/generator/features/__snapshots__/assetListing.spec.ts.snap b/generator/features/__snapshots__/assetListing.spec.ts.snap index 428e19738..53000c16d 100644 --- a/generator/features/__snapshots__/assetListing.spec.ts.snap +++ b/generator/features/__snapshots__/assetListing.spec.ts.snap @@ -89,6 +89,7 @@ pragma solidity ^0.8.0; import {AaveV3Ethereum, AaveV3EthereumEModes} from 'aave-address-book/AaveV3Ethereum.sol'; import {AaveV3PayloadEthereum} from 'aave-helpers/v3-config-engine/AaveV3PayloadEthereum.sol'; import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {IV3RateStrategyFactory} from 'aave-helpers/v3-config-engine/IV3RateStrategyFactory.sol'; /** * @title test @@ -100,7 +101,7 @@ contract AaveV3Ethereum_Test_20231023 is AaveV3PayloadEthereum { address public constant PSP = address(0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5); function _postExecute() internal override { - AaveV3Ethereum.POOL.supply(PSP, 10 ** 18, AaveV3Ethereum.COLLECTOR, 0); + AaveV3Ethereum.POOL.supply(PSP, 10 ** 18, address(AaveV3Ethereum.COLLECTOR), 0); } function newListings() public pure override returns (IAaveV3ConfigEngine.Listing[] memory) { @@ -124,7 +125,7 @@ contract AaveV3Ethereum_Test_20231023 is AaveV3PayloadEthereum { borrowCap: 5_000, debtCeiling: 100_000, liqProtocolFee: 20_00, - rateStrategyParams: Rates.RateStrategyParams({ + rateStrategyParams: IV3RateStrategyFactory.RateStrategyParams({ optimalUsageRatio: _bpsToRay(80_00), baseVariableBorrowRate: _bpsToRay(0_00), variableRateSlope1: _bpsToRay(10_00), @@ -146,6 +147,7 @@ pragma solidity ^0.8.0; import {GovV3Helpers} from 'aave-helpers/GovV3Helpers.sol'; import {AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol'; +import {IERC20} from 'solidity-utils/contracts/oz-common/interfaces/IERC20.sol'; import 'forge-std/Test.sol'; import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/ProtocolV3TestBase.sol'; @@ -159,7 +161,7 @@ contract AaveV3Ethereum_Test_20231023_Test is ProtocolV3TestBase { AaveV3Ethereum_Test_20231023 internal proposal; function setUp() public { - vm.createSelectFork(vm.rpcUrl('mainnet'), 18420741); + vm.createSelectFork(vm.rpcUrl('mainnet'), 18430155); proposal = new AaveV3Ethereum_Test_20231023(); } @@ -172,8 +174,10 @@ contract AaveV3Ethereum_Test_20231023_Test is ProtocolV3TestBase { function test_collectorHasPSPFunds() public { GovV3Helpers.executePayload(vm, address(proposal)); - assertGte( - IERC20(0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5).balanceOf(AaveV3Ethereum.COLLECTOR), + assertGe( + IERC20(0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5).balanceOf( + address(AaveV3Ethereum.COLLECTOR) + ), 10 ** 18 ); } @@ -240,7 +244,7 @@ exports[`feature: assetListing > should return reasonable code 1`] = ` "address public constant PSP = address(0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5);", ], "execute": [ - "AaveV3Ethereum.POOL.supply(PSP, 10 ** 18, AaveV3Ethereum.COLLECTOR, 0);", + "AaveV3Ethereum.POOL.supply(PSP, 10 ** 18, address(AaveV3Ethereum.COLLECTOR), 0);", ], "fn": [ "function newListings() public pure override returns (IAaveV3ConfigEngine.Listing[] memory) { @@ -264,7 +268,7 @@ exports[`feature: assetListing > should return reasonable code 1`] = ` borrowCap: 5_000, debtCeiling: 100_000, liqProtocolFee: 20_00, - rateStrategyParams: Rates.RateStrategyParams({ + rateStrategyParams: IV3RateStrategyFactory.RateStrategyParams({ optimalUsageRatio: _bpsToRay(80_00), baseVariableBorrowRate: _bpsToRay(0_00), variableRateSlope1: _bpsToRay(10_00), @@ -285,7 +289,7 @@ exports[`feature: assetListing > should return reasonable code 1`] = ` "fn": [ "function test_collectorHasPSPFunds() public { GovV3Helpers.executePayload(vm,address(proposal)); - assertGte(IERC20(0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5).balanceOf(AaveV3Ethereum.COLLECTOR), 10 ** 18); + assertGe(IERC20(0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5).balanceOf(address(AaveV3Ethereum.COLLECTOR)), 10 ** 18); }", ], }, diff --git a/generator/features/assetListing.ts b/generator/features/assetListing.ts index 6fe1b2322..a664d2a99 100644 --- a/generator/features/assetListing.ts +++ b/generator/features/assetListing.ts @@ -105,7 +105,7 @@ export const assetListing: FeatureModule