Skip to content

Commit

Permalink
clean up prices name and return statement, deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ethzoomer committed Feb 15, 2024
1 parent fd9e63f commit a791b61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions contracts/LpSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ def _is_cl_factory(_factory: address) -> (bool):

@external
@view
def price(_pool: address, _factory: address) -> DynArray[Price, MAX_PRICES]:
def prices(_pool: address, _factory: address) -> DynArray[Price, MAX_PRICES]:
"""
@notice Returns price data at surrounding ticks for a pool
@param _pool The pool to check price data of
Expand All @@ -1007,8 +1007,7 @@ def price(_pool: address, _factory: address) -> DynArray[Price, MAX_PRICES]:
if is_cl_factory:
return self._price(_pool)
else:
empty_prices: DynArray[Price, MAX_PRICES] = empty(DynArray[Price, MAX_PRICES])
return empty_prices
return empty(DynArray[Price, MAX_PRICES])

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

### Liquidity Pools Data

`LpSugar.vy` is deployed at `0x90b18D906aa461a45229877469eD4c6A41c31Da6`
`LpSugar.vy` is deployed at `0x3c971c178Bb0697F3D59CC043855e96f389dF61c`

It allows fetching on-chain pools data.
The returned data/struct of type `Lp` values represent:
Expand Down

0 comments on commit a791b61

Please sign in to comment.