Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 30d34a6

Browse files
committed
Fix unclaimed calculations
1 parent 407ae67 commit 30d34a6

6 files changed

Lines changed: 161 additions & 120 deletions

File tree

axie-utils/axie_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '2.1.0'
1+
__version__ = '2.1.1'
22
__all__ = [
33
'Axies',
44
'AxieGraphQL',

axie-utils/axie_utils/claims.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def has_unclaimed_slp(self):
6161
return None
6262
elif self.force:
6363
logging.info('Important: Skipping check of dates, --force option was selected')
64-
claimable_total = int(data['rawClaimableTotal'])
64+
claimable_total = int(data['rawTotal']) - int(data['rawClaimableTotal'])
6565
if claimable_total > 0:
6666
return claimable_total
6767
return None
@@ -267,7 +267,7 @@ def has_unclaimed_slp(self):
267267
return None
268268
elif self.force:
269269
logging.info('Important: Skipping check of dates, --force option was selected')
270-
claimable_total = int(data['rawClaimableTotal'])
270+
claimable_total = int(data['rawTotal']) - int(data['rawClaimableTotal'])
271271
if claimable_total > 0:
272272
return claimable_total
273273
return None

0 commit comments

Comments
 (0)