polymarket/p2p-leverage-bitcoin-usdc-deposit/SKILL.md
This skill will allow you to deposit 73% of your cash into Polymarket, on Base, with Bitcoin Leverage. Use any supported Payment app on Peer.
npx skillsauth add serenorg/seren-skills p2p-leverage-bitcoin-usdc-depositInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Skill instructions are preloaded in context when this skill is active. Do not perform filesystem searches or tool-driven exploration to rediscover them; use the guidance below directly.
Converts a cash deposit into a leveraged Bitcoin position that funds a Polymarket trading account. The user keeps long BTC exposure via Aave V3 collateral while deploying borrowed USDC to Polymarket on Polygon.
Cash ($200 via any payment app)
│
▼ ① ZKP2P peer-onramp (fiat → USDC on Base)
USDC on Base
│
▼ ② DEX swap (lowest-spread: Aerodrome or Uniswap V3)
cbBTC on Base
│
▼ ③ Aave V3 Base — supply cbBTC (73% LTV)
│
▼ ④ Aave V3 Base — borrow max USDC
USDC on Base
│
▼ ⑤ Stargate V2 / LayerZero OFT bridge (Base → Polygon)
USDC on Polygon
│
▼ ⑥ Polymarket wallet funded
| Step | In | Out | |---|---|---| | ① Onramp | $200 cash | ~200 USDC (Base) | | ② Swap | 200 USDC | ~0.003 cbBTC | | ③④ Aave | 0.003 cbBTC | ~$146 USDC borrowed | | ⑤ Bridge | 146 USDC (Base) | ~146 USDC (Polygon) | | ⑥ Funded | — | Polymarket ready |
Net position: Long ~0.003 BTC in Aave vault + ~$146 on Polymarket. Liquidation if BTC drops ~14.4% from entry.
The words exit, close, unwind, repay, and stop are immediate operator instructions. When the user issues any of these, the agent must:
Before executing any live transaction the agent must:
POLYMARKET_PRIVATE_KEY is set and derives a valid addressdeposit_amount_usdseren-base publisher (eth_chainId == 0x2105)max_slippage_bpsAll dependencies are validated at startup. If any are missing the agent prints a diagnostic and exits non-zero.
POLYMARKET_PRIVATE_KEY — wallet private key (never logged)SEREN_API_KEY — Seren gateway API keyseren-base publisher — Base mainnet JSON-RPCseren-polygon publisher — Polygon mainnet JSON-RPC (for balance confirmation)Default mode is dry-run. The agent simulates the full pipeline (quotes, gas estimates, bridge fees) without broadcasting transactions.
To execute live:
python scripts/agent.py --config config.json --yes-live
The --yes-live flag is the single live gate. Without it, no transaction is signed or broadcast.
python scripts/agent.py stop --config config.json --yes-live
This will:
When this skill is invoked, immediately run:
python scripts/agent.py --config config.json
| Contract | Address |
|---|---|
| Aave V3 Pool | 0xA238Dd80C259a72e81d7e4664a9801593F98d1c5 |
| Aave V3 PoolDataProvider | 0x2d8A3C5677189723C4cB8873CfC9C8976FDF38Ac |
| cbBTC | 0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf |
| USDC (Base) | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| Stargate USDC Pool (Base) | Resolved at setup via Stargate Router |
| Aerodrome Router | 0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43 |
| Contract | Address |
|---|---|
| USDC.e (Polygon) | 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 |
| LayerZero Endpoint V2 | 0x1a44076050125825900e736c501f859c50fE728c |
| Chain | Endpoint ID | |---|---| | Base | 30184 | | Polygon | 30109 |
| Variable | Required | Description |
| --- | --- | --- |
| POLYMARKET_WALLET_ADDRESS | Yes | Your Polymarket wallet address on Base/Polygon |
| POLYMARKET_PRIVATE_KEY | Yes | Private key for the wallet above (never logged or committed) |
| Variable | Required | Description |
| --- | --- | --- |
| SEREN_API_KEY | Yes | Seren API key — get from Seren Desktop or https://serendb.com |
These are required for Step 1 (fiat deposit). Full onramp instructions at peer-onramp SKILL.md.
| Variable | Required | How to Get |
| --- | --- | --- |
| PRIVATE_KEY | Yes | Base wallet private key (use same as POLYMARKET_PRIVATE_KEY) |
| WISE_API_TOKEN | For Wise | Log in to wise.com → Settings → API tokens → Create a personal token (recommended — 100% autonomous) |
| VENMO_COOKIES | For Venmo | Log in to Venmo in your browser → extract api_access_token, v_id, login cookies via DevTools (80% autonomous) |
| PAYPAL_CLIENT_ID | For PayPal | Create app at developer.paypal.com → copy Client ID (100% autonomous) |
| PAYPAL_CLIENT_SECRET | For PayPal | Same PayPal app → copy Secret |
Payment app autonomy (from peer-onramp):
| Platform | Agent Autonomy | Auth Setup | | --- | --- | --- | | Wise | 100% | API token from settings — no 2FA needed | | PayPal Business | 100% | OAuth client ID + secret | | Venmo | 80% | One-time cookie export from browser | | Revolut Business | 70% | Device trust setup needed | | CashApp | 20% | Human sends payment, agent proves + fulfills | | Zelle | 20% | Human sends payment, agent proves + fulfills |
The onramp runs 6 steps (all handled by the peer-onramp skill):
@reclaimprotocol/attestor-coreSetup: npm install @zkp2p/sdk @reclaimprotocol/attestor-core @zkp2p/providers viem
| Component | Estimated Cost | |---|---| | ZKP2P onramp fee | ~0.1-0.5% of deposit | | DEX swap fee | ~0.05-0.3% (pool fee + slippage) | | Aave V3 supply+borrow gas | < $0.01 on Base | | Stargate bridge fee | ~$0.10-0.50 (LayerZero message fee) | | Total overhead | ~$0.50-2.00 on a $200 deposit |
testing
Review-first outreach skill for the default Seren Bucks affiliate program. It bootstraps affiliate context via /programs/discover, mines sent-mail history and address books for candidates, persists them into a skill-owned CRM, proposes an editable daily top-10, drafts outbound and reply batches for approval, reconciles affiliate and reply signals, enforces hard DNC, and returns a manual daily digest.
data-ai
Lean partner-link distribution skill for the seren-affiliates publisher program portfolio. Operates one publisher program per run. Bootstraps the affiliate profile (registering on first run), caches joined programs in serendb, ingests contacts from a pasted list or from Gmail/Outlook address books, drafts a pitch once per run via seren-models for operator approval, sends approved copy through Gmail (preferred) or Microsoft Outlook, enforces per-program dedupe plus a global unsubscribe list, and reports local plus live conversion and commission stats from seren-affiliates.
development
Family office: Process an incoming GP capital call notice end-to-end — confirm, fund, log, reconcile.
development
Work with Seren Bounty affiliate bounties: customers create and fund verifier-backed bounties; agents join to receive a referral_code and accrue earnings as qualifying events are verified; a release sweep pays matured earnings out of escrow.