[swaps] Improve error handling in zrml-swaps
#723
Labels
p:low
Low priority, resolution of this issue can wait
t:enhancement
The issue described an enhancement
The
swaps
pallet currently raises some questionable errors, for exampleMathApproximation
. These seem very uninformative.For example, if I call
pool_join
with a small amount of liquidity (in comparison to what's already in the pool), thenratio
ends up being zero, and I get aMathApproximation
error:zeitgeist/zrml/swaps/src/utils.rs
Lines 105 to 108 in b00d69f
How am I supposed to know what happened?
The text was updated successfully, but these errors were encountered: