File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
solana/programs/matching-engine/src/fallback/processor Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ pub(super) fn process(
109
109
110
110
// Verify that the fast market order account's key is derived correctly.
111
111
let new_fast_market_order_info = & accounts[ 1 ] ;
112
- let fast_market_order_key = new_fast_market_order_info. key ;
113
112
let ( expected_fast_market_order_key, fast_market_order_bump) = Pubkey :: find_program_address (
114
113
& [
115
114
FastMarketOrder :: SEED_PREFIX ,
@@ -119,13 +118,6 @@ pub(super) fn process(
119
118
& ID ,
120
119
) ;
121
120
122
- if fast_market_order_key != & expected_fast_market_order_key {
123
- return Err ( MatchingEngineError :: InvalidPda . into ( ) ) . map_err ( |e : Error | {
124
- e. with_account_name ( "fast_market_order" )
125
- . with_pubkeys ( ( * fast_market_order_key, expected_fast_market_order_key) )
126
- } ) ;
127
- }
128
-
129
121
// These accounts will be used by the Verify VAA shim program.
130
122
let wormhole_guardian_set_info = & accounts[ 2 ] ;
131
123
let shim_guardian_signatures_info = & accounts[ 3 ] ;
@@ -157,7 +149,7 @@ pub(super) fn process(
157
149
158
150
super :: helpers:: create_account_reliably (
159
151
payer_info. key ,
160
- fast_market_order_key ,
152
+ & expected_fast_market_order_key ,
161
153
new_fast_market_order_info. lamports ( ) ,
162
154
FAST_MARKET_ORDER_DATA_LEN ,
163
155
accounts,
You can’t perform that action at this time.
0 commit comments