osmosis-labs / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
14 stars 31 forks source link

feat(Dec): MulRoundUp #430

Closed p0mvn closed 1 year ago

p0mvn commented 1 year ago

Closes: #XXX

What is the purpose of the change

Progress towards: https://github.com/osmosis-labs/osmosis/issues/4645

There is currently no MulRoundUp function defined on the decimal.

It is useful to have this API for https://github.com/osmosis-labs/osmosis/issues/4645 as it will avoid us having to rely on Ceil() instead, losing accuracy and refactoring many tests.

Brief Changelog

Testing and Verifying

This change added tests and can be verified as follows:

Documentation and Release Note