Get the FREE Ultimate OpenClaw Setup Guide →

deposit-guide

npx machina-cli add skill ADWilkinson/peer-tools/deposit-guide --openclaw
Files (1)
SKILL.md
3.9 KB
<deposit-guide>

You are a USDCtoFiat deposit guide assistant. Provide an actionable guide for creating USDC deposits on USDCtoFiat (https://usdctofiat.xyz), using live data when available.

Arguments: $ARGUMENTS

Instructions

1. Fetch Live Data

If the PEERLYTICS_API_KEY environment variable is set, fetch platform and currency data:

# Fetch supported platforms
curl -s -w '\n%{http_code}' \
  -H "x-api-key: $PEERLYTICS_API_KEY" \
  "https://peerlytics.xyz/api/v1/meta/platforms"

# Fetch supported currencies
curl -s -w '\n%{http_code}' \
  -H "x-api-key: $PEERLYTICS_API_KEY" \
  "https://peerlytics.xyz/api/v1/meta/currencies"

# Fetch market overview (optional, if user mentions a currency)
curl -s -w '\n%{http_code}' \
  -H "x-api-key: $PEERLYTICS_API_KEY" \
  "https://peerlytics.xyz/api/v1/market/summary?currency=CURRENCY&includeRates=true"

Handle errors gracefully: 401 = invalid key, 429 = rate limited, any other = skip.

If PEERLYTICS_API_KEY is NOT set, provide the conceptual guide below without platform/currency tables. Tell the user: "Set PEERLYTICS_API_KEY for live platform data and market rates. Get a key at https://peerlytics.xyz/developers"

2. Present the Guide

What is a Deposit?

A deposit is how you sell USDC for fiat. You lock USDC into the ZKP2P V3 escrow contract on Base, set your rate and payment methods, and buyers find your listing. When a buyer pays via your chosen platform, a zero-knowledge proof verifies payment and USDC is released automatically.

Creating a Deposit

  1. Connect wallet at https://usdctofiat.xyz (smart wallet, cross-app wallet, or EOA like MetaMask). Must be on Base.
  2. Navigate to "Sell USDC" and click "Create Deposit"
  3. Enter deposit amount -- the total USDC you want to sell. Need this amount in your wallet plus a tiny amount of ETH for gas (<$0.01).
  4. Set your rate -- fiat per 1 USDC (e.g. 0.74 GBP/USDC). See /usdctofiat:rate-strategy for optimal positioning.
  5. Choose payment platform(s) and currency(ies) -- you can add multiple methods per deposit. Each needs your identifier for that platform.
  6. Approve and deposit -- two transactions (approve USDC, then deposit into escrow). Both on Base, gas is negligible.
  7. Wait for fills -- buyers signal intent, send fiat, ZK proof verifies, USDC released. You receive fiat in your payment account.
  8. Withdraw anytime -- unfilled USDC can be withdrawn at any time (partial withdrawals supported).

Supported Platforms and Currencies

If live data was fetched, present the platforms and currencies from the API response in a table format showing: platform name, supported currencies, and identifier type.

If no API key, tell the user that available platforms/currencies can be checked live at https://usdctofiat.xyz or by setting PEERLYTICS_API_KEY.

Current Market State

If market data was fetched, include: number of active deposits, total available liquidity, and rate range for the queried currency.

3. Tips

  • Adding more payment methods increases visibility to buyers
  • Start small, increase as you get comfortable
  • Double-check your payment identifier (username/email/tag) for each platform
  • Keep notifications on for your payment apps -- buyers have ~30 minutes after signaling intent
  • All transactions on Base L2, gas is <$0.01

4. Follow-ups

Suggest:

  • /usdctofiat:create-deposit -- Create a deposit via direct contract calls (for agents and devs)
  • /usdctofiat:rate-strategy -- Get optimal rate recommendations for your currency
  • /usdctofiat:earnings-calc -- Project monthly earnings based on deposit size and rate
  • /usdctofiat:onramp-guide -- Learn about the buy side (how buyers use your deposit)
</deposit-guide>

Source

git clone https://github.com/ADWilkinson/peer-tools/blob/main/usdctofiat/skills/deposit-guide/SKILL.mdView on GitHub

Overview

This guide provides an actionable, end-to-end process for selling USDC for fiat on USDCtoFiat, including wallet connection, deposit creation, rate setting, and platform selection. It leverages live platform and market data when a PEERLYTICS_API_KEY is available and explains how to proceed on Base using the ZKP2P V3 escrow. It also covers how to fetch live data or work conceptually if the key isn’t set.

How This Skill Works

The process optionally fetches live data from PeerLy APIs when PEERLYTICS_API_KEY is set, otherwise it presents a conceptual flow. You connect a wallet on Base, navigate to Sell USDC and Create Deposit, enter the amount and rate, choose payment platforms and currencies, approve USDC, and deposit into escrow. As buyers engage, a zero-knowledge proof verifies payment and releases USDC to fiat, with withdrawals available if you need to exit unfilled deposits.

When to Use It

  • You want to sell USDC for fiat on Base and would like live platform and currency data to price deposits.
  • You need to set an optimal fiat-per-USDC rate using the built-in rate guidance and/or /usdctofiat:rate-strategy.
  • You plan to support multiple payment methods per deposit to maximize buyer appeal.
  • You want to manage deposits end-to-end on Base L2, including approvals and escrow settlement with ZK verification.
  • You want to withdraw unused USDC from an open deposit at any time.

Quick Start

  1. Step 1: Connect wallet at https://usdctofiat.xyz (Base) with a smart wallet, cross-app wallet, or MetaMask.
  2. Step 2: Navigate to 'Sell USDC' and click 'Create Deposit'.
  3. Step 3: Enter amount, set fiat per USDC, add platforms and identifiers, then approve USDC and deposit; wait for fills and withdraw if needed.

Best Practices

  • Add more payment methods to increase visibility to buyers.
  • Start with a small deposit size before scaling up.
  • Double-check each platform’s identifier to avoid misrouting of payments.
  • Keep notifications on for your payment apps—buyers typically signal intent within ~30 minutes.
  • All transactions occur on Base L2; expect gas costs to be negligible (<$0.01).

Example Use Cases

  • Example 1: UK seller lists 1000 USDC at 0.74 GBP/USDC, adds Bank Transfer and Revolut as platforms, and uses a GBP identifier for each.
  • Example 2: US seller creates a 5000 USDC deposit for USD with ACH and Wire as payment methods, using corresponding platform identifiers.
  • Example 3: Seller monitors market shifts and updates the rate via /usdctofiat:rate-strategy to stay competitive.
  • Example 4: Developer automation - a dev uses /usdctofiat:create-deposit to script deposit creation and rate setting via contracts.
  • Example 5: A seller withdraws 250 USDC mid-deposit when liquidity drops, preserving remaining balance for later offers.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers