peard
Programs

peard_tote

Parimutuel over-unders on any registry pairable. Built and tested, deployed nowhere.


peard_tote takes a short-dated view on a pairable rather than selling it or holding a position in it. The pot is the counterparty, so nobody has to want the other side and no curve has to be seeded.

It is also the only instrument here whose price needs no model. A parimutuel pool's implied odds are the crowd's probability estimate, which matters because an underlying that prints weekly has no options market to derive a volatility surface from and never will.

Every name, account, argument and error on this page is generated from target/idl/peard_tote.json, the IDL Anchor emits at build time. It is what the deployed bytes actually accept, not a recollection of it.

Program id

Address6Xniss9GBCMD4CdawyUtMYR7LEUGeHY3sr6cHYQyNcoa
Deployednowhere. This program has never been on a cluster, and "kill or keep peard_tote" is an open item on docs/PRIORITIES.md
Instructions7
Account types3
Events5
Error codes13

Instructions

Global

Rounds

Staking and claiming

Fees

Accounts

The state this program owns. Field names are as they appear on chain.

Types

Events

EventFields
Claimedround, owner, amount, won
RoundOpenedround, pairable, seq, threshold, closes_at, settles_at
RoundSettledround, price, threshold, winner, pot, fee
RoundVoidedround, reason
Stakedround, owner, side, amount, over_stake, under_stake

Errors

CodeNameMessage
6000Unauthorizedunauthorized
6001BadParamparameter outside allowed range
6002ZeroAmountamount must be greater than zero
6003MathOverflowmath overflow
6004NotOpenthe book is not open
6005Closedthe book has closed
6006WrongStateround is not in the state this needs
6007WrongPairablethe account is not the pairable this round names
6008AwaitingPrintno print has landed since settlement time
6009IndexUnusablethe underlying is frozen, so its print is not trustworthy
6010TooEarlyToVoidtoo early to void this round
6011AlreadyClaimedthis ticket has already been paid
6012SideMismatcha side must already be chosen to add to it