OniSwap

The OniSwap whitepaper

Oracle-parametrized liquidity on Solana: how much a lying keeper can take, and where the pool earns.

Draft 0.3, 19 November 2026, 14 pages

A public pool that reprices like a prop AMM, and the fee that keeps its keeper in line.

Proprietary AMMs fill more than half of SOL/USDC on Solana. They reprice from an off-chain price, and nobody outside the operating firm can fund them. OniSwap is a public pool that reprices the same way, built on the oracle-parametrized curve of Amini and Feinstein. A keeper posts the price, and every swap checks it against Pyth's on-chain feed inside a band.

The paper asks how much a keeper who lies inside that band can take. We prove that once the fee the pool keeps covers the whole band, no swap of any size can lower a potential of the pool, so a lying keeper takes a one-time amount and then nothing. Then we measure the oracle on mainnet, compare the pool with constant product at the same price for traders, and test it against the routes Jupiter finds today, with each token's real flow.