lamassu-server/packages/server/lib/plugins/zero-conf/mock-zero-conf/mock-zero-conf.js
2025-05-12 15:35:00 +01:00

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
})
}