use the ProcessTokens function and remove the unused DATA_POOL_TO_BALANCES

This commit is contained in:
Alfred Kamanda 2025-05-21 18:51:10 +03:00
parent 043c79384c
commit 91b57fece2
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -2784,12 +2784,11 @@ func (h *MenuHandlers) LoadSwapToList(ctx context.Context, sym string, input []b
return res, nil return res, nil
} }
data := store.ProcessVouchers(swapToList) data := store.ProcessTokens(swapToList)
// Store all to list voucher data // Store all swap_to tokens data
dataMap := map[storedb.DataTyp]string{ dataMap := map[storedb.DataTyp]string{
storedb.DATA_POOL_TO_SYMBOLS: data.Symbols, storedb.DATA_POOL_TO_SYMBOLS: data.Symbols,
storedb.DATA_POOL_TO_BALANCES: data.Balances,
storedb.DATA_POOL_TO_DECIMALS: data.Decimals, storedb.DATA_POOL_TO_DECIMALS: data.Decimals,
storedb.DATA_POOL_TO_ADDRESSES: data.Addresses, storedb.DATA_POOL_TO_ADDRESSES: data.Addresses,
} }