Skip to content

Commit

Permalink
getPool wrapper documentation, specify Brownie version
Browse files Browse the repository at this point in the history
  • Loading branch information
ethzoomer authored Feb 5, 2024
1 parent 37d9f47 commit ccf4b18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contracts/LpSugar.vy
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ def forSwaps(_limit: uint256, _offset: uint256) -> DynArray[SwapLp, MAX_POOLS]:
pool_fee: uint256 = 0

is_cl_pool: bool = False

# uses getPool function with fee param that supports both v2 and v3 pools
is_stable: bool = factory.getPool(token0, token1, 1) == pool_addr

if not is_stable and factory.getPool(token0, token1, 0) != pool_addr:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
eth-brownie
eth-brownie==1.19.3
vyper
flake8
titanoboa

0 comments on commit ccf4b18

Please sign in to comment.