Request Body
Prediction market contract address.
Amount of base tokens to deposit (e.g.,
"50000000" = 50 USDC).Minimum LP tokens to receive. Reverts if actual LP tokens minted are below this. Protects against unfavorable pool ratios.
Unix timestamp. Transaction reverts if not executed before this time.
Signed ERC-4337 UserOperation. See Buy Tokens for full UserOperation field documentation.
Example
Response
UserOperation hash for the liquidity deposit transaction.
How Liquidity Works
The APMM pool uses deposited liquidity to facilitate trades. When users buy or sell outcome tokens, the pool adjusts prices algorithmically.| Aspect | Detail |
|---|---|
| Fee share | LP providers earn a pro-rata share of trading fees |
| Impermanent loss | Possible if market prices move significantly |
| Withdrawal | LP tokens can be redeemed via Remove Liquidity |
| Settlement | After market settles, remaining liquidity is returned to LPs |
Liquidity can only be added to markets in
running status. Adding liquidity to settled markets is not supported.
