Why Nostr? What is Njump?
2023-07-06 10:40:01

npub12r…485vg on Nostr: For anyone looking for a simple project to get into Cashu dev, I just had an idea: ...

For anyone looking for a simple project to get into Cashu dev, I just had an idea: the redeem page [1] right now swallows all overpaid Lightning fees (code: [2]).

However, we have NUT-08 (which is also implemented into cashu-ts [4]) which allows users to receive back the overpaid fees. It would be nice to have that feature on the redeem page!

I imagine the steps would be:
- Figure out how NUT-08 works (rather simple) and how it is used in cashu-ts
- Add that to the redeem page to receive overpaid fees back from the mint
- Store overpaid fees in local storage so the user can use it when they try to make the next redeem attempt.
- Hint: overpaid fees from different mints (identified by keyset ID) need to be stored separately in local storage because you can't use the tokens from mint A to pay in mint B

[1] https://redeem.cashu.me/
[2] https://github.com/cashubtc/cashu-redeem
[3] https://github.com/cashubtc/nuts/blob/main/08.md
[4] https://github.com/cashubtc/cashu-ts


If you're a dev, join: https://t.me/CashuBTC
Author Public Key
npub12rv5lskctqxxs2c8rf2zlzc7xx3qpvzs3w4etgemauy9thegr43sf485vg