@@ -384,12 +384,16 @@ def fetch_wallet_balance(wallet):
384384 ))
385385
386386 eth_balance = fetch_wallet_eth_balance (wallet )
387+ print ("ETH balance of {} is {}" .format (wallet , eth_balance ))
388+
387389 ogn_balance = fetch_wallet_token_balance (wallet , token_stats .ogn_contract )
390+ print ("OGN balance of {} is {}" .format (wallet , ogn_balance ))
391+
388392 ogv_balance = fetch_wallet_token_balance (wallet , token_stats .ogv_contract )
389- dai_balance = fetch_wallet_token_balance (wallet , token_stats . dai_contract )
393+ print ( "OGV balance of {} is {}" . format (wallet , ogv_balance ) )
390394
391- url = "https://api.ethplorer.io/getAddressInfo/%s" % (wallet )
392- results = call_ethplorer ( url )
395+ dai_balance = fetch_wallet_token_balance (wallet , token_stats . dai_contract )
396+ print ( "DAI balance of %s is %s" . format ( wallet , dai_balance ) )
393397
394398 contact = db_common .get_or_create (
395399 db .session , db_models .EthContact , address = wallet
@@ -400,11 +404,6 @@ def fetch_wallet_balance(wallet):
400404 contact .ogv_balance = ogv_balance
401405 contact .dai_balance = dai_balance
402406
403- print ("ETH balance of {} is {}" .format (wallet , eth_balance ))
404- print ("OGN balance of {} is {}" .format (wallet , ogn_balance ))
405- print ("OGV balance of {} is {}" .format (wallet , ogv_balance ))
406- print ("DAI balance of %s is %s" .format (wallet , dai_balance ))
407-
408407 # Note: We have these columns and have been populating it in the past
409408 # But I don't see it being used anywhere, so I'm commenting this out
410409 # since it'd require more API calls
0 commit comments