From 973c75396608da611d72debcf4f9aa748f6164a4 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Wed, 18 Dec 2024 13:53:01 -0800 Subject: [PATCH] remove remaining accounts limit --- programs/drift/src/instructions/pyth_lazer_oracle.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/programs/drift/src/instructions/pyth_lazer_oracle.rs b/programs/drift/src/instructions/pyth_lazer_oracle.rs index e7f611ea5..76084679e 100644 --- a/programs/drift/src/instructions/pyth_lazer_oracle.rs +++ b/programs/drift/src/instructions/pyth_lazer_oracle.rs @@ -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[..])?;