From 2524248806e600cfaebc431c90969f66deddb276 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 17 Dec 2024 13:52:43 +0100 Subject: [PATCH] fixup! rpc: for DecodeAssetPayReq hit the oracle directly --- rpcserver.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index e81c83019..58c5ed945 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -7750,7 +7750,9 @@ func (r *rpcServer) assetInvoiceAmt(ctx context.Context, targetAsset asset.Speci assetRate := oracleResp.AssetRate.Rate - numAssetUnits := rfqmath.MilliSatoshiToUnits(invoiceAmt, assetRate) + numAssetUnits := rfqmath.MilliSatoshiToUnits( + invoiceAmt, assetRate, + ).ScaleTo(0) return numAssetUnits.ToUint64(), nil }