Skip to main content

PredinexPool Contract

The PredinexPool contract is the core smart contract powering Predinex's prediction markets. It handles pool creation, betting, liquidity provision, settlement, and reward distribution.

📋 Contract Overview

Network: BSC Mainnet
Compiler Version: Solidity ^0.8.20
License: MIT

🏗️ Core Functions

Pool Creation

createPool()

Creates a new prediction pool with specified parameters.

function createPool(
bytes32 _predictedOutcome,
uint256 _odds,
uint256 _creatorStake,
uint256 _eventStartTime,
uint256 _eventEndTime,
string memory _league,
string memory _category,
string memory _region,
bool _isPrivate,
uint256 _maxBetPerUser,
bool _usePrix,
OracleType _oracleType,
bytes32 _marketId
) external payable

Betting Functions

placeBet()

Place a bet on the predicted outcome occurring.

addLiquidity()

Provide liquidity to bet against the predicted outcome.

claim()

Claim winnings from a settled pool.


The PredinexPool contract is the foundation of our prediction market ecosystem.