Skip to content

Commit

Permalink
LpSugar: fix tick range estimates.
Browse files Browse the repository at this point in the history
  • Loading branch information
stas committed Jan 17, 2025
1 parent b9d5c8c commit 0636537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/LpSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,8 @@ def _cl_lp(_data: address[4], _token0: address, _token1: address) -> Lp:
token1_fees: uint256 = 0

slot: Slot = staticcall pool.slot0()
tick_low: int24 = slot.tick - tick_spacing
tick_high: int24 = slot.tick
tick_low: int24 = (slot.tick // tick_spacing) * tick_spacing
tick_high: int24 = tick_low + tick_spacing

if gauge_liquidity > 0 and gauge.address != empty(address):
fee_voting_reward = staticcall gauge.feesVotingReward()
Expand Down

0 comments on commit 0636537

Please sign in to comment.