debt-menu #115
@ -73,7 +73,7 @@ func (h *MenuHandlers) PoolDepositMaxAmount(ctx context.Context, sym string, inp
|
|||||||
}
|
}
|
||||||
|
|
||||||
userStore := h.userdataStore
|
userStore := h.userdataStore
|
||||||
metadata, err := store.GetStableVoucherData(ctx, userStore, sessionId, inputStr)
|
metadata, err := store.GetOrderedVoucherData(ctx, userStore, sessionId, inputStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return res, fmt.Errorf("failed to retrieve swap to voucher data: %v", err)
|
return res, fmt.Errorf("failed to retrieve swap to voucher data: %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -120,8 +120,8 @@ func GetVoucherData(ctx context.Context, store DataStore, sessionId string, inpu
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetStableVoucherData retrieves and matches stable voucher data
|
// GetOrderedVoucherData retrieves and matches ordered voucher data
|
||||||
func GetStableVoucherData(ctx context.Context, store DataStore, sessionId string, input string) (*dataserviceapi.TokenHoldings, error) {
|
func GetOrderedVoucherData(ctx context.Context, store DataStore, sessionId string, input string) (*dataserviceapi.TokenHoldings, error) {
|
||||||
keys := []storedb.DataTyp{
|
keys := []storedb.DataTyp{
|
||||||
storedb.DATA_ORDERED_VOUCHER_SYMBOLS,
|
storedb.DATA_ORDERED_VOUCHER_SYMBOLS,
|
||||||
storedb.DATA_ORDERED_VOUCHER_BALANCES,
|
storedb.DATA_ORDERED_VOUCHER_BALANCES,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user