Skip to content

Commit

Permalink
remove remaining accounts limit
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Dec 18, 2024
1 parent 4b815f2 commit 973c753
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions programs/drift/src/instructions/pyth_lazer_oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ pub fn handle_update_pyth_lazer_oracle<'c: 'info, 'info>(

// Load oracle accounts from remaining accounts
let remaining_accounts = ctx.remaining_accounts;
validate!(
remaining_accounts.len() <= 3,
ErrorCode::OracleTooManyPriceAccountUpdates
)?;

let storage_account_data = ctx.accounts.pyth_lazer_storage.try_borrow_data()?;
let pyth_storage = Storage::try_deserialize(&mut &storage_account_data[..])?;

Expand Down

0 comments on commit 973c753

Please sign in to comment.