Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

vs package

Overview

Package vs is Mimir's VS (duel) market, settled by an AI oracle: the gno.land port of contracts/MimirV3Erc20.sol. Stakes are mUSD.

A creator opens a claim with a stake on their position. Challengers take the other side, each once, up to the claim's maxChallengers (at most 100):

  • pool odds: challengers share the creator's stake pro rata, and together may stake at most MaxPoolMultiple times the creator's stake;
  • fixed odds: each challenger is paid challengerPayoutBps of their stake (2x by default, at most 10x), and the creator's unreserved stake must cover every challenger's profit when they join.

After the deadline the oracle proposes CREATOR, CHALLENGERS, DRAW or UNRESOLVABLE with a confidence and the hash of its evidence. A participant may dispute within the dispute window by posting DisputeBond; the arbiter rules. An undisputed proposal is finalized by anyone. Settlement pays every participant in the same transaction. Draws, unresolvable questions and claims nobody challenged before the cutoff refund every stake.

Fees: an entry fee on every stake that opens or joins a claim (fees.EntryBps, 0.5% by default), kept on refunds. No fee on winnings, except copy trades: ReferrerFeeBps of the profit to the referrer and CopyFeeBps to the platform.

Private claims: only wallets the creator invites may challenge. Market data and transactions stay public.

Differences from the EVM contract come from the transport, as in the pool realm: mUSD with an approve in the same transaction (no permit variants), payouts sent directly (mUSD cannot refuse or re-enter), block-time seconds. SetInvited takes a comma-separated address list.

Function

ClaimJSON

func ClaimJSON(id int64) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.ClaimJSON()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs, for example a function call with arguments.