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.1 KiB
2.1 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.
Merge Tokens
Convert outcome token pairs back to USDC.e
Merging is the inverse of splitting — it converts a full set of outcome tokens back into USDC.e collateral. For every 1 Yes token and 1 No token you merge, you receive $1 USDC.e. The condition must already be prepared on the CTF contract (via prepareCondition).
100 Yes tokens + 100 No tokens → $100 USDC.e
Prerequisites
Before merging, you need:
- Equal amounts of both Yes and No tokens
- Condition ID of the market
- Sufficient gas for the transaction
How It Works
- You call
mergePositions()with the amount and market details - One unit of each position in a full set is burned in return for 1 collateral unit
- The CTF contract releases USDC.e back to your wallet
The operation is atomic — if you don't have enough of both tokens, the transaction reverts.