From 7d5870c43fc4d9f761f17e1351f0cfebeb63773f Mon Sep 17 00:00:00 2001
From: Holger Nahrstaedt <holger@nahrstaedt.de>
Date: Tue, 13 Mar 2018 13:01:14 +0100
Subject: [PATCH] Small fix

---
 beem/account.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/beem/account.py b/beem/account.py
index 608b3fba..b7dbf95d 100644
--- a/beem/account.py
+++ b/beem/account.py
@@ -623,12 +623,11 @@ class Account(BlockchainObject):
 
             :param int days: limit number of days to be included int the return value
         """
-        timedelta(days=days)
         utc = pytz.timezone('UTC')
         stop = utc.localize(datetime.utcnow()) - timedelta(days=days)
-        reward_vests = Amount("0 VESTS")
+        reward_vests = Amount("0 VESTS", steem_instance=self.steem)
         for reward in self.history_reverse(stop=stop, only_ops=["curation_reward"]):
-            reward_vests += Amount(reward['reward'])
+            reward_vests += Amount(reward['reward'], steem_instance=self.steem)
         return self.steem.vests_to_sp(reward_vests.amount)
 
     def curation_stats(self):
-- 
GitLab