Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 525 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 525 Bytes

Solana Sandwich

A tiny solana program helper that allows you to prevent being sandwiched and hit with a malicious instruction.

AllowRule

pub struct AllowedRules {
pub program: Pubkey,
pub before: bool,
pub after: bool,
}

Enforce if you let an instruction from this program to run before or after your instruction.

Some examples in tests