For Traders (Leaders)

For Leaders (Traders)

Leaders create vaults and trade on Hyperliquid L1 through HyperFunTrading.sol.


Create a Vault

  1. Fill in vault details:

    • Vault Name - Your fund name

    • Symbol - 2-10 letter token symbol

    • Performance Fee - 0-30% (your cut of investor profits)

    • Description - Strategy description

    • Image - Vault logo

  2. Connect wallet

  3. Approve 1 USDC (L1 init fee)

  4. Click "Create Token"

Via Contract


Performance Fee

How It Works

Performance fee is your reward for generating profits. It's only charged when investors sell at a profit.

Example

Value

Investor buys at NAV

$1.00

Investor sells at NAV

$1.50

Tokens sold

1,000

Performance fee rate

20%

Profit

$0.50 × 1,000 = $500

Your fee

$500 × 20% = $100

How You Receive It

Performance fee is paid in vault tokens, not USDC:

  1. Investor calls sell()

  2. Contract calculates profit

  3. Fee tokens are minted to you (leader)

  4. You can hold (benefit from future NAV growth) or sell for USDC

Maximizing Performance Fee

  1. Trade profitably - Higher NAV = more profit for investors = more fee for you

  2. Attract long-term holders - They accumulate more profit

  3. Build reputation - Verified vaults attract more investors

Fee Calculation Code


Trading Operations

Asset Indices

Asset
Index
szDecimals

BTC

0

4

ETH

1

3

SOL

5

2

SUI

30

1

HIP-3

>= 100000

varies

Market Order

Example: Long 1 SOL at $150

Limit Order

Batch Orders (DCA / Split)

Example: DCA into SOL

Close Position

Cancel Order


HIP-3 Trading (Builder Perps)

For HIP-3 assets (index >= 100000), precompiles don't work. Must provide params from API.

Open Position

Close Position

Get HIP-3 Asset Info


API Wallets

API wallets allow automated trading bots to trade on your behalf.

Add API Wallet

Example:

Renew API Wallet

Remove API Wallet

Check Status

Security Notes

  • API wallets can only trade, not withdraw funds

  • Set expiration (60-180 days) for security

  • Remove immediately if compromised

  • L1 registration is permanent, but EVM check prevents unauthorized use


Fund Management

Auto-Rebalance

Funds automatically rebalance between EVM and L1:

  • Target: 50% EVM / 50% L1

  • Trigger: When ratio goes below 48% or above 52%

Manual Transfers

Check Balances

Check Positions


Leader Deposit

Leaders can deposit at NAV without bonding curve or trading fee:

Example:

Note: Leaders are still subject to exit fees when selling.


Update Metadata

Example:


View Your Earnings

Check Your Token Balance

Check Total Performance Fees Earned

Listen for PerformanceFeeMinted events:

Calculate USDC Value


Best Practices

Risk Management

  1. Don't over-leverage - Leave margin buffer for volatility

  2. Use stop losses - Close losing positions before liquidation

  3. Diversify - Don't put all funds in one position

  4. Monitor reserve - Keep enough EVM liquidity for redemptions

Building Trust

  1. Get verified - Contact team to get verified badge

  2. Communicate - Update description with strategy

  3. Be transparent - Share trade history and reasoning

  4. Start small - Build track record before scaling

Technical Tips

  1. Use limit orders - Better prices than market orders

  2. Split large orders - Reduce slippage with batchLimitOrders

  3. Check oracle price - Before closing, verify getOraclePrice(asset)

  4. Monitor margin - Use getAccountMarginSummary() regularly


  • Fund Creation - Detailed vault creation

  • VaultTrading - Full trading API reference

  • Contract Addresses - Deployed contracts

  • Architecture - System overview

Last updated