@dashevo/wallet-lib
Version:
Light wallet library for Dash
19 lines (17 loc) • 372 B
JavaScript
module.exports = function feeCalculation(type = 'standard') {
const feeRate = {
type: null,
value: null,
};
switch (type) {
case 'instantSend':
feeRate.type = 'perInputs';
feeRate.value = 10000;
return feeRate;
case 'standard':
default:
feeRate.type = 'perBytes';
feeRate.value = 1000;
return feeRate;
}
};