Skip to content

Latest commit

 

History

History

lesson-19-applications-iii

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Applications III: Curve Reward tAPY

Sample application: Calculate Curve estimated Reward tAPY from on-chain data.

CURVE tAPY CALCULATION

    > tAPY = (crv_price * inflation_rate * relative_weight * 12614400) / (working_supply * asset_price * virtual_price)

CURVE REWARDS

Each week veCRV holders vote on which pools should receive the most Curve rewards. The value fluctuates and is not guaranteed, so precise on-chain calculation is useful. Details at https://dao.curve.fi/

CURVE INFLATION

Curve Inflation Schedule

Curve has a preset inflation schedule for the next several centuries. This emissions rate is a callable function of the $CRV token.

> crv.rate()

CURVE RELATIVE WEIGHT

Curve Relative Weight, August 30, 2021 snapshot

The percentage of rewards emitted to each pool, as voted on each week.

> gauge_controller.gauge_relative_weight(pool_rewards_address)