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:
parent
5368287d5f
commit
7a407c4fe3
2 changed files with 11 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue