Skip to content

Commit d876d5d

Browse files
committed
refactor: remove redundant pool supply check
1 parent c9bf6ac commit d876d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/LpSugar.vy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def _byData(_data: address[3], _token0: address, _token1: address, _account: add
510510

511511
if gauge_alive:
512512
emissions = gauge.rewardRate()
513-
if pool_total_supply > 0 and gauge_total_supply > 0:
513+
if gauge_total_supply > 0:
514514
token0_fees = (pool.claimable0(_data[2]) * pool_total_supply) / gauge_total_supply
515515
token1_fees = (pool.claimable1(_data[2]) * pool_total_supply) / gauge_total_supply
516516

0 commit comments

Comments
 (0)