cash out works for btc
This commit is contained in:
parent
e2d619c56d
commit
e227716ad9
3 changed files with 5 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue