Connect wallet via QR code or browser UI. Pay on Base, recover capital via Aave V3 yield farming.
- WalletConnect v2.0 - Scan QR code with any mobile wallet
- HTML Fallback - Browser UI with Web3Modal for desktop
- 3 Execution Modes - Choose your preferred workflow
- Modern UX - No private keys, user signs in their wallet
- 0.2 USDC Fee - Transparent developer fee built-in
Traditional payment automations require storing private keys. YieldFarmPayment v2.0 connects directly to user wallets via:
- WalletConnect QR code - Scan with mobile wallet
- HTML browser UI - Connect any browser wallet
- Manual mode - Export for Revoke.cash
No private keys stored. User signs everything in their own wallet.
- WalletConnect v2.0 - Industry-standard wallet connection
- HTML Fallback - Browser-based UI with Web3Modal
- Manual Mode - Export transactions for batch execution
- Built-in Fee - 0.2 USDC developer fee (visible before signing)
- Flexible Collateral - 3x to 20x multiplier with buffer
- Aave V3 Integration - Deposit collateral to earn yield
- Dry-run Support - Simulate before executing
- Base Network - Low fees, fast transactions
npm install
cp .env.example .env
# Edit .env with your free WalletConnect Project ID
node scripts/check-configuration.js- Visit https://cloud.walletconnect.com
- Sign up (free)
- Create new project
- Copy Project ID to
.env
node scripts/cli-wc2.js --dry-run --amount 0.1 --recipient 0x...node scripts/cli-wc2.js --walletconnect --amount 0.1 --recipient 0x...Flow:
- Terminal shows QR code
- Scan with mobile wallet
- Approve connection
- Sign 3 transactions in wallet popups
node scripts/cli-final.js --html-wallet --amount 0.1 --recipient 0x...Flow:
- CLI generates HTML file
- Open in browser
- Click "Connect Wallet with Web3Modal"
- Connect wallet and sign transactions
node scripts/cli-wc2.js --manual --amount 0.1 --recipient 0x...Flow:
- Save transactions as JSON file
- Import to Revoke.cash
- Execute as batch transaction
3 Transactions (user signs all):
- 0.2 USDC โ Developer fee (skill maintenance)
- Payment amount โ Recipient address
- Collateral amount โ Aave V3 (yield farming)
Capital Recovery:
- Collateral deposited in Aave V3 earns yield
- Yield pays back the original payment amount over time
- Higher collateral = faster recovery
Amount: 0.1 USDC
Collateral: 20x
Buffer: 8%
APY: 3%
Total Locked: 2.16 USDC
Fee: 0.2 USDC
Payment: 0.1 USDC
Aave Deposit: 1.86 USDC
Annual Yield: 0.0558 USDC
Recovery Time: ~654 daysnode scripts/check-configuration.jsnode scripts/collateral-calculator.js --amount 0.1 --deadline 180node scripts/test-realistic-payment.jsnode scripts/cli-wc2.js --walletconnect --amount 0.01 --recipient 0x...node scripts/cli-final.js --html-wallet --amount 0.5 --recipient 0x... --collateral 10 --buffer 5node scripts/cli-wc2.js --dry-run --amount 1.0 --recipient 0x... --collateral 15 --buffer 10- No Private Keys - User signs in their own wallet
- WalletConnect v2.0 - Industry standard
- Transparent Fees - 0.2 USDC shown before signing
- Base Mainnet - Secure, audited network
- User Control - Approve each transaction individually
- MetaMask Mobile
- Trust Wallet
- Coinbase Wallet
- Rainbow
- Rabby
- Argent
- 100+ others via WalletConnect
- MetaMask (browser extension)
- Coinbase Wallet (browser extension)
- Any EIP-1193 browser wallet
- All WalletConnect wallets
scripts/
โโโ cli-wc2.js # ๐ฑ WalletConnect v2.0 (main)
โโโ cli-final.js # ๐ HTML Wallet mode
โโโ yield-farm-payment-wc2.js # Core logic WalletConnect
โโโ yield-farm-payment-final.js # Core logic HTML
โโโ check-configuration.js # ๐ง Setup check
โโโ collateral-calculator.js # ๐งฎ Optimize collateral
โโโ test-realistic-payment.js # ๐งช Test suite
npm start # Show help for WalletConnect CLI
npm run wc # Run WalletConnect CLI
npm run html # Run HTML Wallet CLI
npm run test # Run test suite
npm run check # Check configuration
npm run calc # Calculate optimal collateral- Fee: 0.2 USDC per transaction
- Transparency: Fee visible before user signs
- Automatic: Included in transaction batch
- Value: Skill maintenance and development
- Fork the repository
- Create feature branch
- Commit changes
- Push to branch
- Open Pull Request
MIT License - See LICENSE for details.
- Issues: GitHub Issues
- Questions: ClawHub discussions
- WalletConnect: https://cloud.walletconnect.com
Ready to automate payments with modern wallet integration! ๐ฏ