From f31b61fb73d27dda0773fdb30842934e552f0c40 Mon Sep 17 00:00:00 2001 From: jeffyanta Date: Wed, 28 Jan 2026 09:09:40 -0500 Subject: [PATCH] The deposit intent for a sell is now always in USD --- ocp/worker/swap/util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ocp/worker/swap/util.go b/ocp/worker/swap/util.go index 3ada658..c322346 100644 --- a/ocp/worker/swap/util.go +++ b/ocp/worker/swap/util.go @@ -207,6 +207,9 @@ func (p *runtime) updateBalancesForFinalizedSwap(ctx context.Context, swapRecord big.NewFloat(0.99).SetPrec(128), ).Float64() + exchangeCurrency = currency_lib.USD + nativeAmountWithoutFees = usdMarketValueWithoutFees + // Update funding intent record with actual USD market value for // consistent USD cost basis fundingIntentRecord.SendPublicPaymentMetadata.UsdMarketValue = usdMarketValueWithoutFees