diff --git a/requirements.txt b/requirements.txt index 46768d161..eb7b621fd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,7 +18,7 @@ pony>=0.7.16 sqlalchemy>=1.4.41 sentry-sdk==1.27.1 pytest-bdd>=5.0.0 -dank_mids==4.20.69 +dank_mids==4.20.71 eth_retry>=0.1.19 eth-hash[pysha3] ez-a-sync==0.12.3 diff --git a/yearn/special.py b/yearn/special.py index bd1db5755..447129a9b 100644 --- a/yearn/special.py +++ b/yearn/special.py @@ -47,7 +47,7 @@ async def apy(self, _: ApySamples) -> Apy: yvboost_eth_pool = [pool for pool in data if pool["identifier"] == "yvboost-eth"][0] apy = yvboost_eth_pool["apy"] / 100. points = ApyPoints(apy, apy, apy) - block = chain.height + block = await dank_w3.eth.block_number inception_block = await contract_creation_block_async(str(self.vault)) blocks = ApyBlocks(block, block, block, inception_block) return Apy("yvecrv-jar", apy, apy, ApyFees(), points=points, blocks=blocks)