UNPKG

@yoroi/exchange

Version:

The Exchange package of Yoroi SDK

21 lines 515 B
import { freeze } from 'immer'; export const banxaApiGetBaseUrl = _ref => { let { isProduction, partner } = _ref; return async () => { const domain = banxaApiConfig[isProduction ? 'production' : 'sandbox'].getBaseUrl; const baseUrl = `https://${partner}.${domain}`; return Promise.resolve(baseUrl); }; }; export const banxaApiConfig = freeze({ production: { getBaseUrl: 'banxa.com' }, sandbox: { getBaseUrl: 'banxa-sandbox.com' } }, true); //# sourceMappingURL=api.js.map