Skip to content

Commit

Permalink
fix: v1 apy broken import (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Aug 23, 2023
1 parent 96def84 commit 863360e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yearn/v1/vaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ async def describe(self, block=None):

async def apy(self, samples: "ApySamples"):
from yearn import apy
from yearn.prices.curve import curve
if curve.get_pool(self.token.address):
return await apy.curve.simple(self, samples)
else:
Expand Down

0 comments on commit 863360e

Please sign in to comment.