Split USDC into outcome positions
Splitting collateral produces a pair of ERC-1155 outcome tokens that represent the possible answers to a market question. On Polygon Amoy, this flow mirrors production so you can rehearse every allowance and signature step before promoting to mainnet.Prerequisites
- Hold testnet USDC on Amoy. You can mint from the official faucet.
- Approve the ConditionalTokens contract for the total amount you plan to split.
- Know the
conditionIdand the integer index set for the outcome you want to mint.
Contract call
CallsplitPosition(collateralToken, conditionId, partition, amount) where:
collateralTokenis Amoy USDC.conditionIdis the 32-byte identifier you created via the oracle.partitionis[1, 2]for binary markets (yes/no). Multisided markets should pass more index sets.amountis the collateral (in wei) to convert.
positionId. These balances can be deposited into the Forkast CLOB or pooled inside an FPMM.
Operational tips
- Always log the
ConditionCreatedandPositionSplitevents emitted on Amoy so your backend remains in lockstep with on-chain IDs. - When batching multiple splits, increment allowances rather than re-approving for every call; Polygon gas costs favor fewer approvals.
- Splitting is reversible: you can
mergePositionsat any time before resolution to recover the original collateral 1:1 (minus gas).