Hi
I'm trying to take orders (both a buys orders and sells orders), following the taker.js example
the problem I have is with the amount parameter.
The example is doing the following things
I have the following questions:
1) should I always use ethAvailableVolumeBase both for buys and sells?
2) fraction would obviously be a floating point and so would be amount, but amount should always be in amountGet terms which is in wei and so don't need to be a floating point, is it correct and safe to do
Hi I'm trying to take orders (both a buys orders and sells orders), following the taker.js example the problem I have is with the amount parameter. The example is doing the following things
I have the following questions: 1) should I always use ethAvailableVolumeBase both for buys and sells? 2) fraction would obviously be a floating point and so would be amount, but amount should always be in amountGet terms which is in wei and so don't need to be a floating point, is it correct and safe to do
to truncate decimals?
3) the amount should be written as something like
because otherwise you could potentially trying to get more quantity than the available one, is this reasoning correct?