@riocrypto/common-server 1.0.2849 → 1.0.2850
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getProcessor = void 0;
|
|
4
4
|
const common_1 = require("@riocrypto/common");
|
|
5
|
-
// Alfin
|
|
6
|
-
// route to Alfin
|
|
7
|
-
//
|
|
8
|
-
const isAlfinEnabled = () => [common_1.RioEnv.Test, common_1.RioEnv.
|
|
5
|
+
// Alfin takes effect only in Test (Alfin UAT) and Production (Alfin prod). In
|
|
6
|
+
// every other environment we never route to Alfin, regardless of user
|
|
7
|
+
// attributes or active processors.
|
|
8
|
+
const isAlfinEnabled = () => [common_1.RioEnv.Test, common_1.RioEnv.Production].includes(process.env.RIO_ENV);
|
|
9
9
|
const getProcessor = ({ country, fiat, user, activeProcessors, side, isBinanceRFQ, }) => {
|
|
10
10
|
var _a, _b, _c, _d, _e, _f;
|
|
11
11
|
if (isBinanceRFQ === true) {
|