-
Get the conditionId
- Function:
getConditionId(oracle, questionId, outcomeSlotCount)
- Inputs:
oracle
: address - UMA adapter V2questionId
: bytes32 - hash of the UMA ancillary dataoutcomeSlotCount
: uint - 2 for binary markets
- Function:
-
Get the two collectionIds
- Function:
getCollectionId(parentCollectionId, conditionId, indexSet)
- Inputs:
parentCollectionId
: bytes32 - bytes32(0)conditionId
: bytes32 - the conditionId derived from (1)indexSet
: uint - 1 (0b01) for the first and 2 (0b10) for the second.
- Function:
-
Get the two positionIds
- Function:
getPositionId(collateralToken, collectionId)
- Inputs:
collateralToken
: IERC20 - address of ERC20 token collateral (USDC)collectionId
: bytes32 - the two collectionIds derived from (3)
- Function: