b2a29fe51f
- Added new documentation URLs from llms.txt index - Updated TARGET.md with 244 total documentation pages - Scraped new pages for trading, concepts, and API reference sections - Updated changelog and new index pages
2.2 KiB
2.2 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 USDC.e into outcome token pairs
Splitting converts USDC.e collateral into a full (position) set of outcome tokens. For every $1 USDC.e you split, you receive 1 Yes token and 1 No token.
$100 USDC.e → 100 Yes tokens + 100 No tokens
Prerequisites
Before splitting, ensure you have:
- USDC.e balance on Polygon
- USDC.e approval for the CTF contract 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 contract to spend your USDC.e
- You call
splitPosition()with the amount and market details - The CTF contract transfers USDC.e from your wallet and mints both outcome tokens
The operation is atomic — if any step fails, the entire transaction reverts.