Example #1
0
 def test_withdraw_dai_to_success(self):
     client = Client(PRIVATE_KEY_1, node=LOCAL_NODE)
     tx_hash = client.withdraw(market=consts.MARKET_DAI,
                               wei=1000,
                               to=ADDRESS_2)
     self._validate_tx_hash(client, tx_hash)
Example #2
0
 def test_withdraw_unknown_failure(self):
     client = Client(PRIVATE_KEY_1, node=LOCAL_NODE)
     with pytest.raises(ValueError) as error:
         client.withdraw(market=consts.MARKET_INVALID, wei=1000)
     assert 'Invalid market number' in str(error.value)
Example #3
0
 def test_withdraw_eth_success(self):
     client = Client(PRIVATE_KEY_1, node=LOCAL_NODE)
     tx_hash = client.withdraw(market=consts.MARKET_WETH, wei=1000)
     self._validate_tx_hash(client, tx_hash)