Compare commits
3 Commits
3e40a09d39
...
36a3c59287
| Author | SHA1 | Date | |
|---|---|---|---|
| 36a3c59287 | |||
| 1234723e10 | |||
| 61f48abb7d |
@ -161,7 +161,7 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt
|
|||||||
res.FlagReset = append(res.FlagReset, flag_incorrect_voucher, flag_low_swap_amount)
|
res.FlagReset = append(res.FlagReset, flag_incorrect_voucher, flag_low_swap_amount)
|
||||||
|
|
||||||
inputStr := string(input)
|
inputStr := string(input)
|
||||||
if inputStr == "0" {
|
if inputStr == "0" || inputStr == "99" || inputStr == "88" || inputStr == "98" {
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,11 +4,17 @@ RELOAD swap_to_list
|
|||||||
MAP swap_to_list
|
MAP swap_to_list
|
||||||
CATCH missing_voucher flag_incorrect_voucher 1
|
CATCH missing_voucher flag_incorrect_voucher 1
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
|
MOUT quit 99
|
||||||
|
MNEXT next 88
|
||||||
|
MPREV prev 98
|
||||||
HALT
|
HALT
|
||||||
|
INCMP > 88
|
||||||
|
INCMP < 98
|
||||||
|
INCMP _ 0
|
||||||
|
INCMP quit 99
|
||||||
LOAD swap_max_limit 64
|
LOAD swap_max_limit 64
|
||||||
RELOAD swap_max_limit
|
RELOAD swap_max_limit
|
||||||
CATCH api_failure flag_api_call_error 1
|
CATCH api_failure flag_api_call_error 1
|
||||||
CATCH . flag_incorrect_voucher 1
|
CATCH . flag_incorrect_voucher 1
|
||||||
CATCH low_swap_amount flag_low_swap_amount 1
|
CATCH low_swap_amount flag_low_swap_amount 1
|
||||||
INCMP _ 0
|
|
||||||
INCMP swap_limit *
|
INCMP swap_limit *
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user