π°Fee System & Claiming
LiquidCore implements a sophisticated dynamic fee system powered by Hyperliquid's native HyperEVM read precompiles. This world-first oracle integration enables advanced inventory management and provides multiple options for liquidity providers to claim their earned fees.
Dynamic Fee System
Getting Current Fees
function getPoolFees() external view returns (uint256 feeToken0In, uint256 feeToken1In)Fee Distribution
Split Structure
All trading fees are automatically split:
90% β Liquidity Providers (distributed proportionally by LP token balance)
10% β Protocol Treasury
Fee Accrual Mechanism
Real-time Tracking: Fees accrue continuously with each trade
Proportional Distribution: Fees distributed based on LP token ownership
No Decay: Unclaimed fees never expire or decrease
Fee Claiming Options
1. Manual Fee Claiming
Withdraw accumulated fees as tokens:
function claimUserFees() external returns (uint256 amount0, uint256 amount1)Returns:
amount0: USDT0 fees claimedamount1: WHYPE fees claimed
2. Fee Compounding
Convert fees to additional LP tokens automatically:
function compoundFees() external returns (uint256 lpTokens)Returns: Number of new LP tokens minted from compounded fees
Benefits:
Compound Growth: Earn fees on your fees
Gas Efficiency: Single transaction to reinvest
Automatic Rebalancing: Fees converted at current pool ratio
Viewing Fee Information
Check User Position
Get complete overview of your position and claimable fees:
function getUserPosition(address user) external view returns (
uint256 lpBalance, // Your LP token balance
uint256 claimableFee0, // Claimable USDT0 fees
uint256 claimableFee1, // Claimable WHYPE fees
uint256 shareOfPool, // Your share of the pool
uint256 withdrawAmount0, // USDT0 you'd get if withdrawing all LP
uint256 withdrawAmount1 // WHYPE you'd get if withdrawing all LP
);This pioneering fee system creates a sustainable economic model that rewards both liquidity provision and balanced trading behavior. Built on Hyperliquid's revolutionary HyperEVM read precompile technology, it represents the first implementation of native Hyperliquid oracles in DeFi protocol design.
Last updated