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

Fix race condition in fee calculation #73

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Fix race condition in fee calculation #73

merged 1 commit into from
Jan 31, 2025

Conversation

shermike
Copy link
Contributor

Decimal's Pow function is not thread-safe, so we need to lock it manually. This is a workaround, we need to remove the lock after Decimal will be fixed or find a better solution.
shopspring/decimal#368

Decimal's Pow function is not thread-safe, so we need to lock it manually.
This is a workaround, we need to remove the lock after Decimal will be fixed
or find a better solution.
shopspring/decimal#368
@olegrok olegrok added this pull request to the merge queue Jan 31, 2025
Merged via the queue into main with commit 73a21cd Jan 31, 2025
12 checks passed
@olegrok olegrok deleted the fee-fix-race branch January 31, 2025 15:55
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.

2 participants