Page 1 of 1

LS-LMSR Simulator Challenge - Senior Solidity / DeFi Dev

XO.market is building the next-gen prediction market using LS-LMSR mechanics.
This challenge is designed to test how you think, structure code, and implement DeFi math.

The Challenge

Build a minimal simulator that demonstrates LS-LMSR pricing and cost dynamics when trading outcome shares.

Your AMM must be deplyed as a smart contract on any EVM-compiatible testnet (e.g. Sepolia, Base Sepolia, Mumbai ..etc.)

Requirements
- Use any modern frontend framework (React, Vue, Svelte, etc.).
- Your app should allow:
Choosing number of outcomes (2–5)
Setting liquidity params b0 and α
Viewing current outcome quantities and prices
Simulating buying X shares of a selected outcome and showing trade cost + updated prices


Your implementation should support:

✅ Creating a binary or multi-outcome market

✅ Buying and selling outcome shares

✅ Proper LS-LMSR price calculation and cost function behavior

✅ Proper accounting of pool liquidity and share balances

✅ A clean, minimal interface to interact with the contract

Bonus points for:


🚀 Deploying a simple frontend simulator to visualize trades and price movement


🚀 Gas-efficient implementation


🚀 Well-structured repo and readable code


🚀 Clear README explaining how to run and test


📤 Submission


Please submit a GitHub repo link with:


Contract code

frontend / simulator

README with basic instructions


You can deploy on any testnet you like. No need for a backend.

What's your name?

Github Profile

Linkedin / Twitter (Optional)

Your telegram handle

Challenge Repo

Live Demo URL

Short Explanation of your implementation

Tell us a bit about yourself