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

Swap not using correct active keyset #332

Open
lescuer97 opened this issue Feb 22, 2025 · 0 comments
Open

Swap not using correct active keyset #332

lescuer97 opened this issue Feb 22, 2025 · 0 comments

Comments

@lescuer97
Copy link

lescuer97 commented Feb 22, 2025

I see cashu.me trying to do a swap for a a "eur" unit ecash using the active "sat" keyset instead of the "eur" one.

I tested this both with stablenut.umint.cash and my localmint
example below is using my localmint:

00421edc39d409d2 is a "sat" keyset.
00f23f32643ce697 is a "eur" keyset.

Request from cashu.me { "inputs": [ { "secret": "3d7e0d8ab482b4f767dddf14f99fbd01565729c4ae93037ac41042f12cd69246", "C": "0339a193f0028d0ce548faa5400fa427beddabae2b556cc3ab1e402a2a9db68209", "amount": 64, "id": "00f23f32643ce697" }, { "secret": "5961611e9d930a5951f466417b99f8d6197e05172bbcb03cb57f53511195636a", "C": "0288c3b5edb89f3c2b8c96cddefbec85dc8f13a8e7fa6e7a951af03c894c01a252", "amount": 32, "id": "00f23f32643ce697" }, { "secret": "30302b625bfb5b33cb9dd76bf117b737d42922a457a838a2a81f4c201ac104bc", "C": "034b6698233ffc9cee2de859fb0b5921a7cb88d3941e5095375d003c89884334ae", "amount": 4, "id": "00f23f32643ce697" } ], "outputs": [ { "amount": 4, "B_": "030abcbd489100ab7878175e72a8d11a94ada5b9ce4a0599f876abdbd7dec00c2a", "id": "00421edc39d409d2" }, { "amount": 32, "B_": "03aff5ac662e7363221a81869a5664bd2419502c02f71eb49b7655c2e4e6a5c665", "id": "00421edc39d409d2" }, { "amount": 64, "B_": "03329ccdf2e5ab292910bc90162c894bc345b00f51e46150abb2de3dc68559b284", "id": "00421edc39d409d2" } ] }
Keysets [ { "id": "00421edc39d409d2", "unit": "sat", "active": true, "input_fee_ppk": 0 }, { "id": "009377f8e175a17f", "unit": "sat", "active": false, "input_fee_ppk": 0 }, { "id": "00ff6bfa1ff72a5c", "unit": "sat", "active": false, "input_fee_ppk": 0 }, { "id": "00f23f32643ce697", "unit": "eur", "active": true, "input_fee_ppk": 0 }, { "id": "00bfa73302d12ffd", "unit": "sat", "active": false, "input_fee_ppk": 0 }, { "id": "0061287798d19b10", "unit": "eur", "active": false, "input_fee_ppk": 0 } ]

pinging @Egge21M as I think this could be a cashu-ts bug

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

1 participant