Learn about the three matching scenarios in the CTF Exchange - NORMAL, MINT, and MERGE
The CTFExchange supports three different matching scenarios that enable efficient trading and liquidity provision for binary outcome tokens. Each scenario handles different combinations of buy and sell orders.
Before diving into the scenarios, let’s define the asset types used:
A - ERC1155 outcome token
A' - ERC1155 outcome token, complement of A
C - ERC20 collateral token (e.g., USDC)
Complements assumes 1 outcome token and 1 of its complement can always be merged into 1 unit of collateral and 1 unit of collateral can always be split into 1 outcome token and 1 of its complement (i.e., A + A' = C).Outcome tokens and collateral have the same decimals/base unit.
The NORMAL scenario matches a buy order against a sell order for the same outcome token. This is a standard exchange where tokens are transferred directly between users.
The MINT scenario matches two buy orders for complementary outcome tokens. Since both users want to buy complementary outcomes, the exchange mints new token sets from the collateral provided by both users.
The MERGE scenario matches two sell orders for complementary outcome tokens. Since both users are selling complementary outcomes, the exchange merges the tokens back into collateral and distributes it to both sellers.