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:
- Discord: discord.hx.finance (opens in a new tab)
- Email: partners@hx.finance
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
-
One-Time Activation
- Visit your partner link:
https://app.hx.finance?partner=YOUR_PARTNER_CODE
- The code will be automatically activated
- Visit your partner link:
-
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!
-
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
Activity | Points Rate | Minimum |
---|---|---|
Trading | 0.01 HXP per $1 | $10 minimum trade |
Liquidity | 0.24 HXP per $1 per day | No minimum |
Referrals | 17.5% of referred points | No minimum |
With 2x Partner Multiplier
Activity | Enhanced Rate |
---|---|
Trading | 0.02 HXP per $1 |
Liquidity | 0.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
Contract | Address |
---|---|
PointsAdminV3 | 0x80Ceff76B24e423B1E2f463850559A982b590C24 |
DEX Factory | 0x41ba59415eC75AC4242dd157F2a7A282F1e75652 |
Position Manager | 0x578D8A2D07B60b12993559f1DDF90EB2af3eA496 |
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
- Contact Team - Reach out via Discord, or email
- Get Your Code - Receive custom partner code with multiplier
- Share With Users - Add to docs, UI, and announcements
- Track Success - Monitor adoption via subgraph queries
Support
For technical integration support:
- Discord: discord.hx.finance (opens in a new tab)
- Documentation: docs.hx.finance (opens in a new tab)
Ready to join? Contact us today to get your partner code and start offering bonus HXP to your users!