Skip to content

Commit

Permalink
refactor: remove redundant pool supply check
Browse files Browse the repository at this point in the history
  • Loading branch information
ethzoomer committed Feb 18, 2024
1 parent c9bf6ac commit d876d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/LpSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def _byData(_data: address[3], _token0: address, _token1: address, _account: add

if gauge_alive:
emissions = gauge.rewardRate()
if pool_total_supply > 0 and gauge_total_supply > 0:
if gauge_total_supply > 0:
token0_fees = (pool.claimable0(_data[2]) * pool_total_supply) / gauge_total_supply
token1_fees = (pool.claimable1(_data[2]) * pool_total_supply) / gauge_total_supply

Expand Down

0 comments on commit d876d5d

Please sign in to comment.