feeCalculator function
Implementation
BigInt feeCalculator(int inputs, int outputs, BigInt byteFee, int coinType) {
switch (coinType) {
case TWCoinType.TWCoinTypeDecred:
return _decredFeeCalculator(inputs, outputs, byteFee);
case TWCoinType.TWCoinTypeBitcoin:
case TWCoinType.TWCoinTypeBitcoinGold:
case TWCoinType.TWCoinTypeDigiByte:
case TWCoinType.TWCoinTypeLitecoin:
case TWCoinType.TWCoinTypeViacoin:
case TWCoinType.TWCoinTypeGroestlcoin:
return _segwitFeeCalculator(inputs, outputs, byteFee);
default:
return _defaultFeeCalculator(inputs, outputs, byteFee);
}
}