Skip to content

implementation of Kleros erc-792: Arbitration Standard proposed by Kleros

Notifications You must be signed in to change notification settings

gratestas/erc-792-weighted-arbitrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC-792: Simple (Non-appeable) Weighted Arbitrator

The smart contract collects rulings from multiple arbitrators and fuses those into a single ruling based on the weight of each arbitrator.

Weighted Arbitrator implements IArbitrator and IArbitrable interfaces derived from ERC-792 Standard. This means that WeightedArbitrator is an arbitrator for any arbitrable contract, while it is arbitrable for each arbitrator it receives ruling from. The total arbitration cost is correlated with the number of arbitrators drawn into the dispute in the form of O(numberOfArbitrators)


Weighted Ruling Mechanism

A simple weighted average equation is used to fuse all rulings collected from a set of authorized arbitrators into one final weighted ruling, taking into account the ruling power of each.


where:
- ruling of i-th arbitrator
- weighting factor allocated for i-th arbitrator

Final decision

For the sake of simplicity, the numberOfChoices is kept to be limited by 2. A quota (the threshold required to pass for the majority) state variable is introduced to determine the final decision.



Testing

// Clone the repository
git clone https://github.com/gratestas/erc-792-weighted-arbitrator.git

// Navigate into repository
cd erc-792-weighted-arbitrator

// Install the dependencies
yarn install

// Run test
npx hardhat test

About

implementation of Kleros erc-792: Arbitration Standard proposed by Kleros

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published