Every chain, one platform
How the same protocol runs on Solana and EVM chains, how equivalence is proven, and how to add a chain.
PPM is specified once (spec/SPEC.md) and implemented three times: a Rust reference core (linked directly by the Solana program), a Solidity contract for every EVM chain, and a TypeScript port that powers this app's previews, its keeper and its simulator. Integer rounding, error codes, the order of checks and the queue rules are all normative.
Proof of equivalence
The reference core generates golden traces: random operations, more than half of them deliberately invalid, with the expected result code, token movements and full post-state after every step, including every queue counter and pending order. The same files are replayed on Foundry (with a real ERC-20), on LiteSVM (with the real SBF program and SPL Token) and in TypeScript, where the trace generator is also ported and must reproduce every fixture byte for byte. One differing field anywhere fails the build.
One app, every chain
The app reads every configured deployment in parallel and shows all their markets together, with a chain badge on each. Connect an EVM wallet, a Solana wallet, or both. Orders route to the right chain and wallet automatically, and a chain that is down never hides the others.
Adding a chain
- EVM:
make evm-deploy RPC_URL=… COLLATERAL=… ACCOUNT=…. Solana:make sol-deploy SOL_URL=…, then bootstrap. - Add the addresses to
NEXT_PUBLIC_DEPLOYMENTS(Vercel env) orweb/src/config/deployments.json. - Point an oracle at each market and run a keeper that prints and processes batches.