Skip to content

Add Jupiter Tracker #1240

@premiumjibles

Description

@premiumjibles

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.ts tracker 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

  1. Jupiter API documentation
  2. How ShapeShift tracks affiliate fees on Jupiter swaps
  3. Whether there's a referrer/partner program with queryable history

Reference

  • Main app Jupiter integration: packages/swapper/src/swappers/JupiterSwapper/ (in shapeshift/web repo)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions