Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
prusnak opened this issue Sep 13, 2024 · 1 comment
Open

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

prusnak opened this issue Sep 13, 2024 · 1 comment

Comments

@prusnak
Copy link
Contributor

prusnak commented Sep 13, 2024

Same as cashubtc/nutshell#618

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

let all_possible_amounts: Vec<usize> = (0..32).map(|i| 2usize.pow(i as u32)).collect();

@thesimplekid
Copy link
Collaborator

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

#124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants