Skip to content

Commit

Permalink
change default gas adjustment to 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kwunyeung committed Sep 21, 2019
1 parent 90c6d1a commit 7302b93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imports/ui/ledger/LedgerActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const Types = {
DEPOSIT: 'deposit'
}

const DEFAULT_GAS_ADJUSTMENT = '1.4';

const durationToDay = 1/60/60/24/10e8;

const TypeMeta = {
Expand Down Expand Up @@ -391,7 +393,7 @@ class LedgerButton extends Component {
}

runSimulatation = (txMsg, simulateBody) => {
let gasAdjustment = TypeMeta[this.state.actionType].gasAdjustment || '1.2';
let gasAdjustment = TypeMeta[this.state.actionType].gasAdjustment || DEFAULT_GAS_ADJUSTMENT;
Meteor.call('transaction.simulate', simulateBody, this.state.user, this.getPath(), gasAdjustment, (err, res) =>{
if (res){
Ledger.applyGas(txMsg, res, Meteor.settings.public.gasPrice, Coin.MintingDenom);
Expand Down

0 comments on commit 7302b93

Please sign in to comment.