Predix is a prediction market that leverages Chainlink core products to ensure data integrity, smart contract execution and speed.
Predix utilizes chainlink data feeds as data sources that users can predict on their future performance. Predix uses Chainlink's Feed Registry to dynamically fetch price feeds using a single contract to allow for as many data feeds as possible to be available to users.
Predix uses chainlink's automation contracts to execute rewards/markets finalization based on data feed changes or expiry periods. This allows the protocol to execute securely and in a deterministic manner which ensures secure prediction market outcomes.
To build the Predix smart contracts, you will need the following:
Clone the repository with its submodules, set up Hardhat, and install the dependencies via npm:
npm install
Contract | Description |
---|---|
oracleFeedRegistry |
This contract dynamically fetches chainlink oracle price data feeds and provides them for users when creating positions. |
positionsFactory |
This contract manages position creation/proposals/opposals and liquidations. |
automationFactory |
This contract manages the positions automation using chainlink's automation module to facilitate price feeds monitoring and calling liquidations/closing positions. |
upKeepRegistry |
This is a chainlink upkeep contract that manages the chainlink automationFactory contract to make sure it is funded and executes correctly. |