Skip to content

Latest commit

 

History

History
72 lines (43 loc) · 1.98 KB

README.md

File metadata and controls

72 lines (43 loc) · 1.98 KB

PolyAVS

PolyAVS is an oracle specifically designed for prediction markets. It leverages the shared security of AVS, providing a transparent and censorship-resistant mechanism to ensure the accuracy of each event. To maintain sufficient decentralization, PolyAVS offers a dispute mechanism, allowing those with concerns about the results to challenge them. Operators who provide incorrect results will have a certain amount of tokens confiscated.

Architecture

Event Flow

Here is the complete process from request to settlement of the event (without dispute).or

In the above diagram, except for the operator who needs to register in Eigenlayer in advance, the Requestor / Proposer / Settler could be anyone.

Dispute Flow

If anyone is not agreed with the operator’s verification result, he can request a dispute for re-verification of the result and the stake assets will serve as collateral. The steps in the diagram continue from the previous diagram.

There will be two possible outcomes here

  1. If disputer is wrong, then the disputer's staked assets will be confiscated.
  2. If operators is wrong, then the assets delegated to operator will be confiscated

Deployments

How to start?

Contracts

  1. Check current path in contracts
cd contracts
  1. Build contracts
forge build
  1. Test contracts
forge test

Operator

  1. Check current path in project root

  2. Install dependencies

pnpm install
  1. Run operator to monitor event
ts-node ./operator/main.ts