Skip to content

Commit

Permalink
fix: missing awawit (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Apr 9, 2024
1 parent 45d1967 commit 21e9979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yearn/apy/velo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 21e9979

Please sign in to comment.