Skip to content

Commit e172c85

Browse files
author
Bengt Lofgren
committed
reintroduce match statement for additional grace period
1 parent dd56e0f commit e172c85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

solana/programs/matching-engine/src/fallback/processor/execute_order.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,12 @@ pub fn handle_execute_order_shim(accounts: &[AccountInfo]) -> Result<()> {
432432
// the fast fill will most likely require an additional transaction, so this buffer allows
433433
// the best offer participant to perform his duty without the risk of getting slashed by
434434
// another executor.
435-
let additional_grace_period = Some(crate::EXECUTE_FAST_ORDER_LOCAL_ADDITIONAL_GRACE_PERIOD);
435+
let additional_grace_period = match active_auction.target_protocol {
436+
MessageProtocol::Local { .. } => {
437+
crate::EXECUTE_FAST_ORDER_LOCAL_ADDITIONAL_GRACE_PERIOD.into()
438+
}
439+
_ => None,
440+
};
436441

437442
let DepositPenalty {
438443
penalty,

0 commit comments

Comments
 (0)