mev-inspect-py/tests/liquidation_test.py
2021-07-07 17:00:55 +02:00

19 lines
677 B
Python

import unittest
import inspector_compound
import inspector_aave
class TestLiquidations (unittest.TestCase):
def test_compound_liquidation(self):
tx_hash = "0x0ec6d5044a47feb3ceb647bf7ea4ffc87d09244d629eeced82ba17ec66605012"
block_no = 11338848
res = inspector_compound.get_profit(tx_hash, block_no)
# self.assertEqual(res['profit'], 0)
def test_aave_liquidation(self):
tx_hash = "0xc8d2501d28800b1557eb64c5d0e08fd6070c15b6c04c39ca05631f641d19ffb2"
block_no = 10803840
res = inspector_aave.get_profit(tx_hash, block_no)
# self.assertEqual(res['profit'], 0)
if __name__ == '__main__':
unittest.main()