Skip to content

Commit

Permalink
Use CL factory.
Browse files Browse the repository at this point in the history
  • Loading branch information
stas committed Feb 27, 2024
1 parent 0a015d7 commit aa91508
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/LpSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def _pools(_limit: uint256, _offset: uint256)\
@return Array of four addresses (factory, pool, gauge, cl_factory)
"""
factories: DynArray[address, MAX_FACTORIES] = self.registry.poolFactories()
# TODO: Remove
factories.append(0x8526d88a3668cE7c159e1e13820D01c9CDDCAC42)
factories_count: uint256 = len(factories)

placeholder: address[4] = empty(address[4])
Expand Down Expand Up @@ -318,6 +320,8 @@ def forSwaps(_limit: uint256, _offset: uint256) -> DynArray[SwapLp, MAX_POOLS]:
@return `SwapLp` structs
"""
factories: DynArray[address, MAX_FACTORIES] = self.registry.poolFactories()
# TODO: Remove
factories.append(0x8526d88a3668cE7c159e1e13820D01c9CDDCAC42)
factories_count: uint256 = len(factories)

pools: DynArray[SwapLp, MAX_POOLS] = empty(DynArray[SwapLp, MAX_POOLS])
Expand Down

0 comments on commit aa91508

Please sign in to comment.