AllanM007 / predix-v1

Permissionless Prediction market built on Chainlink

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:HTML 51.4%Language:JavaScript 33.1%Language:Solidity 14.8%Language:CSS 0.8%