Compare commits
No commits in common. "b85c5a8788f2ff69cc2f65bf37e8826d3bb1e27b" and "e803048b13b894328aeaeae68bc6aa5f1f4de4d4" have entirely different histories.
b85c5a8788
...
e803048b13
@ -2944,8 +2944,6 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt
|
|||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
logg.InfoCtxf(ctx, "Metadata from GetSwapToVoucherData:", "metadata", metadata)
|
|
||||||
|
|
||||||
// Store the active swap_to data
|
// Store the active swap_to data
|
||||||
if err := store.UpdateSwapToVoucherData(ctx, userStore, sessionId, metadata); err != nil {
|
if err := store.UpdateSwapToVoucherData(ctx, userStore, sessionId, metadata); err != nil {
|
||||||
logg.ErrorCtxf(ctx, "failed on UpdateSwapToVoucherData", "error", err)
|
logg.ErrorCtxf(ctx, "failed on UpdateSwapToVoucherData", "error", err)
|
||||||
|
|||||||
@ -176,7 +176,7 @@ func GetSwapToVoucherData(ctx context.Context, store DataStore, sessionId string
|
|||||||
|
|
||||||
// UpdateSwapToVoucherData updates the active swap to voucher data in the DataStore.
|
// UpdateSwapToVoucherData updates the active swap to voucher data in the DataStore.
|
||||||
func UpdateSwapToVoucherData(ctx context.Context, store DataStore, sessionId string, data *dataserviceapi.TokenDetails) error {
|
func UpdateSwapToVoucherData(ctx context.Context, store DataStore, sessionId string, data *dataserviceapi.TokenDetails) error {
|
||||||
logg.InfoCtxf(ctx, "UpdateSwapToVoucherData", "data", data)
|
logg.TraceCtxf(ctx, "UpdateSwapToVoucherData", "data", data)
|
||||||
|
|
||||||
// Convert TokenDecimals (uint8) to string
|
// Convert TokenDecimals (uint8) to string
|
||||||
tokenDecimalsStr := strconv.FormatUint(uint64(data.TokenDecimals), 10)
|
tokenDecimalsStr := strconv.FormatUint(uint64(data.TokenDecimals), 10)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user