Badge & Reputation
Methods for working with badge tiers and the reputation system.getBadgeTier
Gets the badge tier for a user based on their referral count.Parameters
| Name | Type | Description |
|---|---|---|
| userAddress | Address | Address of the user |
Returns
number - Badge tier (0-3 for Bronze, Silver, Gold, Platinum).
Example
getBadgeInfo
Gets information about a specific badge tier.Parameters
| Name | Type | Description |
|---|---|---|
| tier | number | Badge tier (0-3) |
Returns
BadgeInfo object containing badge details.Example
Badge Tiers
The CeloRefer system includes a tiered badge system based on referral count:| Tier | Name | Threshold | Level 1 Rate | Level 2 Rate |
|---|---|---|---|---|
| 0 | Bronze | 0+ | 5% | 2% |
| 1 | Silver | 5+ | 6% | 2.5% |
| 2 | Gold | 15+ | 7% | 3% |
| 3 | Platinum | 50+ | 8% | 3.5% |
Benefits by Tier
- Bronze: Starting tier for new users
- Silver: Improved reward rates + quest access
- Gold: Premium features + priority support
- Platinum: Elite status + maximum benefits + exclusive perks