Repository navigation
v2.2.0
Overview
This release introduces updated referral requirements and automatic status recalculation on upgrade.
Highlights
Upgrade Handler
A new v2.2.0 upgrade handler has been added.
At the upgrade height, the network performs a full recalculation of referral statuses for all accounts based on the updated requirements.
Updated Referral Status Requirements
Self-stake thresholds for all statuses have been significantly increased:
| Status | Before | After |
|---|---|---|
| Starter | 100 | 1,000 |
| Leader | 250 | 10,000 |
| Guru | 600 | 25,000 |
| Boss | 1,500 | 60,000 |
| Pro | 4,000 | 130,000 |
| Top | 10,000 | 200,000 |
| Mega | 30,000 | 350,000 |
All other parameters (team volume, criteria count) remain unchanged.
Status Recalculation Logic
The migration logic is implemented in x/referral/keeper/upgrade_v220.go:
-
Downgrade scheduling
If an account no longer meets the requirements, a downgrade is scheduled in 7 days
(with a 1-second interval between accounts to avoid collisions). -
Downgrade cancellation
If requirements are met, any scheduled downgrade is cancelled. -
Automatic promotion
If an account qualifies for a higher status, it is promoted automatically.
Build Improvements
- Added new
build-all-fftarget inMakefile
(compatible with Ubuntu Focal / golang:1.21-bullseye)
⚠️ Upgrade Required
This release requires an on-chain upgrade
From: v2.1.0
To: v2.2.0
Upgrade handler: defined in app/upgrades.go