From c8c5c4125caf8425e014993cb975149995d157a2 Mon Sep 17 00:00:00 2001 From: Dario Gabriel Lipicar Date: Thu, 7 Nov 2024 00:23:14 -0300 Subject: [PATCH] fix(wallet)_: preserve value for token swaps to properly form path key --- services/wallet/transfer/transaction_manager_route.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/wallet/transfer/transaction_manager_route.go b/services/wallet/transfer/transaction_manager_route.go index d0136ac228..423ec70126 100644 --- a/services/wallet/transfer/transaction_manager_route.go +++ b/services/wallet/transfer/transaction_manager_route.go @@ -164,7 +164,8 @@ func (tm *TransactionManager) buildTxForPath(path *routes.Path, pathProcessors m // special handling for transfer tx if selected token is not ETH // TODO: we should fix that in the trasactor, but till then, the best place to handle it is here - if !path.FromToken.IsNative() { + // Paraswap needs the value to form the path key + if path.ProcessorName != pathprocessor.ProcessorSwapParaswapName && !path.FromToken.IsNative() { sendArgs.Value = (*hexutil.Big)(big.NewInt(0)) if path.ProcessorName == pathprocessor.ProcessorTransferName ||