
JS App to Open & Exit Pendle PT Positions via Contango
- or -
Post a project like this14
£500(approx. $668)
- Posted:
- Proposals: 25
- Remote
- #4428524
- OPPORTUNITY
- Awarded
♛ PPH No. #1 ♛ 21Years of Experience in Web Development , Web Designing, Magento , Shopify, WordPress , API Integration, Full-Stack Ruby on Rails Developer,AngularJS / Node.js


PPH TOP Web Developer | Digital Marketing (SEO, Social Media Management, Facebook/Instagram Ads, Google Ads)|WordPress, Shopify, Wix, e-commerce, | Video Editing

Full Stack Developer/React.JS/Node.JS/ReactNative/Hybrid Apps /PHP/Wordpress/Shopify/Laravel/WebRTC/Angular/Digital Marketing
10513506122145951060637411700055161102122754552072110793378785795171982427110941223063621




Description
Experience Level: Expert
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.
Contagno app - https://app.contango.xyz/
Contagno smart contract code - https://github.com/contango-xyz/core-v2
Contagno network addresses - https://github.com/contango-xyz/core-v2/blob/main/networks.json
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.
Contagno app - https://app.contango.xyz/
Contagno smart contract code - https://github.com/contango-xyz/core-v2
Contagno network addresses - https://github.com/contango-xyz/core-v2/blob/main/networks.json

Charles H.
100% (33)Projects Completed
27
Freelancers worked with
30
Projects awarded
40%
Last project
5 Apr 2023
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies