Skip to content

Commit

Permalink
fix: use tick-tickspace to tick
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrovalido committed Jul 3, 2024
1 parent 779bee8 commit eb59aeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/LpSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def _cl_lp(_data: address[4], _token0: address, _token1: address) -> Lp:

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

if gauge_liquidity > 0 and gauge.address != empty(address):
fee_voting_reward = gauge.feesVotingReward()
Expand Down
2 changes: 1 addition & 1 deletion env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CONVERTOR_ADDRESS=0x585Af0b397AC42dbeF7f18395426BF878634f18D
RELAY_REGISTRY_ADDRESSES=0xe9F00f2e61CB0c6fb00A2e457546aCbF0fC303C2,0x6b1253B116B5919932399295C75116d33F8EfF96
SLIPSTREAM_HELPER_ADDRESS=0x5Bd7E2221C2d59c99e6A9Cd18D80A5F4257D0f32
GOVERNOR_ADDRESS=0x1F82e10D58aEf03DeA2e478029fB0387A1cbE989
LP_SUGAR_ADDRESS=0x1381B1E6aaFa01bD28e95AdaB35bdA8191826bC8
LP_SUGAR_ADDRESS=0xE91CE8792279829854F5229CA4a35ce4CbD9d035
VE_SUGAR_ADDRESS=0x94f913362b232e31daB49a1aFB775cfd25DaA6a1
RELAY_SUGAR_ADDRESS=0xb8307e5842B9aeE75C704183F0355076aa74b4e2

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Below is the list of datasets we support.
### Liquidity Pools Data

> [!NOTE]
> `LpSugar.vy` is deployed at `0x1381B1E6aaFa01bD28e95AdaB35bdA8191826bC8`
> `LpSugar.vy` is deployed at `0xE91CE8792279829854F5229CA4a35ce4CbD9d035`
It allows fetching on-chain pools data.
The returned data/struct of type `Lp` values represent:
Expand Down

0 comments on commit eb59aeb

Please sign in to comment.