A tiny solana program helper that allows you to prevent being sandwiched and hit with a malicious instruction.
solana
program
sandwiched
instruction
https://github.com/ohaddahan/solana-sandwich/blob/735fd57bba83a356e5975001d6ca8df414413eec/src/structs.rs#L4-L8
Enforce if you let an instruction from this program to run before or after your instruction.
before
after
Some examples in tests