Computations
This page outlines the major computations that occur within the Athena protocol. These calculations are crucial for understanding the mechanics of cover pricing, liquidity provision, and reward distribution.
This page is still being expanded. Information might be incomplete.
Utilization Rate
The utilization rate (U) is a key metric that influences many aspects of the protocol. It represents the percentage of liquidity in a pool that is currently locked as a guarantee for bought covers.
U=Total liquidityTotal covered amount×100%
Example:
Total liquidity in pool = $10,000
Total covered amount in pool = $3,500
U = (3,500 / 10,000) × 100% = 35%Premium Rate
The premium rate (P_r) is calculated using a bi-linear curve based on the utilization rate. It determines the cost of covers and rewards for liquidity providers.
Let:
u_optimal = optimal utilization rate
r_0 = base premium rate at 0% utilization
r_slope1 = premium slope below optimal utilization
r_slope2 = premium slope above optimal utilization
Then:
For U ≤ u_optimal: Pr=r0+uoptimalU⋅rslope1
For U > u_optimal: Pr=r0+rslope1+1−uoptimalU−uoptimal⋅rslope2
Example:
Reward Rate
The reward rate (R_r) for liquidity providers is calculated by multiplying the utilization rate and the premium rate:
Rr=U×Pr
Example:
Cover Duration and Tick Spacing
The duration of a cover is measured in ticks, with the time between ticks (seconds per tick) varying based on pool utilization. The maximum seconds per tick is 86,400 (1 day), and the minimum is calculated as:
min seconds per tick=86400×r0+rslope1+rslope2r0
The actual seconds per tick (s_t) at a given utilization is:
st=86400−(86400−min seconds per tick)×U
Liquidity Index Computation
The liquidity index (L_i) tracks the accumulation of premium rewards. For a given period:
Li=capital×Rr×one yearelapsed time
Example:
Compensation Impact on Leveraged Positions
When a compensation occurs in a pool, it affects the liquidity of other pools with shared (leveraged) liquidity. The impact is calculated as:
Impact ratio=Total pool liquidityCompensation amount
For the pool where the compensation occurs: New liquidity=Old liquidity×(1−Impact ratio)
For pools with shared liquidity: New shared liquidity=Old shared liquidity×(1−Impact ratio)
Example:
These computations form the backbone of Athena's risk assessment, pricing, and reward distribution mechanisms. Understanding them is crucial for analysts and users looking to deeply engage with the protocol.
Last updated