change unit/kB for sat/Byte in fee rate
This commit is contained in:
parent
e29550ea0b
commit
f681122fd6
3 changed files with 5 additions and 10 deletions
|
|
@ -53,11 +53,11 @@ angular.module('copayApp.controllers').controller('preferencesFeeController', fu
|
|||
level: $scope.currentFeeLevel
|
||||
});
|
||||
if (lodash.isEmpty(feeLevelValue)) {
|
||||
$scope.feePerKBUnit = null;
|
||||
$scope.feePerSatByte = null;
|
||||
$scope.avgConfirmationTime = null;
|
||||
return;
|
||||
}
|
||||
$scope.feePerKBUnit = feeLevelValue.feePerKBUnit;
|
||||
$scope.feePerSatByte = (feeLevelValue.feePerKB / 1000).toFixed();
|
||||
$scope.avgConfirmationTime = feeLevelValue.nbBlocks * 10;
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -50,12 +50,7 @@ angular.module('copayApp.services').factory('feeService', function($log, $stateP
|
|||
walletClient.getFeeLevels('testnet', function(errTestnet, levelsTestnet) {
|
||||
if (errLivenet || errTestnet) {
|
||||
return cb(gettextCatalog.getString('Could not get dynamic fee'));
|
||||
} else {
|
||||
lodash.each(lodash.union(levelsLivenet, levelsTestnet), function(level) {
|
||||
level.feePerKBUnit = txFormatService.formatAmount(level.feePerKB) + ' ' + unitName;
|
||||
});
|
||||
}
|
||||
|
||||
return cb(null, {
|
||||
'livenet': levelsLivenet,
|
||||
'testnet': levelsTestnet
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@
|
|||
<div class="settings-description" translate>The higher the fee, the greater the incentive a miner has to include that transaction in a block. Current fees are determined based on network load and the selected policy.</div>
|
||||
<div class="estimates">
|
||||
<div>
|
||||
<span translate>Average confirmation time</span>:
|
||||
<span translate>Average confirmation time</span>:
|
||||
<span class="fee-minutes" ng-if="avgConfirmationTime">{{avgConfirmationTime | amDurationFormat: 'minute'}}</span>
|
||||
<span ng-if="loadingFee">...</span>
|
||||
</div>
|
||||
<div>
|
||||
<span translate>Current fee rate for this policy</span>:
|
||||
<span class="fee-rate" ng-if="feePerKBUnit">{{feePerKBUnit}}/kiB</span>
|
||||
<span translate>Current fee rate for this policy</span>:
|
||||
<span class="fee-rate" ng-if="feePerSatByte">{{feePerSatByte}} sat/Byte</span>
|
||||
<span ng-if="loadingFee">...</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue