Starknet
Funding Rate Desk
Trade synthetic funding-rate positions on Starknet with locked USDC collateral.
Source private
ArchitecturePrivate source
Funding Rate Desk
01Lock USDC
02Long or short funding
03Track rate
04Close
05Settle P&L
CairoNext.jsstarknet-reactRechartsExtended API
Overview
A non-custodial Cairo contract where users lock USDC and go long or short the funding rate itself. P&L comes from the difference between entry and exit funding rates on a notional size. A Next.js desk shows markets, live funding data and a portfolio summary.
What I built
- Position, funding and P&L maths in Cairo, with documented profit and loss scenarios
- Market and funding-rate API routes feeding a trading panel and funding charts
- Full contract documentation: terminology, data structures, inputs and outputs, constants and security features
How it flows
ArchitecturePrivate source
Funding Rate Desk
01Lock USDC
02Long or short funding
03Track rate
04Close
05Settle P&L
CairoNext.jsstarknet-reactRechartsExtended API