Skip to content

Commit

Permalink
fix: wrap vault price in float
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Oct 20, 2023
1 parent 2d33fc6 commit 390f559
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 @@ -89,7 +89,7 @@ def _unpack_results(vault: Address, is_experiment: bool, _views: List[str], resu

price = price_or_exception

info["token price"] = price
info["token price"] = float(price)
if "totalAssets" in info:
info["tvl"] = info["token price"] * info["totalAssets"]

Expand Down

0 comments on commit 390f559

Please sign in to comment.