Fixing some bugs and minor changes
This commit is contained in:
parent
7accdaa84f
commit
ea1c29ebba
5 changed files with 23 additions and 15 deletions
|
|
@ -29,4 +29,9 @@ function buildMarket (fiatCode, cryptoCode, serviceName) {
|
|||
return cryptoCode + '/' + fiatCode
|
||||
}
|
||||
|
||||
module.exports = { buildMarket, ALL }
|
||||
function verifyFiatSupport (fiatCode, serviceName) {
|
||||
const fiat = ALL[serviceName].FIAT
|
||||
return fiat === 'ALL_CURRENCIES' ? true : _.includes(fiatCode, fiat)
|
||||
}
|
||||
|
||||
module.exports = { buildMarket, ALL, verifyFiatSupport }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue