Skip to content

Commit 42dafd4

Browse files
authored
Merge pull request #185 from yungwine/mytonctrl2_dev
update signle nominator usage
2 parents b95ccc8 + ecf0fe9 commit 42dafd4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mytoncore/mytoncore.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,10 @@ def GetStake(self, account, args=None):
13071307
stake = account.balance - 10
13081308
#end if
13091309

1310-
if stake is None and usePool:
1310+
pool_version = self.GetVersionFromCodeHash(account.codeHash)
1311+
is_single_nominator = 'spool' in pool_version
1312+
1313+
if stake is None and usePool and not is_single_nominator:
13111314
stake = account.balance - 20
13121315
if stake is None:
13131316
sp = stakePercent / 100

0 commit comments

Comments
 (0)