Ecosystem
Aggregator Partner Program

Aggregator Partner Program

Overview

The HX.finance Partner Program allows aggregators and DEX interfaces to provide their users with bonus HXP (HX Points) when trading or providing liquidity through their platforms. Users earn points automatically through our tracking system, with additional multipliers when using partner codes.

Key Benefits for Aggregators

How It Works

HX.finance ensures points go to actual users, not aggregator contracts. Your existing infrastructure works perfectly with zero modifications.

This means:

  • ✅ Users get points when trading through your router
  • ✅ No special integration needed
  • ✅ Points are automatically attributed correctly
  • ✅ Works with any aggregator or DEX interface

Partnership Setup

Step 1: Request Your Partner Code

Contact the HX.finance team to receive your unique partner code:

We'll configure:

  • Your partner name (e.g., "1inch", "OpenOcean", "Matcha")
  • Point multiplier (typically 2x)
  • Bonus duration (30 days, permanent, or custom)

Step 2: Share With Your Users

Share your partner link with users: https://app.hx.finance?partner=YOUR_CODE

Users click the link once to activate, then trade anywhere to earn bonus points!

Step 3: Users Trade & Earn

Once activated, users earn multiplied points on ALL activities:

  • Trading through your aggregator UI
  • Direct DEX trades
  • Liquidity provision (LP positions)
  • Other interfaces
  • All count with your multiplier!

User Activation Flow

Simple for Users: One-time activation, then trade anywhere for bonus points!

For Your Users

  1. One-Time Activation

    • Visit your partner link: https://app.hx.finance?partner=YOUR_PARTNER_CODE
    • The code will be automatically activated
  2. Trade or Provide Liquidity Anywhere

    • Use your aggregator's UI
    • Use HX.finance native interface
    • Use any other DEX
    • Provide liquidity to pools
    • All activities earn bonus points!
  3. Earn Multiplied Points

    • Trading Base: 0.01 HXP per $1 traded
    • Trading with 2x code: 0.02 HXP per $1 traded
    • LP Base: 0.24 HXP per $1 per day
    • LP with 2x code: 0.48 HXP per $1 per day
    • Minimum trade: $10

API Integration

Query user points from our subgraph:

const SUBGRAPH_URL = 
  'https://api.goldsky.com/api/public/project_cmay1j7dh90w601r2hjv26a5b/subgraphs/hx-points/2.3.3/gn';
 
async function getUserPoints(userAddress) {
  const query = `
    {
      user(id: "${userAddress.toLowerCase()}") {
        tradingPoints
        totalPointsEarned
        activePartnershipCode
      }
    }
  `;
  
  const response = await fetch(SUBGRAPH_URL, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ query })
  });
  
  return response.json();
}

Points Calculation

Base Points System

ActivityPoints RateMinimum
Trading0.01 HXP per $1$10 minimum trade
Liquidity0.24 HXP per $1 per dayNo minimum
Referrals17.5% of referred pointsNo minimum

With 2x Partner Multiplier

ActivityEnhanced Rate
Trading0.02 HXP per $1
Liquidity0.48 HXP per $1 per day
💡

All multipliers stack! Partner codes work with tier, campaign, and referral multipliers.

Verification Tools

Check User Points Script

Download our verification tool:

# Download the script
curl -O https://raw.githubusercontent.com/hxfinance/hx-docs/main/scripts/check-user-points.js
 
# Check any user's points
node check-user-points.js

Live Subgraph Endpoint

https://api.goldsky.com/api/public/project_cmay1j7dh90w601r2hjv26a5b/subgraphs/hx-points/2.3.3/gn

Frequently Asked Questions

Do users need to trade through our interface to earn the bonus?

No! Once they activate your partner code, they earn bonus points on ALL trades on HX.finance, regardless of interface. This reduces friction and increases adoption.

How does point attribution work with our router contracts?

Our subgraph automatically detects the actual user rather than your router contract. Points are always credited to the actual user.

Can users use multiple partner codes?

Users can only have one active partner code at a time. Once a code expires (after its duration, typically 30 days), users can then activate a different partner code.

How long does the partner bonus last?

This is configurable per partner:

  • 30 days from activation
  • Permanent (no expiry)
  • Custom duration based on partnership terms
Do we need to modify our smart contracts?

No modifications needed! Our system works with your existing contracts.

How can we track our partner program performance?

We provide:

  • Number of users using your code
  • Total volume generated
  • Points distributed

Technical Details

Smart Contract Addresses

ContractAddress
PointsAdminV30x80Ceff76B24e423B1E2f463850559A982b590C24
DEX Factory0x41ba59415eC75AC4242dd157F2a7A282F1e75652
Position Manager0x578D8A2D07B60b12993559f1DDF90EB2af3eA496

Subgraph Schema

type User {
  id: ID!  # User wallet address
  tradingPoints: BigDecimal!
  liquidityPoints: BigDecimal!
  totalPointsEarned: BigDecimal!
  activePartnershipCode: String
}
 
type PartnershipCode {
  id: ID!  # Code string
  partner: String!
  multiplier: BigDecimal!
  isActive: Boolean!
  usageCount: BigInt!
}

Getting Started

  1. Contact Team - Reach out via Discord, or email
  2. Get Your Code - Receive custom partner code with multiplier
  3. Share With Users - Add to docs, UI, and announcements
  4. Track Success - Monitor adoption via subgraph queries

Support

For technical integration support:

Ready to join? Contact us today to get your partner code and start offering bonus HXP to your users!