11 lines
290 B
JavaScript
11 lines
290 B
JavaScript
module.exports = { authorize }
|
|
|
|
function authorize(account, toAddress, cryptoAtoms, cryptoCode) {
|
|
return Promise.resolve().then(() => {
|
|
if (cryptoCode !== 'BTC')
|
|
throw new Error('Unsupported crypto: ' + cryptoCode)
|
|
|
|
const isAuthorized = false
|
|
return isAuthorized
|
|
})
|
|
}
|