prepareCondition).
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
Function Parameters
USDC.e (Bridged USDC) contract address:
0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174Always
0x0000...0000 (32 zero bytes) for Polymarket marketsThe market’s condition ID, available from the Markets API
Array of index sets:
[1, 2] for binary marketsThe number of full sets to merge. Also the amount of collateral to receive.