Rust Solana Prediction Market
Budget / Salary$50,000–100,000
TypeFreelance project
LocationRemote
Posted3 hours ago
I’m building a Polymarket-style, binary-outcome prediction market on Solana and I need a production-ready smart contract written in Rust with the Anchor framework. Everything must first ship to devnet for testing and, once accepted, deploy seamlessly to mainnet.
Core logic
• Users can create a market, deposit liquidity, trade shares, and—once an oracle pushes the final result—have winnings distributed automatically.
• Each action needs to emit precise events so my React/TypeScript frontend can stay perfectly in sync.
Creator incentives
Beyond the standard flow I want an incentive layer: market creators should earn a bonus that unlocks when their market crosses a predefined total transaction volume threshold. If you have ideas for complementary mechanisms (percent-based fees, fixed rewards, etc.) feel free to suggest them, but the bonus-for-volume model tied to total transaction volume is non-negotiable.
Quality bar
The contract must follow Solana security best practices, include deterministic unit and integration tests that cover state transitions, edge cases, and known attack vectors, and pass an external audit. Expect me to review program logs, anchor tests, and on-chain account data to confirm determinism.
Deliverables
1. Anchor program source with clear modules and comments
2. Full test suite (`cargo test` + Anchor tests) proving deterministic behaviour
3. Devnet deployment scripts and verified devnet address
4. Mainnet deploy script and hand-over guide
5. Audit report addressing all findings and fixes
If you live and breathe Solana, Rust, Anchor, and on-chain security, let’s talk timelines and your proposed architecture.
Core logic
• Users can create a market, deposit liquidity, trade shares, and—once an oracle pushes the final result—have winnings distributed automatically.
• Each action needs to emit precise events so my React/TypeScript frontend can stay perfectly in sync.
Creator incentives
Beyond the standard flow I want an incentive layer: market creators should earn a bonus that unlocks when their market crosses a predefined total transaction volume threshold. If you have ideas for complementary mechanisms (percent-based fees, fixed rewards, etc.) feel free to suggest them, but the bonus-for-volume model tied to total transaction volume is non-negotiable.
Quality bar
The contract must follow Solana security best practices, include deterministic unit and integration tests that cover state transitions, edge cases, and known attack vectors, and pass an external audit. Expect me to review program logs, anchor tests, and on-chain account data to confirm determinism.
Deliverables
1. Anchor program source with clear modules and comments
2. Full test suite (`cargo test` + Anchor tests) proving deterministic behaviour
3. Devnet deployment scripts and verified devnet address
4. Mainnet deploy script and hand-over guide
5. Audit report addressing all findings and fixes
If you live and breathe Solana, Rust, Anchor, and on-chain security, let’s talk timelines and your proposed architecture.
Apply on Freelancer →
Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.