@@ -483,6 +483,7 @@ pub fn handle_lp_pool_swap<'c: 'info, 'info>(
483483 out_market_target_weight : out_target_weight,
484484 in_swap_id,
485485 out_swap_id,
486+ lp_pool : lp_pool_key,
486487 } ) ?;
487488
488489 receive (
@@ -848,6 +849,7 @@ pub fn handle_lp_pool_add_liquidity<'c: 'info, 'info>(
848849 lp_pool. last_aum ,
849850 ) ?,
850851 in_market_target_weight : in_target_weight,
852+ lp_pool : lp_pool_key,
851853 } ) ?;
852854
853855 Ok ( ( ) )
@@ -1230,6 +1232,7 @@ pub fn handle_lp_pool_remove_liquidity<'c: 'info, 'info>(
12301232 lp_pool. last_aum ,
12311233 ) ?,
12321234 in_market_target_weight : out_target_weight,
1235+ lp_pool : lp_pool_key,
12331236 } ) ?;
12341237
12351238 Ok ( ( ) )
@@ -1371,6 +1374,7 @@ pub fn handle_deposit_to_program_vault<'c: 'info, 'info>(
13711374 let remaining_accounts = & mut ctx. remaining_accounts . iter ( ) . peekable ( ) ;
13721375
13731376 let mut constituent = ctx. accounts . constituent . load_mut ( ) ?;
1377+ let lp_pool_key = constituent. lp_pool ;
13741378
13751379 if amount == 0 {
13761380 return Err ( ErrorCode :: InsufficientDeposit . into ( ) ) ;
@@ -1478,6 +1482,7 @@ pub fn handle_deposit_to_program_vault<'c: 'info, 'info>(
14781482 last_token_balance: constituent. last_spot_balance_token_amount,
14791483 interest_accrued_token_amount,
14801484 amount_deposit_withdraw: amount,
1485+ lp_pool: lp_pool_key,
14811486 } ) ;
14821487 constituent. last_spot_balance_token_amount = new_token_balance;
14831488 constituent. cumulative_spot_interest_accrued_token_amount = constituent
@@ -1561,6 +1566,7 @@ pub fn handle_withdraw_from_program_vault<'c: 'info, 'info>(
15611566 last_token_balance: constituent. last_spot_balance_token_amount,
15621567 interest_accrued_token_amount,
15631568 amount_deposit_withdraw: amount,
1569+ lp_pool: constituent. lp_pool,
15641570 } ) ;
15651571 constituent. last_spot_balance_token_amount = new_token_balance;
15661572 constituent. cumulative_spot_interest_accrued_token_amount = constituent
0 commit comments