You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A time-locked staking protocol on Solana inspired by HEX. Users stake HLX tokens for up to 5,555 days, earning T-shares that accumulate daily inflation. Longer and larger stakes earn bonus multipliers. A periodic Big Pay Day (BPD) event redistributes a pool to active stakers. Built with Anchor 0.32.1 and Token-2022.
@@ -30,13 +32,26 @@ A time-locked staking protocol on Solana inspired by HEX. Users stake HLX tokens
30
32
31
33
**Longer Pays Better (LPB)** — up to 2× multiplier for stakes committed to 10 years (3,641 days). Bonus scales linearly with duration.
32
34
33
-
**Bigger Pays Better (BPB)** — tiered bonus for larger stake sizes with diminishing returns above 1.5B tokens to prevent whale dominance. Maximum 1.5× bonus.
35
+
**Bigger Pays Better (BPB)** — tiered bonus for larger stake sizes with diminishing returns above 1.5B tokens to prevent whale dominance. Three tiers with decreasing slope. Maximum 1.5× bonus.
34
36
35
37
**Big Pay Day (BPD)** — periodic event that distributes a bonus pool to all active stakers proportional to their T-shares. Features:
36
38
- Batched finalization to handle large staker counts on-chain
37
39
- 24-hour community observation window before sealing
38
40
- 5% per-stake share cap to prevent whale capture
39
41
- Duration loyalty multiplier (up to 50% bonus for stakes at full term)
42
+
- Admin abort capability if calculation issues arise
43
+
44
+
### Anti-Whale Protections
45
+
46
+
| Mechanism | Description |
47
+
|-----------|-------------|
48
+
| BPD share cap | 5% maximum of the BPD pool per individual stake |
49
+
| BPB diminishing returns | Three-tier curve: linear up to 1.5B, reduced slope 1.5B–5B, further reduced 5B–10B, hard cap at 1.5× |
50
+
| Duration loyalty multiplier | Rewards commitment duration, not just stake size — up to 50% BPD bonus for stakes that have served their full term |
51
+
52
+
### Referral System
53
+
54
+
Stakers can refer new participants via `create_stake_with_referral`. The referee receives a +10% T-share bonus and the referrer earns a +5% token bonus minted at stake creation. Referral records are tracked on-chain via PDA.
40
55
41
56
### Unstake Penalties
42
57
@@ -46,9 +61,18 @@ A time-locked staking protocol on Solana inspired by HEX. Users stake HLX tokens
46
61
| On-time (within 14-day grace) | None |
47
62
| Late (after grace period) | 0% → 100% over 351 days |
48
63
49
-
### Free Claim
64
+
### Free Claim (SOL Snapshot Airdrop)
50
65
51
-
Snapshot-based airdrop using Merkle proofs. 10,000 HLX per SOL held at snapshot. Eligible wallets must hold ≥ 0.1 SOL. Tokens vest: 10% immediate, 90% over 30 days. Speed bonuses apply: +20% in week 1, +10% in weeks 2–4. Claim window is 180 days.
66
+
A snapshot of SOL balances at a specific slot determines airdrop eligibility. The authority builds a Merkle tree of eligible wallets and uploads the root on-chain via `initialize_claim_period`. Users submit a Merkle proof to claim.
|`admin_set_bpd_finalize_timestamp`| Adjust BPD seal observation window |
103
+
|`pause`| Emergency pause all user-facing instructions |
104
+
|`unpause`| Resume protocol operations |
77
105
78
106
---
79
107
@@ -163,7 +191,7 @@ npm run localnet:logs
163
191
164
192
The container bootstraps the full protocol: initializes GlobalState and the HLX mint, funds a test wallet with 100 SOL and 10,000 HLX. RPC available at `http://localhost:8899`.
165
193
166
-
See [docker/README.md](docker/README.md) for Apple Silicon notes and troubleshooting.
194
+
Requires Docker with ARM64 support on Apple Silicon.
Audit findings and remediations: `specs/001-fix-audit-findings/`
198
-
199
227
---
200
228
201
229
## Project Structure
@@ -226,4 +254,4 @@ tests/bankrun/ # Bankrun test suite
226
254
227
255
## License
228
256
229
-
[Add license here]
257
+
This project is licensed under the [Elastic License 2.0](LICENSE) — a source-available license that permits use, modification, and distribution but prohibits offering the software as a hosted or managed competing service. See [LICENSE](LICENSE) for the full terms.
0 commit comments