function refundColdWallet(currency, amount, fn){ var opts = { to_account: config.get('COLD_WALLET'), from_account: config.get('HOT_WALLET').address, amount: amount, currency: currency, issuer: config.get('COLD_WALLET'), secret: config.get('HOT_WALLET').secret } ripple.sendCurrency(opts, fn); }
function issueCurrency(amount, currency, secret, fn) { var opts = { to_account: gateway.config.get('HOT_WALLET').address, from_account: gateway.config.get('COLD_WALLET'), amount: amount, currency: currency, issuer: gateway.config.get('COLD_WALLET'), secret: secret } ripple.sendCurrency(opts, fn); }
function issueCurrency(amount, currency, secret, fn) { var opts = { to_account: gateway.config.get('gateway_hot_wallet').address, from_account: gateway.config.get('gateway_cold_wallet'), amount: amount, currency: currency, issuer: gateway.config.get('gateway_cold_wallet'), secret: secret } ripple.sendCurrency(opts, fn); }