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

Commit

Permalink
Fix unclaimed calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
FerranMarin committed May 29, 2022
1 parent 407ae67 commit 30d34a6
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 120 deletions.
2 changes: 1 addition & 1 deletion axie-utils/axie_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.1.0'
__version__ = '2.1.1'
__all__ = [
'Axies',
'AxieGraphQL',
Expand Down
4 changes: 2 additions & 2 deletions axie-utils/axie_utils/claims.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def has_unclaimed_slp(self):
return None
elif self.force:
logging.info('Important: Skipping check of dates, --force option was selected')
claimable_total = int(data['rawClaimableTotal'])
claimable_total = int(data['rawTotal']) - int(data['rawClaimableTotal'])
if claimable_total > 0:
return claimable_total
return None
Expand Down Expand Up @@ -267,7 +267,7 @@ def has_unclaimed_slp(self):
return None
elif self.force:
logging.info('Important: Skipping check of dates, --force option was selected')
claimable_total = int(data['rawClaimableTotal'])
claimable_total = int(data['rawTotal']) - int(data['rawClaimableTotal'])
if claimable_total > 0:
return claimable_total
return None
Expand Down
Loading

0 comments on commit 30d34a6

Please sign in to comment.