Rust SDK for integrating Omnipair with the Jupiter AMM interface.
OmnipairAmmClient: JupiterAmmimplementation for Omnipair pairs.OmnipairPair: deserialization + local quote math that mirrors on-chain swap math.OmnipairSwapAccounts: helper type for building swap account metas.
src/lib.rskeeps shared constants, state structs, and quote math.src/omnipair_amm_client.rscontains the Jupiter client implementation.
cargo testFor the live on-chain test, set:
OMNIPAIR_RPC_URL(optional, defaults to mainnet-beta)OMNIPAIR_PAIR(required)