wallet-core: correct raw/effective amounts for check-peer-pull-credit
This commit is contained in:
parent
a6d78f12df
commit
2626ed6ad0
@ -1425,9 +1425,16 @@ export async function checkPeerPullPaymentInitiation(
|
||||
throw Error("no exchange found for initiating a peer pull payment");
|
||||
}
|
||||
|
||||
const wi = await getExchangeWithdrawalInfo(
|
||||
ws,
|
||||
exchangeUrl,
|
||||
Amounts.parseOrThrow(req.amount),
|
||||
undefined,
|
||||
);
|
||||
|
||||
return {
|
||||
exchangeBaseUrl: exchangeUrl,
|
||||
amountEffective: req.amount,
|
||||
amountEffective: wi.withdrawalAmountEffective,
|
||||
amountRaw: req.amount,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user