cash out works for btc

This commit is contained in:
Josh Harvey 2016-04-07 16:17:33 +01:00
parent e2d619c56d
commit e227716ad9
3 changed files with 5 additions and 4 deletions

View file

@ -132,6 +132,10 @@ function send (req, res) {
function cashOut (req, res) {
logger.info({tx: req.body, cmd: 'cashOut'})
var tx = req.body
tx.cryptoAtoms = new BigNumber(tx.cryptoAtoms)
tx.satoshis = tx.cryptoAtoms
plugins.cashOut(session(req), req.body, function (err, bitcoinAddress) {
if (err) logger.error(err)