openfinance-troubleshooting

Installation
SKILL.md

OpenFinance Troubleshooting

Error → diagnosis → fix. Check here before assuming an issue is a server-side bug: most failures are known and have been hit before.

Polymarket

POST /agent/polymarket/approvals shows max but CLOB returns allowance: 0

Root cause: approval targeted the wrong USDC contract or wrong exchange spender.

Polymarket on Polygon enforces allowance against USDC.e (0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174), not pUSD or native USDC. And orders settle on the V1 exchange (0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E), not V2 — even though the SDK is clob-client-v2. The CLOB's GET /version returns 1.

Fix: Call POST /agent/polymarket/approvals with {negRisk: true} if the market is neg-risk. The server approves USDC.e on V1 spenders. If you

Related skills

More from openfinance-tech/skills

Installs
5
GitHub Stars
2
First Seen
Apr 29, 2026