diff --git a/.env.sample b/.env.sample index 8f3106c7..02999eef 100644 --- a/.env.sample +++ b/.env.sample @@ -12,7 +12,7 @@ PROPOSER_PK= # Slack Bot Credentials SLACK_TOKEN= -SLACK_ALERT_CHANNEL= +SLACK_CHANNEL= # Orderbook DB Credentials PROD_ORDERBOOK_HOST= diff --git a/requirements.txt b/requirements.txt index 3e639d2c..c756edcb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ black==22.6.0 certifi==2022.6.15 duneapi==6.0.0 mypy==0.961 -psycopg2==2.9.3 +psycopg2-binary==2.9.3 pylint==2.14.4 pytest==7.1.2 python-dotenv>=0.20.0 diff --git a/tests/e2e/test_token_details.py b/tests/e2e/test_token_details.py index 976031f0..fb98441a 100644 --- a/tests/e2e/test_token_details.py +++ b/tests/e2e/test_token_details.py @@ -6,21 +6,16 @@ class TestTokenDecimals(unittest.TestCase): - def setUp(self) -> None: - self.cow = "0xDEf1CA1fb7FBcDC777520aa7f396b4E015F497aB" - self.usdc = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" - def test_token_decimals(self): - self.assertEqual(get_token_decimals(self.cow), 18) - self.assertEqual(get_token_decimals(self.usdc), 6) - - self.assertEqual(get_token_decimals(duneapi.types.Address(self.usdc)), 6) - self.assertEqual(get_token_decimals(duneapi.types.Address(self.cow)), 18) + # Goerli doesn't seem to have tokens with anything other than 18 decimals. + cow = "0x3430d04E42a722c5Ae52C5Bffbf1F230C2677600" + self.assertEqual(get_token_decimals(cow), 18) + self.assertEqual(get_token_decimals(duneapi.types.Address(cow)), 18) def test_token_decimals_cache(self): - NEW_TOKEN = "0x10245515d35BC525e3C0977412322BFF32382EF1" + new_token = "0x10245515d35BC525e3C0977412322BFF32382EF1" with self.assertLogs("src.utils.token_details", level="INFO"): - get_token_decimals(NEW_TOKEN) + get_token_decimals(new_token) with self.assertNoLogs("src.utils.token_details", level="INFO"): get_token_decimals(new_token)