Veracis — LMSR Prediction Market AMM on Midnight
LMSR requires transcendental functions (exp, ln) that are incompatible with ZK integer circuit constraints.
Rebuilt the mathematical substrate using fixed-point scaling (10^6), 15-term Taylor expansion for exp, argument reduction for ln, and log-sum-exp numerical stability. Off-chain witness computation verified on-chain via ZK proof.
Working LMSR AMM on Midnight with published whitepaper. Prices provably sum to 1 via softmax. Market-maker loss bounded at b·ln(n).