Skip to content

Add dynamic gas pricing as a signing client option - Feemarket/Osmosis#1926

Merged
webmaster128 merged 9 commits intomainfrom
add-feemarket-auto-simon
Dec 18, 2025
Merged

Add dynamic gas pricing as a signing client option - Feemarket/Osmosis#1926
webmaster128 merged 9 commits intomainfrom
add-feemarket-auto-simon

Conversation

@webmaster128
Copy link
Contributor

Follow-up of #1911. Closes #1911

@webmaster128 webmaster128 force-pushed the add-feemarket-auto-simon branch from 706b3bf to 9123c2d Compare December 18, 2025 11:25
const normalizedValue = value.adjustFractionalDigits(fractionalDigits);

// Convert multiplier to Decimal with same fractional digits
const multiplierDecimal = Decimal.fromUserInput(multiplier.toString(), fractionalDigits);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried multiplier.toFixed(fractionalDigits) but it leads to some inconvenient effekts like this:

> 0.1.toFixed(18)
'0.100000000000000006'

i.e. we swap one problem with another. Maybe it is good enough as-is, assuming users don't put in multiplier values that lead to scientific notation.

@webmaster128 webmaster128 merged commit 3927027 into main Dec 18, 2025
14 checks passed
@webmaster128 webmaster128 deleted the add-feemarket-auto-simon branch December 18, 2025 13:12
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.

1 participant