@@ -69,10 +69,6 @@ describe('Given an Aave Market', () => {
6969
7070 expect ( reserve ) . toMatchObject ( {
7171 userState : expect . objectContaining ( {
72- emode : expect . objectContaining ( {
73- categoryId : ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY ,
74- } ) ,
75- canBeCollateral : eModeCategoryReserve ?. canBeCollateral ?? false ,
7672 canBeBorrowed : eModeCategoryReserve ?. canBeBorrowed ?? false ,
7773 } ) ,
7874 } ) ;
@@ -159,33 +155,6 @@ describe('Given an Aave Market', () => {
159155 } ) . andThen ( sendWith ( wallet ) ) ;
160156 assertOk ( result ) ;
161157 } ) ;
162-
163- it ( 'Then any user supply position that are not included in the E-Mode category should not be able to be used as collateral' , async ( ) => {
164- const result = await userSupplies ( client , {
165- markets : [
166- { address : ETHEREUM_MARKET_ADDRESS , chainId : ETHEREUM_FORK_ID } ,
167- ] ,
168- user : evmAddress ( wallet . account ! . address ) ,
169- } ) ;
170- assertOk ( result ) ;
171-
172- expect ( result . value ) . toMatchObject ( [
173- expect . objectContaining ( {
174- currency : expect . objectContaining ( {
175- address : USDC_ADDRESS ,
176- } ) ,
177- // USDC is not in the E-Mode category, so it should be false
178- canBeCollateral : false ,
179- } ) ,
180- expect . objectContaining ( {
181- currency : expect . objectContaining ( {
182- address : WETH_ADDRESS ,
183- } ) ,
184- // WETH is part of ETH-correlated E-Mode category, so it should be true
185- canBeCollateral : true ,
186- } ) ,
187- ] ) ;
188- } ) ;
189158 } ) ;
190159 } ) ;
191160} ) ;
0 commit comments