Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
acamill committed Jul 25, 2023
1 parent 5fe1518 commit cb0eaeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub struct BorrowFromLsdDepository<'info> {
payer = payer,
bump,
)]
pub lsd_position_collateral_token_account: Box<Account<'info, TokenAccount>>,
pub lsd_position_collateral: Box<Account<'info, TokenAccount>>,

/// # price oracle account for the collateral
#[account(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cb0eaeb

Please sign in to comment.