@@ -549,13 +549,13 @@ contract AaveV3ConfigEngineTest is TestnetProcedures, ProtocolV3TestBase {
549549 2 ,
550550 prevEmodeCategoryData
551551 );
552- contracts.poolProxy.getEModeCategoryBorrowableBitmap (2 );
553- assertEq (bitmap, 0 );
554- bitmap = contracts.poolProxy.getEModeCategoryCollateralBitmap (2 );
555- assertEq (bitmap, 0 );
556552 }
557553
558554 function testEModeCategoryUpdates () public {
555+ EModeCategoryInput memory ct = _genCategoryOne ();
556+ vm.prank (poolAdmin);
557+ contracts.poolConfiguratorProxy.setEModeCategory (ct.id, ct.ltv, ct.lt, ct.lb, ct.label);
558+
559559 AaveV3MockEModeCategoryUpdate payload = new AaveV3MockEModeCategoryUpdate (configEngine);
560560
561561 vm.prank (roleList.marketOwner);
@@ -589,6 +589,10 @@ contract AaveV3ConfigEngineTest is TestnetProcedures, ProtocolV3TestBase {
589589 }
590590
591591 function testEModeCategoryUpdatesWrongBonus () public {
592+ EModeCategoryInput memory ct = _genCategoryOne ();
593+ vm.prank (poolAdmin);
594+ contracts.poolConfiguratorProxy.setEModeCategory (ct.id, ct.ltv, ct.lt, ct.lb, ct.label);
595+
592596 AaveV3MockEModeCategoryUpdateEdgeBonus payload = new AaveV3MockEModeCategoryUpdateEdgeBonus (
593597 configEngine
594598 );
@@ -602,6 +606,10 @@ contract AaveV3ConfigEngineTest is TestnetProcedures, ProtocolV3TestBase {
602606
603607 // TODO manage this after testFail* deprecation.
604608 function testEModeCategoryUpdatesNoChangeShouldNotEmit () public {
609+ EModeCategoryInput memory ct = _genCategoryOne ();
610+ vm.prank (poolAdmin);
611+ contracts.poolConfiguratorProxy.setEModeCategory (ct.id, ct.ltv, ct.lt, ct.lb, ct.label);
612+
605613 AaveV3MockEModeCategoryUpdateNoChange payload = new AaveV3MockEModeCategoryUpdateNoChange (
606614 configEngine
607615 );
@@ -617,6 +625,9 @@ contract AaveV3ConfigEngineTest is TestnetProcedures, ProtocolV3TestBase {
617625
618626 // Same as testEModeCategoryUpdatesNoChangeShouldNotEmit, but this time should work, as we are not expecting any event emitted
619627 function testEModeCategoryUpdatesNoChange () public {
628+ EModeCategoryInput memory ct = _genCategoryOne ();
629+ vm.prank (poolAdmin);
630+ contracts.poolConfiguratorProxy.setEModeCategory (ct.id, ct.ltv, ct.lt, ct.lb, ct.label);
620631 AaveV3MockEModeCategoryUpdateNoChange payload = new AaveV3MockEModeCategoryUpdateNoChange (
621632 configEngine
622633 );
@@ -656,12 +667,12 @@ contract AaveV3ConfigEngineTest is TestnetProcedures, ProtocolV3TestBase {
656667 }
657668
658669 function testAssetEModeUpdates () public {
670+ vm.prank (poolAdmin);
671+ contracts.poolConfiguratorProxy.setEModeCategory (1 , 97_40 , 97_60 , 101_50 , 'ETH Correlated ' );
672+
659673 address asset = tokenList.usdx;
660674 address asset2 = tokenList.wbtc;
661675
662- AaveV3MockEModeCategoryUpdate payloadToAddEMode = new AaveV3MockEModeCategoryUpdate (
663- configEngine
664- );
665676 AaveV3MockAssetEModeUpdate payload = new AaveV3MockAssetEModeUpdate (
666677 asset,
667678 asset2,
@@ -670,11 +681,8 @@ contract AaveV3ConfigEngineTest is TestnetProcedures, ProtocolV3TestBase {
670681
671682 vm.startPrank (roleList.marketOwner);
672683 contracts.aclManager.addPoolAdmin (address (payload));
673- contracts.aclManager.addPoolAdmin (address (payloadToAddEMode));
674684 vm.stopPrank ();
675685
676- payloadToAddEMode.execute ();
677-
678686 createConfigurationSnapshot (
679687 'preTestEngineAssetEModeUpdate ' ,
680688 IPool (address (contracts.poolProxy))
0 commit comments