elnosh / gonuts

Cashu wallet and mint in Go
MIT License
33 stars 6 forks source link

Include fee in nut05.PostMeltBolt11Response #21

Open rolznz opened 6 months ago

rolznz commented 6 months ago

This way we do not need to re-fetch the invoice after melting to calculate the fee

elnosh commented 6 months ago

hey @rolznz, fee is not included because I'm using those structs in the nuts packages to be the responses as specified in the protocol. In this case it would be this https://github.com/cashubtc/nuts/blob/main/05.md#melting-tokens