osmosis icon indicating copy to clipboard operation
osmosis copied to clipboard

Helper functions for handling sdk.Coins in osmosutil

Open catShaark opened this issue 2 years ago • 1 comments

Background

We need functions to do division and multiplication of sdk.Coins and a number. For example DivCoin( 88stake, 2 ) -> 44stake, this will be a useful helper function for our tests

Suggested Design

  • Create function for division and multiplication of sdk.Coin in osmosutil.

catShaark avatar Jul 14 '22 08:07 catShaark

Hey @ValarDragon, I saw you coded the division of sdk.Coins, what about multiplication? if not, I will handle it

ThanhNhann avatar Oct 04 '22 10:10 ThanhNhann