Skip to content

Permissionless Prediction market built on Chainlink

Notifications You must be signed in to change notification settings

AllanM007/predix-v1

Repository files navigation

Predix: Smart Contracts

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.

Getting Started

Prerequisites

To build the Predix smart contracts, you will need the following:

Installation

Clone the repository with its submodules, set up Hardhat, and install the dependencies via npm:

npm install

Contracts

Core Contracts

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.

Predix Flow Chart |

About

Permissionless Prediction market built on Chainlink

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published