Docs, The venue

Security and trust

What the program enforces and who holds which key

What the program enforces

RuleWhere
A fill uses the first signed price at or after its target time, within fill_max_gap_secsexecute_open, execute_close
A price is posted only with oracle_threshold signatures from the registered signers, checked byte for byte in the ed25519 instruction before post_price, and read only for the market's own feed with a bounded exchange spreadpost_price, every price read
One market per feed id; the feed id is the market's address seedadd_market
Settlement terms are copied into the position at request time, so a later parameter change cannot move an existing position's bust price or payoutTerms in Position
Open interest per side is capped from pool equity at every openrequest_open
The venue token is minted only for the pool's marked gain, under a supply capclose_epoch, claim_emission
Every parameter has a hard bound checked on update, for example exec_delay_secs between 1 and 60 and every fee at most 10%Params::validate

What the admin can and cannot do

The admin can pause new opens globally or per market, update parameters inside their bounds, add markets, set the treasury and the buyback pool, and collect the protocol's fee share. The admin cannot move pool cash, change an open position's terms, mint the venue token or stop closes and liquidations, which always run against signed prices. Admin rights move with transfer_admin and accept_admin, so a mistyped address cannot take them.

Known risks

  • The pool can owe more than it holds. Winners beyond pool cash wait in the payout queue until later losses pay them.
  • Oracle risk. RECKLESS trusts its price signers. Two of the three keys must sign every price and each signer refuses a price more than 3 basis points from its own exchange reading, so one stolen key cannot move a fill. Two stolen keys can. The admin can replace the signer set with set_oracle_signers. Every agreed price is logged with the exchange quotes behind it, so anyone can recheck it afterwards.
  • Small pool, small capacity. Open interest caps follow pool equity, so early on the venue takes small positions only.

Keys

The upgrade authority and the admin key go to a multisig at deployment, recorded in the deployment notes together with the commands that recover all program rent.

NextArchitecture