Asset divided by asset
Related: #26
Observed in: clive!357 (comment 162097)
Asset.hive(1)
from clive is AssetHiveHF26(amount='1000', precision=3, nai='@@000000021')
here in scheams.
Now it behaves like this:
and this behavior is wrong. Asset divided by asset should result in a number (Decimal would suit the better instead of float)
Consider:
1x/2x = 1/2
1x/2 = 1/2x
so it should be valid for asset same way:
Asset.hive(1) / Asset.hive(2) = Decimal("0.5")
Asset.hive(1) / 2 = Asset.hive("0.5")
Edited by Mateusz Żebrak