From 37d9f47e53e39c66f9591acd21abc389d5d5532f Mon Sep 17 00:00:00 2001 From: Zoomer <87513793+ethzoomer@users.noreply.github.com> Date: Sat, 3 Feb 2024 14:52:05 -0600 Subject: [PATCH] fix: forSwaps pool stable type --- contracts/LpSugar.vy | 4 ++-- env.example | 2 +- readme.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/LpSugar.vy b/contracts/LpSugar.vy index 4daf3bd..26a2994 100644 --- a/contracts/LpSugar.vy +++ b/contracts/LpSugar.vy @@ -310,9 +310,9 @@ def forSwaps(_limit: uint256, _offset: uint256) -> DynArray[SwapLp, MAX_POOLS]: pool_fee: uint256 = 0 is_cl_pool: bool = False - is_stable: bool = factory.getPool(token0, token1, 0) == pool_addr + is_stable: bool = factory.getPool(token0, token1, 1) == pool_addr - if not is_stable and factory.getPool(token0, token1, 1) != pool_addr: + if not is_stable and factory.getPool(token0, token1, 0) != pool_addr: is_cl_pool = True if is_cl_pool: diff --git a/env.example b/env.example index e2bc52f..51cc0b9 100644 --- a/env.example +++ b/env.example @@ -2,7 +2,7 @@ VOTER_ADDRESS=0x41C914ee0c7E1A5edCD0295623e6dC557B5aBf3C REGISTRY_ADDRESS=0xF4c67CdEAaB8360370F41514d06e32CcD8aA1d7B DIST_ADDRESS=0x9D4736EC60715e71aFe72973f7885DCBC21EA99b CONVERTOR_ADDRESS=0x585Af0b397AC42dbeF7f18395426BF878634f18D -LP_SUGAR_ADDRESS=0xE180829A166d1e0bec705C1eB25758F645C9E317 +LP_SUGAR_ADDRESS=0x4F6C0ae189fB11937E092D71F5D5F4B343d06a8C VE_SUGAR_ADDRESS=0x37403dBd6f1b583ea244F7956fF9e37EF45c63eB RELAY_SUGAR_ADDRESS=0x062185EEF2726EFc11880856CD356FA2Ac2B38Ff RELAY_REGISTRY_ADDRESS=0xe9F00f2e61CB0c6fb00A2e457546aCbF0fC303C2 diff --git a/readme.md b/readme.md index c4fe82a..01f6aa5 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 `0xE180829A166d1e0bec705C1eB25758F645C9E317` +`LpSugar.vy` is deployed at `0x4F6C0ae189fB11937E092D71F5D5F4B343d06a8C` It allows fetching on-chain pools data. The returned data/struct of type `Lp` values represent: