zeitgeist icon indicating copy to clipboard operation
zeitgeist copied to clipboard

Implement a proper trait for balance math operations

Open maltekliemann opened this issue 1 year ago • 0 comments

Whatever pallet requires standard math operations (checked, I guess), it should require that the runtime's Balance type offers those.

We then need a trait which any struct which implements checked math. This trait should then implement all the b* operations like bmul, etc. It should also allow to control rounding behavior (take a look at Balancer v2!).

maltekliemann avatar Aug 30 '23 16:08 maltekliemann