1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Fix Whales' nominator case

This commit is contained in:
Andrey Pfau 2023-12-06 06:16:35 +07:00
parent 5368287d5f
commit 7a407c4fe3
2 changed files with 11 additions and 11 deletions

View file

@ -137,7 +137,7 @@ int apply_profit(int value, int value_profit, int profit) {
}
;; Try to withdraw from withdraw balance
if ((remaining > 0) & ctx_member_withdraw > 0) {
if (((remaining > 0) & ctx_member_withdraw) > 0) {
int delta = min(ctx_member_withdraw, remaining);
ctx_member_withdraw = ctx_member_withdraw - delta;
ctx_balance_withdraw = ctx_balance_withdraw - delta;
@ -294,4 +294,4 @@ int owned_balance() {
;; Reset sent amount
ctx_balance_sent = 0;
}
}