396ea745b2
- Rescraped 97 empty/stale files across all sections (developers/, polymarket-learn/, quickstart/, changelog, resources/) - All files now contain actual content fetched from docs.polymarket.com
2.4 KiB
2.4 KiB
Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt Use this file to discover all available pages before exploring further.
Split Tokens
Convert pUSD into outcome token pairs
Splitting converts pUSD collateral into a full (position) set of outcome tokens. For every $1 pUSD you split, you receive 1 Yes token and 1 No token.
$100 pUSD → 100 Yes tokens + 100 No tokens
Prerequisites
Before splitting, ensure you have:
- pUSD balance on Polygon
- pUSD approval for the CTF collateral adapter to spend your tokens
- Condition ID of the market — the condition must already be prepared on the CTF contract (via
prepareCondition)
How It Works
- You approve the CTF collateral adapter to spend your pUSD
- You call the adapter's split flow with the amount and market details
- The adapter calls the underlying CTF contract and mints both outcome tokens
The operation is atomic — if any step fails, the entire transaction reverts.