InjectiveLabs / cw-injective

Apache License 2.0
22 stars 24 forks source link

The trait `From<FPDecimal> for Uint256` is not implemented for FPDecimal #216

Open Aursen opened 5 months ago

Aursen commented 5 months ago

For the moment, to get the Uint256 type from a FPDecimal, we need to use to_u256(). However, this is a bit restrictive when we need to convert several different types into Uint256 inside a macro, for example.

The solution would be to add just this feature to the structure