calle 👁️⚡👁️ 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-tsIf you're a dev, join:
https://t.me/CashuBTCPublished at
2023-07-06 08:40:01Event JSON
{
"id": "85a1940269acf99889750d7c982212e90ea4b1656d45a53064bb3077c399afef",
"pubkey": "50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63",
"created_at": 1688632801,
"kind": 1,
"tags": [],
"content": "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]). \n\nHowever, 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!\n\nI imagine the steps would be: \n- Figure out how NUT-08 works (rather simple) and how it is used in cashu-ts\n- Add that to the redeem page to receive overpaid fees back from the mint\n- Store overpaid fees in local storage so the user can use it when they try to make the next redeem attempt.\n- 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\n\n[1] https://redeem.cashu.me/\n[2] https://github.com/cashubtc/cashu-redeem\n[3] https://github.com/cashubtc/nuts/blob/main/08.md\n[4] https://github.com/cashubtc/cashu-ts\n\n\nIf you're a dev, join: https://t.me/CashuBTC",
"sig": "ba3c3ba7f70af4287de6aa539cfb56ee8f1f8167cb73ea3315499148fe378f03b2d31638575398ba826a6ff02a27d96c3024633194351c76828b162b931c3eb3"
}