I read an interesting piece about frontrunning in Ethereum. In essense, the problem is this:
In general, frontrunning is the act of getting a transaction first in line in the execution queue, right before a known future transaction occurs.
A simple example of frontrunning is an exchange bid. Say someone is about to buy a huge amount of ETH on Uniswap, enough to drive the price of ETH up. One way to benefit from this scenario is to put a transaction to buy ETH just before this huge amount of ETH is purchased, while the price remains lower. Then, right after the price spikes, sell the ETH for a profit.
Since to write transactions in the Tezos blockchain also require some gas, and, afaik, higher gas gets priority, frontrunning seems plausible to happen. Just find a pending transaction that can change the price and bet against it.
Is this true? Is tezos vulnerable to frontrunning?