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)
If the partition is trivial, invalid, or refers to more slots than the
condition is prepared with, the transaction will revert.
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
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 markets (Yes = 1, No = 2)The amount of collateral or stake to split. Also the number of full sets to
receive.