diff --git a/programs/uxd/src/instructions/lsd/borrow_from_lsd_depository.rs b/programs/uxd/src/instructions/lsd/borrow_from_lsd_depository.rs index 10bd492ec..269248c12 100644 --- a/programs/uxd/src/instructions/lsd/borrow_from_lsd_depository.rs +++ b/programs/uxd/src/instructions/lsd/borrow_from_lsd_depository.rs @@ -99,7 +99,7 @@ pub struct BorrowFromLsdDepository<'info> { payer = payer, bump, )] - pub lsd_position_collateral_token_account: Box>, + pub lsd_position_collateral: Box>, /// # price oracle account for the collateral #[account( @@ -256,7 +256,7 @@ impl<'info> BorrowFromLsdDepository<'info> { let cpi_program = self.token_program.to_account_info(); let cpi_accounts = Transfer { from: self.user_collateral.to_account_info(), - to: self.lsd_position_collateral_token_account.to_account_info(), + to: self.lsd_position_collateral.to_account_info(), authority: self.user.to_account_info(), }; CpiContext::new(cpi_program, cpi_accounts)