MakePrisms / boardwalkcash

https://boardwalkcash.com
MIT License
28 stars 3 forks source link

Patch/cross mint swap #105

Closed gudnuf closed 2 days ago

gudnuf commented 2 days ago

There were two issues here.

One is that if we want to claim locked ecash by melting to another mint, cashu-ts does not currently support unlocking in the melt operation so if the lightning payment fails, then we already had swapped to unlock and the original proofs are now spent.

The other issue was with a discrepancy in exchange rates between mints, and my getCrossMinttQuotes function was exceeding its max attempts to find valid mint/melt quotes to melt all the proofs.

vercel[bot] commented 2 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boardwalk ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 6:41pm