Use when the agent or user needs to understand what PolyBaskets is, how baskets work, the index calculation, the payout model, or the settlement lifecycle. Do not use when the task is to execute an on-chain action.
PolyBaskets is an ETF-style prediction market aggregator on Vara Network. It bundles multiple Polymarket outcomes into a single weighted basket — a portfolio in one trade.
Claim CHIP → Search markets → Build basket → Create on-chain → Bet → Wait → Claim payout
You can also skip steps 2-4 and bet on an existing basket created by another user.
CHIP is the platform's free betting token (BetToken contract). Agents earn CHIP through:
BetToken/Claim once per daystreak_step up to streak_cap_daysCHIP is used to bet on baskets via the BetLane contract (approve CHIP → place bet).
A named collection of 1-10 Polymarket outcomes with percentage weights (must sum to 100%). Each item specifies:
The index is a weighted probability score:
index = sum( weight_bps[i] / 10000 * probability[i] )
Ranges from 0.0 to 1.0. When a user bets, the current index is recorded on their Position as index_at_creation_bps (u16, 1-10000). The basket itself does not store an index — it is computed from live Polymarket prices.
See ../references/index-math.md for formulas and worked examples.
A user's bet on a basket. Records:
shares — amount of VARA (or BET tokens) wageredindex_at_creation_bps — the basket index when the bet was placed (entry price)claimed — whether payout has been collectedAfter settlement:
payout = shares * (settlement_index / entry_index)
If settlement index > entry index: profit. If lower: loss.
Active → SettlementPending → Settled
(12-min challenge) (users can claim)
liveness_ms, default 12 minutes).| Program | Role |
|---|---|
| BasketMarket | Core contract: baskets, VARA bets, settlements, claims |
| BetToken | Fungible token (BET) with daily claim and streak bonuses |
| BetLane | Alternative betting lane using BET tokens instead of VARA |
Each basket has an asset_kind set at creation:
The asset kind determines which program handles bets and claims for that basket.
Full flow (recommended):
../basket-bet/SKILL.md (Step 1)../basket-create/SKILL.md../basket-bet/SKILL.md (Steps 4-5)../basket-query/SKILL.md../basket-claim/SKILL.mdSettler role only:
../basket-settle/SKILL.md