feat: Praxis prediction market plugin - 15/15 tests passing#406
Open
Makaveli912 wants to merge 184 commits into
Open
feat: Praxis prediction market plugin - 15/15 tests passing#406Makaveli912 wants to merge 184 commits into
Makaveli912 wants to merge 184 commits into
Conversation
- COI-1 CRITICAL: resolver cannot hold a position in market they resolve - Added PositionState check in propose_outcome + resolve_market DeliverTx - ErrResolverHasPosition() code 199 - COI-2 HIGH: market creator cannot be the resolver for the same market - Added bytes.Equal(market.Creator, msg.ResolverAddress) in propose_outcome DeliverTx - ErrCreatorCannotResolve() code 200 - COI-3 MEDIUM: per-address position cap at 20% of pool - MAX_POSITION_BPS = 2000, exceedsPositionCap() helper in helpers.go - Enforced in submit_prediction DeliverTx before balance check - ErrPositionCapExceeded() code 201
…cy, TOCTOU surplus sweep
…g resolverAddr/resolverKey fixes
… docs, corrupt state error, accepted risks documented
…in ContractConfig
…n, used for all payouts
…opy keystore path, PBKDF2 fallback
…or bond, superadmin, Canopy keystore support
…DER_ADDRESS, ErrInsufficientResolverStake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Praxis - Prediction Market Plugin
A fully tested, mainnet-ready prediction market plugin for Canopy.
Built and tested entirely on mobile (userland/Android).
Full LMSR prediction market implementation
MIN_B0 = 5,000 PRX for meaningful liquidity
500 PRX non-refundable creation fee to protocol treasury
COI-1, COI-2, COI-3 conflict-of-interest guards
Anti-spam: minimum question length validation
15/15 tests passing including full PORS flow, claim winnings, cancelled market refund