Skip to content

ohaddahan/solana-sandwich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages