A tiny solana
program
helper that allows you to prevent being sandwiched
and hit with a malicious instruction
.
solana-sandwich/src/structs.rs
Lines 4 to 8 in 735fd57
Enforce if you let an instruction
from this program
to run before
or after
your instruction
.