Skip to content

Commit

Permalink
dispenser updates
Browse files Browse the repository at this point in the history
- updated confirmation message to include dispenser address
- updated close-dispenser to support new cpDispenser args
  • Loading branch information
jdogresorg committed Mar 17, 2021
1 parent 4a06991 commit d769f7b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion html/dispenser-close.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
source = FW.WALLET_ADDRESS,
status = 10, // 10 = Close Dispenser
fee_sat = parseInt(numeral(vals['fee-amount']).multiply(100000000).value());
cpDispenser(network, source, vals.asset, 0, 0, 0, status, fee_sat, doneCb);
cpDispenser(network, source, source, vals.asset, 0, 0, 0, status, fee_sat, doneCb);
}
})

Expand Down
2 changes: 1 addition & 1 deletion html/dispenser.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
// Confirm the action with the user
var title = '<i class="fa fa-lg fa-fw fa-arrows-h"></i> Confirm Create Dispenser?',
msg = 'Escrow <b>' + vals['escrow-amount'] + ' ' + vals.name + '</b> in a dispenser at';
msg = 'Escrow <b>' + vals['escrow-amount'] + ' ' + vals.name + '</b> in a dispenser at <br><b>' + vals.destination + '</b>';
msg += '<br>Dispense <b>' + vals['give-amount'] + ' ' + vals.name + '</b> for <b>' + vals['btc-amount'] + ' BTC</b> each?';
dialogConfirm(title, '<center>' + msg + '</center>', false, true, confirmCb);
}
Expand Down
6 changes: 0 additions & 6 deletions html/dispensers/dispenser-buy.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@
var msg = 'Buy <b>' + vals.amount + ' ' + data.name + '</b>';
msg += ' <br/>for <b>' + vals['btc-amount'] + ' BTC</b>';
dialogConfirm(title, '<center>' + msg + '</center>', false, true, confirmCb);

// var network = (FW.WALLET_NETWORK==2) ? 'testnet' : 'mainnet',
// source = FW.WALLET_ADDRESS,
// status = 10, // 10 = Close Dispenser
// fee_sat = parseInt(numeral(vals['fee-amount']).multiply(100000000).value());
// cpDispenser(network, source, vals.asset, 0, 0, 0, status, fee_sat, doneCb);
}
})

Expand Down

0 comments on commit d769f7b

Please sign in to comment.