Skip to content

Commit

Permalink
fix: Decimal type err (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Apr 9, 2024
1 parent c574069 commit 5e61e46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yearn/outputs/describers/vault.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import asyncio
from concurrent.futures import ProcessPoolExecutor
from decimal import Decimal

from yearn.outputs.postgres.utils import fetch_balances
from yearn.prices.magic import _get_price
Expand Down Expand Up @@ -31,5 +32,6 @@ async def describe_wallets(self, vault_address, block=None):
} for wallet, bal in balances.items()
}
}
}
info['active wallets'] = sum(1 if balances['usd balance'] > ACTIVE_WALLET_USD_THRESHOLD else 0 for balances in info['wallet balances'].values())
return info

0 comments on commit 5e61e46

Please sign in to comment.