I saw there are two Utils.UNITS in cli-utils.js (see [2] and [3]) which acutally cause troubles when determining rate at [1].
var rate = Utils.UNITS[unit];
Utils.UNITS = {
btc: {
name: 'btc',
toSatoshis: 100000000,
maxDecimals: 8,
minDecimals: 8,
},
bit: {
name: 'bit',
toSatoshis: 100,
maxDecimals: 2,
minDecimals: 2,
},
};
I don't know which one you are going to keep, but I am sure that not the both.