From 1885b9ce8a7ca769acf9bbed50f54988cbb05525 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:21:28 -0400 Subject: [PATCH] fix: use threadsafe alru cache (#375) * fix: use threadsafe alru-cache * chore: exclude cbeth and tbtc from sense check on base --- requirements.txt | 2 +- y/prices/utils/sense_check.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a447de31e..3ba59157a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,6 @@ checksum_dict>=1.1.1 dank_mids>=4.20.50 eth-brownie>=1.18.1,<1.20 eth_retry>=0.1.17,<0.2 -ez-a-sync>=0.7.3 +ez-a-sync>=0.7.4 joblib>=1.0.1 pony diff --git a/y/prices/utils/sense_check.py b/y/prices/utils/sense_check.py index 83f7ef978..4fb6abf54 100644 --- a/y/prices/utils/sense_check.py +++ b/y/prices/utils/sense_check.py @@ -149,6 +149,12 @@ Network.Arbitrum: [ "0x8e0B8c8BB9db49a46697F3a5Bb8A308e744821D2", # crv3crypto ], + Network.Base: [ + # eth and eth-like + "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22", # cbeth + # btc and btc-like + "0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b", # tbtc + ], }.get(chain.id, []) + acceptable_all_chains async def _sense_check(