You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To live alongside SimpleDisputes, there is the Court pallet.
Core Logic
join_court - Allows any ZTG holder to stake funds to join the court. The amount of funds to stake is a factor of the number of court participants that have already joined.
exit_court - Allows a ZTG holder who has staked to join the court to leave and get their funds back.
on_dispute - When a dispute occurs a subset of all court participants is chosen at random and assigned to a "court case". They then have CourtCaseDuration amount of time to cast a vote for which Outcome is correct. The majority of votes becomes the new reported outcome. The dispute process can occur multiple times, each requiring a larger bond, and taking a larger subset of court participants at random.
on_resolution - Similar to SimpleDisputes resolution, however with a different payout structure. All of the parties who are sided on the winning side get their bonds back, and the parties on the losing side are slashed 50% of their bonds, which get split among all parties on the winning side. For Court participants who voted on the losing side in a winning majority or failed to vote within the CourtCaseDuration will not receive any rewards, however neither will they be slashed, they will however be placed as Tardy. If a Tardy court participant fails to participate in a court case for a second time, they are removed from the court and 20% of their staked funds are sent to the on-chain treasury.
Storage
Similar storage to what's already in simple disputes, with the addition of...
To live alongside
SimpleDisputes
, there is theCourt
pallet.Core Logic
join_court
- Allows any ZTG holder to stake funds to join the court. The amount of funds to stake is a factor of the number of court participants that have already joined.exit_court
- Allows a ZTG holder who has staked to join the court to leave and get their funds back.on_dispute
- When a dispute occurs a subset of all court participants is chosen at random and assigned to a "court case". They then haveCourtCaseDuration
amount of time to cast a vote for whichOutcome
is correct. The majority of votes becomes the new reported outcome. The dispute process can occur multiple times, each requiring a larger bond, and taking a larger subset of court participants at random.on_resolution
- Similar toSimpleDisputes
resolution, however with a different payout structure. All of the parties who are sided on the winning side get their bonds back, and the parties on the losing side are slashed 50% of their bonds, which get split among all parties on the winning side. For Court participants who voted on the losing side in a winning majority or failed to vote within theCourtCaseDuration
will not receive any rewards, however neither will they be slashed, they will however be placed asTardy
. If aTardy
court participant fails to participate in a court case for a second time, they are removed from the court and 20% of their staked funds are sent to the on-chain treasury.Storage
Similar storage to what's already in simple disputes, with the addition of...
Jurors
- avec
of all staked jurors.Data Structures
Juror
The text was updated successfully, but these errors were encountered: