Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #545 from jjeffryes/useFeeFromSettings
Browse files Browse the repository at this point in the history
Use fee from settings
  • Loading branch information
rmisio authored Jul 3, 2017
2 parents 849099d + a9f8b25 commit 73d7eb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/languages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"helperVisualEffects": "Transitions, Easing, Opacity",
"helperWindowControls": "Maximize, Minimize & Close controls",
"helperSaveMetaData": "Store additional transaction information",
"helperDefaultFee": "Average is recommended. High may clear faster.",
"helperDefaultFee": "High is recommended for the fastest transactions",
"helperServerManagement": "Switch and manage server connections",
"helperServerPeers": "Peers you're connected to",
"smtp": {
Expand Down Expand Up @@ -1303,7 +1303,7 @@
"orderCompletionModelErrors": {
"provideReview": "Please provide a review.",
"provideRating": "Please select a rating."
},
},
"bitcoinCurrencyUnits": {
"BTC": "BTC",
"MBTC": "mBTC",
Expand Down
1 change: 1 addition & 0 deletions js/models/wallet/Spend.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default Spend;
export function spend(fields) {
const attrs = {
currency: app && app.settings && app.settings.get('localCurrency') || 'BTC',
feeLevel: app && app.localSettings && app.localSettings.get('defaultTransactionFee') || 'high',
memo: '',
...fields,
};
Expand Down
3 changes: 2 additions & 1 deletion js/views/modals/purchase/ConfirmWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export default class extends BaseVw {
this.listenTo(app.walletBalance, 'change:confirmed', () => this.render());

// fetch the estimated fee and rerender when it returns
this.fetchEstimatedFee = $.get(app.getServerUrl('wallet/estimatefee/?feeLevel=NORMAL'))
const feeLevel = app.localSettings.get('defaultTransactionFee').toUpperCase();
this.fetchEstimatedFee = $.get(app.getServerUrl(`wallet/estimatefee/?feeLevel=${feeLevel}`))
.done(data => {
if (this.isRemoved()) return;
this.fee = integerToDecimal(data, true);
Expand Down

0 comments on commit 73d7eb8

Please sign in to comment.