From 5f7e26b052096af7e79e9c4c757940178671970b Mon Sep 17 00:00:00 2001 From: NIDHI SHARMA <114356358+Nidhi-Sharma9419@users.noreply.github.com> Date: Mon, 22 Apr 2024 01:05:31 +0530 Subject: [PATCH] Fix(frontend): sats sent/receive for swaps is corrected (#1241) Fixes #1201 --- frontend/src/utils/computeSats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/computeSats.ts b/frontend/src/utils/computeSats.ts index ca870531..a76deeda 100644 --- a/frontend/src/utils/computeSats.ts +++ b/frontend/src/utils/computeSats.ts @@ -16,7 +16,7 @@ const computeSats = ({ }: computeSatsProps): string | undefined => { const rateWithPremium = rate + premium / 100; let sats = (amount / rateWithPremium) * 100000000; - sats = sats * (1 + fee) * (1 - routingBudget); + sats = sats * (1 - fee) * (1 - routingBudget); return pn(Math.round(sats)); };