Non-production prototype
These contracts are unaudited. The configured treasury currently has no contract code, so real-money betting and LP deposits are not operational. Do not deposit; check the current deployment status before any interaction.
Pricing & the Multiplier
Polypar treats each selected Polymarket outcome price as a probability. The current quote service takes fresh Gamma outcome-price snapshots for the vault's stored legs and combines them with fixed-point integer arithmetic.
From leg prices to entry price
For leg prices price₁ … priceₙ:
- Combined probability:
combinedProbability = Π priceᵢ - Fair multiplier before margin:
1 / combinedProbability - Primed price:
combinedProbability × (10,000 + primeBps) / 10,000 - Entry price: the greater of that primed price and the vault's
minSharePrice - Nominal locked multiplier:
1 / entryPrice
primeBps is one aggregate on-chain adjustment to the combined probability, not a separate charge per leg. minSharePrice sets a price floor and therefore a multiplier cap. The contract rejects an entry price at or above 1.0.
All contract calculations use integers scaled by 10¹⁸. Multiplication, division, share minting, and display formatting can round down or round for presentation, so the final base-unit result may differ slightly from a decimal calculator.
Two-leg example
Suppose one leg is priced at 0.60 and another at 0.50:
- Combined probability:
0.60 × 0.50 = 0.30 - Fair multiplier:
1 / 0.30 = 3.333…× - With
primeBps = 500(5%) and a non-binding floor: entry price0.30 × 1.05 = 0.315 - Nominal multiplier:
1 / 0.315 ≈ 3.1746× - A
$10stake would mint approximately$31.74of share-denominated nominal claim after integer rounding
That last number is not an assured cash payout. A winning redemption depends on the vault's actual balance and can be pro-rata after a treasury shortfall.
The 30-second signed quote
The displayed board can move between selection and submission. After any necessary USDC.e approval confirms, the backend reprices one vault and rejects the request if the multiplier has fallen below the user's accepted multiplier.
If accepted, the price signer issues a single-use, vault-specific EIP-712 quote valid for 30 seconds:
PriceQuote(uint256 combinedProbWad,uint256 validUntil,uint256 nonce)
The wallet then submits those fields and the signature to depositWithQuote. The vault verifies the current factory signer, expiry, unused nonce, cap, deadline, and entry-price rules before minting shares. An expired or moved quote must be requested again.
Margin and gas are different
The pricing margin is embedded in the share entry price. The contract does not transfer a separate protocol fee during deposit. Polygon gas is a separate wallet cost paid in the network's native token. primeBps by itself does not ensure a positive house return, a bettor return, or adequate treasury funds.
Next: follow the transaction order in Place a Parlay, then see how nominal claims become actual redemptions in Payouts & Margin.