Reward System for LPs
Last updated
Last updated
LP Fee Distribution Explained
Avitus Labs uses a harmonic mean formula to distribute rewards among liquidity providers (LPs). This ensures that LPs who contribute more liquidity and stay longer in the pool during the epoch receive a larger share of the rewards. Here’s how it works:
Weight of Portfolio:
Each LP’s reward depends on their weight, which is determined by:
Time spent in the pool (tᵢ): How long the LP’s liquidity remains in the pool during the epoch.
Net liquidity provided (vᵢ): The value of liquidity contributed in USDC.
LPs who provide more liquidity or stay in the pool longer receive higher weights.
Reward Distribution:
The platform calculates the proportion of the total rewards an LP earns based on their weight relative to the total weight of all LPs in the pool.
Epoch Duration:
Rewards are distributed weekly, with each epoch lasting exactly 1 week, from Sunday to Sunday.
Reward Calculation Timing:
Rewards are calculated 35 minutes (2,100 seconds) before the epoch ends. This ensures accurate distribution based on liquidity present during the majority of the epoch.
Withdrawals During Epochs:
If an LP withdraws liquidity before the reward calculation period (last 35 minutes of the epoch), their reward is reduced as only the remaining liquidity is considered for calculations.
Withdrawals during the reward calculation period do not impact the current epoch's rewards but will reflect in the next epoch's calculations.
New or Additional Liquidity:
Any liquidity added to the pool by new or existing LPs during the reward calculation period (last 35 minutes) will not be considered for the ongoing epoch. It will instead count toward the next epoch's rewards.
Claiming Rewards:
Rewards become claimable at the end of each epoch, providing LPs with their earned share based on the above rules.
Scenario:
The total reward pool for the epoch is $10,000.
Two LPs (A and B) participate with different liquidity amounts and time durations:
LP
Time Spent in Pool (seconds)
Liquidity Provided (USDC)
LP A
604,800 seconds (entire epoch)
$50,000
LP B
302,400 seconds (half epoch)
$100,000
Step-by-Step Calculation:
Determine Weight for Each LP:
LP A:
Stayed for the full epoch (604,800 seconds) with $50,000 liquidity.
This gives LP A a significant weight because of their long-term commitment.
LP B:
Stayed for half the epoch (302,400 seconds) but provided $100,000 liquidity.
LP B gets a higher weight because they provided more liquidity, even for a shorter time.
Proportion of Total Rewards:
The system calculates each LP’s weight relative to the total weight of all LPs combined.
For simplicity, let’s assume LP A’s weight is 40% and LP B’s weight is 60%.
Distribute Rewards:
LP A earns 40% of $10,000, which equals $4,000.
LP B earns 60% of $10,000, which equals $6,000.
LPs who stay in the pool longer (like LP A) can still earn significant rewards even if they contribute less liquidity.
LPs who provide higher liquidity (like LP B) are rewarded proportionally for their contribution, even if their time in the pool is shorter.
This system balances the reward distribution, ensuring fairness for both short-term and long-term liquidity providers.