Skip to content

Commit

Permalink
fix: forSwaps pool stable type
Browse files Browse the repository at this point in the history
  • Loading branch information
ethzoomer authored Feb 3, 2024
1 parent d406ade commit 37d9f47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/LpSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 `0xE180829A166d1e0bec705C1eB25758F645C9E317`
`LpSugar.vy` is deployed at `0x4F6C0ae189fB11937E092D71F5D5F4B343d06a8C`

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

0 comments on commit 37d9f47

Please sign in to comment.