Skip to content

Commit

Permalink
fix: missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Oct 11, 2023
1 parent 49760a5 commit db143cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yearn/v2/vaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async def describe(self, block=None):
@stuck_coro_debugger
async def apy(self, samples: "ApySamples"):
from yearn import apy
if self._needs_curve_simple:
if await self._needs_curve_simple:
return await apy.curve.simple(self, samples)
elif pool := await apy.velo.get_staking_pool(self.token.address):
return await apy.velo.staking(self, pool, samples)
Expand Down

0 comments on commit db143cb

Please sign in to comment.