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: prevent exceeding precision 18 #48

Merged
merged 1 commit into from
Jul 30, 2024
Merged

fix: prevent exceeding precision 18 #48

merged 1 commit into from
Jul 30, 2024

Conversation

jhlee-young
Copy link
Contributor

@jhlee-young jhlee-young commented Jul 25, 2024

Major Reviewer: @jaeminDelightlabs @jbamlee

Cause

  • commission in price exceeds max decimal places in cosmos-sdk.types.Decimal

Solution

  • truncate decimal before parsing

@jhlee-young jhlee-young marked this pull request as ready for review July 25, 2024 07:37
Copy link

@JoowonYun JoowonYun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jhlee-young jhlee-young merged commit 552faf3 into main Jul 30, 2024
1 check passed
@jhlee-young jhlee-young deleted the fix/exceed-prec branch July 30, 2024 08:36
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.

3 participants