<!-- canonical: https://0xsimao.com/findings/vertex-transaction-execute-transactions-config -->

# txType == TransactionType.ExecuteSlowMode may cause batch of transactions to fail due to _slowModeConfig.txUpTo < _slowModeConfig.txCount

Low/Info · Three Sigma · Hybrid orderbook DEX · 3rd April 2024

Finding 3S-Vertex-L10 of the Vertex security review.

- Report: /reports/vertex
- Source: https://github.com/0xsimao/audits/blob/main/Three%20Sigma/2024-04-03-vertex.pdf

---

### Description

txType == TransactionType.ExecuteSlowMode allows the sequencer to execute slow
mode transactions. However, these transactions can also be executed permissionlessly.
Endpoint::_executeSlowModeTransaction reverts if _slowModeConfig.txUpTo <
_slowModeConfig.txCount, which means that if before executing
Endpoint::submitTransactionsChecked(), someone executes the slow mode
transactions up to the latest, the whole batch will revert.

### Recommendation

This is unlikely to happen as there is a significant delay in slow mode transactions, which is
ignored by the sequencer. Nontheless, an early return can be performed instead of
reverting in Endpoint::_executeSlowModeTransaction.

### Status

Acknowledged

Disclosed by 0xSimao (https://0xsimao.com/).

---

Related findings:

- [BatchOut:executeBatchWithdrawFromStrategyWithSwap() gives unfairly different slippage depending on the chosen token](https://0xsimao.com/findings/clip-finance-i-withdraw-unfairly-slippage-depending): Clip Finance Strategies
