Redeem resolved positions
Once a condition is resolved, holders of the winning outcome token can redeem it for collateral 1:1. Redemption is permissionless and final—after the burn, the token balance drops to zero and you receive USDC back on Polygon Amoy.Resolution requirements
Before callingredeemPositions confirm that:
- The oracle has reported the winning outcome and triggered
ConditionResolutionon-chain. - Your wallet holds the winning
positionIdbalance. - No prior redemption has been processed for the same
(owner, positionId)pair.
Contract call
partitionshould include every outcome index set. Only the winning entries are burned.winningIndexSetis the bitmask that the oracle reported. For binary markets this is either1(yes) or2(no).
Handling payouts in your app
- Subscribe to the
TransferSingleevents emitted byredeemPositionsto confirm the burn. - Update any off-chain ledger to mark the position as settled and move the funds into “available balance.”
- Use our relayer APIs if you need Forkast to submit the transaction on behalf of a user who lacks gas on Amoy.