vscodeAMM Market

Automated Market Makers (AMMs Market )

Our prediction markets support Automated Market Makers (AMMs) based on the Constant Product Model (x * y = k) to enable decentralized trading of binary outcomes (e.g., "Yes/No" or "For/Against"). Each market has two outcome Shares (e.g., YES and NO), and the AMM pool holds reserves of both. The product of the reserves (YES_reserves * NO_reserves = k) remains constant, ensuring liquidity.

1. Buying Outcome Shares

Step 1: Split collateral (e.g., USDC) into equal amount of both outcome Shares (1:1 ratio). Example: $10 USDC → 10 YES + 10 NO. Step 2: Swap the unwanted outcome Shares (e.g., NO) for the desired Shares (YES) via the AMM pool. Final Amount: The sum of the desired tokens splitted + tokens bought from the swap = total YES tokens purchased.

2. Selling Outcome Shares

Step 1: Swap a portion of the held Shares (e.g., YES) for the complementary outcome (NO) in the AMM pool. Step 2: Merge the remaining held Shares (YES) and the newly acquired NO Shares back into USDC (1:1).


circle-exclamation

Tips | Important Notice :

Last updated