Opus finding
Misleading P&L estimation in PolymarketEnvironment: cost basis hardcoded at $0.50/share
mediumbughigh
- backend/wonderwall/simulations/polymarket/environment.py:35-52
The cost basis is hardcoded to $0.50/share regardless of the actual entry price. The text shown to the LLM ("P&L: +1.20", "IN PROFIT — consider selling") is therefore false data. An agent reading this prompt will make trading decisions based on fabricated profit signals. The `trade` table has the real prices; this should query them.
Recommendation
Query the trade table for the user's actual average entry price, or store cost basis on the position row. At minimum, remove the fake P&L flags rather than showing misleading numbers to the LLM.