@mmalecki A few things could be improved here. RATE and tradeFiat (2nd argument to fiatBalance) are identical. Making ```RATE = 101``` and having 3 bitcoins would make the test more clear. tradeFiat is actually ignored in fiatBalance (and should be taken out, since it shouldn't pass jshint). So, the actual math is:

```
remainingBitcoins = 3 - 1; // 2
remainingBalanceInFiat = 2 * RATE; // 202
```

And balance should be ```(202 / LOW_BALANCE_MARGIN) * COMMISSION)```