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
| Address | 6Xniss9GBCMD4CdawyUtMYR7LEUGeHY3sr6cHYQyNcoa |
| Deployed | nowhere. This program has never been on a cluster, and "kill or keep peard_tote" is an open item on docs/PRIORITIES.md |
| Instructions | 7 |
| Account types | 3 |
| Events | 5 |
| Error codes | 13 |
Instructions
Global
Rounds
Staking and claiming
Fees
Accounts
The state this program owns. Field names are as they appear on chain.
Types
Events
| Event | Fields |
|---|---|
Claimed | round, owner, amount, won |
RoundOpened | round, pairable, seq, threshold, closes_at, settles_at |
RoundSettled | round, price, threshold, winner, pot, fee |
RoundVoided | round, reason |
Staked | round, owner, side, amount, over_stake, under_stake |
Errors
| Code | Name | Message |
|---|---|---|
| 6000 | Unauthorized | unauthorized |
| 6001 | BadParam | parameter outside allowed range |
| 6002 | ZeroAmount | amount must be greater than zero |
| 6003 | MathOverflow | math overflow |
| 6004 | NotOpen | the book is not open |
| 6005 | Closed | the book has closed |
| 6006 | WrongState | round is not in the state this needs |
| 6007 | WrongPairable | the account is not the pairable this round names |
| 6008 | AwaitingPrint | no print has landed since settlement time |
| 6009 | IndexUnusable | the underlying is frozen, so its print is not trustworthy |
| 6010 | TooEarlyToVoid | too early to void this round |
| 6011 | AlreadyClaimed | this ticket has already been paid |
| 6012 | SideMismatch | a side must already be chosen to add to it |
peard