Submitted by pauliax
There is no relayer address param, only relayerFee, so technically anyone can front-run a profitable tx. The scenario might be as follows: A relayer submits a tx. A frontrunner sees it in the mempool and calculates that relayerFee is profitable enough (maybe even insta sell the relayerFee on AMM for the native asset) so he copies and submits the same tx but with a higher gas price. A frontrunners tx gets through and a relayers tx is reverted afterward. So basically a relayer will experience only losses in such a case.
Recommend consider introducing relayer address param or reducing the probability of this scenario in any other meaningful way (e.g. blacklist front-runners).
LayneHaber (Connext) acknowledged:
ghoul-sol (Judge) commented:
