Skip to content

Fix duplicate currencies causing negative balance in hasCurrencies/pa…#203

Open
yossev wants to merge 1 commit into
123ishaTest:mainfrom
yossev:fix/currency-duplicate-simplify
Open

Fix duplicate currencies causing negative balance in hasCurrencies/pa…#203
yossev wants to merge 1 commit into
123ishaTest:mainfrom
yossev:fix/currency-duplicate-simplify

Conversation

@yossev

@yossev yossev commented Jun 25, 2026

Copy link
Copy Markdown

…yCurrencies

Adds simplifyCurrencyList which merges duplicate currency ids before checking or deducting, resolving the bug where paying [{money,1},{money,1}] with a balance of 1 would succeed and go negative.

Fixes #61

…yCurrencies

Adds simplifyCurrencyList which merges duplicate currency ids before
checking or deducting, resolving the bug where paying [{money,1},{money,1}]
with a balance of 1 would succeed and go negative.

Fixes 123ishaTest#61
@yossev

yossev commented Jun 26, 2026

Copy link
Copy Markdown
Author

@Ishadijcks Check this out pls!

@Ishadijcks

Copy link
Copy Markdown
Contributor

@yossev I will

Can I ask, how did you find this project?

@yossev

yossev commented Jun 26, 2026

Copy link
Copy Markdown
Author

@yossev I will

Can I ask, how did you find this project?

@Ishadijcks
I Found that i was somehow subscribed to this issue (i dont even remember how) but i looked into it and started working on it.

My guess is that 6+ months ago i used https://goodfirstissue.dev/

@yossev

yossev commented Jul 10, 2026

Copy link
Copy Markdown
Author

@Ishadijcks all good? :)

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

Successfully merging this pull request may close these issues.

[Currency] Improve CurrencyPlugin to deal better with duplicate currencies

2 participants