cashubtc / cdk

Cashu Development Kit
MIT License
76 stars 31 forks source link

Wallet: determine valid amounts from mint's `keys` response #342

Open prusnak opened 5 days ago

prusnak commented 5 days ago

Same as https://github.com/cashubtc/nutshell/issues/618

ISTM that CDK also hardcodes/assumes amounts of 2^n and not the ones provided by the mint:

https://github.com/cashubtc/cdk/blob/f978b080d5d77455f23fdcc7dc44036277e792f2/crates/cdk/src/wallet/mod.rs#L756-L758

thesimplekid commented 5 days ago

Yes I noticed this a bit ago but haven't fixed it yet.

https://github.com/cashubtc/cdk/issues/124