
1. STAKING REWARDS IMPLEMENTATION
Staking rewards on Hyperliquid are distributed proportionally to validators based on their delegated stake. The staking mechanism is implemented within HyperCore, where HYPE tokens can be transferred between spot and staking accounts. Validators must self-delegate a minimum of 10,000 HYPE to become active. Rewards are calculated dynamically based on the validator's total delegated stake and are subject to a commission rate capped at 1% to prevent exploitation. Delegations are locked for 1 day, and undelegations enter a 7-day unstaking queue to deter attacks. The reward distribution logic is embedded in the consensus layer, ensuring real-time updates to staking balances.
Key Parameters:
self_delegation_requirement
: Minimum HYPE a validator must self-delegate to become activecommission_rate_cap
: Maximum commission rate a validator can charge, with restrictions on increasesunstaking_queue_duration
: Duration before undelegated tokens become transferable
2. VALIDATOR COMMISSION IMPLEMENTATION
Validators earn commissions from delegators, which are deducted from staking rewards. The commission rate is set by the validator and cannot exceed 1%. The commission is calculated as a percentage of the total rewards earned by the validator's delegated stake. The implementation ensures that commission rates cannot be increased beyond the cap unless the new rate is ≤1%. This is enforced through a smart contract function that validates commission rate updates before applying them. The commission is distributed to the validator's address automatically upon reward distribution.
Key Parameters:
commission_rate
: Percentage of rewards taken by the validatorcommission_update_limit
: Maximum allowed increase in commission rate
3. VAULT PROFIT-SHARING IMPLEMENTATION
Vaults on Hyperliquid allow users to deposit funds and share profits with vault leaders, who receive 10% of the total profits. The profit-sharing mechanism is implemented through a smart contract that tracks deposits, withdrawals, and profit calculations. Vault leaders must maintain at least 5% of the vault's total value to prevent exploitation. Profits are distributed proportionally to depositors based on their share of the vault's total value. The contract enforces a 4-day lock-up period for withdrawals to ensure stability.
Key Parameters:
profit_share_percentage
: Percentage of profits allocated to vault leadersminimum_leader_share
: Minimum share a vault leader must maintainwithdrawal_lockup
: Duration before deposited funds can be withdrawn
4. TRADING FEE DISTRIBUTION IMPLEMENTATION
Trading fees on Hyperliquid are distributed to the community, including the Hyperliquidity Provider (HLP) vault, the assistance fund, and spot deployers. The fee distribution logic is embedded in the DEX smart contract, which calculates fees based on trade volume and asset type. Spot deployers can retain up to 50% of the fees generated by their token. The assistance fund, which holds assets in HYPE, requires validator quorum for disbursements. The contract ensures that fees are allocated transparently and cannot be altered without consensus.
Key Parameters:
fee_retention_cap
: Maximum percentage of fees spot deployers can retainassistance_fund_threshold
: Validator quorum required for assistance fund disbursements
5. STAKING REFERRAL PROGRAM IMPLEMENTATION
The staking referral program allows builders and referrers to earn a percentage of referred users' trading fees, up to 40%. The program is implemented through a smart contract that tracks referrals, staking tiers, and fee allocations. Builders and referrers must stake HYPE to participate, and their rewards are calculated based on the difference in staking tiers between them and their referred users. The contract enforces volume-based discounts and caps on referral rewards to prevent abuse.
Key Parameters:
maximum_referral_reward
: Maximum percentage of fees a referrer can earnvolume_discount_threshold
: Volume threshold for referral discounts
VALUE FLOW ARCHITECTURE
Value flows through the Hyperliquid ecosystem as follows: 1) Users stake HYPE to validators, earning rewards and paying commissions. 2) Trading fees are collected and distributed to HLP, the assistance fund, and spot deployers. 3) Vault depositors share profits with leaders, who take a 10% cut. 4) Referrers and builders earn fees from referred users based on staking tiers. Each flow is governed by smart contracts and consensus rules, ensuring transparent and secure value capture.