Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- added: "Change Username" setting
- added: Support for Zano alias name resolution.
- added: Add `walletAddress` param to Moonpay buy quotes.
- changed: Don't allow multiple pending EVM transactions.

## 4.30.0 (2025-06-24)
Expand Down
8 changes: 7 additions & 1 deletion src/plugins/gui/providers/moonpayProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,14 @@ export const moonpayProvider: FiatProviderFactory = {

const fiatCode = removeIsoPrefix(params.fiatCurrencyCode).toLowerCase()
let url
const walletAddress = (
await params.wallet?.getAddresses({ tokenId: null })
)?.[0]?.publicAddress
const walletAddressParam =
walletAddress == null ? '' : `&walletAddress=${walletAddress}`

if (direction === 'buy') {
url = `https://api.moonpay.com/v3/currencies/${cryptoCurrencyObj.code}/buy_quote/?apiKey=${apiKey}&quoteCurrencyCode=${cryptoCurrencyObj.code}&baseCurrencyCode=${fiatCode}&paymentMethod=${paymentMethod}&areFeesIncluded=true&${amountParam}`
url = `https://api.moonpay.com/v3/currencies/${cryptoCurrencyObj.code}/buy_quote/?apiKey=${apiKey}&quoteCurrencyCode=${cryptoCurrencyObj.code}&baseCurrencyCode=${fiatCode}&paymentMethod=${paymentMethod}&areFeesIncluded=true&${amountParam}${walletAddressParam}`
} else {
url = `https://api.moonpay.com/v3/currencies/${cryptoCurrencyObj.code}/sell_quote/?apiKey=${apiKey}&quoteCurrencyCode=${fiatCode}&payoutMethod=${paymentMethod}&areFeesIncluded=true&${amountParam}`
}
Expand Down
Loading