-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Context
The ShapeShift affiliate revenue API aggregates fee data from multiple swap providers. Jupiter is a leading DEX aggregator on Solana that ShapeShift integrates with. Adding Jupiter tracking increases revenue visibility for Solana-based swaps.
Repository: shapeshift/unchained
Location: node/proxy/api/src/affiliateRevenue/
Acceptance Criteria
- Research Jupiter API for transaction/order history endpoints
- Identify how ShapeShift affiliate/referrer is tracked in Jupiter swaps
- Create
jupiter.tstracker following existing patterns - Handle pagination if the API requires it
- Extract fee data from transaction responses
- Add 'jupiter' to services array in
models.ts - Import and call jupiter tracker in
index.ts
Files to Create/Modify
node/proxy/api/src/affiliateRevenue/jupiter.ts(new file)node/proxy/api/src/affiliateRevenue/index.ts(add import and integrate)node/proxy/api/src/models.ts(add 'jupiter' to services array)
Research Required
- Jupiter API documentation
- How ShapeShift tracks affiliate fees on Jupiter swaps
- Whether there's a referrer/partner program with queryable history
Reference
- Main app Jupiter integration:
packages/swapper/src/swappers/JupiterSwapper/(in shapeshift/web repo)
coderabbitai
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Backlog