From a791b61802572f20f7b3db1c0d1f6eb0c6aa7d96 Mon Sep 17 00:00:00 2001 From: ethzoomer Date: Thu, 15 Feb 2024 05:15:37 -0600 Subject: [PATCH] clean up prices name and return statement, deployment --- contracts/LpSugar.vy | 5 ++--- readme.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/contracts/LpSugar.vy b/contracts/LpSugar.vy index 94054e1..ecd3202 100644 --- a/contracts/LpSugar.vy +++ b/contracts/LpSugar.vy @@ -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 @@ -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 diff --git a/readme.md b/readme.md index 2bf98a2..a8eee2c 100644 --- a/readme.md +++ b/readme.md @@ -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: