@@ -159,6 +159,10 @@ module aave_pool::liquidation_logic_tests {
159159 0
160160 );
161161
162+ supply_logic::set_user_use_reserve_as_collateral (
163+ borrower, underlying_u2_token_address, true
164+ );
165+
162166 // set global time
163167 timestamp::update_global_time_for_test_secs (1000 );
164168
@@ -437,6 +441,10 @@ module aave_pool::liquidation_logic_tests {
437441 0
438442 );
439443
444+ supply_logic::set_user_use_reserve_as_collateral (
445+ borrower, underlying_u2_token_address, true
446+ );
447+
440448 // set emode
441449 pool_configurator::set_emode_category (
442450 aave_pool, 1 , 8500 , 9000 , 10500 , utf8 (b"EMODE ")
@@ -732,6 +740,10 @@ module aave_pool::liquidation_logic_tests {
732740 0
733741 );
734742
743+ supply_logic::set_user_use_reserve_as_collateral (
744+ borrower, underlying_u2_token_address, true
745+ );
746+
735747 // mint 1 APT to the borrower_address
736748 let mint_apt_amount = 100000000 ;
737749 aptos_framework::aptos_coin_tests ::mint_apt_fa_to_primary_fungible_store_for_test (
@@ -1003,6 +1015,10 @@ module aave_pool::liquidation_logic_tests {
10031015 0
10041016 );
10051017
1018+ supply_logic::set_user_use_reserve_as_collateral (
1019+ borrower, underlying_u2_token_address, true
1020+ );
1021+
10061022 // mint 1 APT to the borrower_address
10071023 let mint_apt_amount = 100000000 ;
10081024 aptos_framework::aptos_coin_tests ::mint_apt_fa_to_primary_fungible_store_for_test (
@@ -1309,6 +1325,10 @@ module aave_pool::liquidation_logic_tests {
13091325 0
13101326 );
13111327
1328+ supply_logic::set_user_use_reserve_as_collateral (
1329+ borrower, underlying_u2_token_address, true
1330+ );
1331+
13121332 // mint 1 APT to the borrower_address
13131333 let mint_apt_amount = 100000000 ;
13141334 aptos_framework::aptos_coin_tests ::mint_apt_fa_to_primary_fungible_store_for_test (
@@ -1633,6 +1653,10 @@ module aave_pool::liquidation_logic_tests {
16331653 0
16341654 );
16351655
1656+ supply_logic::set_user_use_reserve_as_collateral (
1657+ borrower, underlying_u2_token_address, true
1658+ );
1659+
16361660 // mint 1 APT to the borrower_address
16371661 let mint_apt_amount = 100000000 ;
16381662 aptos_framework::aptos_coin_tests ::mint_apt_fa_to_primary_fungible_store_for_test (
@@ -1971,6 +1995,10 @@ module aave_pool::liquidation_logic_tests {
19711995 0
19721996 );
19731997
1998+ supply_logic::set_user_use_reserve_as_collateral (
1999+ borrower, underlying_u2_token_address, true
2000+ );
2001+
19742002 // mint 1 APT to the borrower_address
19752003 let mint_apt_amount = 100000000 ;
19762004 aptos_framework::aptos_coin_tests ::mint_apt_fa_to_primary_fungible_store_for_test (
@@ -2275,6 +2303,10 @@ module aave_pool::liquidation_logic_tests {
22752303 0
22762304 );
22772305
2306+ supply_logic::set_user_use_reserve_as_collateral (
2307+ borrower, underlying_u2_token_address, true
2308+ );
2309+
22782310 // set emode
22792311 pool_configurator::set_emode_category (
22802312 aave_pool, 1 , 8500 , 9000 , 10500 , utf8 (b"EMODE ")
@@ -2554,6 +2586,10 @@ module aave_pool::liquidation_logic_tests {
25542586 0
25552587 );
25562588
2589+ supply_logic::set_user_use_reserve_as_collateral (
2590+ borrower, underlying_u2_token_address, true
2591+ );
2592+
25572593 // mint 1 APT to the borrower_address
25582594 let mint_apt_amount = 100000000 ;
25592595 aptos_framework::aptos_coin_tests ::mint_apt_fa_to_primary_fungible_store_for_test (
@@ -2825,6 +2861,10 @@ module aave_pool::liquidation_logic_tests {
28252861 0
28262862 );
28272863
2864+ supply_logic::set_user_use_reserve_as_collateral (
2865+ borrower, underlying_u2_token_address, true
2866+ );
2867+
28282868 // mint 1 APT to the borrower_address
28292869 let mint_apt_amount = 100000000 ;
28302870 aptos_framework::aptos_coin_tests ::mint_apt_fa_to_primary_fungible_store_for_test (
0 commit comments