From a13aca13382883e20191b6875e7edd7d033c4823 Mon Sep 17 00:00:00 2001 From: 9qeklajc Date: Sun, 4 Oct 2026 23:46:38 +0200 Subject: [PATCH] fix: preserve configured swap unit --- routstr/foreign_mint_swap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routstr/foreign_mint_swap.py b/routstr/foreign_mint_swap.py index 0db617bc..61d876df 100644 --- a/routstr/foreign_mint_swap.py +++ b/routstr/foreign_mint_swap.py @@ -357,7 +357,7 @@ async def swap_in_and_credit( if resolve_trusted_source_mint(source_mint) is not None: raise ValueError("Token is from a trusted mint; redeem it directly") source_unit = str(token_obj.unit) - dest_unit = key.refund_currency or source_unit + dest_unit = settings.primary_mint_unit dest_mint = _trusted_swap_destination() if source_unit not in _UNITS or dest_unit not in _UNITS: raise ForeignMintSwapError("Unsupported token unit for swap")