@@ -177,7 +177,9 @@ def test_get_price_output(self, client, token0, token1, qty, kwargs):
177
177
# ------ ERC20 Pool ----------------------------------------------------------------
178
178
@pytest .mark .parametrize ("token" , [(bat ), (dai )])
179
179
def test_get_ex_eth_balance (
180
- self ,client :Uniswap ,token ,
180
+ self ,
181
+ client :Uniswap ,
182
+ token ,
181
183
):
182
184
if not client .version == 1 :
183
185
pytest .skip ("Tested method only supported on Uniswap v1" )
@@ -186,7 +188,9 @@ def test_get_ex_eth_balance(
186
188
187
189
@pytest .mark .parametrize ("token" , [(bat ), (dai )])
188
190
def test_get_ex_token_balance (
189
- self ,client :Uniswap ,token ,
191
+ self ,
192
+ client :Uniswap ,
193
+ token ,
190
194
):
191
195
if not client .version == 1 :
192
196
pytest .skip ("Tested method only supported on Uniswap v1" )
@@ -195,7 +199,9 @@ def test_get_ex_token_balance(
195
199
196
200
@pytest .mark .parametrize ("token" , [(bat ), (dai )])
197
201
def get_exchange_rate (
198
- self ,client :Uniswap ,token ,
202
+ self ,
203
+ client :Uniswap ,
204
+ token ,
199
205
):
200
206
r = client .get_exchange_rate (token )
201
207
assert r
@@ -213,7 +219,7 @@ def get_exchange_rate(
213
219
def test_add_liquidity (self ,client :Uniswap ,web3 :Web3 ,token ,max_eth ):
214
220
r = client .add_liquidity (token ,max_eth )
215
221
tx = web3 .eth .waitForTransactionReceipt (r ,timeout = 6000 )
216
- assert tx .status # type: ignore
222
+ assert tx .status
217
223
218
224
@pytest .mark .skip
219
225
@pytest .mark .parametrize (
@@ -230,7 +236,7 @@ def test_remove_liquidity(
230
236
with expectation :
231
237
r = client .remove_liquidity (token ,max_token )
232
238
tx = web3 .eth .waitForTransactionReceipt (r )
233
- assert tx .status # type: ignore
239
+ assert tx .status
234
240
235
241
# ------ Make Trade ----------------------------------------------------------------
236
242
@pytest .mark .parametrize (
@@ -266,9 +272,9 @@ def test_make_trade(
266
272
with expectation ():
267
273
bal_in_before = client .get_token_balance (input_token )
268
274
269
- r = client .make_trade (input_token ,output_token ,qty ,recipient )
270
- tx = web3 .eth .waitForTransactionReceipt (r )
271
- assert tx .status # type: ignore
275
+ txid = client .make_trade (input_token ,output_token ,qty ,recipient )
276
+ tx = web3 .eth .waitForTransactionReceipt (txid )
277
+ assert tx .status
272
278
273
279
# TODO: Checks for ETH, taking gas into account
274
280
bal_in_after = client .get_token_balance (input_token )
@@ -318,7 +324,7 @@ def test_make_trade_output(
318
324
319
325
r = client .make_trade_output (input_token ,output_token ,qty ,recipient )
320
326
tx = web3 .eth .waitForTransactionReceipt (r ,timeout = 30 )
321
- assert tx .status # type: ignore
327
+ assert tx .status
322
328
323
329
# TODO: Checks for ETH, taking gas into account
324
330
balance_after = client .get_token_balance (output_token )