Skip to content

Commit

Permalink
fix: positions by factory test
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrovalido committed Jun 18, 2024
1 parent 63cf9b4 commit 7838577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ VE_SUGAR_ADDRESS=0x37403dBd6f1b583ea244F7956fF9e37EF45c63eB
RELAY_SUGAR_ADDRESS=0xb8307e5842B9aeE75C704183F0355076aa74b4e2

# For testing purposes
NFPM_ADDRESS=0xbB5DFE1380333CEE4c2EeBd7202c80dE2256AdF4
TEST_FACTORY_ADDRESS=0x548118C7E0B865C2CfA94D15EC86B666468ac758
TEST_ADDRESS=0xEeE7FB850D28f5cabd5f1EDF540646b5bEA17CE5
6 changes: 3 additions & 3 deletions tests/test_lp_sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_byIndex(sugar_contract, LpStruct):
lp = LpStruct(*sugar_contract.byIndex(0))

assert lp is not None
assert len(lp) == 25
assert len(lp) == 26
assert lp.lp is not None
assert lp.gauge != ADDRESS_ZERO

Expand Down Expand Up @@ -155,11 +155,11 @@ def test_positionsByFactory(sugar_contract, PositionStruct):
limit = 100
offset = 0
account = os.getenv('TEST_ADDRESS')
nfpm = os.getenv('NFPM_ADDRESS')
factory = os.getenv('TEST_FACTORY_ADDRESS')

positions = list(map(
lambda _p: PositionStruct(*_p),
sugar_contract.positionsByFactory(limit, offset, account, nfpm)
sugar_contract.positionsByFactory(limit, offset, account, factory)
))

assert positions is not None
Expand Down

0 comments on commit 7838577

Please sign in to comment.