@@ -33,6 +33,7 @@ function WalletTradeAssetsController($modal, $scope, $http, $q, userService) {
3333
3434 // [ Retrieve Balances ]
3535 $scope . currencyUnit = 'stom' // satoshi to millibitt
36+ $scope . amountUnit = 'mtow'
3637 $scope . balanceData = [ 0 ] ;
3738 var addrListBal = [ ] ;
3839
@@ -445,12 +446,13 @@ function WalletTradeAssetsController($modal, $scope, $http, $q, userService) {
445446 var minerMinimum = 10000 ;
446447 var nonZeroValue = 1 ;
447448
448- var salePricePerCoin = Math . ceil ( formatCurrencyInFundamentalUnit ( + $scope . salePricePerCoin , currencyUnit [ 3 ] + 'tos' ) ) ;
449+ // var salePricePerCoin = Math.ceil( formatCurrencyInFundamentalUnit( +$scope.salePricePerCoin , currencyUnit[3]+'tos' ) );
450+ var salePricePerCoin = + $scope . salePricePerCoin
449451 var buyersFee = Math . ceil ( formatCurrencyInFundamentalUnit ( + $scope . buyersFee , currencyUnit [ 3 ] + 'tos' ) ) ;
450452 var minerFees = Math . ceil ( formatCurrencyInFundamentalUnit ( + $scope . minerFees , currencyUnit [ 3 ] + 'tos' ) ) ;
451453 var saleAmount = Math . ceil ( formatCurrencyInFundamentalUnit ( + $scope . saleAmount , currencyUnit [ 3 ] + 'tos' ) ) ;
452454
453- var salePricePerCoinMillis = formatCurrencyInFundamentalUnit ( salePricePerCoin , 'stom' ) ;
455+ // var salePricePerCoinMillis = formatCurrencyInFundamentalUnit( salePricePerCoin , 'stom' ) ;
454456 var buyersFeeMillis = formatCurrencyInFundamentalUnit ( buyersFee , 'stom' ) ;
455457 var minerFeesMillis = formatCurrencyInFundamentalUnit ( minerFees , 'stom' ) ;
456458 var saleAmountMillis = formatCurrencyInFundamentalUnit ( saleAmount , 'stom' ) ;
@@ -495,7 +497,7 @@ function WalletTradeAssetsController($modal, $scope, $http, $q, userService) {
495497 <div class="modal-body">\
496498 <h3 class="text-center"> Confirm sale order </h3>\
497499 <h3>You\'re about to put ' + saleAmountMillis + 'm' + $scope . selectedCoin +
498- ' on sale at a price of ' + salePricePerCoinMillis + 'mBTC per coin' +
500+ ' on sale at a price of ' + salePricePerCoin + ' BTC per ' + $scope . selectedCoin +
499501 ', plus charge ' + buyersFeeMillis + ' in fees over ' +
500502 $scope . saleBlocks + ' blocks.</h3>\
501503 <p><br>\
0 commit comments