The replicated cash-only currency balance policy, on the token platform BTC3S_USDT, encountered a transaction-only accuracy error before being modified, modified as follows:
193: trade ((buy button, buy_price.toFixed ((6), buy_value.toFixed ((4), buy into balance button)
194: trade (sell), sell_price.toFixed (sell), sell_value.toFixed (sell), sell (sell) and balance (sell)
Then the error: InternalError: bad argument #3 to Exchange_Trade button (float64 expected, got string) at (native) at Buy (FILE) at trade (FILE:139) at onTick (FILE:193) at main (FILE(See also p. 205)
The two parameters that exchange.Buy (Price, Amount) passes are found in the API documentation, and the current single currency balancing strategy is:
139 id = exchange.Buy ((price, amount, msg))
After removing three parameters from the msg, the error message is still as above, it feels like toFixed() is used incorrectly, the correct method for intercepting decimal digits