Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lilione committed Dec 17, 2019
1 parent 232a6e5 commit 51db9b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/auctions/volume_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ async def compute_bids(ctx, balances, bids, price):
In volume matching, price is determined by reference to some external lit market. Price is how much
units of ETH have the same value as one unit of token.
:return: buys, sells
This function returns two lists of bids for buy and sell respectively.
This function returns two lists of bids for buy and sell respectively. Since we have separated buy and
sell bids, now every bid has volume larger than zero.
"""

one = ctx.Share(1)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_volume_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def _prog(ctx):
assert _sells[i] == s[i]

matched_buys, matched_sells, res_buys, res_sells = await volume_matching(
ctx, (buys, sells)
ctx, buys, sells
)

_matched_buys = [await x[1].open() for x in matched_buys]
Expand Down

0 comments on commit 51db9b7

Please sign in to comment.