Skip to content

Commit

Permalink
include L2 gauges in workingSupply calc
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Oct 3, 2023
1 parent 218345b commit 0544984
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class GaugeAprService implements PoolAprService {
(networkContext.chain === 'MAINNET' || gauge.version === 2)
) {
let minApr = 0;
if (networkContext.chain === 'MAINNET' && workingSupplyTvl > 0) {
if (workingSupplyTvl > 0) {
minApr = rewardPerYear / workingSupplyTvl;
} else if (gaugeTvl > 0) {
minApr = rewardPerYear / gaugeTvl;
Expand Down

0 comments on commit 0544984

Please sign in to comment.