Fix(frontend): sats sent/receive for swaps is corrected (#1241)

Fixes #1201
This commit is contained in:
NIDHI SHARMA 2024-04-22 01:05:31 +05:30 committed by GitHub
parent 013ba8784e
commit 5f7e26b052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));
};