Verify it yourself

From the repo root, anchor build && cargo test -p mark_perp --lib && cargo test --manifest-path sim/Cargo.toml.

The library tests cover the formulas, including the 90¢ margin and the 33.3332¢ liquidation.

The LiteSVM tests run the program: deposit, open, funding, close, stale oracle, pause, liquidation, shortfall, and settlement.

A signature

node scripts/verify_tx.mjs <signature> reads a devnet transaction and prints the program logs.

Match the program id in the log with the id in the README.

Back to the desk