Prediction Market Position Closer
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Prediction Market Position Closer is a non-custodial tool that settles or closes positions in prediction markets after market resolution, claiming winnings or recovering remaining collateral. It reads prediction market contract state, user address, token balances, market parameters, market ID, outcome IDs, position amount, market status, resolution time, user's position history, position status, settlement status, claimed amount, claim eligibility, user's claimed history, and withdrawal state to structure the optimal closure operation. With a single transaction, it calls closePosition(), settlePosition(), or executeMarketClosure() on the target contract, settling the position and transferring the winnings or remaining collateral to the user. The tool handles various settlement scenarios including winning positions, losing positions, and partial closures.
HOW TO USE
1. Connect your wallet (EVM-compatible).
2. Paste the prediction market contract address.
3. Enter the market ID and outcome ID for your position.
4. Optionally specify a close amount (leave blank for full position).
5. Optionally specify a collateral token address (leave empty for native currency).
6. Review the market status, settlement status, claim eligibility, and estimated claim.
7. Click "close position" and confirm the transaction in your wallet.
The tool checks market status, settlement status, and claim eligibility before execution to prevent failed transactions. After the transaction confirms, your position is settled—no centralized custody, no intermediaries. Winnings are transferred to your wallet, or remaining collateral is returned.
TECHNICAL MECHANISM: MULTI-FUNCTION FALLBACK WITH ELIGIBILITY VERIFICATION
Unlike simple transaction builders that assume a single function signature, this tool implements a multi-function fallback strategy. It first attempts closePosition(), then falls back to settlePosition() or executeMarketClosure() if the primary method fails—automatically adapting to different contract implementations without requiring the user to know the exact function name. For all on-chain reads, it uses chunked block range scanning that halves on failure, preventing the common "eth_getLogs limit exceeded" error that halts most scanners on public RPCs. It double-verifies closure eligibility by checking both the current market status and settlement status from storage, rather than relying on historical events—because an event log proves a position was opened, not that it can currently be settled. Gas estimation uses receipt.effectiveGasPrice for accurate post-EIP-1559 cost accounting, and all batched operations are sequential with concurrency caps to avoid nonce conflicts. The tool also validates that the market has resolved and that the position is eligible for closure before execution.
WHAT IT CANNOT SEE
This tool cannot verify that the prediction market contract is legitimate or has not been compromised. It cannot detect if the market has been manipulated. It cannot ensure that closure will execute at the optimal gas price due to network conditions. It cannot guarantee that closure will succeed if the market contract is paused or frozen. It cannot verify that the contract has not been upgraded or modified. It cannot detect if the trade path is optimal or not front-run. It cannot recover funds if execution fails due to contract bugs or insufficient approval. It cannot verify that the settlement amount is correct or not. It cannot predict market movements, price gaps, or flash crashes. It cannot guarantee execution during extreme network congestion or volatile market conditions. It cannot detect if the underlying oracle has been compromised. It cannot prevent the user from canceling or modifying closure parameters. It cannot ensure that the market has resolved correctly. It cannot protect against loss if settlement is processed incorrectly. It cannot verify that the position is eligible for closure. It cannot guarantee that winnings will be distributed correctly. It cannot ensure that the claimed amount will match expectations.
PLEASE NOTE
This tool operates only on EVM-compatible chains (Ethereum Mainnet, Polygon, Arbitrum, Optimism, etc.). It is non-custodial—you retain full control of your funds at all times. Always verify contract addresses, market IDs, and closure parameters before executing. Positions can only be closed after market resolution. Claim amounts depend on market outcomes and may vary. The tool is provided as-is; use at your own risk.