velodrome-finance / sugar

Sugar makes Velodrome devs life sweeter 🍭
Other
47 stars 26 forks source link

feat: use gauge's weekly fees for pool fees calculation #47

Closed ethzoomer closed 9 months ago

ethzoomer commented 9 months ago

If a gauge is alive (and therefore claiming its fees weekly) and has nonzero supply, set token0_fees and token1_fees to be equal to the gauge's claimable fees multiplied by the share of overall LPs owned by the gauge