rename the function to match the ordered voucher data
This commit is contained in:
parent
1a61ea6de3
commit
f4c8c45ed1
@ -73,7 +73,7 @@ func (h *MenuHandlers) PoolDepositMaxAmount(ctx context.Context, sym string, inp
|
||||
}
|
||||
|
||||
userStore := h.userdataStore
|
||||
metadata, err := store.GetStableVoucherData(ctx, userStore, sessionId, inputStr)
|
||||
metadata, err := store.GetOrderedVoucherData(ctx, userStore, sessionId, inputStr)
|
||||
if err != nil {
|
||||
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
|
||||
}
|
||||
|
||||
// GetStableVoucherData retrieves and matches stable voucher data
|
||||
func GetStableVoucherData(ctx context.Context, store DataStore, sessionId string, input string) (*dataserviceapi.TokenHoldings, error) {
|
||||
// GetOrderedVoucherData retrieves and matches ordered voucher data
|
||||
func GetOrderedVoucherData(ctx context.Context, store DataStore, sessionId string, input string) (*dataserviceapi.TokenHoldings, error) {
|
||||
keys := []storedb.DataTyp{
|
||||
storedb.DATA_ORDERED_VOUCHER_SYMBOLS,
|
||||
storedb.DATA_ORDERED_VOUCHER_BALANCES,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user