Based preconfirmations

Why does transaction validity prevent sandwiching?