From 27d0043cb492ba674798f8d5d97dd663d2817916 Mon Sep 17 00:00:00 2001
From: Robert Martin-Legene <robert@martin-legene.dk>
Date: Thu, 22 Apr 2021 14:03:27 -0300
Subject: [PATCH] More practical reporting.

---
 bin/MasterDistiller.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/MasterDistiller.py b/bin/MasterDistiller.py
index d1ff4f5..1bbcccf 100755
--- a/bin/MasterDistiller.py
+++ b/bin/MasterDistiller.py
@@ -25,7 +25,7 @@ def distribute():
     rcpt = janitor.transact( web3=bfa.w3, function=distillery.functions.distribute, extragas=4000000)
     print('Distribute returned succesfully in block# {} using {} gas.'.format(rcpt.blockNumber, rcpt.gasUsed))
     afterBal = distbalance()
-    print('Distributed {} {}.'.format( int(decimal.Decimal(beforeBal - afterBal) / notation['num']), notation['name']))
+    print('Distributed {0:,.0f} Gwei.'.format((beforeBal - afterBal)/(10**9)))
 
 def editAccount(entry:str, beneflist:list):
     acct                =   None
-- 
GitLab