rename the function to match the ordered voucher data

This commit is contained in:
Alfred Kamanda 2026-02-12 14:20:42 +03:00
parent 1a61ea6de3
commit f4c8c45ed1
Signed by: Alfred-mk
GPG Key ID: E60B2165A97F4D41
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}

View File

@ -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,