From 21e9979247bd7520c48f287c13766fdc394d075d Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Mon, 8 Apr 2024 20:50:58 -0400 Subject: [PATCH] fix: missing awawit (#711) --- yearn/apy/velo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yearn/apy/velo.py b/yearn/apy/velo.py index 1244b70dc..ff5467148 100644 --- a/yearn/apy/velo.py +++ b/yearn/apy/velo.py @@ -37,7 +37,8 @@ async def staking(vault: "Vault", staking_rewards: Contract, samples: ApySamples rate = await staking_rewards.rewardRate.coroutine(block_identifier=block) if hasattr(staking_rewards, "rewardRate") else 0 performance = await vault.vault.performanceFee.coroutine(block_identifier=block) / 1e4 if hasattr(vault.vault, "performanceFee") else 0 management = await vault.vault.managementFee.coroutine(block_identifier=block) / 1e4 if hasattr(vault.vault, "managementFee") else 0 - keep = await vault.strategies[0].strategy.localKeepVELO.coroutine(block_identifier=block) / 1e4 if hasattr(vault.strategies[0].strategy, "localKeepVELO") else 0 + strats = await vault.strategies + keep = await strats[0].strategy.localKeepVELO.coroutine(block_identifier=block) / 1e4 if hasattr(strats[0].strategy, "localKeepVELO") else 0 rate = rate * (1 - keep) fees = ApyFees(performance=performance, management=management, keep_velo=keep)