Skip to content

Commit

Permalink
fix(lightning): increase max send fee buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Feb 13, 2024
1 parent 688f864 commit 2351c87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/screens/Wallets/LNURLPay/Amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const Amount = ({

const max = useMemo(() => {
// TODO: get routing fee
const fee = 1;
const fee = 100;
return Math.min(balance.spendingBalance - fee, maxSendable);
}, [maxSendable, balance.spendingBalance]);

Expand Down
4 changes: 2 additions & 2 deletions src/utils/wallet/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ export const getMaxSendAmount = ({
selectedNetwork,
});
// TODO: get routing fee
const fee = 1;
const fee = 100;
const maxAmount = {
amount: spendingBalance - fee,
fee,
Expand Down Expand Up @@ -1033,7 +1033,7 @@ export const sendMax = async ({
selectedNetwork,
});
// TODO: get actual routing fee (Currently generous with the fee for wiggle room to prevent routing failures)
let fee = 50;
let fee = 100;
let amount = 0;
if (spendingBalance > fee) {
amount = spendingBalance - fee;
Expand Down

0 comments on commit 2351c87

Please sign in to comment.