fix: for bitcoin withdrawal the exchange payto:// is not enough and the withdrawal payto should always have the reserve pub

This commit is contained in:
Sebastian 2022-08-18 11:30:16 -03:00
parent 16777ba205
commit f5441a682d
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -169,7 +169,7 @@ export async function getTransactions(
type: WithdrawalType.ManualTransfer,
reservePub: wsr.reservePub,
exchangePaytoUris:
exchangeDetails.wireInfo?.accounts.map((x) => x.payto_uri) ??
exchangeDetails.wireInfo?.accounts.map((x) => `${x.payto_uri}?subject=${wsr.reservePub}`) ??
[],
};
}