Skip to content

Commit

Permalink
fix: fix withdraw message and removed dump calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ex3ndr committed Apr 14, 2022
1 parent 3a9959c commit 72a3416
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions compiled/nominators.fc
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ builder store_withdraw_completed(builder b) inline {
return b.store_uint(7614653257073527469736132165096662684165476, 144);
}

;; 'Withdraw requested. Please, retry command when your balance is ready.'
;; 'Withdraw requested. Please, retry the command when your balance is ready.'
builder store_withdraw_delayed(builder b) inline {
return b
.store_uint(1949351233810823032252520485584178069312463918, 152)
.store_uint(1949351233810823032252520485584178069312463918, 152) ;; 'Withdraw requested.'
.store_text_space()
.store_uint(129235456374863711129272833139953997066553106386817338770482542, 208)
.store_uint(555062058613674355757418046597367430905687018487295295368960255172568430, 240) ;; 'Please, retry the command when'
.store_text_space()
.store_uint(49121518824486666175116745069183411942170479416928337752603523374, 216);
.store_uint(45434371896731988359547695118970428857702208118225198, 176); ;; 'your balance is ready.'
}

(int, int) get_stake_parameters() {
Expand Down Expand Up @@ -649,10 +649,6 @@ int apply_profit(int value, int value_profit, int profit) {
ctx_member_pending_withdraw_all = withdraw_all;
}

int p = 0;
p = ctx_balance_pending_deposits; p~dump();
p = ctx_balance_pending_withdraw; p~dump();

;; Return withdraw result
return (withdrawed, remaining == 0);
}
Expand Down
4 changes: 0 additions & 4 deletions sources/modules/model.fc
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ int apply_profit(int value, int value_profit, int profit) {
ctx_member_pending_withdraw_all = withdraw_all;
}

int p = 0;
p = ctx_balance_pending_deposits; p~dump();
p = ctx_balance_pending_withdraw; p~dump();

;; Return withdraw result
return (withdrawed, remaining == 0);
}
Expand Down
8 changes: 4 additions & 4 deletions sources/modules/utils.fc
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ builder store_withdraw_completed(builder b) inline {
return b.store_uint(7614653257073527469736132165096662684165476, 144);
}

;; 'Withdraw requested. Please, retry command when your balance is ready.'
;; 'Withdraw requested. Please, retry the command when your balance is ready.'
builder store_withdraw_delayed(builder b) inline {
return b
.store_uint(1949351233810823032252520485584178069312463918, 152)
.store_uint(1949351233810823032252520485584178069312463918, 152) ;; 'Withdraw requested.'
.store_text_space()
.store_uint(129235456374863711129272833139953997066553106386817338770482542, 208)
.store_uint(555062058613674355757418046597367430905687018487295295368960255172568430, 240) ;; 'Please, retry the command when'
.store_text_space()
.store_uint(49121518824486666175116745069183411942170479416928337752603523374, 216);
.store_uint(45434371896731988359547695118970428857702208118225198, 176); ;; 'your balance is ready.'
}

0 comments on commit 72a3416

Please sign in to comment.