fix swap threshold logic
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.