diff --git a/wallet/wallet.go b/wallet/wallet.go index 075e2cb..1f411e9 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -572,6 +572,11 @@ func (w *Wallet) Receive(token cashu.Token, swapToTrusted bool) (uint64, error) } } + // if mint in token is already the default mint, do not swap to trusted + if _, ok := w.mints[tokenMint]; ok && tokenMint == w.currentMint.mintURL { + swapToTrusted = false + } + if swapToTrusted { amountSwapped, err := w.swapToTrusted(proofsToSwap, tokenMint) if err != nil {