Compare commits
No commits in common. "85b8775fd0b03fa0c4b73dc0125388767d2a0e4a" and "3949959aa36e9153a98019f4ce4d816e93989a6f" have entirely different histories.
85b8775fd0
...
3949959aa3
@ -152,8 +152,7 @@ func (h *MenuHandlers) CalculateCreditAndDebt(ctx context.Context, sym string, i
|
|||||||
// Fetch session data
|
// Fetch session data
|
||||||
_, _, activeSym, _, publicKey, _, err := h.getSessionData(ctx, sessionId)
|
_, _, activeSym, _, publicKey, _, err := h.getSessionData(ctx, sessionId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// return if the user does not have an active voucher
|
return res, err
|
||||||
return res, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get active pool address and symbol or fall back to default
|
// Get active pool address and symbol or fall back to default
|
||||||
@ -167,7 +166,7 @@ func (h *MenuHandlers) CalculateCreditAndDebt(ctx context.Context, sym string, i
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
res.FlagSet = append(res.FlagSet, flag_api_call_error)
|
res.FlagSet = append(res.FlagSet, flag_api_call_error)
|
||||||
logg.ErrorCtxf(ctx, "failed on GetPoolSwappableFromVouchers", "error", err)
|
logg.ErrorCtxf(ctx, "failed on GetPoolSwappableFromVouchers", "error", err)
|
||||||
return res, nil
|
return res, err
|
||||||
}
|
}
|
||||||
|
|
||||||
logg.InfoCtxf(ctx, "GetPoolSwappableFromVouchers", "swappable vouchers", swappableVouchers)
|
logg.InfoCtxf(ctx, "GetPoolSwappableFromVouchers", "swappable vouchers", swappableVouchers)
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
CATCH no_voucher flag_no_active_voucher 1
|
|
||||||
LOAD calculate_max_pay_debt 0
|
LOAD calculate_max_pay_debt 0
|
||||||
RELOAD calculate_max_pay_debt
|
RELOAD calculate_max_pay_debt
|
||||||
MAP calculate_max_pay_debt
|
MAP calculate_max_pay_debt
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user