Skip to content

fix swap threshold logic

Anthony Alviz requested to merge anthony/fix_swap_threshold_calculation into master

Previous Behavior:

  • Calculating swap threshold for amounts greater than 1000 would bypass the threshold logic

Current Behavior:

  • Calculating swap threshold for amounts greater than 1000 will not bypass the threshold logic

This was due to parseFloat() stripping any decimals after special character (in this case, commas). So we strip the commas prior to converting the values in order to handle amounts >= 1000.

Merge request reports