Project: JS App to Open & Exit Pendle PT Positions via Contango
Goal: Build a small JavaScript/TypeScript app that lets me: • Open leveraged Pendle PT positions on Contango by calling the smart contracts directly (no UI fee). • Exit/close positions by fully unrolling leverage, selling PT back to USDC, and repaying debt. • Needs to support ETH mainnet
Requirements: • Use Node.js + TypeScript, with Viem or Ethers for blockchain interaction. • Load Contango contract addresses & ABIs (from repo/docs). • Support marketId resolution for Pendle PT maturities. • Functions: • Open position: approve USDC, call openPosition with margin, leverage, slippage, etc. • Exit position: close partially or fully by unwinding PT → USDC, repaying debt, and sending proceeds back to wallet. • List positions: detect CTGP NFTs in wallet, show instrument, collateral, debt. • Provide both a CLI tool and a minimal web UI for these actions. • Configurable via .env (RPC URL, private key, etc).
Deliverables: • Source code repo with CLI + minimal web UI. • Clear README with setup, usage, and how to add new PT maturities. • Basic test to confirm open + close cycle works on mainnet fork.
If you’re applying, please: • Confirm prior DeFi contract-interaction work (ideally with routers/flash-loan style flows). • Provide a small code sample (TypeScript + Viem) that reads a view function on mainnet.
AI-Generated Branded Micro Videos Category: After Effects, AI Animation, AI Content Creation, AI Generated Video, Animation, Generative AI, Graphic Design, Logo Design, Video Editing Budget: ₹1500 - ₹12500 INR